Brain-computer interface system for extracting ischemia and hypoxia state of brain through noninvasive brain waves

Through the non-invasive brain wave acquisition system and multi-layer data model, it solves the problem of real-time measurement of cerebral ischemia and hypoxia, achieves accurate monitoring and early prediction of brain functional status, is suitable for home applications in a large health environment, and reduces medical costs. and human input.

CN118697356APending Publication Date: 2024-09-27BEIJING EASY MONITOR TECH DEV +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410692581.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

Existing technology cannot achieve real-time, simple, rapid measurement and early prediction of cerebral ischemia and hypoxia. Especially in a large health environment, the lack of effective quantitative examination methods affects the early diagnosis and evaluation of treatment effects of stroke.

Method used

Using a non-invasive brainwave acquisition system, through two-lead non-invasive brainwave acquisition sensors and wearable devices, combined with edge computing and cloud computing, using wavelet analysis, two-compartment decomposition algorithm and pattern recognition technology, a four-dimensional multi-layer data model is constructed to extract Cerebral ischemia and hypoxia index enables real-time monitoring and evaluation of brain functional status.

Benefits of technology

It achieves real-time and accurate quantitative measurement of cerebral ischemia and hypoxia, supports early prediction and rapid evaluation of treatment effects, reduces medical costs and human investment, and is suitable for home applications in a large health environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118697356A
    Figure CN118697356A
Patent Text Reader

Abstract

According to the invention, the degree of cerebral ischemia and hypoxia is directly reflected by utilizing a neural electrophysiology technology, collecting brain wave signals in real time, utilizing a mathematical calculation algorithm for discrete signal processing, extracting characteristic components related to nerve function states in brain waves and analyzing the change of the function states; and the method is a new-mode ischemia and hypoxia quantitative measurement technology. The acquisition of the brain wave primitive data, the establishment of the network structure model and the neural network algorithm are processes of brain-like information processing, and have static machine learning ability, growth and self-completeness. And along with the gradual increase of the application scale of the system, the indexes grow and develop and gradually approach to accuracy. The field edge computing application and the wearable application give full play to the application compliance of the system to the greatest extent, so that the application of the system goes out of hospitals and enters a healthy family environment, and the future development trend of modern clinical medicine with prevention as a main part and treatment as an auxiliary part is met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of medical devices. Background Art

[0002] In today's era, brain science is a leading science that people focus on. In brain science, the development of brain state measurement technology is an important content and one of the goals of brain science application research. In the field of clinical medicine, the measurement of cerebral ischemia and hypoxia can only be completed through clinical imaging examinations. There is no real-time, simple, convenient, economical and continuous quantitative examination method for clinical use. In particular, the use of Internet wearable technology to achieve the preventive application of ischemia and hypoxia in health, as a preliminary screening tool for family applications, early detection of changes in brain function caused by cerebral ischemia and hypoxia, and active medical methods to complete the sublimation of clinical preventive treatment from preliminary screening, medical arrangement, imaging localization diagnosis, and preventive treatment. It is a breakthrough in the application of neuroelectrophysiological technology to organic lesions, and also a creative application of a new measurement modality in the field of stroke.

[0003] Imaging examinations cannot be applied on a large scale in a big health environment due to their high complexity and low compliance. At the same time, the evaluation of treatment effects cannot achieve the purpose of immediate evidence-based treatment guidance. A simple, highly compliant, and low-cost technical means, starting with the measurement of the results of changes in brain neurological function caused by cerebral ischemia and hypoxia, combined with Internet technology and communication technology, is a key technology for realizing big health applications and rapid evaluation of clinical treatment effects. It is also one of the supporting forces leading the advancement of brain science and technology.

[0004] The establishment of an information management platform based on wearable devices and Internet cloud services for brain ischemia and hypoxia measurement, baseline trend analysis, real-time monitoring, and big data accumulation will have enormous value for the diagnosis of early stroke, for saving medical insurance costs, for avoiding the social costs of disability consequences caused by stroke, and for the catastrophic reality of the family's own medical expenses and manpower investment. Summary of the invention

[0005] The purpose of the present invention is to provide a brain-computer interface system for extracting the ischemic and hypoxic state of the brain through non-invasive brain waves, so as to solve the important application of early prediction and prevention of stroke caused by ischemic and hypoxic brain, as well as real-time, simple and rapid measurement and evaluation of the therapeutic effect of ischemic and hypoxic.

[0006] A brain-computer interface system for extracting the ischemic and hypoxic state of the brain through non-invasive brain waves, including: a two-lead non-invasive brain wave acquisition front-end device; a two-lead wired non-invasive brain wave acquisition sensor; a two-lead wireless wearable brain wave acquisition sensor; a system computing main computer (including an edge computer host and a cloud computing server computer host); a display unit (a display or a mobile terminal such as a mobile phone, a mobile tablet) and an input keyboard (soft and hard); by wearing a brain wave acquisition sensor on the head, the brain wave signal on the surface of the forehead skin is collected and transmitted to the brain wave acquisition front-end device, and the signal is filtered, amplified, and converted to analog, and transmitted to the computer or mobile terminal in a wired manner or wireless Bluetooth manner. The mobile terminal transmits the brain wave digital signal to the cloud computing server via wifi or the Internet. Wireless communication interface component; composed of wireless WIFI and Bluetooth control circuits, as well as a mobile tablet or smart phone; the system works in two modes: edge computing and server cloud computing. All edge computing data is also uploaded to the cloud computing server synchronously to realize the information system platform function of big data and baseline management.

[0007] After the brain is ischemic and hypoxic, it will inevitably cause changes in the brain's neural function state. Brain waves are external information that directly reflects the brain's neural function state. Brain ischemic and hypoxic is the cause, and functional changes are the result. The two have an inherited relationship. By using neuroelectrophysiological technology, by reading the basic characteristics of brain waves, forming static and dynamic changes, it can reflect the changes in the brain's neural function state, thereby directly reflecting the changes in brain ischemic and hypoxic.

[0008] After receiving the brain wave signal, the computer or server uses the wavelet analysis algorithm to implement interference decomposition and two-chamber decomposition algorithm on the brain wave, and obtains interference signal components including eye movement and skin electromyography, as well as cortical brain wave and subcortical brain wave components. The two-lead brain waves can form four-quadrant cortical and subcortical brain wave decomposition signals. For each quadrant signal decomposed, for these independent signals, combined algorithms such as wavelet algorithm, power spectrum analysis algorithm and pattern recognition algorithm are used to obtain multiple groups of primary calculation primitive data. According to the spatial structure and multivariate data variable set, the data is combined into a multidimensional node static data network structure. The horizontal coordinate of the two-dimensional plane distribution is the multivariate data set, the vertical coordinate is the left and right brain data distribution, and the three-dimensional space coordinate is the cortical and subcortical data. For each data node of the three-dimensional structure, the time dimension is added to form a four-dimensional data node structure in which the node data changes with time. For the four-dimensional data network, the dynamic change data (part of the primary primitive data) between the calculation nodes at the time resolution is used as a layer structure to form a four-dimensional multi-layer structure data model. In order to reduce the computational complexity, only the dynamic change data layer of the two-dimensional cortical partial node data and the three-dimensional subcortical partial node data is built. The four-dimensional structure node value built by the primitive data of the EEG calculation within a period of time is the static data layer under spatial resolution. The data of each node in the structure is used as the element of the information flow path, and the arrangement and combination of the nodes can form a network data information path set of a four-dimensional two-layer structure. The output layer of information flow is set, and the final ischemia and hypoxia index is obtained, which is defined as the weighted sum of the output layer node data. The concept of coordination is introduced. Coordination refers to an information path composed of multiple data nodes, and the status of all data nodes on it is "connected", which is defined as a coordinated path. The data nodes of the output layer are the set of network information paths that are partially "connected" in the two-layer network data information path set. They are initially divided into the set of "connected" two-dimensional cortical left and right brain network information paths, and the set of "connected" three-dimensional subcortical left and right brain network information paths, forming four nodes of the output layer, which are called the static coordination components of data under spatial resolution, and the values ​​are related to the size of the data of each data node in the "connected" path. Similarly, the dynamic layer will also form four nodes of the output layer, which are called the dynamic coordination components of the data at the time resolution, and the values ​​are also related to the size of the data at each data node in the "through" path.

[0009] The definition of "on" and "off" of the network information pathway is that the primitive data value of each node is set with a threshold, converted into a binary value of "1" and "0", and is defined as "on" or "off". The sum of the difference between the primitive data value of each node and the threshold of the "on" information pathway is called the transmission data, which is one of the coordinated contributions of the information flow of this "on" pathway to the node data of the output layer. The weighted sum of the transmission data of all "on" pathways associated with the output layer nodes is the node data of the output layer. The determination of the initial threshold is determined by a group of primitive data calculated from the brain waves of a group of normal people and a group of patients with a clear diagnosis of severe ischemia and hypoxia. The threshold value of the primitive data of each node of the two groups of people determines the subsets of the network coordination information pathways of the static pathway and the dynamic pathway, which can be described as the coordinated expression of static and dynamic coordination or disharmony, and the difference in information pathways between the two subsets corresponding to the two groups of people can also be described as the coordinated expression of coordination degree or disharmony degree. For the two groups of people, a subset of network information pathways that blocks the information pathways of the two groups can be established, which is called a sub-subset. That is, due to the existence of some information "through" pathways, some information pathways that were originally "through" are blocked. All subsets and sub-subsets of information pathways can affect the node data values ​​of the output layer. The weighted sum of the output layer node data is used to obtain the final brain ischemia-hypoxia index. The weighting coefficient is determined by the number (coordination degree) of static and dynamic pathway subsets and sub-subset information pathways. After the initial threshold is determined, as the number of normal people and disease patients increases, the basic data and transmission data formed can optimize the sets, subsets, and sub-subsets of each information pathway, gradually accurately adjust the size of the static coordination threshold under the spatial resolution and the dynamic coordination threshold under the temporal resolution of the information node, and continuously increase the number of information pathways in the sets, subsets, and sub-subsets, thereby accurately adjusting the ischemia-hypoxia index. By using the newly added primitive data and transmission data of a person, the inverse error algorithm is used for the set, subset and sub-subset of the network information pathway to establish the subset and sub-subset error gradient sequence. By setting the threshold increment variable, the threshold level is changed forward and reversely one by one. The goal is set to minimize the area under the error gradient curve, forming an iterative algorithm, and finally optimizing the threshold level. Similarly, the information pathway with the maximum value of the error gradient sequence of the person is located, and the successive patrol algorithm is used to locate a certain information pathway to the sub-subset to block the information pathway with the maximum error in the error gradient sequence. This process is repeated and iterated to finally achieve the goal of minimizing the area under the error gradient curve. With the accumulation of data, the node data threshold is gradually optimized, and the number of information pathways in the set increases, the rationality of the output layer node data is improved, and the output ischemia-hypoxia index is close to accuracy, meeting the relevance and specificity requirements of clinical applications.

[0010] The calculation of primitive data mainly uses the wavelet formula:

[0011]

[0012] (a, τ), is the scaling factor and translation parameter of the wavelet transform;

[0013] ω, is the angular frequency of the wavelet transform;

[0014] ψ(a ω ), is the mother function of wavelet transform;

[0015] X(ω) is the wavelet transform result sequence of the original brain wave discrete sequence;

[0016] WT is the time domain signal sequence after inverse transformation;

[0017] For a set of EEG data vectors collected

[0018] b i1 (t) = [y 1 y 2 y 3 …y m-2 y m-1 y m ]

[0019] i1: number of EEG leads;

[0020] m: number of EEG data;

[0021] y: EEG data sequence;

[0022] t: time point;

[0023] Real-time calculation and processing, using multi-scale filter bank algorithm to decompose the wavelet basis functions under each scale window

[0024] (Wb(2^i,w i (r)))i∈z

[0025] (Wb(2^0,w 0 (r))), (Wb(2^1, w 1 (r)))…(Wb(2^N,w N (r)))

[0026] w i (r): represents a set of result data sequences after wavelet transformation;

[0027] r: represents the sequence number in the data sequence;

[0028] z: time domain space;

[0029] i: scale;

[0030] For a set of wavelet basis functions and data of each scale, after discrete wavelet inverse transformation, a set of time domain reconstruction functions are obtained as follows:

[0031] f i (t) = ∑Wb(2^i, w i )*Ψ 2^i (u)

[0032] i: scale;

[0033] Wb: wavelet basis function;

[0034] w i : Result data after wavelet transform at each scale;

[0035] Ψ 2^0 (u),Ψ 2^1 (u)…Ψ 2^N (u): the mother function scale wavelet data point;

[0036] N: order;

[0037] u: data sequence number of the scaled wavelet data point;

[0038] t: time point;

[0039] Each reconstruction function represents the performance of brain waves, eye movement waves and muscle waves at different scales; the scale also corresponds to the frequency component of the signal, which is distributed in the regular rhythm and high-frequency rhythm of the EEG; the brain wave reconstruction function corresponding to a certain scale is selected as the cortical and subcortical atrioventricular EEG waves:

[0040] F i (t)∈{f i (t)>=A}

[0041] i: scale;

[0042] A: scale threshold, a constant;

[0043] t: time series;

[0044] f i (t): Reconstruction function set;

[0045] F i (t): cortical brain waves;

[0046] Secondly:

[0047] Fx i (t)∈{f i (t) <A}

[0048] i: scale;

[0049] A: scale threshold, a constant;

[0050] t: time series;

[0051] f i (t): Reconstruction function set;

[0052] Fx i (t): subcortical brain waves;

[0053] Two sets of reconstructed cortical brain waves and subcortical brain waves are obtained. For the left and right brain waves, the above calculations are performed separately to obtain the left and right cortical and subcortical brain waves:

[0054] Fs_r i (t)∈{f_r i (t) <A}

[0055] Fs_ i (t)∈{f_l i (t) <A}

[0056] Fx_r i (t)∈{f_r i (t) <A}

[0057] Fx_ i (t)∈{f_l i (t) <A}

[0058] i: scale;

[0059] t: time series;

[0060] r: right brain lead;

[0061] l: left brain lead;

[0062] A: scale threshold;

[0063] The above formula constructs the three-dimensional spatial structure of the left and right brain, cortex, and subcortex under spatial resolution. For each sequence data of the above decomposed reconstruction function, the waveform recognition algorithm in the pattern recognition algorithm is used to extract the feature points of the data:

[0064] T ik (h)∈{Fs_r i (t), Fs_l i (t), Fx_r i (t), Fx_l i (t)};

[0065] T: eigenvalue vector;

[0066] i: scale;

[0067] k: dimension, 0-3, representing left and right brain, cortex, subcortex

[0068] h: serial number of feature data;

[0069] t: time series;

[0070] Vector T ik The characteristic data in (h) include the calculation results of singularity, amplitude, variation, slope, area, autocorrelation, and cross-correlation, which are calculated from the basic algorithm:

[0071] Data Series:

[0072] y(t,i)=(ff i (j)-ff i (j-1)) / Δt

[0073] j: time discrete data subscript;

[0074] i: scale;

[0075] t: time point;

[0076] Δt: time increment;

[0077] ff: The function in the F series reconstruction function set obtains the maximum value in the sequence y(t, i), and can obtain one of the characteristic indexes. The positive and negative inversion points are the singular points, and the number of singular points is represented by the size of the t value;

[0078] For ff i (t) Apply iterative differentiation algorithm to sequence data:

[0079] d(j2,v)=∑(ff i (j2+v)-ff i (j2+v-1) / (Δt+v))

[0080] v: The increment of Δt, from 1..N; N is a constant.

[0081] j2: numerical sequence number of the time point;

[0082] i: scale;

[0083] For each vector in the matrix d(j2, v), the data points in the vector are sorted and added, and the maximum value and the sum of the values ​​in each vector are selected as the slope and amplitude.

[0084] For the reconstruction function ff i (t)=[t 1 t 2 t 3 …t m-2 t m-1 tm ], the processed result vectors y(t, i) and d(j2, v) are generated into pattern classes ω1, ω2, …, ωc, and then the distance function between the patterns is used to calculate the distance of each reconstruction function; the variation, autocorrelation, and cross-correlation values ​​of the reconstruction function are obtained.

[0085] Calculate the reconstruction function ff i The integral of (t):

[0086] S i =∫ff i (t)*Δt

[0087] i: scale;

[0088] t: time point;

[0089] Δt: time interval;

[0090] Find the area value of each function.

[0091] Select T ik (h) For some variable data in the data set, calculate the area of ​​the curve under the time resolution, and then find its difference and derivative to obtain multiple sets of data:

[0092] U ik (j)=(∫T ik (h)*Δt-∫T ik (h 1 )*Δt) / Δt

[0093] i: scale;

[0094] j: sequence;

[0095] k: dimension;

[0096] h: variable;

[0097] Δt: time increment;

[0098] Dataset U ik (j) A dynamic layer dataset is formed to reflect the digital dynamic changes of brain waves.

[0099] T ik (h) The vector expresses the waveform characteristics and rules of the reconstruction function, and constitutes part of the primitive data. For the collected electrooculogram signals and frontal muscle signals, they are distributed in the reconstruction functions of a specific scale. For these reconstruction functions, first, the first-order derivatives are obtained:

[0100] D i (t)=(ff i (t)-ff i (t+m)) / Δt

[0101] i: scale;

[0102] t: time point;

[0103] Δt: time interval;

[0104] m: time increment;

[0105] Right D i (t) Sort, get the maximum and minimum values, and set the threshold Q (Set constant), we can find D i The positive and negative polarity variation points of (t) give a set of extreme point vectors:

[0106] M i (t1); high point;

[0107] m i (t1); low point;

[0108] i: scale;

[0109] t1: time point of extreme value;

[0110] An integration algorithm is applied to the relevant reconstruction function:

[0111] E = ∫ff i (t)^2*Δt

[0112] Get the power value of myoelectricity and eye movement; for the result data, after normalization and combination algorithm:

[0113] Sq = exp(a*abs(Mi-mi)+b*E);

[0114] a, b: weighting coefficients, constants, determined by the signal expression range;

[0115] Sq can obtain a quantitative expression of the signal strength indicating interference as one of the displayed results;

[0116] The reconstruction function eliminates the EEG wavelet reconstruction components of eye movement and electromyography, and uses the power spectrum algorithm:

[0117]

[0118] ff i (t): EEG wavelet reconstruction function;

[0119] t: time point;

[0120] ω1: angular frequency of the power spectrum;

[0121] i: scale;

[0122] j1: data window value for power spectrum calculation;

[0123] dt: time increment

[0124] The various components of the power spectrum in the reconstruction function can be obtained, including the values ​​of the αβδθ bands, sef, mef

[0125] Edge frequency, dominant frequency value:

[0126] P ik ={α,β,δ,θ,sef,mef};

[0127] i: scale;

[0128] k: dimension

[0129] αβδθ: power percentage of each band;

[0130] sef: edge frequency of power spectrum calculation;

[0131] mef: center frequency of power spectrum calculation;

[0132] The feature vectors obtained by waveform recognition are combined into a set of feature data covering the frequency domain:

[0133] G ik (jj k 3)={T ik , P ik , U ik};

[0134] i: scale;

[0135] k: dimension

[0136] jj k 3: characteristic data sequence number;

[0137] Data vector G ik (jj k 3) group, as the result of a processing of the EEG wavelet reconstruction function, is named as the primitive data set of EEG. The EEG acquisition time window Z is selected, and within the time window, for the primitive data set, a static data node group and a dynamic data node group are formed:

[0138] B k (n)∈{T ik , P ik}

[0139] D k (n)∈{U ik}

[0140] n: sequence number, 0-N, containing all data of scale i and dimension k;

[0141] i: scale;

[0142] k: dimension

[0143] T: vector data of reconstruction function;

[0144] P: power spectrum data of the reconstruction function;

[0145] Determine the data thresholds for static data node groups and dynamic data node groups:

[0146] YB k (n)=( A ok (n)- A hk (n)) / 2

[0147] YD k (n)=( C ok (n)- C hk (n)) / 2

[0148] n: serial number;

[0149] k: dimension

[0150] o: normal population group;

[0151] h: severe population group;

[0152] A ok : The mean of the initial group of normal person node data;

[0153] A hk : The mean of the initial group of severe patients’ node data;

[0154] C ok : The mean of the initial group of normal person node data;

[0155] C hk : The mean of the initial group of severe patients’ node data;

[0156] For data node B k (n) and D k (n), converted into switch data of "on" and "off":

[0157] X bk = {B k (n)>YB k (n)∈ A ok > A hk , B k (n)<YB k (n)∈ A ok < A hk}

[0158] X bk ={D k (n)>YD k (n)∈ C ok > C hk , D k (n)<YD k (n)∈ C ok < C hk}

[0159] k: dimension;

[0160] o: normal population group;

[0161] h: disease population group;

[0162] X bk : Static switch value, "on" is 1, "off" is 0;

[0163] X dk : Dynamic switch value, "on" is 1, "off" is 0;

[0164] Create a data set containing all "on" and "off" data nodes:

[0165] SS k (n)∈{X bk , X ok}

[0166] n: node serial number;

[0167] k: dimension;

[0168] In SS k In the data set, we select the “passed” data nodes of the four spaces of the left and right brain, cortex, and subcortex in the static layer and dynamic layer respectively to form four node subsets:

[0169] O kj (n) = {SS k (n)==1}

[0170] H kj (n) = {SS k (n)==1}

[0171] k: dimension, 0-3, corresponding to left and right brain, cortex, and subcortex;

[0172] n: node serial number;

[0173] j: 0-1, representing the static layer and the dynamic layer respectively;

[0174] 0: normal group;

[0175] H: disease population group;

[0176] 0 kj (n) and H kj (n) Perform an XOR operation:

[0177] W kj (n)=0 kj (n)&|H kj (n)

[0178] &|: XOR operation;

[0179] k: dimension;

[0180] n: serial number;

[0181] j: 0-1, representing the static layer and the dynamic layer respectively;

[0182] W kj The same node data with 1 in the static layer and dynamic layer data sets in (n) are connected and defined as information paths, forming a set of “connected” information path subsets:

[0183] W1 j (n,nn)

[0184] n: information channel number;

[0185] nn: node data sequence number;

[0186] j: 0-1, representing the static layer and the dynamic layer respectively;

[0187] W kj (n) The same node data with 0 in the static layer and dynamic layer data sets are connected to form a set of "broken" information path subsets:

[0188] W2 j (n,nn)

[0189] n: information channel number;

[0190] nn: node data sequence number;

[0191] j: 0-1, representing the static layer and the dynamic layer respectively;

[0192] W1 j 、W2 j Calculation of midpoint data:

[0193] BA1={|B-YB|}

[0194] DA1={|BD-YD|}

[0195] BA2={|B-YB|}

[0196] DA2={|BD-YD|}

[0197] ||: absolute value expression;

[0198] B: static node primitive data value;

[0199] YB: static node data threshold;

[0200] D: dynamic node primitive data value;

[0201] YD: dynamic node data threshold;

[0202] Defined as the transfer value of node data. The sum of the transfer values ​​of static and dynamic data nodes in the four spaces of left and right brain, cortex, and subcortex:

[0203] EQi=∑{DA1 j , BA1 j , aa j}-∑{DA2 j , BA2 j ,bb j};

[0204] j: 4 spaces;

[0205] DA: Dynamically transfer values;

[0206] BA: static transfer value;

[0207] aa: subset weighting coefficient

[0208] bb: weight coefficient of sub-subset

[0209] EQi: ischemia-hypoxia index;

[0210] Threshold YB for data nodes in the sub-dataset k (n), YD k (n), adopting the inverse error algorithm, by setting the threshold increment variable, changing the threshold level forward and reverse successively, the goal is set to minimize the area under the error gradient curve, forming an iterative algorithm, and finally optimizing the threshold level.

[0211] Add primitive data for normal or diseased individuals to form individual data sets:

[0212] W1 j (n1,nn1)

[0213] W2 j (n1,nn1)

[0214] n1: individual information channel number;

[0215] nn1: individual node data serial number;

[0216] j: 0-1, static layer and dynamic layer;

[0217] Get the error gradient function corresponding to the transferred value:

[0218] EBD k (n)=|W1 j (n1,nn1)-W1 j (n,nn)|

[0219] k: dimension;

[0220] n: information channel sequence number;

[0221] nn: node data sequence number;

[0222] n1: Individual information channel number

[0223] nn1: individual node data serial number;

[0224] j: 0-1, static layer and dynamic layer;

[0225] Compute the maximum value of the error gradient function:

[0226] EBD k _MAX(j4)=Max|EBD k (n)|

[0227] n: information channel number

[0228] j4: the serial number of the maximum error value;

[0229] k: dimension

[0230] Set the threshold increment Δy and calculate the area under the error curve:

[0231] MBD=∫EBD k (n)*Δn

[0232] k: dimension;

[0233] Δn: information pathway increment;

[0234] A recursive algorithm is used to meet the requirement that the conditional area decreases by 20% of the error value or the number of rounds L:

[0235] Func(j4,Δy,L)->Min{MBD}

[0236] j4: the serial number of the maximum error value;

[0237] Δy: threshold increment, fixed constant;

[0238] L: maximum number of recursions;

[0239] Get the threshold at which the error curve area drops by 20%:

[0240] YB(j4)=YB(j4)+Δy

[0241] YD(j4)=YD(j4)+Δy

[0242] j4: the serial number of the maximum error value;

[0243] Δy: threshold increment, fixed constant;

[0244] The above process is recursively performed on j4, and finally the threshold increment Δy (forward or reverse) with the smallest area under the error curve is satisfied, thereby obtaining the learned YB and YD.

[0245] Adding primitive data for normal or diseased individuals, the resulting error gradient function and resulting error value:

[0246] EBDk(n)=|W1j(n1, nn1)-W1j(n, nn)|

[0247] ΔEQi=EQi-EQia

[0248] n: information channel number;

[0249] a: individual;

[0250] EQi: Ideal outcome;

[0251] EQia: individual outcome;

[0252] After the patrol, the maximum error value of the positioning error gradient function is:

[0253] EBD k _MAX(j4)

[0254] For the information path corresponding to j4, recursively search the information path in the W2j sub-set, block the maximum error transmission value corresponding to j4, and use the recursive algorithm:

[0255] Func(j4)->{W1j(j4, nn), W2j(n, nn)}

[0256] n: information channel number;

[0257] j: 0-1, static layer, dynamic layer;

[0258] nn: node data sequence number;

[0259] j4: the serial number of the maximum error value;

[0260] The patrol adds an "off" information path to the W2j data subset, or the patrol adds an "on" information path to the W1j data subset, so that the information path corresponding to j4 is "off" or "on", corresponding to the normal or disease state respectively.

[0261] For the newly added information channel, calculate the area under the error curve:

[0262] MBD=∫EBD k (n)*Δn

[0263] k: dimension;

[0264] Δn: information pathway increment;

[0265] Using a recursive algorithm:

[0266] Func(j4, L)->Min{MBD}

[0267] j4: the serial number of the maximum error value;

[0268] L: maximum number of recursions;

[0269] The requirement that the contribution of the value transmitted by the newly added information path to the area is 0 is met. The above process is recursive for j4 to minimize the error result:

[0270] ΔEQi

[0271] A: Maximum allowable result error;

[0272] Advantages of the present invention:

[0273] The present invention utilizes neuroelectrophysiological technology, collects brain wave signals in real time, and uses the mathematical calculation algorithm of discrete signal processing to extract the characteristic components of the neural function state in the brain wave. By analyzing the changes in the functional state, it directly reflects the degree of cerebral ischemia and hypoxia. It is a new modality of ischemia and hypoxia quantitative measurement technology. Among them, the acquisition of brain wave primitive data, the establishment of the network structure model, and the neural network algorithm are a brain-like information processing process with static machine learning capabilities, growth and self-improvement. As the scale of system application gradually increases, the indicators grow and develop accordingly, gradually approaching the characteristics of accuracy. On-site edge computing applications and wearable applications maximize the application compliance of the system, allowing the application of the system to go out of the hospital and enter the healthy family environment, which is in line with the future development trend of modern clinical medicine with prevention as the main and treatment as the auxiliary. BRIEF DESCRIPTION OF THE DRAWINGS

[0274] Figure 1 This is the EEG signal acquisition circuit of the present invention.​

[0275] Figure 2 It is the connection relationship between the various wearable parts of the mobile information collection and transmission of the present invention.

[0276] Figure 3 Computational control circuit of wearable brain wave acquisition and transmission terminal.

[0277] Figure 4 Terminal power management circuit

[0278] Figure 5 Big Health Network Data Management Platform Application Architecture Diagram

[0279] Figure 6 Brain wave computational model DETAILED DESCRIPTION

[0280] The principle and structure of the present invention refer to Figure 1 , 2 A brain-computer interface system for extracting the state of cerebral ischemia and hypoxia through non-invasive brain waves, including the extraction and expression of characteristic components in brain waves caused by brain ischemia and hypoxia in various environmental conditions; using brain waves as raw signal processing data, discretely collecting them into a computer, applying a variety of mathematical calculation algorithms, decomposing brain waves into spatial components of the cortex, subcortex, left brain, and right brain, as well as time components that change with time, calculating and extracting more than a thousand regular characteristic units for each brain wave component, and using these data to form a four-dimensional three-layer network structure model. Among them, the calculated data, as the node data in the model, can be converted into "on" and "off" switch quantities through comparison of thresholds. The on and off switch quantities can be classified into "on" and "off" node data sets. The associated nodes in these data sets are connected as pathways under spatial coordinates and time coordinates. Each node data has its own transmission value, which is the difference between the node data and the threshold. The sum of the transmission values ​​of all nodes in each pathway is the data result of the pathway. The weighted sum of the results of all pathways is equal to the brain's ischemia-hypoxia index, which is used as a quantitative measure of the degree of ischemia-hypoxia caused by vascular reasons or excessive brain use.

[0281] The EEG sensor is worn on the forehead and ears of the head to non-invasively collect potential signals from multiple parts of the brain. The signals enter the computing unit through a preamplifier, a multi-stage integration circuit, and an analog-to-digital converter. The signal bandwidth includes ultra-high frequency components in the brain waves (brain wave components above 30 Hz). The EEG acquisition leads are set to include at least two leads or more of the left and right frontal lobes of the brain. After preamplification and analog-to-digital conversion, the leads enter the single-chip computer system, and then after data encryption and compression, they are directly transmitted to the computer unit via a wired method, or packaged via the TCP / IP protocol of the wireless communication control unit and sent to the Internet data server. The dedicated software system in the computer or server processes, calculates, displays, stores, and forwards the received EEG signals in real time. The computing part uses algorithms such as wavelet analysis, spectral analysis, and pattern recognition to decompose various effective components and artifacts related to scale, frequency, and time domain in the brain waves, and combine them into a new data stream, and then extracts feature data through various algorithms such as recursion, regression analysis, and correlation analysis.

[0282] The EEG signal acquisition unit has wired and wireless communication capabilities, and can be combined with a computer to form an integrated brain ischemia and hypoxia measurement system, or it can be combined with an Internet platform and a server to form a brain ischemia and hypoxia measurement system in a cloud computing mode, forming a remote medical service sharing platform for brain ischemia and hypoxia measurement data, forming a new mode of big data collection for brain ischemia and hypoxia measurement, and using 232 interface standards, 3G, 4G, Bluetooth, and WIFI communication technologies to achieve near-long-distance, multi-environment, and real-time EEG acquisition and transmission terminals. For the collected and amplified EEG analog signals, the single-chip computer implements discrete processing of analog-to-digital conversion, compresses, encrypts, and packages multiple EEG discrete signals in real time, realizes dynamic storage queue management, identifies communication lines, automatically switches communication modes, controls communication transmission, and real-time data packets are either directly transmitted to the computer (using the 232 communication interface) or directly sent to the cloud computing server via the wireless Internet platform. After calculation and processing by the computer or the cloud computing server, the brain ischemia and hypoxia measurement index EQi is formed and displayed on the computer terminal or mobile phone terminal.

[0283] The present invention relates to the manufacture of a sensor or a device, a mobile information collection and transmission terminal and related mobile communication terminals, fixed terminals, computing and data management software, etc., including a multi-channel EEG collection and processing part and non-invasive electrodes, a communication control module, and a computer and server for extracting and expressing EEG characteristic components for measuring cerebral ischemia and hypoxia.

[0284] The mobile information collection and transmission equipment includes a preamplifier circuit, a single-chip control circuit, a dynamic data link buffer circuit, a combined wireless communication access control circuit, a power supply circuit and other parts.

[0285] Through the brain wave receptor electrodes (bioelectric signal sensors) on the people, the multi-channel brain wave signals of the users are collected and transmitted to the filtering, noise control, and amplification input parts of the preamplifier circuit, and then sent to the analog-to-digital conversion circuit of the single-chip computer control part of the terminal through the corresponding channels. The single-chip computer control part obtains the digital brain wave data (including high-frequency brain waves above 30hz), and after the encryption and compression data processing process, the processed data stream is obtained and sent to the dynamic data link cache queue. The dynamic data link cache queue is a variable data storage and output structure. Depending on the network status, the structure of the data in the storage area is different. After the interrupt event of the network status change is triggered, the single-chip control circuit controls the different permutations and combinations of the collected data. Under the control of the write instruction, the storage queue data is written. Under the control of the read instruction of the single-chip control circuit, the data in the queue is output to the Bluetooth, wifi and 3G, 4G Internet communication module through the data port. The Internet communication module completes the functions of automatic dialing, network status identification, TCP mode signal modulation, packetization, and output of the network. The collected multi-channel EEG data can be directly sent to the computer by wired or wireless means, and automatically transmitted to the cloud computing server through the Internet platform.

[0286] The data center server manages the data sent by all mobile information collection and transmission terminals. Each terminal is set with a unique address code, which consists of the machine number, server number and the fixed IP address of the server:

[0287] Terminal machine address = unique address number within the server number range + server number + fixed IP address of the networking server

[0288] Maximum number of machines in the network = 65535

[0289] The mobile information collection and transmission terminal encrypts and compresses the data converted into digital signals. The integrated data stream enters the link storage queue. The data window is 7-15 bety

[0290] L stream window = m + addr + asyn + data

[0291] m is the encryption mark transmitted by the module, addr is the machine address, asyn is synchronization, and data is the encrypted data, including numerical data and waveform data

[0292] The terminal data transmission, status reception and command reception are the fundamental guarantee for the practical application of the system. It is also one of the key links for the safe use of the system. When a close-range computer is used as a processing platform, the terminal data directly receives data through the wifi or Bluetooth communication port configured on the computer, and the computer's operating system and the brain ischemia and hypoxia measurement application software complete all the work of data calculation, display and storage. At the same time, the terminal sends the original brain wave data to the Internet platform. In the set cloud processing server chain, the data is received, calculated, stored and displayed by the corresponding server equipped with a dedicated webserver application data flow control management software, and the result data is sent to the Internet platform in the same encrypted format for relevant personnel to share on different terminals in different geographical locations. Since GPRS or 3G, 4G communication technology is not a completely stable wireless communication platform in mobile. Many links can affect the effect of data transmission. For the transmission of numerical data, UDP packets can be used. Multiple transmissions are used to ensure that the server can receive a valid data entity once. For the transmission of waveform images, continuity and exclusivity are required. The transmission of waveform images must use TCP packets. The flow control capability of the single-chip computer is used to process the status of data transmission and the internal cache size in real time. Automatically identify and self-correct the real-time process of network communication, thereby controlling the direction of data flow and network call dialing. Set up a dynamic queue area for data links of up to six minutes. Ensure data integrity and improve fault tolerance.

[0293] Data is waiting to be connected to the network in the link storage queue. The network status trigger circuit triggers a network status event, and the event processing flow of the computing control unit enters different thread processing units according to the nature of the event. Under normal conditions, the link data is obtained, packetized using the TCP protocol, and the protocol packet is sent to the URL and port set in the network through the wireless network.

[0294] TCP protocol packet += (save_point++)*real_data→save_point++

[0295] save_point is the data address pointer, and real_data is the real-time data.

[0296] Dynamic data link management includes memory data queue management, data encryption management, and data compression management, covering the dynamic and coordinated functions of current data transmission.

[0297] The data transmission of the system adopts the public network and wireless mode. The encryption of data adopts the method that the data structure changes dynamically with the data content. The first change rule is to automatically arrange the position of each lead in the data stream according to the dynamic size of each lead value. Second, a 16-bit binary code weighted algorithm is used to perform real-time weighted calculations on the data stream to generate an encrypted data stream and send it to the Internet platform. Third, the data stream does not contain the user's personal identity information, and the corresponding information is bound in the user login system of the central workstation.

[0298] For mobile applications, the real-time data of each mobile information collection and transmission terminal is first transmitted to a server in the cloud computing server chain specified by the terminal address. The server runs a dedicated cloud computing processing real-time software package, data forwarding management software package, and user identity synchronization management software package. The server completes data calculation, identity matching, original and result data storage, forwarding, command generation and other intelligent information processing and monitoring software. The server cloud computing extracts quantitative expressions of brain states such as cerebral ischemia and hypoxia in real time, and computers, mobile phones, mobile tablets and other smart terminals distributed in different locations are responsible for real-time display and alarm of data. The server needs to connect to the public internet. t Internet requires a fixed IP address to be configured on the router. The server can be interconnected with the hospital intranet, establish a VPN channel between the intranet and the external network, and allow the calculation result information to enter the hospital intranet under the protection of multiple firewalls. Computers connected to the hospital intranet (including desktop computers, mobile phones, tablet computers, etc.) can be used as data display terminals, and the user's authority controls the software services that enter this system. A user identity management server is configured in the cloud computing server link and used as an identity registration workstation for users (including doctors, followers, and patients). This server is usually set up in the hospital's intranet. The software on it binds the data acquisition and transmission terminal address to the user's identity and assigns permissions. During all uses, the final ischemia and hypoxia measurement result data and all information such as the user's time and identity are uniformly stored in the corresponding database for preservation.

[0299] For non-mobile applications of medical real-time diagnosis, in order to meet the needs of timely data display and expression, the above-mentioned data processing mode of uploading data to the Internet platform in real time is adopted. At the same time, the terminal realizes data exchange through the WiFi or Bluetooth communication module configured on it and the WiFi and Bluetooth communication interface of the nearby computer (including desktop computers, tablets, etc.). The local version of the data calculation software on the computer performs calculation processing on the data, and the obtained results are displayed on the computer screen, completing the application of the traditional functional mode of the medical system. At the same time, the cloud computing results are synchronously transmitted to the mobile phones of medical personnel, realizing the application mode of portable mobile phone display and ischemia and hypoxia baseline trend management.

[0300] Medical staff's personal computers and mobile phones can directly obtain the diagnosis and treatment information of cerebral ischemia and hypoxia of different patients through the internet under the corresponding permissions. A special software package needs to be installed on the personal computer, and the mobile phone needs to download a special APP application software. Permission management should be included in the overall management authority of the hospital. At the same time, all operation records will be sent back to the cloud computing server and saved as raw data for tracking, mining and analysis. Real-time online interaction between doctors and users and between first-line and second-line doctors is achieved between computers or personal mobile communication terminals connected to the server. The exchange information is forwarded in both directions of the server to achieve the purpose of real-time two-way communication. The real-time interaction function is realized by the system software function.

[0301] The wireless communication control access module used by the data acquisition and transmission terminal can be replaced by a mobile phone. The mobile phone receives the encrypted data stream sent by the terminal through the Bluetooth function configured on it, with the support of the cerebral ischemia and hypoxia measurement application APP software. And after the process of display, calling, and forwarding, the data is sent to the Internet platform in real time and synchronously. Bluetooth communication is set up between the mobile phone and the terminal, and the pairing is performed. The Socket thread is used in the mobile phone APP to initialize the Bluetooth channel and enter the receiving process. The received data signal is decoded and displayed on the mobile phone screen in real time. At the same time, for the decoded data, the cloud computing server address and port address are extracted, and the received raw data is sent to the corresponding cloud computing server without any processing. The APP uses another Socket thread to receive the command data and result data sent by the corresponding server. The decryption calculation format of the data is the same as the data calculation format sent by the terminal. For the result data, the APP displays the data in real time on a fixed screen position of the mobile phone, so that users or doctors can observe the changes in physical conditions such as cerebral ischemia and hypoxia in real time. The download of the cerebral ischemia and hypoxia measurement application software requires the user to set the corresponding real identity information, using the ID number as the unique user identification code. At the same time as downloading, the user's personal profile is established in the user management server, which contains the identity information of the patient and the doctor used. If there are data confidentiality and attribution requirements, the server architecture can be set up on the hospital's intranet and then enter the Internet platform through a VPN encrypted protection channel. Once the user information is generated, the mobile phone APP software can become a data forwarding and result display terminal. There is no limit to the number of mobile phones that can download the pain application software.

[0302] For the processing of brain waves, the sampling frequency is 1400 / s, the sampling time window is 1.25s, and the sampling accuracy is 10-bit. Discrete processing is performed, and wavelet analysis, spectral analysis, pattern recognition and other algorithms are used to calculate the different component sequences of the brain and the time domain characteristics and multi-scale complexity characteristics of each sequence, and obtain the calculation result sequence of the first-level processing calculation, the primitive data sequence. This sequence corresponds to thousands of independent or weakly correlated regular features in the brain waves. For the brain waves collected from both sides of the forehead, there are electrooculogram components and frontal myoelectric components. In the wavelet processing calculation, these two bioelectric signal sequences can be decomposed and used as marker features of signal strength and interference signals. The wavelet formula is used:

[0303]

[0304] (a, τ), is the scaling factor and translation parameter of the wavelet transform;

[0305] ω, is the angular frequency of the wavelet transform;

[0306] ψ(a ω ), is the mother function of wavelet transform;

[0307] X(ω) is the wavelet transform result sequence of the original brain wave discrete sequence;

[0308] WT is the time domain signal sequence after inverse transformation;

[0309] For a set of EEG data vectors collected

[0310] b i1 (t) = [y 1 y 2 y 3 …y m-2 y m-1 y m ]

[0311] i1: number of EEG leads;

[0312] m: number of EEG data;

[0313] y: EEG data sequence;

[0314] t: time point;

[0315] Real-time calculation and processing, using multi-scale filter bank algorithm to decompose the wavelet basis functions under each scale window

[0316] (Wb(2^i,w i (r)))i∈z

[0317] (Wb(2^0,w 0 (r))), (Wb(2^1, w1 (r)))…(Wb(2^N,w N (r)))

[0318] w i (r): represents a set of result data sequences after wavelet transformation;

[0319] r: represents the sequence number in the data sequence;

[0320] z: time domain space;

[0321] i: scale;

[0322] For a set of wavelet basis functions and data of each scale, after discrete wavelet inverse transformation, a set of time domain reconstruction functions are obtained as follows:

[0323] f i (t) = ∑Wb(2^i, w i )*Ψ 2^i (u)

[0324] i: scale;

[0325] Wb: wavelet basis function;

[0326] w i : Result data after wavelet transform at each scale;

[0327] Ψ 2^0 (u),Ψ 2^1 (u)...Ψ 2^N (u): the mother function scale wavelet data point;

[0328] N: order;

[0329] u: data sequence number of the scaled wavelet data point;

[0330] t: time point;

[0331] Each reconstruction function represents the performance of brain waves, eye movement waves and muscle waves at different scales; the scale also corresponds to the frequency component of the signal, which is distributed in the regular rhythm and high-frequency rhythm of the EEG; the brain wave reconstruction function corresponding to a certain scale is selected as the cortical and subcortical atrioventricular EEG waves:

[0332] F i (t)∈{f i (t)>=A}

[0333] i: scale;

[0334] A: scale threshold, a constant;

[0335] t: time series;

[0336] fi (t): Reconstruction function set;

[0337] F i (t): cortical brain waves;

[0338] Secondly:

[0339] Fx i (t)∈{f i (t) <A}

[0340] i: scale;

[0341] A: scale threshold, a constant;

[0342] t: time series;

[0343] f i (t): Reconstruction function set;

[0344] Fx i (t): subcortical brain waves;

[0345] Two sets of reconstructed cortical brain waves and subcortical brain waves are obtained. For the left and right brain waves, the above calculations are performed separately to obtain the left and right cortical and subcortical brain waves:

[0346] Fs_r i (t)∈{f_r i (t) <A}

[0347] Fs_ i (t)∈{f_l i (t) <A}

[0348] Fx_r i (t)∈{f_r i (t) <A}

[0349] Fx_ i (t)∈{f_l i (t) <A}

[0350] i: scale;

[0351] t: time series;

[0352] r: right brain lead;

[0353] l: left brain lead;

[0354] A: scale threshold;

[0355] The above formula constructs the three-dimensional spatial structure of the left and right brain, cortex, and subcortex under spatial resolution. For each sequence data of the above decomposed reconstruction function, the waveform recognition algorithm in the pattern recognition algorithm is used to extract the feature points of the data:

[0356] T ik (h)∈{Fs_r i (t), Fs_l i (t), Fx_r i (t), Fx_l i (t)};

[0357] T: eigenvalue vector;

[0358] i: scale;

[0359] k: dimension, 0-3, representing left and right brain, cortex, subcortex

[0360] h: serial number of feature data;

[0361] t: time series;

[0362] Vector T ik The characteristic data in (h) include the calculation results of singularity, amplitude, variation, slope, area, autocorrelation, and cross-correlation, which are calculated from the basic algorithm:

[0363] Data Series:

[0364] y(t,i)=(ff i (j)-ff i (j-1)) / Δt

[0365] j: time discrete data subscript;

[0366] i: scale;

[0367] t: time point;

[0368] Δt: time increment;

[0369] ff: F series refactoring function centralized function

[0370] By obtaining the maximum value in the sequence y(t, i), one of the characteristic indexes can be obtained. The positive and negative inversion points are the singularities, and the number of singularities is represented by the size of the t value.

[0371] For ff i (t) Apply iterative differentiation algorithm to sequence data:

[0372] d(j2,v)=∑(ff i (j2+v)-ff i (j2+v-1) / (Δt+v))

[0373] v: The increment of Δt, from 1..N; N is a constant.

[0374] j2: numerical sequence number of the time point;

[0375] i: scale;

[0376] For each vector in the matrix d(j2, v), the data points in the vector are sorted and added, and the maximum value and the sum of the values ​​in each vector are selected as the slope and amplitude.

[0377] For the reconstruction function ff i (t)=[t 1 t 2 t 3 …t m-2 t m-1 t m ], the processed result vectors y(t, i) and d(j2, v) are generated into pattern classes ω1, ω2, …, ωc, and then the distance function between the patterns is used to calculate the distance of each reconstruction function; the variation, autocorrelation, and cross-correlation values ​​of the reconstruction function are obtained.

[0378] Calculate the reconstruction function ff i The integral of (t):

[0379] S i =∫ff i (t)*Δt

[0380] i: scale;

[0381] t: time point;

[0382] Δt: time interval;

[0383] Find the area value of each function.

[0384] Select T ik (h) For some variable data in the data set, calculate the area of ​​the curve under the time resolution, and then find its difference and derivative to obtain multiple sets of data:

[0385] U ik (j)=(∫T ik (h)*Δt-∫T ik (h 1 )*Δt) / Δt

[0386] i: scale;

[0387] j: sequence;

[0388] k: dimension;

[0389] h: variable;

[0390] Δt: time increment;

[0391] Dataset U ik(j) A dynamic layer dataset is formed to reflect the digital dynamic changes of brain waves.

[0392] T ik (h) The vector expresses the waveform characteristics and rules of the reconstruction function, and constitutes part of the primitive data. For the collected electrooculogram signals and frontal muscle signals, they are distributed in the reconstruction functions of a specific scale. For these reconstruction functions, first, the first-order derivatives are obtained:

[0393] D i (t)=(ff i (t)-ff i (t+m)) / Δt

[0394] i: scale;

[0395] t: time point;

[0396] Δt: time interval;

[0397] m: time increment;

[0398] Right D i (t) sort, get the maximum and minimum values, set the threshold Q (set constant), and then find D i The positive and negative polarity variation points of (t) give a set of extreme point vectors:

[0399] M i (t1); high point;

[0400] m i (t1); low point;

[0401] i: scale;

[0402] tl: time point of extreme value;

[0403] An integration algorithm is applied to the relevant reconstruction function:

[0404] E = ∫ff i (t)^2*Δt

[0405] Get the power value of myoelectricity and eye movement; for the result data, after normalization and combination algorithm:

[0406] Sq = exp(a*abs(Mi-mi)+b*E);

[0407] a, b: weighting coefficients, constants, determined by the signal expression range;

[0408] Sq can obtain a quantitative expression of the signal strength indicating interference as one of the displayed results;

[0409] The reconstruction function eliminates the EEG wavelet reconstruction components of eye movement and electromyography, and uses the power spectrum algorithm:

[0410]

[0411] ff i (t): EEG wavelet reconstruction function;

[0412] t: time point;

[0413] ω1: angular frequency of the power spectrum;

[0414] i: scale;

[0415] j1: data window value for power spectrum calculation;

[0416] dt: time increment

[0417] The various components of the power spectrum in the reconstruction function can be obtained, including the values ​​of the αβδθ bands. se f, me f

[0418] Edge frequency, dominant frequency value:

[0419] P ik ={α,β,δ,θ,sef,mef};

[0420] i: scale;

[0421] k: dimension

[0422] αβδθ: power percentage of each band;

[0423] sef: edge frequency of power spectrum calculation;

[0424] mef: center frequency of power spectrum calculation;

[0425] The feature vectors obtained by waveform recognition are combined into a set of feature data covering the frequency domain:

[0426] G ik (jj k 3)={T ik , P ik , U ik};

[0427] i: scale;

[0428] k: dimension

[0429] jj k 3: characteristic data sequence number;

[0430] Data vector G ik (jj k3) group, as the result of a processing of the EEG wavelet reconstruction function, is named as the primitive data set of EEG. The EEG acquisition time window Z is selected, and within the time window, for the primitive data set, a static data node group and a dynamic data node group are formed:

[0431] B k (n)∈{T ik , P ik}

[0432] D k (n)∈{U ik}

[0433] n: sequence number, 0-N, containing all data of scale i and dimension k;

[0434] i: scale;

[0435] k: dimension

[0436] T: vector data of reconstruction function;

[0437] P: power spectrum data of the reconstruction function;

[0438] Determine the data thresholds for static data node groups and dynamic data node groups:

[0439] YB k (n)=( A ok (n)- A hk (n)) / 2

[0440] YD k (n)=( C ok (n)- C hk (n)) / 2

[0441] n: serial number;

[0442] k: dimension

[0443] o: normal population group;

[0444] h: severe population group;

[0445] A ok : The mean of the initial group of normal person node data;

[0446] A hk : The mean of the initial group of severe patients’ node data;

[0447] C ok : The mean of the initial set of normal person node data;

[0448] C hk : The mean of the initial group of severe patients’ node data;

[0449] For data node B k (n) and D k (n), converted into switch data of "on" and "off":

[0450] X bk = {B k (n)>YB k (n)∈ A ok > A hk , B k (n)<YB k (n)∈ A ok < A hk}

[0451] X bk ={D k (n)>YD k (n)∈ C ok > C hk , D k (n)<YD k (n)∈ C ok < C hk}

[0452] k: dimension;

[0453] o: normal population group;

[0454] h: disease population group;

[0455] X bk : Static switch value, "on" is 1, "off" is 0;

[0456] X dk : Dynamic switch value, "on" is 1, "off" is 0;

[0457] Create a data set containing all "on" and "off" data nodes:

[0458] SS k (n)∈{X bk , X ok}

[0459] n: node serial number;

[0460] k: dimension;

[0461] In SS kIn the data set, we select the “passed” data nodes of the four spaces of the left and right brain, cortex, and subcortex in the static layer and dynamic layer respectively to form four node subsets:

[0462] O kj (n) = {SS k (n)==1}

[0463] H kj (n) = {SS k (n)==1}

[0464] k: dimension, 0-3, corresponding to left and right brain, cortex, and subcortex;

[0465] n: node serial number;

[0466] j: 0-1, representing the static layer and the dynamic layer respectively;

[0467] O: normal group;

[0468] H: disease population group;

[0469] 0 kj (n) and H kj (n) Perform an XOR operation:

[0470] W kj (n)=0 kj (n)&|H kj (n)

[0471] &|: XOR operation;

[0472] k: dimension;

[0473] n: serial number;

[0474] j: 0-1, representing the static layer and the dynamic layer respectively;

[0475] W kj The same node data with 1 in the static layer and dynamic layer data sets in (n) are connected and defined as information paths, forming a set of “connected” information path subsets:

[0476] W1 j (n,nn)

[0477] n: information channel number;

[0478] nn: node data sequence number;

[0479] j: 0-1, representing the static layer and the dynamic layer respectively;

[0480] W kj(n) The same node data with 0 in the static layer and dynamic layer data sets are connected to form a set of "broken" information path subsets:

[0481] W2 j (n,nn)

[0482] n: information channel number;

[0483] nn: node data sequence number;

[0484] j: 0-1, representing the static layer and the dynamic layer respectively;

[0485] W1 j 、W2 j Calculation of midpoint data:

[0486] BA1={|B-YB|}

[0487] DA1={|BD-YD|}

[0488] BA2={|B-YB|}

[0489] DA2={|BD-YD|}

[0490] ||: absolute value expression;

[0491] B: static node primitive data value;

[0492] YB: static node data threshold;

[0493] D: dynamic node primitive data value;

[0494] YD: dynamic node data threshold;

[0495] Defined as the transfer value of node data. The sum of the transfer values ​​of static and dynamic data nodes in the four spaces of left and right brain, cortex, and subcortex:

[0496] EQi=∑{DA1 j , BA1 j , aa j}-∑{DA2 j , BA2 j ,bb j};

[0497] j: 4 spaces;

[0498] DA: Dynamically transfer values;

[0499] BA: static transfer value;

[0500] aa: subset weighting coefficient

[0501] bb: weight coefficient of sub-subset

[0502] EQi: ischemia-hypoxia index;

[0503] Threshold YB for data nodes in the sub-dataset k (n), YD k (n), adopting the inverse error algorithm, by setting the threshold increment variable, changing the threshold level forward and reverse successively, the goal is set to minimize the area under the error gradient curve, forming an iterative algorithm, and finally optimizing the threshold level.

[0504] Add primitive data for normal or diseased individuals to form individual data sets:

[0505] W1 j (n1,nn1)

[0506] W2 j (n1,nn1)

[0507] n1: individual information channel number;

[0508] nn1: individual node data serial number;

[0509] j: 0-1, static layer and dynamic layer;

[0510] Get the error gradient function corresponding to the transferred value:

[0511] EBD k (n)=|W1 j (n1,nn1)-W1 j (n,nn)|

[0512] k: dimension;

[0513] n: information channel sequence number;

[0514] nn: node data sequence number;

[0515] n1: Individual information channel number

[0516] nn1: individual node data serial number;

[0517] j: 0-1, static layer and dynamic layer;

[0518] Compute the maximum value of the error gradient function:

[0519] EBD k _MAX(j4)=Max|EBD k (n)|

[0520] n: information channel number

[0521] j4: the serial number of the maximum error value;

[0522] k: dimension

[0523] Set the threshold increment Δy and calculate the area under the error curve:

[0524] MBD=∫EBD k (n)*Δn

[0525] k: dimension;

[0526] Δn: information pathway increment;

[0527] A recursive algorithm is used to meet the requirement that the conditional area decreases by 20% of the error value or the number of rounds L:

[0528] Func(j4,Δy,L)->Min{MBD}

[0529] j4: the serial number of the maximum error value;

[0530] Δy: threshold increment, fixed constant;

[0531] L: maximum number of recursions;

[0532] Get the threshold at which the error curve area drops by 20%:

[0533] YB(j4)=YB(j4)+Δy

[0534] YD(j4)=YD(j4)+Δy

[0535] j4: the serial number of the maximum error value;

[0536] Δy: threshold increment, fixed constant;

[0537] The above process is recursively performed on j4, and finally the threshold increment Δy (forward or reverse) with the smallest area under the error curve is satisfied, thereby obtaining the learned YB and YD.

[0538] Adding primitive data for normal or diseased individuals, the resulting error gradient function and resulting error value:

[0539] EBDk(n)=|W1 j (n1,nn1)-W1 j (n,nn)|

[0540] ΔEQi=EQi-EQia

[0541] n: information channel number;

[0542] a: individual;

[0543] EQi: Ideal outcome;

[0544] EQia: individual outcome;

[0545] After the patrol, the maximum error value of the positioning error gradient function is:

[0546] EBD k _MAX(j4)

[0547] For the information path corresponding to j4, recursively search the information path in the W2j sub-set, block the maximum error transmission value corresponding to j4, and use the recursive algorithm:

[0548] Func(j4)->{W1 j (j4,nn),W2 j (n,nn)}

[0549] n: information channel number;

[0550] j: 0-1, static layer, dynamic layer;

[0551] nn: node data sequence number;

[0552] j4: the serial number of the maximum error value;

[0553] Patrol adds "broken" information channel to W2 j Data sub-collection, or patrol to add a "pass" information channel to W1 j The data subset makes the information pathway corresponding to j4 “off” or “on”, corresponding to the normal or disease state respectively.

[0554] For the newly added information channel, calculate the area under the error curve:

[0555] MBD=∫EBD k (n)*Δn

[0556] k: dimension;

[0557] Δn: information pathway increment;

[0558] Using a recursive algorithm:

[0559] Func(j4, L)->Min{MBD}

[0560] j4: the serial number of the maximum error value;

[0561] L: Maximum number of recursions.

Claims

1. The present invention discloses a brain-computer interface system for extracting the ischemic and hypoxic state of the brain through non-invasive brain waves. The system collects multi-lead non-invasive brain wave data for a period of time, decomposes the cortical and subcortical components of the brain wave through two-ventricle brain wave calculation, and combines the left and right brain brain waves to form four-quadrant brain wave components. Using wavelet analysis, spectrum analysis, pattern recognition and other algorithms, more than 1,000 brain wave feature data are calculated for the brain waves in the four quadrants, named as primitive data, and the collection is called primitive data set, which is used as the basic data for model calculation. A three-dimensional structure of brain waves in the four quadrants of left and right brain, cortex, and subcortex is established to form a static architecture for three-dimensional brain wave analysis, which is called a static layer. The time dimension is added, and the dynamic changes of the primitive data under the time resolution are calculated to obtain a dynamic architecture of four-dimensional brain waves, which is called a dynamic layer. The coordinates of each dimension are the left brain, right brain, cortex, subcortex and time scale, and the characteristic variable coordinates of the primitive data set. The data of the coordinate point in the four-dimensional two-layer structure space is primitive data, which is called node data. The connection of data of each spatial node forms a network structure, which is called an information pathway network. If the information pathway is "on", it is defined as coordinated between spaces, otherwise it is "off", which is defined as uncoordinated. All coordinated information pathways form the output layer, and finally form a four-dimensional three-layer structure calculation model. The sum of the node values ​​of the output layer is the cerebral ischemia and hypoxia index. Coordination is divided into static coordination under spatial resolution and dynamic coordination under temporal resolution. Ischemia and hypoxia of the brain will lead to changes in coordination, which often means changes in the state of brain neural function, and the two have an inheritance relationship. The present invention is based on electrophysiological technology, and from the perspective of the results of changes in neural function state caused by ischemia and hypoxia, a quantitative indicator EQi that directly reflects cerebral ischemia and hypoxia is obtained. The EQi indicator has the static learning attribute of the machine. With the increase of primitive data, the number of coordinated information pathways increases accordingly, the threshold of node data on and off approaches precision, and the accuracy of EQi increases accordingly. This technology that uses network algorithms to achieve precision is a manifestation of artificial intelligence. Using EQi as a measurement indicator, the resulting equipment can provide a simple, real-time, economical, and highly compliant objective and quantitative measurement tool for cerebral ischemia and hypoxia. It can be used for real-time evaluation of treatment effects in clinical treatment of stroke, as well as a screening tool for early diagnosis of stroke in big health applications. It can be used in proactive medical services and preventive treatments, forming an innovative clinical medical therapeutic model of initial screening, appointment arrangements, imaging localization and diagnosis, and preventive treatment, which is of great value.

2. A brain-computer interface system for extracting the state of cerebral ischemia and hypoxia through non-invasive brain waves, characterized in that: The system includes: a two-lead non-invasive EEG acquisition front-end device; a two-lead wired non-invasive EEG acquisition sensor; a two-lead wireless wearable EEG acquisition sensor; a system computing main computer (including an edge computer host and a cloud computing server computer host); a display unit (display or mobile terminals such as mobile phones and mobile tablets) and an input keyboard (soft and hard); by wearing an EEG acquisition sensor on the head, the EEG signal on the surface of the forehead skin is collected and transmitted to the EEG acquisition front-end device. The signal is filtered, amplified, and converted to analog, and transmitted to the computer or mobile terminal by wire or wireless Bluetooth. The mobile terminal transmits the EEG digital signal to the cloud computing server via wifi or the Internet. After the computer or server receives the EEG signal, the wavelet analysis algorithm is used to perform interference decomposition and two-chamber decomposition algorithm on the EEG to obtain interference signal components including eye movement and skin electromyography tremor, as well as cortical EEG and subcortical EEG components. The two-lead EEG can form a four-quadrant cortical and subcortical EEG decomposition signal. For the decomposed quadrant signals, for these independent signals, combined algorithms such as wavelet algorithm, power spectrum analysis algorithm and pattern recognition algorithm are used to obtain multiple sets of one-time calculation primitive data. According to the spatial structure and multivariate data variable set, the data is combined into a multidimensional node static data network structure. The horizontal coordinate of the two-dimensional plane distribution is the multivariate data set, the vertical coordinate is the left and right brain data distribution, and the three-dimensional space coordinate is the cortical and subcortical data. For each data node of the three-dimensional structure, the time dimension is added to form a four-dimensional data node structure in which the node data changes with time. For the four-dimensional data network, the dynamic change data between the nodes at the time resolution (part of the one-time primitive data) is calculated as a layer structure to form a four-dimensional multi-layer structure data model. In order to reduce the computational complexity, only the dynamic change data layer of the two-dimensional cortical part node data and the three-dimensional subcortical part node data is built. The four-dimensional structure node value built by the brain wave one-time calculation primitive data within a period of time is the static data layer at the spatial resolution. Taking the data of each node in the structure as the element of the information flow path, the arrangement and combination of nodes can form a four-dimensional two-layer structure network data information path set. The output layer of information flow is set, and the final ischemia-hypoxia index is obtained, which is defined as the weighted sum of the data of the output layer nodes. The concept of coordination is introduced. Coordination refers to an information path composed of multiple data nodes, and the status of all data nodes on it is "connected", which is defined as a coordinated path. The data nodes of the output layer are a set of network information paths that are partially "connected" in the set of two-layer network data information paths. They are initially divided into a set of "connected" two-dimensional cortical left and right brain network information paths, and a set of "connected" three-dimensional subcortical left and right brain network information paths, forming four nodes of the output layer, which are called the static coordination components of the data under spatial resolution, and the values ​​are related to the size of the data of each data node in the "connected" path.Similarly, the dynamic layer will also form four nodes of the output layer, which are called the dynamic coordination components of the data under time resolution, and the values ​​are also related to the size of the data nodes in the "through" path. The "on" and "off" of the network information path are defined as setting a threshold for the primitive data value of each node and converting it into a binary value of "1" and "0", which is defined as "on" or "off". The sum of the difference between the primitive data value and the threshold of the "through" information path of each node is called the transmission data, which is one of the coordination contributions of the information flow of this "through" path to the node data of the output layer. The weighted sum of the transmission data of all "through" paths associated with the output layer nodes is the node data of the output layer. The determination of the initial threshold is determined by a group of primitive data sets calculated once for the brain waves of a group of normal people and a group of patients with a clear diagnosis of severe ischemia and hypoxia. The threshold values ​​of the primitive data of each node of the two groups of people determine the subsets of the network coordination information pathways of the static pathway and the dynamic pathway, which can be described as the coordinated expression of static and dynamic coordination or disharmony, and the difference of information pathways between the two subsets corresponding to the two groups of people can also be described as the coordinated expression of coordination degree or disharmony degree. For the two groups of people, a subset of network information pathways that blocks the information pathways of the two groups can be established, which is called a sub-subset. That is, due to the existence of some information "passing" pathways, some information pathways that were originally "passing" are blocked. All information pathway subsets and sub-subsets can affect the node data values ​​of the output layer. The weighted sum of the output layer node data obtains the final brain ischemia and hypoxia index. The weighting coefficient is determined by the number (coordination degree) of static and dynamic pathway subsets and sub-subset information pathways. After the initial threshold is determined, with the increase in the number of normal people and patients with diseases, the basic data and transmission data formed can optimize the collection, subset, and sub-sub-collection of each information pathway, gradually accurately adjust the size of the static coordination threshold under the spatial resolution and the dynamic coordination threshold under the time resolution of the information node, and continuously increase the number of information pathways in the collection, subset, and sub-sub-collection, so as to accurately calculate the ischemia-hypoxia index. Using the basic data and transmission data of a new person, the reverse error algorithm is used to establish the subset and sub-sub-collection error gradient sequence for the collection, subset, and sub-sub-collection of network information pathways. By setting the threshold increment variable, the threshold level is changed forward and reversely one by one. The goal is set to minimize the area under the error gradient curve, forming an iterative algorithm, and finally optimizing the threshold level. Similarly, the information pathway with the maximum value of the error gradient sequence of the person is located, and the successive patrol algorithm is used to locate a certain information pathway to the sub-sub-collection to block the information pathway with the maximum error in the error gradient sequence. This process is repeated and iterated to finally achieve the goal of minimizing the area under the error gradient curve.With the accumulation of data, the node data threshold is gradually optimized, and the number of information pathways in the set increases, the rationality of the output layer node data is improved, and the output ischemia-hypoxia index is close to accuracy, meeting the relevance and specificity requirements of clinical applications. The calculation of primitive data mainly uses the wavelet formula: (α, τ), is the scaling factor and translation parameter of the wavelet transform; ω, is the angular frequency of the wavelet transform; ψ(a ω ), is the mother function of wavelet transform; X(ω) is the wavelet transform result sequence of the original brain wave discrete sequence; WT is the time domain signal sequence after inverse transformation; For a set of collected EEG data vector groups b i1 (t)=[y1 y2 y3 … y m-2 y m-1 y m ] i1: number of EEG leads; m: number of EEG data; y: EEG data sequence; t; time point; Real-time calculation and processing, using multi-scale filter bank algorithm to decompose the wavelet basis functions under each scale window (Wb(2^i,w i (r)))i∈z (Wb(2^0,w0(r))),(Wb(2^1,w1(r)))…(Wb(2^N,w N (r))) w i (r): represents a set of result data sequences after wavelet transformation; r: represents the sequence number in the data sequence; z: time domain space; i: scale; For a set of wavelet basis functions and data of each scale, after discrete wavelet inverse transformation, a set of time domain reconstruction functions are obtained as follows: f i (t)=∑Wb(2^i,w i )*Ψ 2^i (u) i: scale; Wb: wavelet basis function; w i : Result data after wavelet transform at each scale; Ψ 2^0 (u),Ψ 2^1 (u)…Ψ 2^N (u): the mother function scale wavelet data point; N: order; u: data sequence number of the scaled wavelet data point; t: time point; Each reconstruction function represents the performance of brain waves, eye movement waves and muscle waves at different scales; the scale also corresponds to the frequency component of the signal, which is distributed in the regular rhythm and high-frequency rhythm of the EEG; the brain wave reconstruction function corresponding to a certain scale is selected as the cortical and subcortical atrioventricular EEG waves: Fs i (t)∈{f i (t)>=A} i: scale; A: scale threshold, a constant; t: time series; f i (t): Reconstruction function set; F i (t): cortical brain waves; Secondly: Fx i (t)∈{f i (t)<A} i: scale; A: scale threshold, a constant; t: time series; f i (t): Reconstruction function set; Fx i (t): subcortical brain waves; Two sets of reconstructed cortical brain waves and subcortical brain waves are obtained. For the left and right brain waves, the above calculations are performed separately to obtain the left and right cortical and subcortical brain waves: Fs_r i (t)∈{f_r i (t)<A} Fs_l i (t)∈{f_l i (t)<A} Fx_r i (t)∈{f_r i (t)<A} Fx_l i (t)∈{f_l i (t) <A} i: scale; t: time series; r: right brain lead; l: left brain lead; A: scale threshold; The above formula constructs the three-dimensional spatial structure of the left and right brain, cortex, and subcortex under spatial resolution. For each sequence data of the above decomposed reconstruction function, the waveform recognition algorithm in the pattern recognition algorithm is used to extract the feature points of the data: T ik (h)∈{Fs_r i (t),Fs_l i (t),Fx_r i (t),Fx_l i (t)}; T: eigenvalue vector; i: scale; k: dimension, 0-3, representing left and right brain, cortex, subcortex h: serial number of feature data; t: time series; Vector T ik The characteristic data in (h) include the calculation results of singularity, amplitude, variation, slope, area, autocorrelation, and cross-correlation, which are calculated from the basic algorithm: Data Series: y(t,i)=(ff i (j)-ff i (j-1)) / Δt j: time discrete data subscript; i: scale; t: time point; Δt: time increment; ff: F series refactoring function centralized function By obtaining the maximum value in the sequence y(t, i), one of the characteristic indexes can be obtained. The positive and negative inversion points are the singularities, and the number of singularities is represented by the size of the t value. For ff i (t) Apply iterative differentiation algorithm to sequence data: d(j2,v)=∑(ff i (j2+v)-ff1(j2+v-1) / (Δt+v)) v: The increment of Δt, from 1..N; N is a constant. j2: numerical sequence number of the time point; i: scale; For each vector in the matrix d(j2, v), the data points in the vector are sorted and added, and the maximum value and the sum of the values ​​in each vector are selected as the slope and amplitude. For the reconstruction function ff i (t) = [t1t2t3…t m-2 t m-1 t m ], the processed result vectors y(t, i) and d(j2, v) are generated into pattern classes ω1, ω2, …, ωc, and then the distance function between the patterns is used to calculate the distance of each reconstruction function; the variation, autocorrelation, and cross-correlation values ​​of the reconstruction function are obtained. Calculate the reconstruction function ff i The integral of (t): S i =∫ff i (t)*Δt i: scale; t: time point; Δt: time interval; Find the area value of each function. Select T ik (h) For some variable data in the data set, calculate the area of ​​the curve under the time resolution, and then find its difference and derivative to obtain multiple sets of data: U ik (j)=(∫T ik (h)*Δt-∫T ik (h1)*Δt) / Δt i: scale; j: sequence; k: dimension; h: variable; Δt: time increment; Dataset U ik (j) A dynamic layer dataset is formed to reflect the digital dynamic changes of brain waves. T ik (h) The vector expresses the waveform characteristics and rules of the reconstruction function, and constitutes part of the primitive data. For the collected EEG signals and frontal muscle signals, they are distributed in the reconstruction functions of a specific scale. For these reconstruction functions, first, the first-order derivatives are obtained: D i (t)=(ff i (t)-ff i (t+m)) / Δt i: scale; t: time point; Δt: time interval; m: time increment; Right D i (t) sort, get the maximum and minimum values, set the threshold Q (set constant), and then find D i The positive and negative polarity variation points of (t) give a set of extreme point vectors: M i (t1); high point; m i (t1); low point; i: scale; t1: time point of extreme value; An integration algorithm is applied to the relevant reconstruction function: E=∫ff i (t)^2*Δt Get the power value of myoelectricity and eye movement; for the result data, after normalization and combination algorithm: Sq = exp(a*abs(Mi-mi)+b*E); a, b: weighting coefficients, constants, determined by the signal expression range; Sq can obtain a quantitative expression of the signal strength indicating interference as one of the displayed results; The reconstruction function eliminates the EEG wavelet reconstruction components of eye movement and electromyography, and uses the power spectrum algorithm: ff i (t): EEG wavelet reconstruction function; t: time point; ω1: angular frequency of the power spectrum; i: scale; j1: data window value for power spectrum calculation; dt: time increment The various components of the power spectrum in the reconstruction function can be obtained, including the values ​​of the αβδθ bands, sef, mef Edge frequency, dominant frequency value: P ik ={α, β, δ, θ, sef, mef}; i: scale; k: dimension αβδθ: power percentage of each band; sef: edge frequency of power spectrum calculation; mef: center frequency of power spectrum calculation; The feature vectors obtained by waveform recognition are combined into a set of feature data covering the frequency domain: G ik (jj k 3)={T ik ,P ik ,U ik }; i: scale; k: dimension jj k 3: characteristic data sequence number; Data vector G ik (jj k 3) group, as the result of a processing of the EEG wavelet reconstruction function, is named as the primitive data set of EEG. The EEG acquisition time window Z is selected, and within the time window, for the primitive data set, a static data node group and a dynamic data node group are formed: B k (n)∈{T ik ,P ik } D k (n)∈{U ik } n: sequence number, 0-N, containing all data of scale i and dimension k; i: scale; k: dimension T: vector data of reconstruction function; P: power spectrum data of the reconstruction function; Determine the data thresholds for static data node groups and dynamic data node groups: YB k (n)=( A ok (n)- A hk (n)) / 2 YD k (n)=( C ok (n)- C hk (n)) / 2 n: serial number; k: dimension o: normal population group; h: severe population group; A ok : The mean of the initial group of normal person node data; A hk : The mean of the initial group of severe patients’ node data; C ok : The mean of the initial group of normal person node data; C hk : The mean of the initial group of severe patients’ node data; For data node B k (n) and D k (n), converted into switch data of "on" and "off": X bk ={B k (n)>YB k (n)∈ A ok > A hk ,B k (n)<YB k (n)∈ A ok < A hk } X dk ={D k (n)>YD k (n)∈ C ok > C hk ,D k (n)<YD k (n)∈ C ok < C hk } k: dimension; o: normal population group; h: disease population group; X bk : Static switch value, "on" is 1, "off" is 0; X dk : Dynamic switch value, "on" is 1, "off" is 0; Create a data set containing all "on" and "off" data nodes: SS k (n)∈{X bk ,X ok } n: node serial number; k: dimension; In SS k In the data set, we select the "pass" data nodes of the four spaces of the left and right brain, cortex, and subcortex in the static layer and dynamic layer respectively to form four node subsets: HE kj (n)={SS k (n)==1} H kj (n)={SS k (n)==1} k: dimension, 0-3, corresponding to left and right brain, cortex, and subcortex; n: node serial number; j: 0-1, representing the static layer and the dynamic layer respectively; O: normal group; H: disease population group; O kj (n) and H kj (n) Perform an XOR operation: W kj (n)=O kj (n)&|H kj (n) &|: XOR operation; k: dimension; n: serial number; j: 0-1, representing the static layer and the dynamic layer respectively; W kj The same node data with 1 in the static layer and dynamic layer data sets in (n) are connected and defined as information paths, forming a set of "connected" information path subsets: W1 j (n,nn) n: information channel number; nn: node data sequence number; j: 0-1, representing the static layer and the dynamic layer respectively; W kj (n) The same node data with 0 in the static layer and dynamic layer data sets are connected to form a set of "broken" information path subsets: W2 j (n, nn) n: information channel number; nn: node data sequence number; j: 0-1, representing the static layer and the dynamic layer respectively; W1 j 、W2 j Calculation of midpoint data: BA1={|B-YB|} DA1={|BD-YD|} BA2={|B-YB|} DA2={|BD-YD|} ||: absolute value expression; B: static node primitive data value; YB: static node data threshold; D: dynamic node primitive data value; YD: dynamic node data threshold; Defined as the transfer value of node data. The sum of the transfer values ​​of static and dynamic data nodes in the four spaces of left and right brain, cortex, and subcortex: <h2 style=";text-align:left;direction:ltr">EQi=∑{DA1<h2 style=";text-align:left;direction:ltr"> j <h2 style=";text-align:left;direction:ltr"> BA1<h2 style=";text-align:left;direction:ltr"> j <h2 style=";text-align:left;direction:ltr"> ,aa<h2 style=";text-align:left;direction:ltr"> j <h2 style=";text-align:left;direction:ltr">}-∑{DA2<h2 style=";text-align:left;direction:ltr"> j <h2 style=";text-align:left;direction:ltr"> BA2<h2 style=";text-align:left;direction:ltr"> j <h2 style=";text-align:left;direction:ltr"> ,bb<h2 style=";text-align:left;direction:ltr"> j <h2 style=";text-align:left;direction:ltr">}; j: 4 spaces; DA: Dynamically transfer values; BA; static transfer value; aa: subset weighting coefficient bb: weight coefficient of sub-subset EQi: ischemia-hypoxia index; Threshold YB for data nodes in the sub-dataset k (n), YD k (n), adopting the inverse error algorithm, by setting the threshold increment variable, changing the threshold level forward and reverse successively, the goal is set to minimize the area under the error gradient curve, forming an iterative algorithm, and finally optimizing the threshold level. Add primitive data for normal or diseased individuals to form individual data sets: W1 j (n1, nn1) W2 j (n1, nn1) n1: individual information channel number; nn1: individual node data serial number; j: 0-1, static layer and dynamic layer; Get the error gradient function corresponding to the transferred value: EBD k (n)=|W1 j (n1,nn1)-W1 j (n,nn)| k: dimension; n: information channel sequence number; nn: node data sequence number; n1: Individual information channel number nn1: individual node data serial number; j: 0-1, static layer and dynamic layer; Compute the maximum value of the error gradient function: EBD k _MAX(j4)=Max|EBD k (n)| n: information channel number j4: the serial number of the maximum error value; k: dimension Set the threshold increment Δy and calculate the area under the error curve: MBD=∫EBD k (n)*Δn k: dimension; Δn: information pathway increment; A recursive algorithm is used to meet the requirement that the conditional area decreases by 20% of the error value or the number of rounds L: Func(j4,Δy,L)->Min{MBD} j4: the serial number of the maximum error value; Δy: threshold increment, fixed constant; L: maximum number of recursions; Get the threshold at which the error curve area drops by 20%: YB(j4)=YB(j4)+Δy YD(j4)=YD(j4)+Δy j4: the serial number of the maximum error value; Δy: threshold increment, fixed constant; The above process is recursively performed on j4, and finally the threshold increment Δy (forward or reverse) with the smallest area under the error curve is satisfied, thereby obtaining the learned YB and YD. Adding primitive data for normal or diseased individuals, the resulting error gradient function and resulting error value: <h2 style=";text-align:left;direction:ltr">EBDk(n) =|W1<h2 style=";text-align:left;direction:ltr"> j <h2 style=";text-align:left;direction:ltr"> (n1, nn1)-W1<h2 style=";text-align:left;direction:ltr"> j <h2 style=";text-align:left;direction:ltr"> (n,nn)| ΔEQi=EQi-EQia n: information channel number; a: individual; EQi: Ideal outcome; EQia: individual outcome; After the patrol, the maximum error value of the positioning error gradient function is: EBD k _MAX(j4) For the information path corresponding to j4, in W2 j The recursive information path in the sub-subset blocks the maximum error transmission value corresponding to j4 and adopts the recursive algorithm: Func(j4)->{W1 j (j4,nn),W2 j (n,nn)} n: information channel number; j: 0-1, static layer, dynamic layer; nn: node data sequence number; j4: the serial number of the maximum error value; Patrol adds "broken" information channel to W2 i Data sub-collection, or patrol to add a "pass" information channel to W1 j The data subset makes the information pathway corresponding to j4 "disconnected" or "connected", corresponding to the normal or disease state respectively. For the newly added information path, calculate the area under the error curve: MBD=∫EBD k (n)*Δn k: dimension; Δn: information pathway increment; Using a recursive algorithm: Func(j4, L)->Min{MBD} j4: the serial number of the maximum error value; L: maximum number of recursions; The requirement that the contribution of the value transmitted by the newly added information path to the area is 0 is met. The above process is recursive for j4 to minimize the error result: ΔEQi A: Maximum permissible result error. ​ 3. A brain-computer interface system for extracting the cerebral ischemia and hypoxia state through non-invasive EEG as claimed in claim 1, which comprises a two-lead wireless wearable EEG acquisition sensor and a wired EEG acquisition sensor, characterized in that: The system can be applied to edge computing and cloud computing. Wireless wearable sensors can use mobile terminals such as mobile phones and mobile tablets as a transfer to upload brain wave data to the cloud server. After the server calculates, the results are directly returned to the mobile terminal, and the result data and trend charts are displayed in a fixed format, as well as analysis result reports and real-time alarms, to achieve the 5G+ networked real-time application mode. At the same time, for the data results obtained by cloud computing, a big data pool can be built to realize active disease discovery and active health management functions such as central monitoring, data baseline management, data statistical analysis, disease prediction and early warning. Based on the results of baseline analysis, diagnosis and treatment suggestions are actively made to the user's mobile terminal, the diagnosis and treatment process is arranged, and the diagnosis and treatment process data and treatment results are recorded to form an information system of digital disease and health information for a single disease, creating a new model of systematic closed-loop, active, and continuous clinical medicine for pre-discovery screening of diseases, arranging medical treatment, further diagnosis, preventive treatment, rehabilitation result evaluation, and data archiving. Information integration includes the edge computing unit connected to the wired EEG acquisition sensor. In addition to displaying measurement data, trend charts, analysis result reports and real-time alarms on the local computer, the calculation result data is directly uploaded to the cloud server and integrated with the mobile application data to complete the application of closed-loop active medical and health management for disease and health baseline management. The information flow of wireless wearable EEG acquisition sensors includes: EEG signals are transmitted to the front unit of the wearable sensor through a set of metal electrodes that contact the forehead of the brain and the mastoids of both ears. After amplification, filtering and integration, the signal is transmitted to the analog-to-digital conversion circuit of the wearable sensor computing unit and converted into a digital signal. After being packaged and encrypted by the computing unit, it is transmitted to the external mobile terminal for processing and further data upload via the Bluetooth system in the data packet format.