| CPC A61B 5/377 (2021.01) [A61B 5/301 (2021.01); A61B 5/398 (2021.01); A61B 5/726 (2013.01)] | 24 Claims | 

| 
               12. A computer-implemented method to automatically measure an amplitude and a latency of at least one evoked potential (EP) and/or event-related potential (ERP) from electroencephalography (EEG) data, the automation method comprising: 
            (a) separating the EEG data into at least one epoch, each epoch containing an EP/ERP waveform associated with at least one type of EP/ERP; and 
                (b) upon automatically grouping each epoch according to EP/ERP type, and for each type of EP/ERP having at least one associated epoch, automatically processing the at least one associated epoch by: 
              (i) computing, automatically, an average of the at least one associated epoch to output an averaged epoch; 
                  (ii) upon detecting the outputted average epoch, automatically outputting a time-frequency domain representation of the averaged epoch; 
                  (iii) automatically applying a time-frequency mask to the time-frequency representation of the averaged epoch to output a masked epoch, wherein the time-frequency mask is automatically selected from a set of time-frequency masks configured to reject at least one time-frequency component of the time-frequency representation of the averaged epoch, wherein the time-frequency mask for each EP/ERP type of the at least one type of EP/ERP is dynamically generated based on signal properties of the EP/ERP waveform; 
                  (iv) outputting, automatically upon detecting an outputted masked epoch, a filtered epoch corresponding to a time domain representation of the masked epoch; 
                  (v) automatically selecting a position in the filtered epoch corresponding to an EP/ERP waveform peak; and 
                  (vi) automatically determining an amplitude value and a latency value of the EP/ERP waveform peak, the latency value corresponding to a time interval between stimulus onset and the EP/ERP waveform peak. 
                 |