Premature infant brain function age identification system based on multi-field features and machine learning

Through multi-domain feature extraction and machine learning models, the problem of noise interference and feature complexity in the analysis of premature infants' EEG signals is solved, and efficient identification of the brain functional age of premature infants is achieved, which improves the accuracy and efficiency of identification and reduces the cost of medical treatment. cost.

CN118766475APending Publication Date: 2024-10-15JILIN UNIVERSITY +1
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202410751692.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Existing technologies have problems such as noise interference, high feature complexity, and undiscovered biomarkers in the analysis of premature infants' EEG signals, resulting in low accuracy and low efficiency in identifying brain function and age.

Method used

Using a system based on multi-domain features and machine learning, through time domain, frequency domain, nonlinear and complex graph theory feature extraction, combined with the random forest regression model, a highly robust automatic brain functional age identification model for premature infants is constructed.

Benefits of technology

It improves the accuracy and efficiency of identifying the brain function age of premature infants, reduces manual interpretation errors, reduces medical costs, and has good application prospects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118766475A_ABST
    Figure CN118766475A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of electroencephalogram analysis, and particularly relates to a premature infant brain function age recognition system based on multi-field features and machine learning. The method comprises the following steps: collecting an electroencephalogram signal of a premature infant, and performing noise reduction and data segmentation on the electroencephalogram signal to obtain a preprocessed first electroencephalogram signal; key features including time domain features, frequency domain features, nonlinear features and complex graph theory features based on a brain function connection network are extracted from multiple fields of the first electroencephalogram signals; performing feature selection on the extracted time domain features, frequency domain features, nonlinear features and complex graph theory features by using a feature recursion elimination method, and inputting the features into a random forest for training to obtain a trained random forest regression model; outputting the brain function age of a target premature infant electroencephalogram signal according to the trained premature infant brain function age recognition system; according to the machine learning modeling method based on data, electroencephalogram signal features related to the brain function age of the premature infant are mined to the maximum extent, a feature combination with the best effect is screened out through an advanced feature selection method, and a prediction model high in accuracy, generalization and portability is constructed; and the method has certain theoretical value and practical engineering significance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of electroencephalogram analysis, and in particular relates to a premature infant brain function age recognition system based on multi-domain features and machine learning. Background Art

[0002] Premature birth is one of the greatest risk factors for perinatal morbidity and mortality. The immature brains of premature infants are particularly vulnerable and often the source of long-term health problems.

[0003] Electroencephalograms (EEGs) can help doctors identify infants at risk, and experienced medical professionals can accurately assess an infant's age and development of brain function by visually reviewing EEG recordings. However, repeated visual review of EEG recordings by clinicians is time-consuming, and there are differences between different EEG readers, making it impractical to provide continuous reports for all infants in a short period of time.

[0004] If there is a device that can provide a calculation method to track the EEG brain maturity of premature infants and compare the recorded EEG maturity with the predicted EEG maturity, it will become a useful tool for clinicians in the neonatal intensive care unit. Therefore, it becomes urgent and important to find an objective and effective diagnostic indicator of neonatal brain maturity.

[0005] In recent years, with the rapid development of computer technology, more and more scholars have used machine learning and deep learning to utilize various physiological signals to assist in the diagnosis of diseases. Among various physiological data, EEG signals are a non-invasive technology with high temporal resolution, simple acquisition tools, easy operation, and little effect on the growth and development of newborns. There is developmental neurophysiological evidence that for healthy newborns, the age after conception usually matches the age estimated by the EEG. Patterns in the EEG are associated with maturity, but because these patterns vary greatly between different sleep times and different patients, finding general rules to explain these patterns is a challenging problem.

[0006] The use of machine learning models can avoid the influence of human visual assessment subjectivity and produce consistent and accurate results, thereby helping neonatologists make accurate assessments. The main challenges in using machine learning in the field of EEG analysis of premature infants are as follows:

[0007] 1) The EEG signals of premature infants collected clinically usually have large random noises, such as blinking, waving arms, frowning and other movements of premature infants, electromagnetic interference caused by the collection equipment, etc., which requires the model to have a high anti-interference ability;

[0008] 2) The EEG signals of premature infants are highly complex and have more complex features than those of normal adults, such as spontaneous transient bursts, spike and slow waves, etc. How to mine EEG information based on the unique features of neonatal EEG is the key to the present invention;

[0009] 3) Currently, no biomarkers that are strongly correlated with the age of brain function in premature infants have been discovered in the field of machine learning. How to screen out the most valuable factors for evaluation conclusions from numerous features is the key to improving the model effect and is also the conclusion that clinical medicine pays most attention to. Summary of the invention

[0010] In order to overcome the above problems, the present invention proposes a premature infant brain function age recognition system based on multi-domain features and machine learning; by analyzing and extracting multi-domain feature information of premature infants' EEG signals from different dimensions, the comprehensiveness and universality of EEG features are improved; by establishing an algorithm model based on machine learning, the best feature set can be selected from many features while reducing the existing noise interference, thereby constructing a robust and high-fitting automated recognition model for premature infants' brain function age, which has certain theoretical and practical application significance.

[0011] The purpose of the present invention is achieved through the following technical solutions: a premature infant brain function age recognition system based on multi-domain features and machine learning, including a data acquisition and preprocessing module, a multi-domain feature extraction module, and a premature infant brain function age recognition module;

[0012] The premature infant EEG acquisition and preprocessing module is used to process premature infant EEG data, which is divided into the following steps:

[0013] Step 1: Collect multi-channel EEG signals of premature infants in a resting state. The collection time is at least 1 hour. The specific collection channel names are Fp1, Fp2, T3, T4, C3, C4, P3, P4, O1, O2, Cz, Pz, and the collection frequency is 500Hz. Then convert the collected multi-channel EEG signal file into a txt format file, delete the non-numeric data in the txt file, and obtain the EEG sample data of each channel containing only numerical values.

[0014] Step 2: Downsample the EEG sample data of each channel obtained in step 1 to 128 Hz, eliminate the power frequency noise in the range of 49 Hz-51 Hz in the EEG sample data, and perform bandpass filtering with cutoff frequencies of 0.5 Hz and 30 Hz; then remove the artifact noise of eye movement, heart movement and muscle movement as well as the noise caused by the acquisition equipment to obtain the EEG data of each single channel after preprocessing;

[0015] Step 3: Extract a 20-minute segment from each single-channel EEG data after the preprocessing in step 2 as the data to be processed, perform bipolar reference processing on the data to be processed, and obtain 20-minute bipolar channel EEG data; regard the bipolar channel EEG data obtained from the data to be processed as an EEG sample;

[0016] The EEG signal multi-domain feature extraction module extracts multi-dimensional features from bipolar channel data in different fields, including time domain features, frequency domain features, nonlinear features, and complex graph theory features based on brain functional networks. The specific contents are as follows:

[0017] 1. Extract time domain features

[0018] The time domain features to be extracted include the mean, standard deviation, skewness, and kurtosis of the EEG signal. These four time domain features are extracted from the EEG sample. Let x(n) represent the EEG signal value obtained by sampling a bipolar channel in the EEG sample for the nth time, and N represents the total number of samples. The calculation method of the four time domain features is as follows:

[0019] The mean refers to the signal average value of a bipolar channel in the EEG sample, reflecting the overall average level of the signal. The calculation formula is:

[0020]

[0021] The standard deviation refers to the degree to which the signal of a bipolar channel in the EEG sample deviates from the mean value, and the calculation formula is:

[0022]

[0023] The skewness refers to the degree of signal skewness of a bipolar channel in an EEG sample, which is a measure of the symmetry of the distribution. The calculation formula is:

[0024]

[0025] The kurtosis refers to the steepness of the signal distribution of a bipolar channel in the EEG sample, and the calculation formula is:

[0026]

[0027] The above four time domain features are extracted from all bipolar channels of all EEG samples respectively;

[0028] 2. Extract frequency domain features

[0029] The frequency domain feature is the power spectrum density of the EEG signal, and the calculation process is as follows:

[0030] The sliding window mechanism is used for the EEG data corresponding to a bipolar channel in the EEG sample, and the window step size and size are set. The two adjacent windows are set not to overlap, so that the window slides on the EEG time domain signal. The data in each sliding window is transformed by Fourier transform to form frequency domain signals corresponding to different time windows, which are spliced ​​together to form data with frequency changing over time. For the EEG data x(t) corresponding to a bipolar channel, the short-time Fourier transform formula is:

[0031]

[0032] Among them, w(t) is the window function, ω=2Πf, f is the frequency, τ specifically refers to the symmetry axis of the window function w in the time domain, that is, the center position of the window function. The center of the window function τ determines the analysis position of the signal x(t) in the time domain, that is, taking a slice of the signal near τ for Fourier transform, t is the time variable, j is a complex unit, representing the coefficient of the imaginary part, Refers to the Fourier transform, w(t) is specifically defined as:

[0033]

[0034] where t o is the length of the window, and the sum of the squares of S(ω,τ) in different frequency intervals is calculated, which is the power spectral density of the EEG data corresponding to a bipolar channel in the EEG sample in different frequency bands:

[0035]

[0036] According to the above steps, the power spectral density of each bipolar channel was extracted for each EEG sample in the four frequency bands of Delta (0.5-4Hz), Theta (4-7Hz), Alpha (8-13Hz), and Beta (13-30Hz);

[0037] 3. Extracting nonlinear features

[0038] The nonlinear feature is the sample entropy of the EEG signal, and the calculation process is as follows:

[0039] Step 1: The bipolar channel EEG data of N sampling points in a bipolar channel are combined into an EEG time series {x(n)}=x(1),x(2),…,x(N), and the m-dimensional reconstruction vector X is formed in ascending order of sequence numbers. m (i), X m (i)={x(i),x(i+1),…,x(i+m-1)}, where 1≤i≤N-m+1, m (i) represents the m consecutive bipolar channel EEG data starting from the ith value in the EEG time series {x(n)}.m (i) Form a reconstruction vector sequence X with a total number of Nm-1 m (1),X m (2),…,X m (Nm-1);

[0040] Step 2: X m (i) X m (j) The distance d[X] between two vector sets m (i),X m (j)] is calculated, and the calculation formula is:

[0041]

[0042] Among them, 1≤q≤ml; l≤i,j≤N-m+1,i≠j;

[0043] Step 3: Count X m (i) With X m (j) The distance d[X m (i),X m (j)] is less than or equal to the similarity tolerance threshold r, denoted as B i , for 1≤i≤Nm, calculate B as follows i The ratio of the total number of reconstructed vector sequence vectors Nm-1

[0044] B i =num{d[X m (i),X m (j)] <r}

[0045]

[0046] Step 4: For l≤j≤Nm,i≠j, find all corresponding to each reconstructed vector The average value is denoted as B m (r), B m (r) represents two vectors X m (i),X m (j) The probability of matching m points under the similarity tolerance threshold r:

[0047]

[0048] Step 5: Increase the dimension to m+1 and calculate X in the same way m+1 (i) X m+1 (j) The distance d[X m+1 (i),X m+1 (j)] is less than or equal to the number of similarity tolerance threshold r iThe ratio of the total number of vectors Nm-1

[0049] A i =num{d[X m+1 (i),X m+1 (j)] <r}

[0050]

[0051] Step 6: For l≤j≤Nm,i≠j, calculate all corresponding to each reconstructed vector The average value is denoted as A m (r), A m (r) represents two vectors X m+1 (r),X m+1 (j) The probability of matching m+1 points under the similarity tolerance threshold r:

[0052]

[0053] Step 7: Since N represents the total number of samples of an EEG signal, which is a finite value, the sample entropy calculation formula for a bipolar channel in the EEG sample is:

[0054] SampEn2=-ln[A m (r) / B m (r)]

[0055] For each bipolar channel of all EEG samples, extract the sample entropy features according to the above steps;

[0056] 4. Extracting complex graph features

[0057] Extract complex graph features based on empirical mode decomposition and correlation functional connectivity matrix. The specific steps are as follows:

[0058] Step 1: Perform empirical mode decomposition on the bipolar channel EEG data in the preprocessed EEG samples. EMD decomposition decomposes the EEG signal into internal modal components with different frequencies. Let x(t) be a bipolar channel EEG data with a duration of t seconds. The specific results after EMD decomposition are as follows:

[0059]

[0060] IMF o (t) is the oth internal modal component after x(t) is decomposed by EMD. Each internal modal component is a signal with a duration of t seconds, and carries different information of the signal before decomposition according to the frequency, where o = {1, 2, ..., p}, res is the residual component after x(t) is decomposed, and p is the number of internal modal components after EMD decomposition;

[0061] Step 2: Perform EMD decomposition on each bipolar channel EEG data in the EEG sample, and then calculate the time series correlation between the inner membrane state components with the same sequence number decomposed from different bipolar channel EEG data in the same EEG sample; specific correlation indicators include Pearson correlation, amplitude square coherence, and positioning phase lag index;

[0062] The Pearson correlation is reflected by calculating the Pearson correlation coefficient, where IMFx(n) and IMFy(n) represent the EEG endometrial state signal values ​​obtained by sampling the nth time in two different bipolar channels in an EEG sample, and the Pearson correlation coefficient calculation formula between the two endometrial state signals is:

[0063]

[0064] The calculation of the amplitude square coherence is as follows: For the two segments of the inner membrane state signal IMFx(t) and IMFy(t), the auto-power spectrum density S is calculated according to the following formula: xx (f) S yy (f) and the cross power spectrum density S xy (f):

[0065] S xx (f) = E[IMFx(t1)IMFx(t2)]

[0066] S yy (f) = E[IMFy(t1)IMFy(t2)]

[0067] S xy (f) = E[IMFx(t1)IMFy(t2)]

[0068] Where t1 and t2 represent different moments in (0, t), E represents the mathematical expectation of the data, and the calculation formula for the amplitude square coherence between the two segments of the inner membrane state signals IMFx(t) and IMFy(t) is:

[0069]

[0070] The specific calculation steps of positioning phase lag index are as follows:

[0071] For a segment of the inner membrane state signal IMFx(t), the instantaneous phase is first determined using the analytical signal of the Hilbert transform, and the analytical signal is:

[0072] z(t)=IMFx(t)+ih(t)

[0073] Where h(t) is the Hilbert transform of IMFx(t), i is a complex unit, and the instantaneous phase of IMFx(t) is:

[0074]

[0075] For two segments of endomembrane state signals IMFx(t) and IMFy(t), the calculation formula for the positioning phase lag index between them is:

[0076]

[0077] where Φ IMFx (t), Φ IMFy (t) are the instantaneous phases of IMFx(t) and IMFy(t), respectively. Representative Φ IMFx (t), Φ IMFy (t) The phase synchronization difference between the two segments of the inner membrane state signal, sign is the sign function, calculated as follows:

[0078]

[0079] The above three correlation indices are calculated between the inner membrane state components of the same frequency range of each two bipolar channels of each EEG sample after EMD decomposition. Since the EEG data of each EEG sample has multiple bipolar channels, each EEG sample has multiple possible combination results. Each correlation indicator obtains a matrix, so each EEG sample will obtain multiple matrices in total. These matrices are used as multiple different brain functional connection matrices. For all EEG samples, the brain functional connection matrix based on EMD is extracted according to this step;

[0080] Step 3: Build an unweighted brain functional network

[0081] The density method is used to transform the brain functional connection matrix into an unweighted brain functional network. The specific steps are as follows:

[0082] The brain functional connection matrix obtained in step 2 is binarized according to the connection strength of the edges in the matrix. Finally, the weights of all retained edges are set to 1, and the weights of other discarded edges are set to 0, thus obtaining an unweighted brain functional connection network.

[0083] Step 4: Calculate characteristic indicators of complex brain functional connectivity networks

[0084] Graph theory features are extracted from the established unweighted brain functional connection network, including the degree of the undirected graph, characteristic path length, and clustering coefficient. The specific calculation contents are as follows:

[0085] For a given node, the degree is the number of neighboring nodes connected to it, where a node is a bipolar EEG channel, and the degree calculation formula between the pth node and the qth node is:

[0086]

[0087] where a pq Indicates the number of edges connected to the node. When there is a connection between node p and node q, a pq =1, when there is no connection between node p and node q, a pq = 0, V is the total number of nodes in the brain functional connection network;

[0088] The characteristic path length refers to the average value of the shortest distance between all nodes in the network, and the calculation formula is:

[0089]

[0090] where d pq represents the shortest path length between nodes p and q;

[0091] The clustering coefficient is a measure of the degree to which nodes form tight groups in a network. The calculation formula is:

[0092]

[0093] Where E p is the number of edges between node p and its neighbor nodes, D p is the degree of node p, that is, the number of neighbor nodes connected to node p;

[0094] Extract complex graph theory features based on EMD from the brain functional connectivity matrix of all EEG samples;

[0095] In summary, features are extracted from four fields for all EEG samples, and the feature sets extracted from the four fields are paralleled to obtain the final feature set;

[0096] The premature infant brain function age recognition module uses a random forest regression model consisting of 300 decision trees to predict the premature infant's brain function age based on the final feature set extracted from the EEG signal multi-domain feature extraction module.

[0097] The training process of the random forest classification model used in the premature infant brain function age recognition module is as follows:

[0098] Step 1, input the multi-channel EEG signals of premature infants whose corrected gestational age is less than 37 weeks and who are diagnosed by expert doctors as having normal neurological development into the premature infant EEG acquisition and preprocessing module, then input the data output by the premature infant EEG acquisition and preprocessing module into the EEG signal multi-domain feature extraction module, and use the final feature set consisting of all features obtained after processing by the EEG signal multi-domain feature extraction module as the training set;

[0099] Step 2: manually label the actual brain function age of premature infants corresponding to each final feature set in the training set, and obtain a labeling data set of the actual brain function age of premature infants manually labeled;

[0100] Step 3: Collect EEG data of 112 premature infants with normal brain development in the labeled training set with replacement, and use the data as the root node sample of a decision tree to train the decision tree, thereby forming a trained decision tree;

[0101] Step 4: Repeat step 3 300 times to form a random forest consisting of 300 trained decision trees. The 300 trained decision trees will have 300 prediction results, i.e., the actual brain function age of premature infants. The mean of the 300 prediction results is calculated, and the obtained mean is the final prediction result of the model.

[0102] When the MAE value of the random forest regression model predicting the data collected in the labeled data set is less than 1.5, the trained random forest regression model is obtained; the MAE value represents the mean of the absolute value of the error between the predicted value and the true value in the labeled data set by the random forest regression model, and is calculated as follows:

[0103]

[0104] Where M is the number of predicted samples, that is, the number of samples in the labeled data set, The random forest regression model predicts the brain function age of the i-th sample, y i is the actual brain function age of the ith sample. The smaller the MAE value, the smaller the error between the predicted value and the true value, indicating that the prediction model has better accuracy.

[0105] In step 1 of the premature infant EEG acquisition and preprocessing module, the acquired multi-channel EEG signal file is converted into a txt format file through python code.

[0106] In step 2 of the premature infant EEG acquisition and preprocessing module, the EEG sample data of each channel obtained in step 1 is downsampled to 128 Hz using the eeglab software; the power frequency noise in the range of 49 Hz-51 Hz in the EEG sample data is eliminated by the notch filter in the eeglab software, and the bandpass filtering with cutoff frequencies of 0.5 Hz and 30 Hz is performed by a fourth-order Butterworth filter.

[0107] The beneficial effects of the present invention are as follows:

[0108] 1) Aiming at the problem that the EEG signal features of premature infants are complex and difficult to extract, the present invention extracts information from four dimensions: time domain, frequency domain, nonlinearity, and complex graph theory, comprehensively extracts different information, and increases the accuracy of identifying the brain function age of premature infants;

[0109] 2) The present invention obtains the best feature set from the high-dimensional feature vector through the feature selection method, which reduces the time of feature extraction while ensuring the accuracy of the model, and greatly enhances the generalization and efficiency of the model;

[0110] 3) The present invention realizes long-term and effective recognition of the brain function age of premature infants through an automatic recognition method of the brain function age of premature infants based on multi-domain feature extraction and machine learning, which can significantly reduce the error of manual interpretation, reduce social medical costs, and has good application prospects. BRIEF DESCRIPTION OF THE DRAWINGS

[0111] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings used in the description of the embodiments of the present invention. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the contents of the embodiments of the present invention and these drawings without creative work.

[0112] Figure 1 It is the whole flow chart of the present invention.

[0113] Figure 2 This is a partial EEG data graph of a single channel.

[0114] Figure 3 This is a partial EEG data graph of the bipolar channel.

[0115] Figure 4 It is a flowchart for extracting complex graph features in the feature extraction module. DETAILED DESCRIPTION

[0116] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0117] Example 1

[0118] The present invention designs a premature infant brain function age recognition system based on multi-domain feature extraction and machine learning, including a premature infant EEG acquisition and preprocessing module, a multi-domain feature extraction module, and a premature infant brain function age recognition module;

[0119] The premature infant EEG acquisition and preprocessing module is used to process premature infant EEG data. The module standardizes the frequency and channel type of premature infant EEG signals collected by medical staff, filters out signals of non-key frequency bands in premature infant EEG data by filtering, filters noise caused by premature infant blinking, waving and other actions by a fully automatic artifact removal method, and extracts data of equal length from the preprocessed EEG signals. The EEG acquisition and preprocessing module is specifically divided into the following steps:

[0120] Step 1: Medical staff use multi-channel EEG acquisition equipment to collect multi-channel EEG signals of premature infants in a resting state. The acquisition time is at least 1 hour. The specific acquisition channel names are Fp1, Fp2, T3, T4, C3, C4, P3, P4, O1, O2, Cz, Pz. The positions of the 12 electrode channels follow the international 10-20 electrode placement standard, and the acquisition frequency is 500Hz. Then, the collected multi-channel EEG signal file is converted into a txt format file through python code, and the non-numeric data in the txt file is deleted to obtain the EEG sample data of each channel containing only numerical values.

[0121] Step 2: Use the eeglab software to downsample the EEG sample data of each channel obtained in step 1 to 128Hz; this step ensures that the size of the original data is compressed without losing too much information of the original EEG data, that is, to ensure that all the information of the original signal is basically retained while reducing the amount of data for subsequent analysis, and to improve the speed of subsequent feature extraction and model training; the power frequency noise in the range of 49Hz-51Hz in the EEG sample data is eliminated by the notch filter in the eeglab software. The notch filter refers to a filter that can quickly attenuate the input signal at a certain frequency point to achieve the filtering effect of preventing the signal of this frequency from passing; the fourth-order Butterworth filter is used for bandpass filtering with a cutoff frequency of 0.5Hz and 30Hz. Studies have shown that this frequency band is the most important frequency band in neonatal development; the pseudo-shadow space algorithm is then used to remove the artifact noise of eye movement, heart movement and muscle movement, as well as the noise caused by the acquisition equipment, to obtain the single-channel EEG data after preprocessing; some single-channel EEG data are shown in the attached figure. Figure 2 As shown, the pseudo shadow space algorithm will delete part of the data during the denoising process. In the present invention, the pseudo shadow space algorithm is set to remove at most 20% of the data length during the denoising process, so the time length of the single-channel EEG data after the preprocessing is greater than 20 minutes;

[0122] Step 3: Extract 20-minute segments from each single-channel EEG data after the preprocessing in step 2 as the data to be processed, and perform bipolar reference processing on the processed data, where the bipolar reference refers to the difference between two single-channel EEG data, that is, the data of the upper channel minus the data of the lower channel; existing studies have shown that bipolar reference EEG data has better stability and effectiveness than single-channel data in the field of neonatal EEG analysis. In this embodiment, a dual longitudinal lead bipolar reference method is adopted. The specific bipolar reference channel names are: Fp1_T3, Fp1_C3, Fp2_T4, Fp2_C4, T3_O1, T4_O2, C3_P3, C4_P4, P3_O1, P4_O2, Cz_Pz, a total of 11 bipolar channels (Fp1 and T3 are used when collecting signals. We call two channel signals (specifically unipolar signals). When the data between Fp1 and T3 are subtracted (Fp1-T3), it becomes a signal. The channel after subtraction is named Fp1_T3, that is, a bipolar channel). 20 minutes of bipolar channel EEG data are obtained. Some bipolar reference data are shown in the attached figure. Figure 3 As shown; the bipolar channel EEG data obtained through the data to be processed is regarded as an EEG sample. The EEG acquisition and preprocessing in steps 1-3 are performed on premature infants who can perform EEG acquisition to obtain the EEG data of all samples. In summary, the EEG acquisition and preprocessing module will eventually obtain the bipolar reference pure EEG signal of 0.5-30Hz frequency band that premature infants focus on and 20 minutes after removing artifacts. All subsequent feature extraction operations will be based on the bipolar reference EEG signal data.

[0123] The EEG signal multi-domain feature extraction module extracts multi-dimensional features from bipolar channel data in different fields, including time domain features, frequency domain features, nonlinear features, and complex graph theory features based on brain functional networks. The channels mentioned in this module are all bipolar channels. The specific contents are as follows:

[0124] 1. Extract time domain features

[0125] The time domain features to be extracted include the mean, standard deviation, skewness, and kurtosis of the EEG signal. Different time domain features reflect different characteristics of the EEG signal. These four time domain features are extracted from the bipolar channel EEG data in the EEG sample. Let x(n) represent the EEG signal value obtained by sampling a bipolar channel in the EEG sample for the nth time, i.e., the EEG data, and N represent the total number of samples. The calculation method of the four time domain features is as follows:

[0126] The mean refers to the signal average value of a bipolar channel in the EEG sample, reflecting the overall average level of the signal. The calculation formula is:

[0127]

[0128] The standard deviation refers to the degree to which the signal of a bipolar channel in the EEG sample deviates from the mean value, and the calculation formula is:

[0129]

[0130] The skewness refers to the degree of signal skewness of a bipolar channel in an EEG sample, which is a measure of the symmetry of the distribution. The calculation formula is:

[0131]

[0132] The kurtosis refers to the steepness of the signal distribution of a bipolar channel in the EEG sample, and the calculation formula is:

[0133]

[0134] The above four time domain features are extracted from all 11 bipolar channels of all EEG samples respectively. Then, 44-dimensional time domain features are extracted from each EEG sample. The dimension of the feature set after one EEG sample is extracted is (1, 44). Therefore, the dimension of the final feature set brought by the time domain features extracted from all EEG samples is (number of samples, 44).

[0135] 2. Extract frequency domain features

[0136] The frequency domain feature is the power spectrum density of the EEG signal (the power spectrum density is a measure of the mean square value of a random variable, reflecting the contribution of each frequency component to the total power of the EEG signal, and is one of the commonly used methods for analyzing the frequency components of the EEG signal). The calculation process is as follows:

[0137] Since the EEG signal is non-steady-state data, it means that its frequency characteristics will change with time, and the short-time Fourier transform can provide instantaneous frequency information about the signal. It divides the signal into multiple time windows and performs Fourier transform on each window to obtain the representation of the signal in the window in the frequency domain. In this way, the frequency characteristics of the non-stationary signal can be analyzed locally. Therefore, in this embodiment, the short-time Fourier transform is used to calculate the power spectral density of the EEG signal. The specific calculation steps of the short-time Fourier transform are as follows:

[0138] The sliding window mechanism is used for the EEG data corresponding to a bipolar channel in the EEG sample, and the window step size and size are set. The two adjacent windows are set not to overlap, so that the window slides on the EEG time domain signal. The data in each sliding window is transformed by Fourier transform to form frequency domain signals corresponding to different time windows, which are spliced ​​together to form data with frequency changing over time. For the EEG data x(t) corresponding to a bipolar channel, the short-time Fourier transform formula is:

[0139]

[0140] Wherein, w(t) is a window function, ω=2Πf, f is a frequency, in the present invention, f is 128 Hz, τ specifically refers to the symmetry axis of the window function w in the time domain, that is, the center position of the window function, the center of the window function τ determines the analysis position of the signal x(t) in the time domain, that is, a slice of the signal near τ is taken out for Fourier transform, t is a time variable, j is a complex unit, representing the coefficient of the imaginary part, and the window function w(t) used in this embodiment is a rectangular window, Refers to Fourier transform, rectangular window refers to the shape of the sliding window is rectangular, w(t) is specifically defined as:

[0141]

[0142] where t o is the length of the rectangular window, which is set to 2s in this embodiment. The sum of the squares of S(ω,τ) in different frequency intervals is calculated, which is the power spectral density of the EEG data corresponding to a bipolar channel in the EEG sample in different frequency bands:

[0143]

[0144] According to the above steps, the power spectral density of each 11 bipolar channels is extracted for each EEG sample in the four frequency bands of Delta (0.5-4Hz), Theta (4-7Hz), Alpha (8-13Hz), and Beta (13-30Hz). Then, a 44-dimensional frequency domain feature is extracted for one sample, and the dimension of the feature set of one sample is (1, 44). The dimension of the frequency domain features extracted from all samples into the final feature set is (number of samples, 44);

[0145] 3. Extracting nonlinear features

[0146] The nonlinear feature is the sample entropy of the EEG signal. Sample entropy is a new measure of time series complexity and an improved approximate entropy algorithm. Studies have shown that sample entropy is more suitable than approximate entropy as an EEG feature. The size of entropy is an indicator of system uncertainty. The higher the entropy value, the more complex the system. The calculation process is as follows:

[0147] Assume x(n) represents the EEG signal value obtained by sampling the nth time in a bipolar channel in the EEG sample, N represents the total number of samples, and the sample entropy mainly designs two parameters m and r. m is called the pattern dimension of the sample entropy, which is used to calculate the window length of the time series of the sample entropy. In this embodiment, m is set to 2, and r is the similarity tolerance threshold. When r is large, more information will be lost. When r is small, the statistical characteristics cannot be estimated ideally. In this embodiment, r is set to 0.15. The specific calculation steps of the sample entropy are as follows:

[0148] Step 1: The bipolar channel EEG data of N sampling points in a bipolar channel are combined into an EEG time series {x(n)}=x(1),x(2),…,x(N), and the m-dimensional reconstruction vector X is formed in ascending order of sequence numbers. m (i), X m (i)={x(i),x(i+1),…,x(i+m-1)}, where 1≤i≤N-m+1, m (i) represents the m consecutive bipolar channel EEG data starting from the ith value in the EEG time series {x(n)}. m (i) Form a reconstruction vector sequence X with a total number of Nm-1 m (1),X m (2),…,X m (Nm-1);

[0149] For example, when i = 1, X1(i) = {x(1)}, X2(i) = {x(1, x(2)}, X3(i) = {x(1, x(2), x(3)}, and so on; i is a sequence number and has no actual meaning;

[0150] Step 2: X m (i) X m (j) The distance d[X] between two vector sets m (i),X m (j)] is calculated, and the calculation formula is:

[0151]

[0152] Among them, 1≤q≤m-1; 1≤i,j≤N-m+1,i≠j;

[0153] Step 3: Count X m (i) With X m (j) The distance d[X m (i),X m (j)] is less than or equal to the similarity tolerance threshold r, denoted as B i , for 1≤i≤Nm, calculate B as follows i The ratio of the total number of reconstructed vector sequence vectors Nm-1

[0154] B i =num{d[X m (i),X m (j)] <r}

[0155]

[0156] Step 4: For 1≤j≤Nm,i≠j, find all corresponding to each reconstructed vector The average value is denoted as B m (r), B m (r) represents two vectors X m (i),X m (j) The probability of matching m points under the similarity tolerance threshold r:

[0157]

[0158] Step 5: Increase the dimension to m+1 and calculate X in the same way m+1 (i) X m+1 (j) The distance d[X m+1 (i),X m+1 (j)] is less than or equal to the number of similarity tolerance threshold r i The ratio of the total number of vectors Nm-1

[0159] A i =num{d[X m+1 (i),X m+1 (j)] <r}

[0160]

[0161] Step 6: For 1≤j≤Nm,i≠j, calculate all corresponding to each reconstructed vector The average value is denoted as A m (r), A m (r) represents two vectors X m+1 (i),X m+1 (j) The probability of matching m+1 points under the similarity tolerance threshold r:

[0162]

[0163] Step 7: When N approaches infinity, the sample entropy is defined as:

[0164]

[0165] In this embodiment, N represents the total number of samples of a segment of EEG signal, which is a finite value. Therefore, the sample entropy calculation formula of a bipolar channel in the EEG sample is:

[0166] SampEn2=-ln[A m (r) / B m (r)]

[0167] For each bipolar channel of all EEG samples, the sample entropy features are extracted according to the above steps. Each EEG sample extracts 11-dimensional features. The dimension of the feature set of an EEG sample is (1, 11). The dimension of the sample entropy extracted from all EEG samples and finally brought into the final feature set is (number of samples, 11).

[0168] 4. Extracting complex graph features

[0169] Extract complex graph features based on empirical modal decomposition (EMD) and correlation functional connectivity matrix. EMD is a method to identify vibration patterns contained in signals through characteristic time scales. It has obvious advantages in processing non-stationary and nonlinear data, including strong adaptability, high maturity, and reversible decomposition process. Then, the correlation index of the inner membrane state components decomposed from different channel data is calculated to form a brain function connection matrix. The flowchart of extracting complex graph features is shown in the attached figure. Figure 4 As shown, for the convenience of explaining the process, only two channels are drawn in the flowchart. In the present invention, the number of bipolar channels is 11. The specific steps are as follows:

[0170] Step 1: Perform empirical mode decomposition on the bipolar channel EEG data in the preprocessed EEG samples. EMD decomposition decomposes the EEG signal into internal modal components (IMF) with different frequencies. Let x(t) be a bipolar channel EEG data with a duration of t seconds. The specific results after EMD decomposition are as follows:

[0171]

[0172] IMF o (t) is the oth internal modal component after x(t) is decomposed by EMD. Each internal modal component is a signal with a duration of t seconds, and carries different information of the signal before decomposition according to the frequency, where o = {1, 2, ..., p}, res is the residual component after x(t) is decomposed, and p is the number of internal modal components after EMD decomposition;

[0173] Step 2: Perform EMD decomposition on each bipolar channel EEG data in the EEG sample, assuming that the number of endometrial state components p is 5, that is, each bipolar channel EEG data is decomposed into 5 endometrial components and one residual component; the endometrial components after EMD decomposition are sorted from large to small according to frequency, for example, after x(t) is decomposed, the endometrial components are sorted from large to small according to frequency as IMF1(t), IMF2(t), IMF3(t), IMF4(t), and IMF5(t); then calculate the time series correlation between the endometrial components with the same sequence number decomposed from different bipolar channel EEG data in the same EEG sample (the eleven bipolar channel EEG data will be graded by EMD at the same time, for example, divided into 5 endometrial components, these five components belong to different frequency bands, and the correlation is calculated for the same frequency band decomposed from different channels);

[0174] For example, the inner membrane state component decomposed from channel a is recorded as IMF a1 (t), IMF a2 (t), IMF a3 (t), IMF a4 (t), IMF a5 (t), the inner membrane state component decomposed from channel b is recorded as IMF b1 (t), IMF b2 (t), IMF b3 (t), IMF b4 (t), IMF b5 (t), then IMF a1 (t) With IMF b1 (t), IMF a2 (t) With IMF b2 (t), IMF a3 (t) With IMF b3 (t), IMF a4 (t) With IMF b4 (t), IMF a5 (t) With IMF b5 (t) Calculate the correlation index between the two pairs;

[0175] Specific correlation indicators include Pearson correlation, amplitude square coherence, and localization phase lag index. These indicators can help researchers understand the relationship between EEG signals, network connections, and information transmission characteristics, thereby revealing relevant information on brain function, cognition, and neurological diseases, reflecting the properties of EEG signals in the time and frequency domains and their mutual relationships.

[0176] The specific calculation contents of the correlation index are as follows:

[0177] The Pearson correlation is reflected by calculating the Pearson correlation coefficient, where the Pearson correlation coefficient is a statistical indicator used to measure the degree of linear correlation between two variables. In EEG signal analysis, the Pearson correlation coefficient can be used to measure the correlation between different channels. A higher correlation means that there is a stronger linear relationship between the two signals. Let IMFx(n) and IMFy(n) represent the EEG endometrial state signal values ​​(i.e., bipolar channel EEG data) obtained by sampling for the nth time in two different bipolar channels in an EEG sample, and N represents the total number of samples. The Pearson correlation coefficient between the two endometrial state signals is calculated as follows:

[0178]

[0179] Amplitude square coherence is an indicator used to measure the coherence between two signals. In EEG signal analysis, it is used to measure the strength and phase relationship of the common frequency components between two frequency domain signals. A higher coherence indicates that the two signals have similar oscillation behaviors at a specific frequency. The calculation is as follows: For the two endomembrane state signals IMFx(t) and IMFy(t), the autopower spectral density S is calculated according to the following formula: xx (f) S yy (f) and the cross power spectrum density S xy (f):

[0180] S xx (f) = E[IMFx(t1)IMFx(t2)]

[0181] S yy (f) = E[IMFy(t1)IMFy(t2)]

[0182] S xy (f) = E[IMFx(t1)IMFy(t2)]

[0183] Where t1 and t2 represent different moments in (0, t), E represents the mathematical expectation of the data, and the calculation formula for the amplitude square coherence between the two segments of the inner membrane state signals IMFx(t) and IMFy(t) is:

[0184]

[0185] The localization phase lag index is an indicator used to measure the phase synchronization of EEG signals between different electrodes. It determines the phase synchronization level by comparing the phase difference of two signals. A lower localization phase lag index indicates a stronger phase synchronization between the two signals. The specific calculation steps are as follows:

[0186] For a segment of the inner membrane state signal IMFx(t), the instantaneous phase is first determined using the analytical signal of the Hilbert transform, and the analytical signal is:

[0187] z(t)=IMFx(t)+ih(t)

[0188] Where h(t) is the Hilbert transform of IMFx(t), i is a complex unit, and the instantaneous phase of IMFx(t) is:

[0189]

[0190] For two segments of endomembrane state signals IMFx(t) and IMFy(t), the calculation formula for the positioning phase lag index between them is:

[0191]

[0192] where Φ IMFx (t), Φ IMFy (t) are the instantaneous phases of IMFx(t) and IMFy(t), respectively. Represents Φ IMFx (t), Φ IMFy (t) The phase synchronization difference between the two segments of the inner membrane state signal, sign is the sign function, calculated as follows:

[0193]

[0194] The above three correlation indices are calculated between the inner membrane state components of the same frequency range (i.e., the same sequence number) of each two bipolar channels of each EEG sample after EMD decomposition. Since the EEG data of each EEG sample has 11 bipolar channels, each EEG sample has There are 15 possible combinations of results. Each correlation index gets an 11*11 matrix. So a total of 15 (5*3, 5 is the number of endomembrane state components after EMD decomposition, and 3 is the type of correlation index) 11*11 matrices are obtained for each EEG sample. These 15 matrices are used as 15 different brain functional connection matrices. For all EEG samples, this step is followed to extract the brain functional connection matrix based on EMD.

[0195] Step 3: Build an unweighted brain functional network

[0196] The density method is used to transform the brain functional connection matrix into an unweighted brain functional network. The density method is based on the threshold of the connection matrix and establishes connections between nodes whose connection strength exceeds the threshold. The specific steps are as follows:

[0197] The brain functional connection matrix obtained in step 2 is binarized according to a certain ratio according to the connection strength of the edges in the matrix. Finally, the weights of all retained edges are set to 1, and the weights of other discarded edges are set to 0. In this embodiment, the threshold is set to 0.45, that is, the edge weights greater than 0.45 are set to 1, and the other edge weights are set to 0, thereby obtaining an unweighted brain functional connection network;

[0198] Step 4: Calculate characteristic indicators of complex brain functional connectivity networks

[0199] Graph theory features are extracted from the established unweighted brain functional connection network, including the degree of the undirected graph, characteristic path length, and clustering coefficient. The specific calculation contents are as follows:

[0200] For a given node, the degree is the number of neighboring nodes connected to it, where a node is a bipolar EEG channel, and the degree calculation formula between the pth node and the qth node is:

[0201]

[0202] where a pq Indicates the number of edges connected to the node. When there is a connection between node p and node q, a pq =1, when there is no connection between node p and node q, a pq = 0, V is the total number of nodes in the brain functional connection network;

[0203] The characteristic path length refers to the average value of the shortest distance between all nodes in the network, which reflects the connectivity of the network. The characteristic path length calculation formula between the pth node and the qth node is:

[0204]

[0205] where d pq represents the shortest path length between nodes p and q; D p is the degree of node p, that is, the number of neighbor nodes connected to node p;

[0206] The clustering coefficient is an indicator that measures the degree to which nodes form a tight group in the network. It is believed that if there are more connections between the neighboring nodes of a node, then the clustering coefficient of this node is higher; for node p, the clustering coefficient calculation formula is:

[0207]

[0208] Where E p is the number of edges between node p and its neighboring nodes;

[0209] The complex graph theory features based on EMD were extracted from the brain functional connection matrix of all EEG samples. A total of 15 brain functional connection matrices were extracted from each EEG sample. After each brain functional connection matrix was converted into an unweighted brain functional connection network, 3 graph theory features were extracted. Therefore, 45-dimensional complex graph theory features were finally extracted from each EEG sample. The dimension of the complex graph theory features extracted from all EEG samples into the final feature set was (number of samples, 45).

[0210] In summary, features are extracted from four fields for all EEG samples. 44 time domain features, 44 frequency domain features, 11 nonlinear features, and 45 complex graph theory features are extracted from each EEG sample. The feature sets extracted from the four fields are paralleled to obtain the final feature set. The dimension of the final feature set is (number of samples, 144).

[0211] The premature infant brain function age recognition module uses a random forest regression model consisting of 300 decision trees to predict the premature infant's brain function age based on the final feature set extracted from the EEG signal multi-domain feature extraction module.

[0212] The training process of the random forest classification model is as follows:

[0213] Step 1, input the multi-channel EEG signals of premature infants whose corrected gestational age is less than 37 weeks and who are diagnosed by expert doctors as having normal neurological development into the premature infant EEG acquisition and preprocessing module, then input the data output by the premature infant EEG acquisition and preprocessing module into the EEG signal multi-domain feature extraction module, and use the final feature set consisting of all features obtained after processing by the EEG signal multi-domain feature extraction module as the training set;

[0214] Step 2: manually label the actual brain function age of premature infants corresponding to each final feature set in the training set, and obtain a labeling data set of the actual brain function age of premature infants manually labeled;

[0215] Step 3: Collect EEG data of 112 premature infants with normal brain development in the labeled training set with replacement, and use the data as the root node sample of a decision tree to train the decision tree, thereby forming a trained decision tree;

[0216] Step 4: Repeat step 3 300 times to form a random forest consisting of 300 trained decision trees. The 300 trained decision trees will have 300 prediction results, i.e., the actual brain function age of premature infants. The mean of the 300 prediction results is calculated, and the obtained mean is the final prediction result of the model.

[0217] When the MAE value of the random forest regression model predicting the data collected in the labeled data set is less than 1.5, the trained random forest regression model is obtained; the MAE value represents the mean of the absolute value of the error between the predicted value and the true value in the labeled data set by the random forest regression model, and is calculated as follows:

[0218]

[0219] Where M is the number of predicted samples, that is, the number of samples in the labeled data set, The random forest regression model predicts the brain function age of the i-th sample, y i is the actual brain function age of the ith sample. The smaller the MAE value, the smaller the error between the predicted value and the true value, indicating that the prediction model has better accuracy.

[0220] Example 2

[0221] The same as Example 1, except that: the premature infant brain function age recognition module includes three steps: feature set data preprocessing, feature selection, and model training. In this embodiment, multiple multi-channel EEG brain wave signals of premature infants with a corrected gestational age of less than 37 weeks and diagnosed by expert doctors as having normal neurological development are selected and input into the premature infant brain wave acquisition and preprocessing module, and then the data output by the premature infant brain wave acquisition and preprocessing module is input into the brain wave signal multi-domain feature extraction module for processing, so as to obtain a final feature set consisting of all features output by the brain wave signal multi-domain feature extraction module;

[0222] Since the premature infants participating in this experiment were diagnosed by expert doctors as having normal neurological development, the corrected gestational age of the premature infants was consistent with their brain functional age. The corrected gestational age refers to the number of days from the last menstrual period of the mother of the premature infant to the collection of EEG data of the premature infant. The corrected gestational age, i.e., brain functional age, was set as the label for subsequent model training. The label refers to the target variable that is to be predicted in machine learning and is the output of the model.

[0223] The specific contents are as follows:

[0224] Step 1: Feature set preprocessing

[0225] The final feature set data is z-score standardized. This standardization method can eliminate the dimensional differences between different features, so that the data can be compared and analyzed on the same scale. Let X be the value set of a given feature in all training samples. The z-score standardization formula for data X is as follows:

[0226]

[0227] z represents the standardized data, X is the value set of a given feature in all training samples, μ represents the mean of X, σ represents the standard deviation of X, and z-score standardization is performed on all feature corresponding data values ​​of the final feature set to obtain the standardized feature set data;

[0228] The purpose of the present invention is to automatically identify the brain function age of premature infants through electroencephalograms, so it belongs to a regression machine learning model. The regression machine learning model is a type of model used to predict numerical output variables. The goal is to analyze the training data and learn the relationship between input features and output variables, thereby predicting new input features. The effect indicator of the evaluation model in this embodiment is the mean absolute error (MAE), which is used to measure the average difference between the predicted value of the model and the actual observed value. The specific calculation formula of MAE is as follows:

[0229]

[0230] Where M is the number of predicted samples, The predicted brain functional age of the sample predicted by the machine learning model, y i To predict the real brain function age of the sample, the smaller the MAE value is, the smaller the error between the predicted value and the real value is, indicating that the prediction model has better accuracy;

[0231] Step 2: Feature Selection

[0232] The most important feature combination is screened from the preprocessed feature set. The purpose of this step is to screen out the most valuable factors for the conclusion from the multi-field features, and to reduce the complexity of the model while enhancing the generalization of the model. The present invention uses feature recursive elimination method for feature selection. Feature recursive elimination method is a method of continuously eliminating useless features by recursion. This method requires the use of a machine learning model. The machine learning model involved in the feature recursive elimination method is a random forest model. As a machine learning algorithm, the random forest algorithm has been applied to multiple fields and is formed by a combination of regression decision tree algorithms. The decision tree is a basic machine learning algorithm that represents and learns the decision rules of data through a tree structure. For a preprocessed EEG feature set Xa, let the prediction result of the decision tree be h(Xa), the h function represents the decision process of the decision tree, and multiple regression decision trees constitute a random forest. Based on the idea of ​​ensemble learning, the random forest takes the mean of each regression decision tree as the prediction result, that is:

[0233]

[0234] is the prediction result of the random forest model based on the EEG feature set Xa, that is, the brain function age of the target premature infant predicted by the random forest model, T is the number of regression decision trees, and the specific steps of the feature recursive elimination feature selection algorithm are as follows:

[0235] The random forest model is used to train the EEG feature set obtained after the feature extraction module. The label is the brain function age corresponding to each training sample. After the random forest model is trained, the importance of each feature to the final training will be obtained, which is called feature importance. The feature importance is arranged from high to low. The feature set brought in by the second model training will delete the feature data with the lowest feature importance in the first training, and the deleted data will be re-substituted into the random forest model for training. The above steps are repeated until the number of features is less than 30% of the number of features in the original feature set, and the process is stopped to obtain the final screened feature set.

[0236] Step 3: Model training

[0237] Step (1), inputting the multi-channel EEG signals of premature infants whose corrected gestational age is less than 37 weeks and whose neurological development is normal as diagnosed by an expert doctor into a premature infant EEG acquisition and preprocessing module, then inputting the data output by the premature infant EEG acquisition and preprocessing module into an EEG signal multi-domain feature extraction module, and using a final feature set consisting of all features obtained after processing by the EEG signal multi-domain feature extraction module as a training set;

[0238] Step (2), manually labeling the actual brain function age of premature infants for each final feature set in the training set, and obtaining a labeled training set of manually labeled actual brain function age of premature infants;

[0239] Step (3), collecting EEG data of 112 premature infants with normal brain development in the labeled training set with replacement, and using the data as the root node sample of a decision tree to train the decision tree, thereby forming a trained decision tree;

[0240] Step (4): Repeat step 3 300 times to form a random forest consisting of 300 trained decision trees. The 300 trained decision trees will have 300 prediction results. The mean of the 300 prediction results is calculated, and the obtained mean is the prediction result of the model.

[0241] When the MAE value of the random forest regression model for the data collected in the labeled data set is less than 1.5, a trained random forest regression model is obtained; the MAE value represents the mean of the absolute values ​​of the errors between the predicted values ​​and the true values ​​in the labeled data set.

[0242] The preferred embodiments of the present invention are described in detail above in conjunction with the accompanying drawings. However, the protection scope of the present invention is not limited to the specific details in the above embodiments. Within the technical concept of the present invention, any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention. These simple variations all belong to the protection scope of the present invention.

[0243] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present invention will not further describe various possible combinations.

[0244] In addition, various embodiments of the present invention may be arbitrarily combined, and as long as they do not violate the concept of the present invention, they should also be regarded as the contents disclosed by the present invention.

[0245] The preferred embodiments of the present invention are described in detail above in conjunction with the accompanying drawings. However, the protection scope of the present invention is not limited to the specific details in the above embodiments. Within the technical concept of the present invention, any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention. These simple variations all belong to the protection scope of the present invention.

[0246] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present invention will not further describe various possible combinations.

[0247] In addition, various embodiments of the present invention may be arbitrarily combined, and as long as they do not violate the concept of the present invention, they should also be regarded as the contents disclosed by the present invention.

Claims

1. A premature infant brain function age recognition system based on multi-domain features and machine learning, characterized in that: It includes data acquisition and preprocessing module, multi-domain feature extraction module, and premature infant brain function age recognition module; The premature infant EEG acquisition and preprocessing module is used to process premature infant EEG data, which is divided into the following steps: Step 1: Collect multi-channel EEG signals of premature infants in a resting state. The collection time is at least 1 hour. The specific collection channel names are Fp1, Fp2, T3, T4, C3, C4, P3, P4, O1, O2, Cz, Pz, and the collection frequency is 500Hz. Then convert the collected multi-channel EEG signal file into a txt format file, delete the non-numeric data in the txt file, and obtain the EEG sample data of each channel containing only numerical values. Step 2: Downsample the EEG sample data of each channel obtained in step 1 to 128 Hz, eliminate the power frequency noise in the range of 49 Hz-51 Hz in the EEG sample data, and perform bandpass filtering with cutoff frequencies of 0.5 Hz and 30 Hz; Then remove the artifact noise of eye movement, heart movement and muscle movement as well as the noise caused by the acquisition equipment to obtain the single-channel EEG data after preprocessing; Step 3: Extract a 20-minute segment from each single-channel EEG data after the preprocessing in step 2 as the data to be processed, perform bipolar reference processing on the data to be processed, and obtain 20-minute bipolar channel EEG data; regard the bipolar channel EEG data obtained from the data to be processed as an EEG sample; The EEG signal multi-domain feature extraction module extracts multi-dimensional features from bipolar channel data in different fields, including time domain features, frequency domain features, nonlinear features, and complex graph theory features based on brain functional networks. The specific contents are as follows:

1. Extract time domain features The time domain features to be extracted include the mean, standard deviation, skewness, and kurtosis of the EEG signal. These four time domain features are extracted from the EEG sample. Let x(n) represent the EEG signal value obtained by sampling a bipolar channel in the EEG sample for the nth time, and N represents the total number of samples. The calculation method of the four time domain features is as follows: The mean refers to the signal average value of a bipolar channel in the EEG sample, reflecting the overall average level of the signal. The calculation formula is: The standard deviation refers to the degree to which the signal of a bipolar channel in the EEG sample deviates from the mean value, and the calculation formula is: The skewness refers to the degree of signal skewness of a bipolar channel in an EEG sample, which is a measure of the symmetry of the distribution. The calculation formula is: The kurtosis refers to the steepness of the signal distribution of a bipolar channel in the EEG sample, and the calculation formula is: The above four time domain features are extracted from all bipolar channels of all EEG samples respectively; 2. Extract frequency domain features The frequency domain feature is the power spectrum density of the EEG signal, and the calculation process is as follows: The sliding window mechanism is used for the EEG data corresponding to a bipolar channel in the EEG sample, and the window step size and size are set. The two adjacent windows are set not to overlap, so that the window slides on the EEG time domain signal. The data in each sliding window is transformed by Fourier transform to form frequency domain signals corresponding to different time windows, which are spliced ​​together to form data with frequency changing over time. For the EEG data x(t) corresponding to a bipolar channel, the short-time Fourier transform formula is: Among them, w(t) is the window function, ω=2Πf, f is the frequency, τ specifically refers to the symmetry axis of the window function w in the time domain, that is, the center position of the window function. The center of the window function τ determines the analysis position of the signal x(t) in the time domain, that is, taking a slice of the signal near τ for Fourier transform, t is the time variable, j is a complex unit, representing the coefficient of the imaginary part, Refers to the Fourier transform, w(t) is specifically defined as: where t o is the length of the window, and the sum of the squares of S(ω, τ) in different frequency intervals is calculated, which is the power spectral density of the EEG data corresponding to a bipolar channel in the EEG sample in different frequency bands: According to the above steps, the power spectral density of each bipolar channel was extracted for each EEG sample in the four frequency bands of Delta (0.5-4Hz), Theta (4-7Hz), Alpha (8-13Hz), and Beta (13-30Hz); 3. Extracting nonlinear features The nonlinear feature is the sample entropy of the EEG signal, and the calculation process is as follows: Step 1: The bipolar channel EEG data of N sampling points in a bipolar channel are combined into an EEG time series {x(n)}=x(1), x(2), ..., x(N), and the m-dimensional reconstruction vector X is formed in ascending order of sequence numbers. m (i), X m (i)={x(i),x(i+1),...,x(i+m-1)}, where 1≤i≤N-m+1,X m (i) represents the m consecutive bipolar channel EEG data starting from the ith value in the EEG time series {x(n)}. m (i) Form a reconstruction vector sequence X with a total number of Nm-1 m (1), X m (2), ..., X m (Nm-1); Step 2: X m (i) X m (j) The distance d[X] between two vector sets m (i), X m (j)] is calculated, and the calculation formula is: Among them, 1≤q≤ml; l≤i, j≤N-m+1, i≠j; Step 3: Count X m (i) With X m (j) The distance d[X m (i), X m (j)] is less than or equal to the similarity tolerance threshold r, denoted as B i , for 1≤i≤Nm, calculate B as follows i The ratio of the total number of reconstructed vector sequence vectors Nm-1 B i =num{d[X m (i),X m (j)]<r} Step 4: For l≤j≤Nm, i≠j, find all corresponding to each reconstructed vector The average value is denoted as B m (r), B m (r) represents two vectors X m (i), X m (j) The probability of matching m points under the similarity tolerance threshold r: Step 5: Increase the dimension to m+1 and calculate X in the same way m+1 (i) X m+1 (j) The distance d[X m+1 (i), X m+1 (j)] is less than or equal to the number of similarity tolerance threshold r i The ratio of the total number of vectors Nm-1 A i =num{d[X m+1 (i),X m+1 (j)]<r} Step 6: For l≤j≤Nm, i≠j, calculate all corresponding to each reconstructed vector The average value is denoted as A m (r), A m (r) represents two vectors X m+1 (i), X m+1 (j) The probability of matching m+1 points under the similarity tolerance threshold r: Step 7: Since N represents the total number of samples of an EEG signal, which is a finite value, the formula for calculating the sample entropy of a bipolar channel in the EEG sample is: SampEn26-ln[A m (r) / B m (r)] For each bipolar channel of all EEG samples, extract the sample entropy features according to the above steps; 4. Extracting complex graph features Extract complex graph features based on empirical mode decomposition and correlation functional connectivity matrix. The specific steps are as follows: Step 1: Perform empirical mode decomposition on the bipolar channel EEG data in the preprocessed EEG samples. EMD decomposition decomposes the EEG signal into internal modal components with different frequencies. Let x(t) be a bipolar channel EEG data with a duration of t seconds. The specific results after EMD decomposition are as follows: IMF o (t) is the oth internal modal component after x(t) is decomposed by EMD. Each internal modal component is a signal with a duration of t seconds, and carries different information of the signal before decomposition according to the frequency, where o = {1, 2, ..., p}, res is the residual component after x(t) is decomposed, and p is the number of internal modal components after EMD decomposition; Step 2: Perform EMD decomposition on each bipolar channel EEG data in the EEG sample, and then calculate the time series correlation between the inner membrane state components with the same sequence number decomposed from different bipolar channel EEG data in the same EEG sample; specific correlation indicators include Pearson correlation, amplitude square coherence, and positioning phase lag index; The Pearson correlation is reflected by calculating the Pearson correlation coefficient, where IMFx(n) and IMFy(n) represent the EEG endometrial state signal values ​​obtained by sampling the nth time in two different bipolar channels in an EEG sample, and the Pearson correlation coefficient calculation formula between the two endometrial state signals is: The calculation of the amplitude square coherence is as follows: For the two segments of the inner membrane state signal IMFx(t) and IMFy(t), the auto-power spectrum density S is calculated according to the following formula: xx (f) S yy (f) and the cross power spectrum density S xy (f): S xx (f)=E[IMFx(t1)IMFx(t2)] S yy (f)=E[IMFy(t1)IMFy(t2)] S xy (f)=E[IMFx(t1)IMFy(t2)] Where t1 and t2 represent different moments in (0, t), E represents the mathematical expectation of the data, and the calculation formula for the amplitude square coherence between the two segments of the inner membrane state signals IMFx(t) and IMFy(t) is: The specific calculation steps of positioning phase lag index are as follows: For a segment of the inner membrane state signal IMFx(t), the instantaneous phase is first determined using the analytical signal of the Hilbert transform, and the analytical signal is: z(t)=IMFx(t)+ih(t) Where h(t) is the Hilbert transform of IMFx(t), i is a complex unit, and the instantaneous phase of IMFx(t) is: For two segments of endomembrane state signals IMFx(t) and IMFy(t), the calculation formula for the positioning phase lag index between them is: where Φ IMFx (t), Φ IMFy (t) are the instantaneous phases of IMFx(t) and IMFy(t), respectively. Representative Φ IMFx (t), Φ IMFy (t) The phase synchronization difference between the two segments of the inner membrane state signal, sign is the sign function, calculated as follows: The above three correlation indices are calculated between the inner membrane state components of the same frequency range of each two bipolar channels of each EEG sample after EMD decomposition. Since the EEG data of each EEG sample has multiple bipolar channels, each EEG sample has multiple possible combination results. Each correlation indicator obtains a matrix, so each EEG sample will obtain multiple matrices in total. These matrices are used as multiple different brain functional connection matrices. For all EEG samples, the brain functional connection matrix based on EMD is extracted according to this step; Step 3: Build an unweighted brain functional network The density method is used to transform the brain functional connection matrix into a weighted brain functional network. The specific steps are as follows: The brain functional connection matrix obtained in step 2 is binarized according to the connection strength of the edges in the matrix. Finally, the weights of all retained edges are set to 1, and the weights of other discarded edges are set to 0, thus obtaining an unweighted brain functional connection network. Step 4: Calculate characteristic indicators of complex brain functional connectivity networks Graph theory features are extracted from the established unweighted brain functional connection network, including the degree of the undirected graph, characteristic path length, and clustering coefficient. The specific calculation contents are as follows: For a given node, the degree is the number of neighboring nodes connected to it, where a node is a bipolar EEG channel, and the degree calculation formula between the pth node and the qth node is: where a pq Indicates the number of edges connected to the node. When there is a connection between node p and node q, a pq =1, when there is no connection between node p and node q, a pq = 0, V is the total number of nodes in the brain functional connection network; The characteristic path length refers to the average value of the shortest distance between all nodes in the network, and the calculation formula is: where d pq represents the shortest path length between nodes p and q; The clustering coefficient is a measure of the degree to which nodes form tight groups in a network. The calculation formula is: Where E p is the number of edges between node p and its neighbor nodes, D p is the degree of node p, that is, the number of neighbor nodes connected to node p; Extract complex graph theory features based on EMD from the brain functional connectivity matrix of all EEG samples; In summary, features are extracted from four fields for all EEG samples, and the feature sets extracted from the four fields are paralleled to obtain the final feature set; The premature infant brain function age recognition module uses a random forest regression model consisting of 300 decision trees to predict the premature infant's brain function age based on the final feature set extracted from the EEG signal multi-domain feature extraction module.

2. According to claim 1, a premature infant brain function age recognition system based on multi-domain features and machine learning is characterized in that: The training process of the random forest classification model used in the premature infant brain function age recognition module is as follows: Step 1, input the multi-channel EEG signals of premature infants whose corrected gestational age is less than 37 weeks and who are diagnosed by expert doctors as having normal neurological development into the premature infant EEG acquisition and preprocessing module, then input the data output by the premature infant EEG acquisition and preprocessing module into the EEG signal multi-domain feature extraction module, and use the final feature set consisting of all features obtained after processing by the EEG signal multi-domain feature extraction module as the training set; Step 2: manually label the actual brain function age of premature infants corresponding to each final feature set in the training set, and obtain a labeling data set of the actual brain function age of premature infants manually labeled; Step 3: Collect EEG data of 112 premature infants with normal brain development in the labeled training set with replacement, and use the data as the root node sample of a decision tree to train the decision tree, thereby forming a trained decision tree; Step 4: Repeat step 3 300 times to form a random forest consisting of 300 trained decision trees. The 300 trained decision trees will have 300 prediction results, i.e., the actual brain function age of premature infants. The mean of the 300 prediction results is calculated, and the obtained mean is the final prediction result of the model. When the MAE value of the random forest regression model predicting the data collected in the labeled data set is less than 1.5, the trained random forest regression model is obtained; the MAE value represents the mean of the absolute value of the error between the predicted value and the true value in the labeled data set by the random forest regression model, and is calculated as follows: Where M is the number of predicted samples, that is, the number of samples in the labeled data set, The random forest regression model predicts the brain function age of the i-th sample, y i is the actual brain function age of the ith sample. The smaller the MAE value, the smaller the error between the predicted value and the true value, indicating that the prediction model has better accuracy.

3. The premature infant brain function age recognition system based on multi-domain features and machine learning according to claim 1 is characterized in that: In step 1 of the premature infant EEG acquisition and preprocessing module, the acquired multi-channel EEG signal file is converted into a txt format file through python code.

4. The premature infant brain function age recognition system based on multi-domain features and machine learning according to claim 1 is characterized in that: In step 2 of the premature infant EEG acquisition and preprocessing module, the EEG sample data of each channel obtained in step 1 is downsampled to 128 Hz using the eeglab software; the power frequency noise in the range of 49 Hz-51 Hz in the EEG sample data is eliminated by the notch filter in the eeglab software, and the bandpass filtering with cutoff frequencies of 0.5 Hz and 30 Hz is performed by a fourth-order Butterworth filter.

Citation Information

Cited By

  • Electroencephalogram multi-index network standardized modeling method and system

    CN119598136A

  • A method and system for normalized modeling of EEG multi-index network

    CN119598136B

  • Nerve coupling decoding method and system based on double electroencephalogram

    CN120197043A

  • Method and system for evaluating quality of resting-state norm electroencephalogram

    CN120837100A