SYSTEM AND METHOD FOR MEASUREMENT AND ASSESSMENT OF DEPTH OF ANESTHESIA IN AN ANIMAL SUBJECT BASED ON ELECTROENCEPHALOGRAPHY
20230102090 · 2023-03-30
Inventors
- Abdelrahman Bakr Mohammed Abdelnaby ELDALY (Hong Kong, HK)
- Mehdi Hasan CHOWDHURY (Hong Kong, HK)
- Stephen Kugbere AGADAGBA (Hong Kong, HK)
- Ray Chak Chung CHEUNG (Hong Kong, HK)
- Leanne Lai Hang CHAN (Hong Kong, HK)
Cpc classification
A61B5/374
HUMAN NECESSITIES
A61B5/7264
HUMAN NECESSITIES
A61B5/725
HUMAN NECESSITIES
International classification
Abstract
The present invention provides a system for implementing a logistic regression classification mechanism to measure and assess a depth of anesthesia of an animal subject based on electroencephalography (EEG), which includes a signal pre-processor, an epoch generator, a feature extractor, a classifier, and a predictor. Related method of how to pre-process the raw data of EEG signal, epoch generation thereof, feature extraction from each epoch, classification based on extracted features, and prediction of different states of the animal subject based on a prediction decision mechanism is also provided. Classification accuracy of the present invention for 1-second and 10% overlapping epochs is about 94% with an average total system delay of about 12 μs and low on-chip power consumption. The present system is entirely optimized, which leads to a 100% accurate channel prediction after a 7-second run-time on average.
Claims
1. A system for measuring and assessing anesthesia of an animal subject based on electroencephalography of the animal subject, the system comprising: a signal pre-processor comprising at least two filters in different filtering frequency and a down-sampler for removing unwanted signals and noise from incoming signal stream of the system to generate an incoming signal for subsequent epoch generation; an epoch generator for generating an epoch signal containing 1-second and 10% overlapping epochs comprising a two-input multiplexer, an address generator and a memory, the two-input multiplexer receiving the incoming signal from the signal pre-processor and also a selector input from the address generator to feed an input signal stream to the memory after a counter value of a counter at a relatively higher frequency from the address generator reaches 500; the address generator having two counters at different frequencies and generating two counter signals with write address and read address, respectively, to be fed to the memory, and also a control signal to be fed directly for subsequent feature extraction; the memory receiving the input signal stream from the two-input multiplexer and two counter signals with the write address and read address, respectively, from the address generator and then generating the epoch signal containing the 1-second and 10% overlapping epochs for subsequent feature extraction; a feature extractor comprising a derivative calculator and a variance calculator, the derivative calculator receiving the epoch signal containing 1-second and 10% overlapping epochs from the memory of the epoch generator and calculating a mean of accumulated squared-differences among different epochs; the variance calculator receiving absolute value of each of the epochs accumulated and determining a mean of the accumulated epochs, obtaining a deviation of an epoch by subtracting the mean from one of the absolute values of the epoch, calculating a squared deviation followed by determining square root of an average squared deviation for subsequent classification; a classifier comprising two cascaded units for expanding features extracted by the feature extractor by double the number of the features followed by feature mapping to set a classification boundary, and subsequently using an output of the feature mapping to obtain a sigmoid function as a decision boundary in order for subsequent prediction; a predictor comprising a predictor circuit for accumulating the classifier's outputs, constraining a decision value of the classifier's outputs between 0 and 1, and determining level of anesthesia of the animal subject in terms of the constrained decision value based on the animal subject's real-time electroencephalogram.
2. The system of claim 1, wherein a first filter of the signal pre-processor has a filtering frequency to compensate the power-line interference of the incoming signal from the electroencephalography of the animal subject.
3. The system of claim 1, wherein a second filter of the signal pre-processor has a filtering frequency comparable to an average frequency of a wide electroencephalography frequency region in a range of 0-250 Hz of the incoming signal from the animal subject.
4. The system of claim 1, wherein the incoming signal is down sampled at least ten times after being subject to the second filter using the down-sampler.
5. The system of claim 1, wherein the epoch generator creates a sliding window to divide each electroencephalography channel into short-overlapped epochs. It is optimally designed to consume lower resources and the smallest possible size of memory unit (RAM).
6. The system of claim 1, wherein the derivative calculator of the feature extractor comprises a multiplier to square the differences among different epochs before calculating the mean of the accumulated squared-differences, and further comprises an accumulator and divisor for calculating the mean.
7. The system of claim 1, wherein the variance calculator comprises a multiplier, an accumulator and a divisor circuit to consecutively calculate the average squared deviation; the variance calculator further comprises a register to store the average squared deviation for being fed to the classifier subsequently.
8. The system of claim 1, wherein the two cascaded units of the classifier comprises a feature mapping unit for said expanding and feature mapping to enhance classification accuracy by setting the classification boundary with an increase in classifier variance, and an exponential and reciprocal computation circuit for receiving the output of the feature mapping unit to determine the sigmoid function as the decision boundary for being fed to the subsequent predictor.
9. The system of claim 1, wherein the predictor is configured to accumulate the level of anesthesia in terms of percentage and constrain an output value as a decision score between 0 and 1 with respect to the percentage of the anesthesia of the animal subject, wherein a 100% anesthesia corresponds to the decision score of 1, while a 0% anesthesia corresponds to the decision score of 0.
10. A method for determining depth of anesthesia of an animal subject from a transient behavior of an electroencephalography using machine learning techniques thereof, the method comprising: recording electroencephalographic (EEG) signal of the animal subject and filtering thereof within a relatively lower frequency band to remove unwanted signals and noise; down-sampling the filtered EEG signal to at least ten times for reducing data size and accelerating subsequent processing without losing essential features of the EEG for subsequent classification; generating epochs from the down-sampled EEG signals comprising segmenting each EEG channel with a shortened signal time and overlapping one EEG signal with a preceding EEG signal thereof; extracting two features from each epoch selected from derivative and variance thereof; mapping the derivative and variance features to determine a classification boundary followed by using an output of the mapping to determine a sigmoid function as a decision boundary between awake and anesthetized states: if the output value is lower than 0.5, the epoch is classified as awake; otherwise, the epoch is classified as anesthetized; accumulating the output value of consecutive awake and anesthetized epochs, respectively, and constraining each of the output value between 0 and 1 in order to predict a likelihood of a successive awake or anesthetized epoch.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Embodiments of the invention are described in more details hereinafter with reference to the drawings, in which:
[0031]
[0032]
[0033]
[0034]
[0035]
[0036]
[0037]
[0038]
[0039]
[0040]
[0041]
[0042]
[0043]
[0044]
[0045]
[0046]
DETAILED DESCRIPTION OF THE INVENTION
[0047] In the following description, systems, devices, methods of, and the likes are set forth as preferred examples. It will be apparent to those skilled in the art that modifications, including additions and/or substitutions may be made without departing from the scope and spirit of the invention. Specific details may be omitted so as not to obscure the invention; however, the disclosure is written to enable one skilled in the art to practice the teachings herein without undue experimentation.
[0048] It should be apparent to practitioner skilled in the art that the foregoing and subsequent examples of the system and method are only for the purposes of illustration of working principle of the present invention. It is not intended to be exhaustive or to limit the invention to the precise forms disclosed.
[0049] Turning to
[0050] Turning to
[0051] A second filter 102, selected from a low-pass equiripple Finite Impulse Response (FIR) filter, is configured in the signal pre-processor subsequent to the first filter because the anesthetic effect on brain signal of small animal is only significant in the low-frequency region, and the low-frequency region is usually less than 250 Hz. In certain embodiments of the present invention, the incoming signal to the FIR filter is already passed through another low-pass filter with a cut-off frequency of 250 Hz. Employing the FIR filter with the same cut-off frequency is for reducing further unnecessary data from the signal, according to the Nyquist-Shannon sampling theorem which states that sampling at a rate which is twice as the highest significant frequency can represent the signal without any loss of information. Hence, in those embodiments, the sampling frequency can be up to 500 Hz. Detailed circuitry diagram of the second filter is shown in
[0052] A down sampler 103 is configured subsequent to the second filter in the signal pre-processor for down sampling the EEG signal received by the signal pre-processor. Taking a mouse EEG signal as an example, the sampling frequency is 5 KHz. According to the Nyquist-Shannon sampling theorem and the selected FIR filter cut-off frequency, the mouse EEG signal from this mouse model has to be down sampled 10 times (r=10) according to the architecture of the down sampler as shown in
[0053] Turning to
[0054] Turning to
[0055] Turning to
where X.sub.1(i) is the derivative feature for i.sup.th EEG epoch x.sub.i(t).
[0056] The first derivative is squared before computing the mean to avoid the result be zero and give a single concrete positive measure. To implement in the derivative calculator, the following equation (5) is given:
derivative,dif(i)=mean[(epoch(i)−epoch(i−1)).sup.2] (5)
[0057] In
[0058] Turning to
where x.sub.i.sup.+=√{square root over (x.sub.i.sup.2)} and μ+ is an average of x.sub.i.sup.+.Math.σ and N represents population variance and size of each successive epoch.
[0059] Considering the absolute value of epoch amplitude, mean, μ, can be determined by equation (6):
and variance, var(i), can be determined by equation (7):
[0060] In
[0061] Turning to
[0062] In
[0063] To get a highly accurate and fast prediction of EEG channels, a prediction mechanism based on accumulation of classifier outputs for consecutive EEG epochs is implemented in the predictor 500. In particular, the predictor 500 is configured to accumulate the classifier's outputs and constrains the result between 0 and 1. It initially starts with a decision value of 0.5 (i.e., 50%), meaning both awake and anesthetized classes have the same probability. The classifier's output of each received segment leads the prediction decision either up or down according to equation (4):
P.sub.pred(i)=satlin[P.sub.pred(i−1)+(2ƒ(x.sub.i)−1)B] (4)
where i=1: number of epochs, P.sub.pred(0)=0.5, B=0.05 (jump bound), and satlin is a saturating linear transfer function to keep the predictor output out(i) bounded within 0 and 1.
[0064] Successive anesthetized or awake segments accumulate the prediction probability (P.sub.pred) upward or downward, respectively, with scaled steps. A confident prediction decision is achieved after crossing the anesthetized (75%) or awake (25%) decision threshold. By this mechanism, a confident prediction decision of 100% channel prediction accuracy for all datasets can be guaranteed.
[0065] Turning to
out(i)=satlin[out(i−1)+(2*cls(i)−1)*0.05] (8)
where satlin is the saturating linear transfer function which helps follow the transient behavior of the EEG instantly, i.e., to track immediately if a subject is waking up from anesthesia. This function also helps obtain a meaningful interpretation of the output level in terms of decimal values of percentages; out(i) denotes the measured DOA.
EXAMPLE
Example 1
[0066] Table 1 below summarizes performance of the present system by using multiple classes of testing datasets to measure the accuracy of the present system. In this example, all datasets have been pre-processed to generate 1-second epochs with 10% overlapping before being subject to classification.
TABLE-US-00001 TABLE 1 Duration Total C.C..sup.# Class C.P.D.{circumflex over ( )} Set Class (s) Epochs Epochs Accuracy Time (s) 1 Anesth. 600 666 644 96.70% 6.5 2 Anesth. 600 666 594 89.19% 6.4 3 Anesth. 600 666 635 95.35% 6.8 4 Anesth. 600 666 645 96.85% 6.5 5 Anesth. 600 666 638 95.80% 6.6 6 Anesth. 600 666 623 93.54% 7.9 7 Anesth. 600 666 640 96.10% 6.2 8 Anesth. 600 666 577 86.64% 7.3 9 Anesth. 600 666 543 81.53% 8.1 10 Anesth. 600 666 592 88.89% 7.3 11 Awake 600 666 650 97.60% 4.6 12 Awake 600 666 654 98.20% 4.6 13 Awake 600 666 655 98.35% 4.6 14 Awake 600 666 654 98.20% 4.5 15 Awake 600 666 651 97.75% 5 16 Awake 600 666 619 92.94% 10 17 Awake 600 666 622 93.39% 10 18 Awake 600 666 598 89.79% 11 19 Awake 600 666 647 97.15% 4.6 20 Awake 600 666 652 97.90% 4.6 21 Trans. 400 446 412 92.38% 14.9 22 Trans. 400 446 433 97.09% 7.9 23 Trans. 400 446 426 95.52% 6.6 24 Trans. 400 446 412 92.38% 12.4 Keys: .sup.#Correctly Classified Epochs {circumflex over ( )}Confident Prediction Decision Time “Anesth.”: Anesthetized “Trans.”: Transition, i.e., From Anesthetized to Awake to Anesthetized
[0067] In cases of completely anesthetized subjects, the classification accuracy is about 92% on average; those from awake subjects result in about 96% average classification accuracy; those from transition subjects result in about 94% average classification accuracy. To reach 100% channel prediction accuracy, the present system takes about 7 seconds on average. The accuracy found in this example suggests that the DOA obtained by the present system in multiple classes is comparable to a clinical-level accurate DOA, or even more accurate.
Example 2
[0068] Table 2 below summarizes the resource utilization of the present invention incorporated into a conventional FPGA (Xilinx Artix-7 FPGA is selected in this example)
TABLE-US-00002 TABLE 2 Resource Available Utilized Utilization Rate LUT 53200 18522 34.82% LUTRAM 17400 33 0.19% FF 106400 876 0.82% BRAM 140 2 1.43% DSP 220 54 24.55% Keys: “LUT”: Look Up Table “LUTRAM”: LUT Random-Access Memory “FF”: FlipFlop “BRAM”: Block RAM “DSP”: Digital Signal Processing Blocks
[0069] The results from Table 2 suggests that the present invention consumes lower level of resources in different aspects compared to some conventional hardware-implemented DOA systems, such as Saadeh et al. (2019), in which it requires six feature extraction and uses the fine-decision-tree classification algorithm (requiring 26,520 FFs; 50,111 LUTs) for measuring DOA. In contrast, the present invention uses a simple logistic regression machine learning algorithm for classification; the present invention only requires 876 FFs and 18,522 LUTs in FPGA, because only two features are required to be extracted, and the features selected are hardware-friendly and mathematically uncomplicated. One more advantage of the present invention over the conventional DOA measurement system is a relatively lower on-chip power consumption (only 0.446 watts including 0.338 watts of dynamic and 0.108 watts of static power, respectively) because a 28 mm CMOS chip is used. An average total system delay of the datasets is about 12 μs which is mainly due to the inherent properties of the FIR filter used in the signal pre-processor. This latency is within the tolerance of measuring EEG of small animal. If this system latency needs to be shortened to fit other models or purposes, it can be further reduced by using an alternative analog equivalent to the FIR filter of the signal pre-processor.
[0070]
[0071] To illustrate a gradient shift of properties in feature space,
[0072] Table 3 below summarizes the difference(s) between the conventional DOA measurement methods and the present invention.
TABLE-US-00003 TABLE 3 No. of Classif- Power Signal features Classification ication Require- Used Subject extracted Method Accuracy Sensitivity Specificity Hardware? CMOS? ment Liu et al. EEG Human 1 Random Forest 70.78% Not Not No Not Not (2018) available available available available Nagaraj et al. EEG Human 6 SVM 81.18% 81.30% 81.06% No Not Not (2018) available available Shalbaf et al. EEG Human 4 ANFIS-LH 93.00% Not Not No Not Not (2018) available available available available Ha et al. EEG, Human 10 DNN Not Not Not Yes 65 mm 1.0 V (2018) NIRS available available available Khan et al. EEG, Human 7 S. Decision Tree 79.00% 83.40% 74.6% Yes 65 mm 1.0 V (2018) EMG Saadeh et al. EEG Human 6 F. Decision Tree 92.20% 91.90% 92.06% Yes 65 mm 0.90 V (2019) Yoon et al. EEG Animal 1 Mod. Shamnon Not Not Not No Not Not (2011) available available available available available Kortelainen EEG Animal 1 Bayesian Info. Not Not Not No Not Not et al. (2012) available available available available available Xu et al. EEG Animal 1 Lempel-Ziv Not Not Not No Not Not (2005) available available available available available Present EEG Animal 2 Logistic 94.00%.sup.# or 92.06%.sup.# 95.06% Yes 28 mm 0.95 V Invention Regression 100.00%{circumflex over ( )} .sup.#Classification for 1-second Epoch {circumflex over ( )}Channel prediction after an average 7 second run-time
[0073] It can be seen that most of the conventional DOA measurement methods are for human subjects; their classification accuracy only ranges from 70% to 93%. There is no hardware-implemented DOA measurement for smaller animal subjects, but only software-based conventional methods are available with relatively low classification accuracy. Most of the conventional DOA measurement methods with hardware implementation use 65 mm CMOS chips, whereas only 28 mm CMOS chip is used in the present invention to enable a better FPGA performance.
[0074] The foregoing description of the present invention has been provided for the purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise forms disclosed. Many modifications and variations will be apparent to the practitioner skilled in the art.
[0075] The embodiments were chosen and described in order to best explain the principles of the invention and its practical application, thereby enabling others skilled in the art to understand the invention for various embodiments and with various modifications that are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the following claims and their equivalence.
INDUSTRIAL APPLICABILITY
[0076] The present invention provides a hardware-implemented DOA measurement based on EEG of small animal with high classification accuracy and channel prediction accuracy within a tolerable system latency, which has potentials in applying to veterinary medicine and surgery requiring anesthesia to an animal subject during surgical operation. It also has potentials to other operations at other settings requiring anesthesia or in observing change in other physiological parameters during transition from anesthesia to conscious state or vice versa of a subject.