Abstract:
A method and apparatus for accurately determining the onset or occurrence of an epileptic seizure is disclosed. The system includes an electroencephalograph (EEG) and an electromyograph (EMG) which provide signals to a signal processor. The signal processor operates to generate a digitized envelope waveform of the EEG waveform and the EMG waveform. If the waveforms all have an amplitude within a predetermined threshold, for a predetermined time interval, a CPU provides a signal to an output display indicative of a epileptic seizure.

Description:
FIELD OF THE INVENTION 
     The present invention relates to monitoring epileptic seizure activity and, more particularly, to a method and apparatus for accurately detecting epileptic seizure activity in a human. 
     BACKGROUND OF THE INVENTION 
     Epilepsy is defined as a disorder characterized by recurring seizures, typically manifested by motor, sensory, and/or cognitive malfunction with or without unconsciousness. Motor convulsions are the most common symptom that arises from epilepsy. Convulsive motor attacks can be highly disruptive to normal every day life. Another major category of seizures is the absence seizure, which is a seizure of the brain with little obvious motor movement in its purest form. The occurrence of a seizure with a motor and/or an absence component can be monitored in two ways. 
     First, the gross motor activity of the patient is typically measured by an electromyograph (EMG) to provide an EMG waveform. An electromyograph operates by monitoring the electrical response of a muscle, in the form of a voltage, to movement. A record of these voltage variations, the EMG waveform, is taken over time. EMG waveforms are made using a mechanical EMG recorder that employs pens to record the analog voltage fluctuations on a strip of paper. As a continuous chart of paper is moved beneath an array of galvanometer driven ink pens, the pens trace out the muscle activity as a series of wavy or jagged lines. 
     The motor seizure is also typically accompanied by heightened brain activity and thus, an electroencephalograph (EEG) may be used to monitor the seizure by providing an EEG waveform. Further, because the EEG measures brain activity, the EEG can also be used to monitor absence seizures. Similar to an EMG, an EEG monitors brain activity by measuring the very small voltage fluctuations that are generated in the brain, which are detected by electrodes typically attached to a patient&#39;s scalp. To aid in studying these analog signals, a record of the voltage fluctuations, the EEG waveform, is often made over time. Traditionally, EEG waveforms are made using a mechanical EEG recorder that employs pens to record the analog voltage fluctuations on a strip of paper. As a continuous chart of paper is moved beneath an array of galvanometer-driven ink pens, the pens trace out the brainwave activity as a series of wavy or jagged lines. 
     Recently, digital EEGs and EMGs have been developed. Instead of printing the EEG waveforms or EMG waveforms on paper, digital recorders convert sensed analog waveforms into digital signals that are stored in some digital storage medium such as random access memory. (RAM), hard disks, storage tapes, etc. The stored digital waveforms can then be transferred to a digital reader for display and analysis by medical personnel. A digital reader can consist of a personal computer including memory, a processor, input devices and an electronic display screen, e.g., a cathode ray tube (CRT) monitor, for displaying the waveforms. 
     The information provided by EEGs and EMGs have been used in the prior art to determine if a seizure has taken place or is in progress. However, to date, these methods have proved to be less than convenient or cost effective for daily monitoring. It can be appreciated that it is important to be able to determine when a seizure has occurred, and, by early detection of the onset of a seizure, prevent the seizure. The present invention describes a method and apparatus for detecting seizures in epileptics. 
     SUMMARY OF THE INVENTION 
     In accordance with this invention, a method and apparatus for accurately determining the onset or occurrence of an epileptic seizure are provided. The brain activity and the motor activity present in a patient is monitored and brain activity and motor activity signals representing the monitored activities are produced. The brain activity signal is continuously sampled to determine the amplitude of the brain activity signal and the motor activity signal is sampled to determine the amplitude of the motor activity signal. When the brain activity signal amplitude is within a predetermined brain window, a brain activity counter is incremented. When the brain activity signal amplitude is outside the predetermined brain window, the brain activity counter is decremented. Similarly, when the motor activity signal amplitude is within a predetermined motor window, a motor activity counter is incremented. When the motor activity signal amplitude is outside the predetermined motor window, the motor activity counter is decremented. An epileptic seizure is indicated when both the brain activity counter value lies above a brain threshold and the motor activity counter value lies above a motor threshold. 
     In accordance with other aspects of the present invention, the brain activity signal is provided by an electroencephalograph (EEG) and the motor activity signal is provided by an electromyograph (EMG). 
     In accordance with other aspects of the present invention, the monitoring of the motor activity signal is separate from the monitoring of the brain activity signal. In this instance, when the motor activity signal amplitude is within a predetermined motor window, a motor activity counter is incremented. When the motor activity signal amplitude is outside the predetermined motor window, the motor activity counter is decremented. An epileptic seizure is indicated when the motor activity counter value lies above a motor threshold. 
     In accordance with other aspects of the present invention, the monitoring of the brain activity signal is separate from the monitoring of the motor activity signal. In this instance, when the brain activity signal amplitude is within a predetermined brain window, a brain activity counter is incremented. When the brain activity signal amplitude is outside the predetermined brain window, the brain activity counter is decremented. An epileptic seizure is indicated when the brain activity counter value lies above a brain threshold. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     The foregoing aspects and many of the attendant advantages of this invention will become more readily appreciated as the same becomes better understood by reference to the following detailed description, when taken in conjunction with the accompanying drawings, wherein: 
     FIG. 1 is an illustration of a system for detecting epileptic seizures formed in accordance with the present invention; 
     FIG. 1A is an illustration of an alternative embodiment of a system for detecting epileptic seizures formed in accordance with the present invention; 
     FIGS. 2A-B are examples of waveforms produced by EMG and EEG monitors; 
     FIGS. 3A-B are flow diagrams illustrating a method of detecting epileptic seizures formed in accordance with the present invention; 
     FIG. 3C is a flow diagram illustrating an alternative embodiment of the present invention; 
     FIGS. 3D-3E are flow diagrams illustrating another alternative embodiment of the present invention; and 
     FIG. 4 is a schematic diagram of a signal processor suitable for use in the system illustrated in FIG. 1. 
    
    
     DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT 
     The apparatus formed in accordance with the present invention for detecting epileptic seizures is shown in FIG. 1, which includes a patient 11 being monitored by an EEG sensor 13 and an EMG sensor 15. The remainder of the apparatus includes a slow speed single channel EEG 16a, a slow speed single channel EMG 16b, signal processor 17a and 17b, CPU 21, and output display 23. The EEG sensor 13 is attached to the head of patient 11 and is operative to provide an electrical signal to the EEG 16a that is indicative of the electrical activity in the brain of the patient 11. Similarly, the EMG sensor 15 is attached to the arm of patient 11 and is operative to provide an electrical signal to the EMG 16b that is indicative of the motor activity of the patient 11. 
     It should be noted that the EMG sensor 15 provides an electrical signal indicative of the activity only in that muscle that is adjacent to the location of the EMG sensor 15. As shown in FIG. 1, the EMG sensor 15 and the EMG 16b monitor the muscles in the arm of the patient 11. In order to monitor the motor activity of other muscles, the EMG sensor must be disposed proximate to those muscles. 
     While, in the preferred embodiment, an EMG sensor is used to monitor patient motor activity, within the spirit and scope of the present invention, other apparatus can also be used to monitor motor activity. For example, turning to FIG. 1A, an accelerometer sensor 20 may be attached to pans of the patient to measure motor activity. Even though an accelerometer sensor 20 measures the acceleration of the body part to which the sensor is attached, and not electrical activity, an accelerometer sensor 20 will provide a signal that is indicative of motor activity that is suitable for use by the present invention. The signal from the accelerometer sensor 20 is provided to an accelerometer monitor 22. In essence, any apparatus that provides a measure of motor activity may be used in the present invention. Similarly, although the preferred embodiment of the present invention uses an EEG to monitor brain activity, other apparatus that provides a measure of brain activity may also be used. 
     While FIG. 1A illustrates an alternative embodiment of the present invention where the means for monitoring the motor activity of the patient is an accelerometer sensor 20 and an accelerometer monitor 22, all other aspects of the alternative embodiment shown in FIG. 1A are identical to the preferred embodiment shown in FIG. 1. Thus, the remaining elements of FIG. 1A are not discussed further. 
     Returning to FIG. 1, the signals monitored by the sensors 13 and 15 are provided to the EEG 16a and the EMG 16b, respectively. The EEG 16a processes the electrical signals generated by the EEG sensor 13 into analog fore suitable for displaying on a continuous stream of paper or a CRT. Similarly, the EMG 16b processes the electrical signals generated by the EMG sensor 15 into analog form suitable for displaying on a continuous stream of paper or a CRT. In accordance with the invention, the analog waveforms produced by the EEG 16a and EMG 16b are each applied to a signal processor 17a and 17b. For purposes of explanation, representations of the waveform output of the EEG 16a and the EMG 16b are shown in FIGS. 2A and 2B, respectively. 
     As seen in FIGS. 2A-2B, the EEG waveform and the EMG waveform are charted with time progressing on the x-axis and amplitude charted on the y-axis. The amplitude is a measure of the voltage provided by the sensors 13 and 15. As will be appreciated by those skilled in the art, the EEG and EMG waveforms will invariably oscillate about the x-axis. In particular, FIG. 2A shows an EMG waveform 51. The waveform indicates that the patient 11 is experiencing a steady increase of muscle activity, followed by a slight dip, followed by a rise in activity, and concluding with a steadily decreasing period of muscle activity. This EMG waveform is typical of the type of waveform generated by a person undergoing a seizure. Similarly, FIG. 2B shows an EEG waveform 57. The waveform indicates that the patient 11 is experiencing a rapid increase of brain activity, followed by a plateau period, followed by a decrease to a second plateau, and concluding with a steadily decreasing period of brain activity. 
     As stated above, the outputs of the EEG 16a and the EMG 16b are each applied to a separate signal processor 17a and 17b. FIG. 4 is a more detailed diagram of the processing circuitry included in the signal processors 17a and 17b. Since the construction of both of the signal processors 17a and 17b is identical, only a description of the signal processor 17a associated with the EEG 16a is provided herein. Signal processor 17a includes two diodes 100 and 106, an inverter 104, and two integrators 102 and 108. The signal from the EEG 16a enters at the left hand side of FIG. 4 and is applied to one of the diodes 100 and to the inverter 104. An example of a typical signal from the EEG 16a is shown by the waveform identified by reference number 101. 
     Following first the upper branch of the processing circuitry, the diode 100 only allows the positive portion of the input signal to be passed. The negative portion of the waveform input into diode 100 is eliminated by the diode. The output signal of the diode 100 is shown by the waveform identified by reference number 103. For purposes of description, the upper branch of the signal processor 17a is also referred to herein as the positive signal branch. 
     Next, the signal shown by waveform reference number 103 is input into one of the integrators 102 which integrates the signal. By integration, it is meant that an &#34;envelope waveform&#34; is generated which generally follows the amplitude of the signal. Since envelope integrations are well known to those of ordinary skill in the electronic art, a specific integration is not described here. The output of integrator 102, shown by the waveform identified by reference numeral 105, is applied by the signal processor 17a to the CPU 21 in real time. The output signal of the integrator 102, which is the output of the positive signal branch of the processor 17a, is herein referred to as the positive EEG envelope waveform. Similarly, in the case of the signal processor 17b associated with the EMG 16b, the integrator in the positive signal branch generates a positive EMG envelope waveform. 
     Turning now to the lower, or negative signal, branch of the processing circuitry, the EEG waveform 101 is first applied to the inverter 104. The inverter 104 changes the sign, or polarity, of the signal. Thus, the EEG waveform 101 is &#34;flipped&#34; about the x-axis. The output of inverter 104 is shown by a waveform identified by reference numeral 107. The inverted signal 107 is applied to the other diode 106, which passes only the positive portion of the signal. Because the signal has been inverted, the positive portion of the signal is the negative portion of the EEG waveform input to the signal processor 17a and shown as reference numeral 101. The output signal from diode 106 is shown by the waveform identified by reference number 109. 
     Next, the signal shown by waveform reference number 109 is input into an integrator 108, which integrates the signal. Again, the integrator performs an envelope integration, i.e., the integrator produces an &#34;envelope waveform&#34; that substantially follows the amplitude of the input signal. The output of integrator 108, which is a waveform identified by reference numeral 111, is applied by the signal processor 17a to the CPU 21 in real time. The output signal of the integrator 108, which is the output of the negative signal branch of processor 17a, is referred to as the negative EEG envelope waveform. Similarly, in the case of the signal processor 17b associated with the EMG 16a, the integrator in the negative signal branch generates a negative EMG envelope waveform. 
     To further illustrate, positive EMG envelope waveform 52a and negative EMG envelope waveform 52b are also shown in FIG. 2A; and positive EEG envelope waveform 54a and negative EEG envelope waveform 54b are shown in FIG. 2B. While, as shown in FIGS. 2A and 2B, the envelope waveforms in actual practice are often times symmetrical about the x-axis, the envelope waveforms may from time to time be asymmetrical, i.e., the negative envelope may not simply be a mirror of the positive envelope. 
     In summary, the EEG signal processor 17a provides two outputs: a positive EEG envelope waveform 54a and a negative EEG envelope waveform 54b (which has been rectified to appear positive). Further, the EMG signal processor 17b provides two outputs: a positive EMG envelope waveform 52a and a negative EMG envelope waveform 52b (which has been rectified to appear positive). Further, although the signal processors 17a-b have been shown as a combination of diodes, rectifiers, and integrators, it is to be understood that the entire functionality of the signal processors 17a-b can be implemented in other forms, including software. Thus, FIG. 4 should be considered to be illustrative and not limiting. 
     In accordance with this invention, the CPU 21 operates on the waveforms provided by the signal processors 17a and 17b. FIGS. 3A and 3B form a flow diagram that illustrates the preferred method of operation of the CPU 12. First, at box 200, all of the waveform inputs to CPU 21 are sequentially sampled at a particular rate and the results stored in memory registers. As will be seen in greater detail below, the values stored in the memory registers are used to calculate certain seizure parameters. While, preferably, the envelope waveforms are sampled at a rate of ten times per second (10 Hz), it is to be understood that other sampling rates may be used that are higher or lower than 10 Hz. 
     Next, at box 201, the sampled value of the positive EMG envelope waveform 52a is examined to determine if it falls within a positive threshold window, i.e., above a predetermined minimum positive threshold and below a predetermined maximum positive threshold. FIG. 2A shows the positive threshold window 53 (delineated as PT max  and PT min ) superimposed over the positive EMG envelope waveform 52a. The predetermined minimum and maximum thresholds that define the positive threshold window 53 are stored in CPU 21. Typically, these threshold values are empirically determined. Oftentimes, the threshold values change from patient to patient. Thus, the apparatus of the present invention can be &#34;calibrated&#34; to suit an individual patient. 
     If the amplitude of the sampled value of the positive EMG envelope waveform 52a is within the window, then at box 203, a counter maintained in CPU 21 designated as P --  EMG --  DETECT is incremented. While the amount of the incrementation is typically one for some patients, the amount of incrementation may be greater than one. As will be seen in greater detail below, in the preferred embodiment of the present invention, the apparatus will not indicate that a seizure is in progress until the value of the P --  EMG --  DETECT counter reaches a predetermined value. For more sensitive patients, it may be necessary to increment the P --  EMG --  DETECT counter at a higher step rate in order to more readily detect seizures. Alternatively, for less sensitive patients, it may be necessary to increment the P --  EMG --  DETECT counter at a lower step rate. Further, when the P --  EMG --  DETECT counter reaches a predetermined maximum, designated as P --  EMG --  DETECT --  MAX, the P --  EMG --  DETECT counter is not incremented further. Rather, the counter is maintained at the predetermined maximum P --  EMG --  DETECT --  MAX. 
     If the amplitude of the sampled value of the positive EMG envelope waveform 52a is not within the window, then at box 205, the P --  EMG --  DETECT counter is decremented. Like incrementing the P --  EMG --  DETECT counter, the amount of decrementation may vary and may be adjusted to suit a particular patient. Also, when the counter reaches a predetermined minimum, designated as P --  EMG --  DETECT --  MIN, the counter is not further decremented. 
     A similar analysis is performed by CPU 21 on the amplitude of the negative EMG envelope waveform 52b. At box 207 the amplitude of the sampled value of the negative EMG envelope waveform 52b is examined to determine if it falls within a negative threshold window, i.e., below a predetermined minimum negative threshold and above a predetermined maximum negative threshold. FIG. 2A shows the negative threshold window 55 (delineated as NT max  and NT min ) superimposed over the negative EEG envelope waveform 52b. The predetermined minimum and maximum thresholds that form the negative threshold window 55 are stored in CPU 21. As above, these threshold values are empirically determined. 
     If the amplitude of the sampled value of the negative EMG envelope waveform 52b is within the window, then at box 209, a counter maintained in CPU 21 designated as N --  EMG --  DETECT is incremented. While the amount of the incrementation is typically one for some patients, the amount of incrementation may be greater than one. In the preferred embodiment of the present invention, the apparatus will not indicate that a seizure is in progress until the value of the N --  EMG --  DETECT counter reaches a predetermined value. For more sensitive patients, it may be necessary to increment the N --  EMG --  DETECT counter at a higher step rate in order to more readily detect seizures. Alternatively, for less sensitive patients, it may be necessary to increment the N --  EMG --  DETECT counter at a lower step rate. Further, when the N --  EMG --  DETECT counter reaches a predetermined maximum, designated as N --  EMG --  DETECT --  MAX, the N --  EMG --  DETECT counter is not incremented further. 
     If the amplitude of the sampled value of the negative EMG envelope waveform 52b is not within the window, then at box 211, the N --  EMG --  DETECT counter is decremented. Like incrementing the N --  EMG --  DETECT counter, the amount of decrementation may vary and may be adjusted to suit a particular patient. Also, when the counter reaches a predetermined minimum, designated as N --  EMG --  DETECT --  MIN, the counter is not further decremented. 
     A similar analysis is performed by CPU 21 on the amplitude of the positive EEG envelope waveform 54a. In particular, at box 213, the amplitude of the sampled value of the positive EEG envelope waveform 54a is examined to determine if it falls within a positive threshold window, i.e., above a predetermined minimum threshold and below a predetermined maximum threshold. FIG. 2B shows the positive threshold window 59 (delineated as PT max  and PT min ) superimposed over the positive EEG envelope waveform 54a. The predetermined minimum and maximum thresholds that form the window 59 are stored in CPU 21. Typically, these threshold values are empirically determined. 
     If the amplitude of the sampled value of the positive EEG envelope waveform 54a is within the window, then at box 215, a counter maintained in CPU 21 designated as P --  EEG --  DETECT is incremented. While the amount of incrementation is typically one for some patients, the amount of incrementation may be greater than one. As will be seen in greater detail below, in the preferred embodiment of the present invention, the apparatus will not indicate that a seizure is in progress until the value of the P --  EEG --  DETECT counter reaches a predetermined value. For more sensitive patients, it may be necessary to increment the P --  EEG --  DETECT counter at a higher step rate in order to more readily detect seizures. Alternatively, for less sensitive patients, it may be necessary to increment the P --  EEG --  DETECT counter at a lower step rate. Further, when the P --  EEG --  DETECT counter reaches a predetermined maximum, designated as P --  EEG --  DETECT --  MAX, the P --  EEG --  DETECT counter is not incremented further. 
     If the amplitude of the sampled value of the positive EEG envelope waveform 54a is not within the window, then at box 217, the P --  EEG --  DETECT counter is decremented. Like incrementing the P --  EEG --  DETECT counter, the amount of decrementation may vary and may be adjusted to suit a particular patient. Also, when the counter reaches a predetermined minimum, designated as P --  EEG --  DETECT --  MIN, the counter is not further decremented. 
     Finally, a similar analysis is performed by CPU 21 on the amplitude of the negative EEG envelope waveform 54b. At box 219 the amplitude of the sampled value of the rectified negative EEG envelope waveform 54b is examined to determine if it falls within a negative threshold window, i.e., below a predetermined minimum threshold and above a predetermined maximum threshold. FIG. 2B shows the negative threshold window 61 (delineated as NT max  and NT min ) superimposed over the negative envelope waveform of the EEG signal 54b. The predetermined minimum and maximum thresholds that form the window 61 are stored in CPU 21. As above, these threshold values are empirically determined. 
     If the amplitude of the sampled value of the negative EEG envelope waveform 54b is within the window, then at box 221, a counter maintained in CPU 21 designated as N --  EEG --  DETECT is incremented. While the amount of the incrementation is typically one for some patients, the amount of incrementation may be greater than one. In the preferred embodiment of the present invention, the apparatus will not indicate that a seizure is in progress until the value of the N --  EEG --  DETECT counter reaches a predetermined value. For more sensitive patients, it may be necessary to increment the N --  EEG --  DETECT counter at a higher step rate in order to more readily detect seizures. Alternatively, for less sensitive patients, it may be necessary to increment the N --  EEG --  DETECT counter at a lower step rate. Further, when the counter N --  EEG --  DETECT is already at a predetermined maximum, designated as N --  EEG --  DETECT --  MAX, the N --  EEG --  DETECT counter is not incremented further. 
     If the amplitude of the sampled value of the negative EEG envelope waveform 54b is not within the window, then at box 223, the N --  EEG --  DETECT counter is decremented. Like incrementing the N --  EEG --  DETECT counter, the amount of decrementation may vary and may be adjusted to suit a particular patient. Also, when the counter reaches a predetermined minimum, designated as N --  EEG --  DETECT --  MIN, the counter is not decremented further. It can be seen from the above description that several of the parameters are predetermined and can be adjusted to suit a particular individual. 
     Next, turning to FIG. 3B, at box 225, all of the detect counters (P --  EMG --  DETECT, N --  EMG --  DETECT, P --  EEG --  DETECT, and N --  EEG --  DETECT) are checked to determine whether they are greater than a predetermined threshold integer number designated as DETECT --  THRESH and stored in CPU 21. While preferably DETECT --  THRESH is the same number for all of the detect counters, it is to be understood that different thresholds can be used for each of the detect counters. 
     If all of the detect counters are above DETECT --  THRESH, then at step 227, a determination is made as to whether or not a seizure is already in progress. This is done by checking a SEIZURE --  DETECT flag stored in CPU 21. The flag can register TRUE or FALSE. Initially, the flag is set to FALSE. It is set to TRUE during a subsequent step of the method illustrated in FIG. 3B, which is described below. If the SEIZURE --  DETECT flag is TRUE, a seizure is in progress. In essence, a TRUE setting of the SEIZURE --  DETECT flag establish that the signals received from the sensors 15 and 13 indicate that a previously detected seizure is continuing. In such a case, at box 231, certain measurement parameters maintained by CPU 21 are updated. 
     The updated measurement parameters include the maximum amplitude of the EEG and EMG envelope waveforms as sampled by CPU 21, the average amplitudes of the EEG and EMG envelope waveforms over the seizure period, the time duration of the seizure, and the time at which the seizure started. Recall that each time the CPU 21 samples the output from the signal processors 17A-17B, the sampled values of the waveforms are stored in memory registers of the CPU 21. Thus, it is an easy task to generate the measurement parameters from the stored sampled values. For example, the maximum amplitude of a waveform can be extracted by examining the stored sampled values after each sample. Each time a larger amplitude is detected, the previous maximum amplitude for the EEG or EMG can be replaced therewith. Similarly, the duration of the seizure can be measured using the internal clock of the CPU 21. Finally, the average amplitude can be caluculated by examining each of the EEG and EMG samples and calculating an arithmetic average thereof. 
     If, at box 227, the seizure progress test is negative, i.e. the SEIZURE --  DETECT flag is not set, then this means that a new seizure is beginning. In such a case, at box 229, the SEIZURE --  DETECT flag is set to TRUE. Further, at box 229, the measurement parameters are initialized. In particular, the time at which the seizure begins is recorded in a memory register of CPU 21. Further, additional memory registers of CPU 21 used to monitor the time duration of the seizure, and record the amplitude maximums and average are cleared. Because the recording of measurement parameters can be implemented by standard software techniques, such techniques are not described in detail here. Following box 229, the CPU returns to box 200 and the cycle repeats. 
     If, at box 225, the detect counters are not all above the predetermined threshold, then at box 233, a determination is made as to whether or not a seizure was in progress. Once again this is accomplished by examining the SEIZURE --  DETECT flag. If a seizure was in progress at box 233, the fact that one or more of the counters has dropped below its threshold indicates that the seizure is concluding. If a seizure was in progress at a box 235, the seizure parameters noted above are output to output display 23 (FIGS. 1 or 1A). Next, at box 237, the SEIZURE --  DETECT flag is set to FALSE and the program cycles to box 200. If at box 233, there was no seizure in progress, the CPU simply cycles to box 200 for further monitoring without outputting the seizure parameters. 
     In the above description of the preferred embodiment, all of the detection counters must be above their predetermined thresholds before the apparatus indicates that a seizure has been detected. This is satisfactory for motor seizures. However, absence seizures would not be detected by this method, because little or no motor component is associated with absence seizures. In absence seizures, only EEG waveform activity establishes the occurrence of the absence seizure. Similarly, there are occasions where a seizure may occur with very little brain activity and a high motor component. In those cases, only the EMG waveform activity establishes the occurrence/the seizure. FIG. 3C illustrates an alternative embodiment of the invention directed to covering these variations. The entry into the flow diagram of FIG. 3C is from boxes 223 or 221 from FIG. 3A, i.e., after the sampled values of the envelope waveforms have been examined. 
     At box 251, a determination is made as to whether the value stored in the P --  EMG --  DETECT and N --  EMG --  DETECT counters are greater than a predetermined threshold integer number. If both the detect counters are above the predetermined threshold, then at step 255, a EMG --  SEIZURE --  DETECT flag is set to TRUE and the output display 23 indicates that an EMG seizure has taken place. If both detect counters are not above the threshold, then at box 253, the EMG --  SEIZURE --  DETECT flag is set to FALSE. The flag is a binary flag that can register TRUE or FALSE. Initially, the flag is set to FALSE. Setting the EMG --  SEIZURE --  DETECT flag to TRUE indicates that a seizure is in progress. 
     Next, at box 257, a determination is made as to whether the values stored in the P --  EEG --  DETECT and N --  EEG --  DETECT counters are greater than a predetermined threshold integer number. If both the detect counters are above the predetermined threshold, then at step 261, a EEG --  SEIZURE --  DETECT flag is set to TRUE and the output display 23 indicates that an EEG seizure has taken place. If both detect counters are not above the threshold, then at box 259, the flag EEG --  SEIZURE --  DETECT is set to FALSE. The flag is a binary flag that can register TRUE or FALSE. Initially, the flag is set to FALSE. Setting the EEG --  SEIZURE --  DETECT flag to TRUE, indicates that a seizure is in progress. After box 261, the flow diagram returns to box 200 for further monitoring. 
     The alternative embodiment shown in FIG. 3C only provides an indication of whether or not an EMG or EEG seizure has taken place, but not the seizure parameters. The preferred embodiment shown in FIGS. 3A-B can easily be modified so as to output the seizure parameters for an EMG or EEG seizure. In particular, in this second alternative embodiment, as illustrated in the flow diagram in FIG. 3D, the same methodology as used in the preferred embodiment as shown in FIG. 3B is followed, except that at box 225 of FIG. 3B, only the EEG detect counters are examined. In all other respects, FIG. 3D is identical to FIG. 3B. 
     Similarly, as illustrated in the flow diagram in FIG. 3E, the brain activity of a patient can be monitored for absence seizures. In particular, the same methodology as used in the preferred embodiment as shown in FIG. 3B is followed, except that at box 225 of FIG. 3B, only the EMG detect counters are examined. In all other respects, FIG. 3E is identical to FIG. 3B. 
     While the preferred embodiment of the invention has been illustrated and described, it will be appreciated that various changes can be made therein without departing from the spirit and scope of the invention.