the present invention utilizes electrophysiological methods to provide automatic quantitative evaluation separately for a level of awareness ( sedation ), a sensitivity to pain and / or an ability to comprehend auditory speech and store memories of intraoperative or environmental events . this information may be provided as a monitor to aid an anesthesiologist in the management of an individual patient or may be used as an input to a servo system which automatically delivers anesthetic , analgesic and amnesic agents to optimize the state of a patient . in particular , before an operation , the anesthesiologist may attach a plurality of removable eeg electrodes to the scalp of the patient ( preferably , two to eight electrodes and more preferably , five electrodes ). if five active electrodes are used , they may , for example , be placed at f1 , f2 , f7 and f8 active positions as would be understood by those skilled in the art . reference electrodes may then be placed , for example , at fpz and cz ( vertex ) and the cheekbone . in addition , an earpiece insert may be used to apply audio stimulus to the patient , and a finger cot electrode may be used to apply slight electrical shocks as somatosensory stimulus . the anesthesiologist may than administer a selected anesthetic to place the patient at a desired depth of anesthesia using his clinical judgment , based upon the patient &# 39 ; s vital signs and clinical experience . at that time , measurements of the patient &# 39 ; s eeg , aer ( auditory evoked response ) and / or ser ( somatosensory evoked response ) may be automatically made to provide an adequate self - norm ( reference or base line ). measures of vital signs such as heart rate , stroke volume , blood pressure , respiration and temperature may also be obtained and monitored from the anesthesiology console . in addition , oxygen saturation may be measured , for example , using an nir sensor such as “ invos ”® in vitro optical spectroscopy ) ( somanetics ). a qeeg system , which monitors the electrophysiology of the patient , may then be able to detect changes in the clinical state of the patient ( e . g ., changes in the depth of anesthesia , sensitivity to pain , or probability of memory storage ) before there are clinical or qualitative signs of change ( e . g ., movement , tachycardia , or increased blood pressure ). during the operation , the qeeg system automatically and continually collects on - going eeg and also challenges the patient with regularly repeated periods of stimuli to provide evoked potentials , such as aer and ser . these data are subjected to automatic artifact removal and features selected from the self - norm are continuously analyzed and displayed as three trajectories . in one embodiment of the invention , deviations beyond confidence limits ( i . e ., a reference band ) for any of the trajectories , may automatically control the application of the different agents to achieve or maintain the desired depth of anesthesia . alternatively , this data may be displayed to the anesthesiologist who may then make judgments based on his experience , etc ., as to what measures are required to optimize the anesthesia of the patient . in accordance with one embodiment of the present invention , a guidance of anesthesia , analgesia and amnesia system (“ gas ”) includes an erg system and automatic quantitative analysis of the eeg (“ qeeg ”) and sensory evoked responses . it serves as an intra - operative multimodal monitor to inform the anesthesiologist of the present state of anesthesia of the patient or , if desired , to automatically administer dosages of one or more agents during an operation to facilitate management of the patient . if an anesthesiologist or intensivist is not available , the system may permit a physician or paramedical personnel to manually or automatically maintain the desired level of anesthesia in a patient . in contrast to conventional systems , the gas separately evaluates several dimensions of the state of the patient . in addition to serving as a monitor to aid optimal manual management of the patient , the present method and system enables an automatic control of multiple dimensions of anesthesia . separate measures quantify indices for the depth of anesthesia ( di ), sensitivity to pain ( pain index or pi ) and likelihood of storage of memory index ( mi ). the first dimensional measure , the depth index ( di ), relates to a depth of anesthesia . if the patient has attained a satisfactory depth of anesthesia , consciousness has been lost and the patient &# 39 ; s muscles are sufficiently relaxed so that involuntary muscle movements do not interfere with the operation . this is an over - all measurement of the depth of anesthesia . an example of an agent primarily directed to attain and maintain general anesthesia level ( di ), is propofol (“ diprivan ”® by zeneca phar ). the measurement of the patient &# 39 ; s immediate sensitivity to pain is called the “ pain index ” ( pi ) and an example of an agent primarily directed to controlling pi is remifentanyl ( selective mu - opiod with a very short half - life ). the measurement of the functional state of the patient &# 39 ; s memory is called the “ memory index ” ( mi ). an example of an agent directed primarily to control mi is midazolam ( versed ). general anesthetics produce a progressive depression of the central nervous system . generally , they produce an irregular descending paralysis of the central nervous system and suppression of the sensory cortex . the paralysis successively affects the basal ganglia , the cerebellum and the spinal cord ; without suppression of the medulla ( respiratory and cardiac functions ). the sensory input to the cortex is suppressed because the sensory pathway from the brain stem reticular formation and the thalamus is inhibited . the electrical activity of every local brain region as well as interactions among regions is auto - regulated by a complex neuroanatomical homeostatic system , producing an eeg power spectrum which is generally predictable in healthy persons of any age and independent of ethnic background , in the absence of perturbing illnesses or chemical substances . serial measurements are extremely stable and reproducible within any individual . anesthetic agents alter the relationships within the homeostatic system , producing certain changes in the power spectrum , which have been shown to be invariant with loss of consciousness caused by any agent but reversible with the return of consciousness . anesthetics act upon pacemaker oscillator cells which normally regulate the stable spontaneous eeg rhythm , generating a power spectrum with a peak that is generally in the center of the alpha band ( 8 - 12 hz )) via the nucleus reticularis . this inhibits the thalamus via the neurotransmitter gamma - amino butyric acid and , in effect , closes the sensory gate to the cortex . the pacemaker cells are hyperpolarized by this inhibitory influence of n . reticularis , thereby slowing their oscillations to produce slower alpha waves and enhancement of theta waves . the slower alpha waves and theta waves , and other distinctive alterations of the patient &# 39 ; s normal regional eeg power spectra , and electrophysiological signs of interactions between regions , may be detected by the qeeg analysis system of the present invention . using pattern recognition algorithms , which may be discriminant functions , quantitative features are continuously extracted from ongoing eeg data and used to construct a scale for depth of anesthesia , the depth index ( di ). this information may be presented to the anesthesiologist to serve as an adjunct to the manual management of the patient . alternatively , servo systems may be used to administer appropriate agents automatically to control the di . the present invention presents a relatively simple and yet effective and reliable system and method for the monitoring and / or control of the multiple dimensions of anesthesia . the method is based upon computation of the covariance matrix of spectral quantitative eeg ( qeeg ) features within each electrode and among a set of electrode positions . in its simplest form , it uses a set of anterior ( frontal ) eeg electrodes on the forehead . when the patient attains the surgical plane of anesthesia , the power in each band will change within each electrode and the cross - spectral matrix will change . one way to display this data may be as a scrolling waterfall of the power spectra from each lead , updated at periodic intervals ( e . g ., compressed spectral array or “ csa ”). the means and standard deviations of baseline samples of the covariance matrices and the measures may be used to define a self - norm . as updated samples of eeg are analyzed , a comparison relative to population or self - normative data is made of the absolute and relative eeg power within each of the electrodes continuously or within selected frequency bands , and the symmetry and coherence relationships among these spectral measurements within and between the set of electrodes . this comparison preferably entails transformation of every measure for gaussianity and rescaling the measure to the common metric of probability by computing the standard or z score for each variable . a second way to display this data may be as a scrolling waterfall of the z - transformed spectra or zsa . a third way to display this qeeg data may be to extract selected , differentially sensitive variables from the eeg and compute separate composites such as mahalanobis distances or discriminant scores to provide scales which accurately assess di , pi and mi . these scores may be displayed as separate , updated numerical values or as separate updated trajectories of the values versus elapsed intra - operative or monitoring time . if the patient begins regaining consciousness , sensitivity to pain or the ability to comprehend speech and store memories , as shown by the trajectory for the corresponding dimension , the confidence level ( mean + 2 standard deviations ) around the self - norm ( baseline ) for that dimension will be exceeded . an alarm may be sounded or a vibratory signal transmitted . if that occurs , more agent , directed toward the specific dimension displaying change of state , may then be delivered ( titrated ) to the patient manually by the attending medical personnel or , alternatively , the corresponding agent may be automatically delivered via a self - adaptive servo algorithm . conversely , if these changes are excessive , less agent will be indicated relative to the self - norm , and the attending personnel or the servo system may reliably intervene to control the administration of each of the agents in a manner optimized for the individual patient . the qeeg variables may be augmented by sensory evoked potentials (“ eps ”) and autonomic data to obtain measurements for quantifying the pain ( pi ) and memory ( mi ) indices . to obtain the sensory eps , the system presents to the patient a programmed sequence of concurrent or sequential stimulations in one or multiple sensory modalities . preferably , two modes are used : ( 1 ) auditory stimulation ( e . g ., auditory clicks or rectangular tone pips at about 65 db , modulated at a frequency selected to maximize ep amplitude , such as , approximately 1500 hz ), delivered to the ears via air tubes from an audio source at an ‘ auditory tracer ’ repetition rate f1 ; and ( 2 ) somatosensory stimulation consisting of electrical shocks ( e . g ., 0 . 2 msec pulses of constant current at about 12 ma delivered to a peripheral nerve , preferably via a finger cot , at a second ‘ somatosensory tracer ’ rate ( f2 ). the tracer rates f1 and f2 , although concurrent , may preferably be selected at different prime number frequencies to permit separation of the different ep &# 39 ; s and avoid interference . concurrent stimulations permit a more rapid , examination and provide the patient &# 39 ; s responses more quickly . however , intermittent sequential stimulation may be more effective as habituation may readily be avoided by randomizing sequences or other maneuvers to maximize ep amplitudes . based an the responses to the auditory stimuli , the system tests the functional state of the lateral lemniscal auditory pathway in the brain stem ( brain stem auditory evoked response or baer ), the thalamus ( mid - latency auditory evoked response or mlaer ) and the auditory cortex (“ aer ”). based on the responses to electrical stimuli , the system tests the functional state of the spinal cord , medial lemniscal pathways in the brain stem and the somatosensory cortex ( somatosensory evoked response , or ser ). one way to quantify the eps is to utilize separate tracer frequencies , f1 and f2 , in order detect the different times of presentation of the stimuli in the two different modalities to provide ‘ trigger pulses ’ needed to compute the wave shape of each of the average evoked responses in the time domain , using the conventional evoked response averaging techniques . this selective averaging may be performed whether the stimuli are presented simultaneously or sequentially . the raw wave shapes may be optionally displayed as a scrolling waterfall , or compressed evoked potential array ( cepa ). the system may extract from each such wave shape a numerical feature of merit or a metric ( e . g ., such as the length of the curvilinear outline or the area under the ep wave shape ). from a baseline sample for both the aeps and seps , the mean and standard deviation of the distribution of such ep measures may be specified . subsequent samples may be z - transformed to provide a common metric of probability . these z - scores may be displayed as periodically updating numerical values or as continuously updating trajectories . they may also be combined with the z - scores of the separate qeeg measures found to be sensitive to pain or memory storage into a ‘ state vector ’ in order to provide a multi - modal and more sensitive and specific assessment . such multivariate vectors may be computed as the square root of the sum of the squared separate z - scores . such vectors may combine qeeg and sep z - scores to yield a pain state vector , qeeg and aep z - scores to yield a memory state vector , or qeeg , sep and aep z - scores to yield a brain state vector . another way to quantify the eps is to perform very narrow band ( e . g ., using 0 . 5 hz frequency bins ) ffts on the eeg recorded in the absence of the tracer stimuli and during intermittent or constant periods of stimulation . using the very narrow band power computed over a sliding window of appropriate length ( e . g ., 20 to 60 seconds ), the power in the bin corresponding to f1 or f2 is divided by the mean power of the two adjacent bins of lower frequencies and the two adjacent bins of higher frequencies . the power of the eeg is equal to its variance because the variance of a set of samples of a variable equals the mean squared value minus the square of the mean value across the set and the mean value of the eeg is zero . thus , this quotient of powers is equivalent to an f - ratio . in this way , without actually computing an average response wave shape , a statistically interpretable figure of merit can be readily provided for the responsiveness of the patient to somatosensory or auditory stimulation . by constructing a database of such f values in a baseline sample , the updating f ratio &# 39 ; s can be z - transformed to probability and processed for display on a monitor or inputs to a servo controller just as the features extracted from the ep wave shapes . measures of vital signs ( e . g ., heart rate , stroke volume , blood pressure , respiration and temperature ) may also be obtained and monitored from the anesthesiology console . in addition , oxygen saturation may be measured ( e . g ., using an nir sensor such as “ invos ”® ( in vitro optical spectroscopy ). a preferred comprehensive system monitors the electrophysiology of the patient , detecting changes in available measurements of such vital signs . any such data which becomes available may be treated the same way in principal ( i . e ., a baseline sample may be collected to serve as the reference state ). the quantified feature ( s ) may then be assembled into a baseline distribution sample . after transforms for gaussianity , if necessary , the mean and standard deviation of each measure are calculated . z - transformation of the raw measure values now rescales them all in the common metric of probability . these may now be presented on the screen as numerical values or displayed as continuous updating trajectories as univariates or as multivariate “ vital sign vectors ” combined by computing the square root of the sum of the squared z - scores . while a mathematically more correct multivariate may require correction for intercorrelations using the covariance among the set of measures , the simple square root of the sum of squares errs in the direction of possible over - estimation of the vector length , which acts as a ‘ fail - safe ’ early warning signal . in particular , the normalized variability in heart rate ( hrv ) has been reported to be a sensitive autonomic indicator of pain , z ( hrv ) might contribute enhanced sensitivity if incorporated into the “ pain vector ” together with the selected pain - sensitive qeeg variables and selected sep features . as shown in fig1 , prior to a surgical operation , a plurality of eeg electrodes ( e . g ., eeg electrodes 2 a - 2 e ) are removably secured to the scalp 1 of the patient . preferably , the eeg electrodes will include the following forehead locations : f1 , f2 , f7 , f8 ( all 4 active ) and fpz ( reference ). the capital letters refer to position location names in the international 10 / 20 electrode placement system as would be understood by those of skill in the art . additional removable electrodes may be utilized as desired while additional reference electrodes ( unilateral or linked ) may be removably positioned on the patient &# 39 ; s mastoids or earlobes ( a1 , a2 ). an electrode may be placed on the shoulder over erb &# 39 ; s point to serve as confirmation that sep are being conducted through the spinal cord . eog electrodes may optionally be placed at the outer canthus of the eye to facilitate artifact rejection . as would further be understood by those of skill in the art , electrodes may also be placed on the central vertex ( cz ) to record brainstem potentials , on the chest for ekg recording and on the cheekbone to serve as the ground . the electrodes 2 a - 2 e preferably use a standard electrolyte gel , or other application method , for contact so that the impedances of each electrode - skin contact are below 5000 ohms . alternatively , for some applications , needle electrodes , a pre - gelled electrode appliance with adhesive or other means of fixation , or an electrode cap or net with previously located electrode positions may be used . the eeg system , described below , automatically checks the electrode - skin impedance at each electrode at frequent intervals , ( e . g ., every minute ), and displays a warning ( e . g ., a red led light ) if any such impedance falls below 5000 ohms . as shown in fig1 , the patient &# 39 ; s head 1 is connected to the patient module which includes a desired number of electrodes 2 a - 2 e . fig1 shows four active electrodes . each of the electrodes 2 a - 2 e is connected to a respective one of the eeg / ep amplifiers 3 a - 3 e , with each electrode lead being connected to its respective amplifier . each amplifier 3 a - 3 e has an input isolation switch , ( e . g ., a photo - diode and led coupler ), to prevent current leakage to the patient . the eeg amplifiers 3 a - 3 e are high - gain low - noise amplifiers , preferably having , for example , peak - to - peak noise of 1 microvolt or less , a frequency range of 0 . 5 to 200 hz , fixed gain of 10 , 000 , common mode rejection of 100 db or more ( 4 amplifiers ). two auditory or somatosensory brainstem ep amplifiers may have , for example , a peak to peak noise of less than 1 microvolt , a frequency range from 30 to 5000 hz , gain of 100 , 000 ( 2 amplifiers ) and a common mode rejection of at least 100 db . alternatively , high - gain amplifiers may be used with fixed gain of , for example , 10 , 000 of which 2 may be remotely switched to a fixed gain of , for example , 100 , 000 . amplifier parameters may be switched for separate data collection of eeg and ep , separate amplifiers may be connected to the same electrode input , or a programmable a / d multiplexer converter may be used to output the separated data . the amplifiers 3 a - 3 e are connected to a four channel analog - to - digital multiplexer 4 ( a / d multiplexer ). the multiplexer 4 samples the amplified analog brain waves at a rate of , for example , 5 khz for each channel . the multiplexer 4 is connected to “ buffer signal ” 5 which stores the signal , and “ buffer noise ” 6 which stores samples of the “ noise ”, that is , amplifier output of eeg when no stimuli are delivered to elicit eps . the buffers 5 , 6 and a / d multiplexer 4 are connected to a dedicated digital signal processor ( dsp ) 7 , such as , for example , model tms320c44 ® ( texas instruments ). alternatively , the dsp 7 may be a pentium 4 processor ® ( intel ) or a digital signal processor such as the tms320c44 ® ( texas instruments ) along with a microprocessor . the dsp may be controlled by , for example , a software program 8 and connected , through a dedicated 512 - point fft 9 ( fast fourier transform ) to a digital comb filter 10 . the comb filter 10 is connected to , and controls , the ifft 11 ( inverse fast fourier transform ). the output of ifft 11 is connected to the system microprocessor 12 . the microprocessor 12 is also connected to , and controls , the stimulus generator 13 ( e . g ., lights , loudspeaker , shock , device , etc . ), the mass storage 14 ( e . g ., a hard disk ), the display 15 ( e . g ., a crt ), a printer 16 and a keyboard operator control panel 17 . the microprocessor 12 operates under control of a software program 18 . preferably , as shown , the stimulus generator 13 is connected to “ auditory ” 20 , which generates clicks at , for example , 100 db and at an “ auditory tracer ” frequency “ f1 ”. the clicks may then be transmitted to the patient via , for example , earphones or air tubes . the stimulus generator 13 is also connected to “ somatosensory ” 21 which delivers electrical stimulation ( e . g ., constant current electrical shock pulses ), for example , of 200 microseconds duration and 12 milliamps current . the electrical stimulation may be transmitted to the patient via , for example , a fingertip cot at a second , and different , “ somatosensory tracer ” frequency “ f2 .” the digital comb filter 10 may be as described in u . s . pat . no . 4 , 705 , 049 , incorporated by reference herein . the comb filter may considered a series of band pass and band stop filters which are responsive over a selected range . the selected range may for example be is 0 - 3000 hz and may , preferably be 0 - 1400 hz . preferably , band pass filters may operate at 10 - 580 hz , 600 - 640 hz , 720 - 800 hz and 900 - 1400 hz with band - stop filters at 0 - 10 hz , 580 - 600 , 640 - 720 hz , 800 - 900 hz and above 1400 hz . thus the band pass filters form the “ teeth ” of a comb and are selected to accord with frequencies in which a signal / noise ratio is acceptable . the band - stop filters are selected to remove frequencies in which the noise is excessive . the multiplexer 4 may be programmed to obtain samples of the signal and of the noise . the “ noise ” is preferably obtained when there is an absence of evoked potential stimuli and the “ signal ” is obtained during stimulation , beginning with presentation of the stimuli or after a pre - selected delay . the program 8 with its controlled dsp 7 conditions the input signals and insures that they are valid biological signals . such validation checks on the input signals include periodic calibration measurements and impedance measurements and continuous automatic artifact rejection algorithms . the microprocessor 12 automatically provides a timed set of two kinds of stimuli for simulator 13 : an audio sound from a speaker or earphones and a tactile signal from the electric shock of about 0 . 2 msec duration and about 12 ma of intensity delivered to electrodes via the fingertip cot . auditory clicks ( e . g ., about 100 db spl ) may be delivered through a stethoscope earpiece by air conduction tubes from a magnetic speaker or other arrangement as would be understood by those skilled in the art . ideally , these clicks may be rectangular pulses of 1500 hz tones at a repetition rate of about 40 / sec . the rate of stimulus may range between 7 - 50 / second and may more preferably range between 35 - 45 / second ( i . e ., eliciting a 40 hz auditory steady - state evoked response ( 40 hz ) at an auditory tracer frequency 1 ( f1 )). the patient &# 39 ; s brain responds to these stimuli , providing “ evoked potentials ” ( ep which are averaged to reduce noise . sample size varies with stimulus modality , ranging from 100 ( vep ) to 512 - 2048 ( baer / bser ). the average ep is the sum of samples time - locked to the onset of the stimuli divided by the number of samples , to provide an updated average . the software program provides patient information . typically , the patient header gives the patient &# 39 ; s ids number , age and the date of the operation . in addition , it may contain the name of the physician , anesthetist or other operator and the nature of the procedure . the time is provided by a time code generator , which records both local time and elapsed time directly on the eeg tracings , so that events may be retrieved from any acquisition session given input to the database of the date . retrieved data should include all clinical protocols and physiological documentation , including the trajectories of the indices . the software program provides the data analysis module , described in detail elsewhere in this application . after analysis of the data , the microprocessor 12 provides information to the display 15 which info ns the anesthesiologist or medical personnel of the state of the patient with respect to the 3 dimensions being monitored . this data can then be used to guide manual administration of agents in accordance with the clinical judgment of the physician . alternatively , this information may be provided as control signals to a delivery control 19 , which , automatically controls three agent infusion pumps 22 a - 22 c ( e . g ., pumps a , b and c ) to achieve a desired balance of the three agents . if the anesthetic is gaseous , the anesthesia control 19 may control valves of gas cylinders ( not shown ) as would be understood by those of skill in the art . each of the three state indices ( i . e ., the di , the mi and the pi ) are separately analyzed by the computer software of the present invention , in the frequency domain and also in the time domain . the following is a preferred exemplary method for frequency domain analysis of the depth of anesthesia to obtain the di . the frequency domain , from 0 - 200 hz , is divided into narrow bins ( e . g ., for 0 . 50 hz bins , 400 bins are set ), qeeg variables are extracted from 0 . 05 - 1 . 5 hz ( low delta ) to gamma 2 ( 35 - 50 hz ). based upon experience ( e . g ., based on data from sets of prior patients ), features are selected from the data from univariate ( i . e ., single electrode ) and multi - variate ( i . e ., composite sets of electrodes ) measures . the data , in the frequency domain , is preferably converted by a fast fourier transform ( fft ) and then may be converted again by an inverse fast fourier transform ( ifft ). the fft is the preferred method for calculating a power spectrum of the patients &# 39 ; brain waves . using the fourier transformation , the complex wave diagram of the eeg is divided into underlying oscillation components , followed by a translation from the time domain into the frequency domain . the squared amplitudes of these oscillation components form the “ power spectrum .” further processing of the results of the fourier analysis may include the extraction of spectrum parameters as well as continued statistical calculations . ifft may be performed after analysis of the relative phase variances at each frequency , of segments containing ep signals and segments containing only noise samples , removing noise by setting appropriate coefficients to zero and reconstructing eps with the noise digitally removed . parameters which may be derived from the spectrum , include , for example , the total power and absolute and relative power in different frequency bands . the median , the spectral edge frequency , and the dominant frequency may also be used as parameters . the median frequency is most often defined as the 95 % quantile ( i . e ., 95 % of the total power of the spectrum is below this frequency ). the dominant frequency is the frequency with the highest power . mean powers within selected band intervals are calculated , transformed to achieve a normal or gaussian distribution . mean values and standard deviations of a baseline set of samples of each qeeg or ep variable are obtained during an adequate and appropriate reference period to define the patients “ self - norm .” the relevant population norm is obtained ( i . e ., from a look - up normative table ). z - scores are calculated for each univariate or multi - variate qeeg or ep measure , relative to both the self - and population - norms . for each variable , a sliding window , for example , 20 seconds of data which is continuously updated , is formed which integrates sequential segments ( i . e ., 2 . 5 second artifact - free eeg samples ). from the updated mean value of the sliding window , the trajectory of each variable and the di , pi and mi are calculated . the trajectory of each index is presented to the physician as a quantitative monitor of each dimension of patient state to provide guidance for the optimal management of the patient or optionally may be used to automatically control the delivery of various agents to the patient , preceded or accompanied by display of the intended maneuver to the operator . the ep wave shapes are stored . the peaks of the eps are detected and an ep index (“ epi ”) is computed . the epi reflects the area under the ep curve , the length of the contour of the ep wave shape (“ string length ”), its peak amplitudes and its latencies . an updating ep waterfall type display may be computed ( compressed ep array , or cepa ), that scrolls ( with time ) with the ep peaks marked , for example , as brightened points or by arrows or stars . the automatic comb filter , mentioned above , may be used to define an optimum digital filter for computation of any eps . as in the case of the baer / aer , for all eps , the data is stored , the peaks are detected , and an ep index (“ epi ”) is computed . the epi reflects the area under the ep , and its string length , peak amplitudes and latencies . an updating scrolling waterfall display may be computed and displayed ( on the monitor ) with the ep peaks marked . in addition , separate updated sliding windows of data may be computed and displayed ( on the monitor ) for the patient &# 39 ; s vital signs . preferably , these vital signs include heart functions , as detected by qrs peaks , heart rate variability , respiratory cycle , bp ( blood pressure ), oxygen saturation , and temperature . these vital signs windows are computed using the means value and standard deviation for each of the vital signs . the data collected and analyzed in the time domain and frequency domain are used to form the patient &# 39 ; s multiple indices . these are , preferably , the depth index ( psi ) ( assesses anesthesia level ), the memory index ( mi ) and the pain index ( pi ). a preferred method of computing these indices may be to use discriminant analysis as described in u . s . pat . no . 5 , 083 , 571 relating to psychiatric classification of a patient with respect to a class or specific disorder and the inventor &# 39 ; s prior u . s . pat . no . 6 , 016 , 444 . in general , discriminant analysis uses “ discriminant functions ”, u . s . pat . nos . 5 , 083 , 571 and 6 , 016 , 444 are hereby expressly incorporated by reference in their entireties . a discriminant function is composed of weighted combinations of subsets of variables . in the case where patients &# 39 ; norms are used , the subsets are z scores . each of the subsets ( each z score ) is selected , on the basis of experience and experimentation , because it significantly contributes to the discrimination ( e . g ., discrimination between anesthetized and yet feeling pain and anesthetized and not feeling pain ). the weighting of the subsets , the contribution of each z score toward the discrimination , is also based on experience and experimentation . the distributions of features of two groups of subjects , where the groups belong to different diagnostic categories , may be thought of as two clouds of points in a multidimensional space in which each dimension corresponds to a feature . for example , each feature is a z score and the diagnostic categories , for example , are the degrees of anesthetization to prevent pain . there may be no significant differences between two groups ( i . e ., significant differences in other dimensions ). a problem arises when these clouds of points overlap , i . e ., when there is no apparent significant difference between two groups with respect to some features . a solution is to attempt to define a boundary , through the clouds of points , to create a first zone which includes as much as practicable of the first group , and as little as possible of the second group , and a second zone which includes as much as practicable of the second group and as little as practicable of the first group . the third zone is defined as an overlap region where no reliable classification can be made . in principle , a discriminant function weights the values of selected features for a new patient and adds these weighted values to specify a single point in the relevant multidimensional space . this single point then would be in one of the three zones , and the individual &# 39 ; s category ( in each of the di , mi and pi ) would be classified accordingly . the discriminant analysis is performed during the operation using z scores based on self - norms ( i . e ., comparison with the same patient pre - operation ) and population norms ( i . e ., patients of the same age and condition during similar operations using the same anesthetic ). after the di , mi and pi are computed , these computations may be used to automatically administer the various anesthetics to the patient . in addition , these indices are displayed to the operator on , e . g ., a monitor . they may also be recorded and printed out for analysis after the operation . the di gives an assessment in qeeg , the depth of anesthesia , the memory index ( mi ) is obtained , in qeeg , by combining the f ( aer ) value with selected aer features ( i . e ., assessment of reception ). this should give an indication of the patients &# 39 ; ability to comprehend speech , i . e ., the conversation of the doctors and nurses during the operation . the pain index ( pi ) is derived from the f ( ser ) values and selected ser features . in addition , non - qeeg autonomic measures , which are responsive to pain , may be used and computed into the psi , pi and mi . in order for the tendencies of the di , mi and pi to control and / or monitor the quantities of the various anesthetics , each of which is primarily directed to one of those indices , it is necessary to measure the effects of those anesthetics on the individual patients . population norms are based on gender , age , surgical procedure and specific anesthetics . however , individuals , due to their metabolisms and other factors , may react differently from the average patient of such population norms . the preferred method of determining the correct anesthesia dosage for each patient is to test the patient using the 2 or 3 different anesthetic agents which will be used for the operation . this qeeg method may analyze the particular patient &# 39 ; s brain wave reaction to each anesthetic agents , one at a time , and derive a “ transfer function ” for each patient , reflecting that patient &# 39 ; s biochemical reactions to each anesthetic agent . for example , one patient may require an injection of 5 milliliters of an anesthetic agent to prevent a feeling of pain , as shown by his pi , while another patient may require twice that dosage to obtain the same effect . the transfer function is preferably updated at regular intervals ( i . e ., for example every 20 minutes ) during the operation , as it may change if the operation lasts longer than 15 - 20 minutes . a preferred method for calculating each of transfer function may include perturbation analysis . after the patient has been anesthetized to the desired plane of anesthesia , and his qeeg self - norm ( reference set - point ) has been obtained , the system halts delivery of the first anesthetic , for example , the anesthesia remifentanyl primarily directed to control pain ( pi ) or may diminish the delivered amount by some fraction , for example , 50 percent . the patient then starts , in a gradual way , to show a change in the relevant index , e . g ., di , mi or pi . at a selected distance from a set point , preferably about 2 . 5 standard deviations ( s . d . ), ( i . e ., probability p & lt ; 0 . 01 ), the application of the particular anesthetic agent is resumed . the system , in this method determines the number of anesthetic units withheld from the patient to cause the change in the relevant index . for example , it may require withholding 3 units for a particular patient to be roused to 2 . 5 s . d . from the set - point of the pi . the amount of anesthetic agent withheld , called the “ test correction amount ,” is an approximation of the amount of anesthetic agent required to restore that particular patient to the selected index when he has deviated from his set point by 2 . 5 s . d . a selected fraction of that amount is then administered , as a first approximation , to see whether this restores the patient to the set point . the amount required to restore the patient to the set points is defined as the “ correction amount ” and is retained in system memory and is administered to the patient whenever the patient has deviated from his set - point by 2 . 5 s . d . or more . adequate determination of the transfer function may require positive , as well as negative perturbations . preferably , periodic evaluation is shown by a significant change in each index ( di , mi and pi ) caused by a small increment in the amount of anesthetic agent delivery , for example 10 %. as shown in fig1 , the anesthesia control 19 , under management of the microprocessor 12 , controls the administration of the different anesthetic agents . in this example , the anesthetic agents are injections and they are administered intravenously by infusion pumps a - c ( 22 a - 22 c ). for example , pump a ( 22 a ) may inject propofol ( to control di ), while pump b ( 22 b ) injects midzolam ( to control mi ) and pump c ( 22 c ) injects remifentanyl ( to control pi ). alternatively , as would be understood by those of skill in the art , any or all of the various anesthetic agents may be gases which are administered through controlled inhalation by the patient . for each index ( di , mi and pi ), one infusion pump 22 a - 22 c is used to administer or withhold the anesthetic agent primarily directed toward controlling that index . for example , the di is continually computed and compared to the desired value or desired range of values . the pump ( i . e ., pump a ( 22 a )) is energized ( or not energized ) to inject ( or withhold ) the corresponding anesthetic agent ( e . g ., propofol primarily to control the psi ). similarly , the mi and pt are continually computed and a corresponding one of the pumps 22 ( i . e ., pump b ( 22 b ) or pump c ( 22 c ), respectively ) is controlled to inject , or withhold , the anesthetic agent primarily directed to that index . as would be understood by those of skill in the art , the system of fig1 may be implemented incorporating a dedicated freestanding computer , such as a pc , a laptop or other handheld device . alternatively , the computer and monitor portions ( as distinct from the pumps ) may be implemented as part of a multi - modal monitor , which may also include sensors and displays of the patient &# 39 ; s vital signs ( i . e ., blood pressure , respiration , o2 saturation , temperature and pulse ( heart rate )). in any event , preferably , the display 15 is a monitor having a color screen to display graphics and alphanumerics . the operator control 17 may preferably include a standard asci key board which may be used to enter the patient header ( e . g ., name , age , gender , hospital number , date , medical procedure etc .) and comments ( which may use function keys ). preferably , the display shows the results of the qeeg analysis continually during the operation . these displays may preferably include : a ) the trajectories of each of the indices ( di , mi and pi ) separately either on the same screen or in sequence ; b ) the set points and the selected ranges ( permitted deviations ) for each index ; c ) the current numerical value for each index ; d ) a waterfall type display or / and actual ( raw data ) brain waves showing , for each data channel , the fft , aer and ser ; e ) coded symbols and / or alarms for events which should be brought to the attention of the operator , such as epileptic spikes , epileptic seizures , burst suppression and abrupt changes in those vital signs ( e . g ., bp , respiration , pulse ( heart rate ), o2 saturation and temperature ); and f ) wave shapes stored in an epileptic form event file ( epileptic spikes and seizures ) calculated and displayed as well as their number and the their times of occurrences . other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein . it is intended that the specification and examples be considered as exemplary only , with a true scope and spirit of the invention being indicated by the following claims .
method for determining anesthesia dosage includes following steps . first interventional agent is administered to patient at a first rate to achieve first predetermined plane of anesthesia . brain waves of patient are analyzed to formulate first set of data corresponding to a self - norm during administration of fia . first transfer function corresponding to patient biochemical reactions to fia is computed from fsd . rate of administration of fia to patient is altered by a selected amount after achievement of fppa for first time required for patient to deviate from fppa by predetermined degree . an altered amount of fia required to cause the predetermined deviation is determined as difference between amount of fia that would have been delivered to patient during first time at the first rate and an amount delivered to patient during the first time at the altered rate . patient is administered the altered amount of fia .