The Composite Variability Index ( CVI ) , derived from the electroencephalogram , was developed to assess the antinociception-nociception balance , whereas the Bispectral Index ( BIS ) was developed to assess the hypnotic state during anesthesia .