WO2023273640A1 - Epilepsy detection method and apparatus - Google Patents

Epilepsy detection method and apparatus Download PDF

Info

Publication number
WO2023273640A1
WO2023273640A1 PCT/CN2022/092800 CN2022092800W WO2023273640A1 WO 2023273640 A1 WO2023273640 A1 WO 2023273640A1 CN 2022092800 W CN2022092800 W CN 2022092800W WO 2023273640 A1 WO2023273640 A1 WO 2023273640A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
state
terminal device
accelerometer
detection result
Prior art date
Application number
PCT/CN2022/092800
Other languages
French (fr)
Chinese (zh)
Inventor
邸皓轩
李丹洪
张晓武
Original Assignee
荣耀终端有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 荣耀终端有限公司 filed Critical 荣耀终端有限公司
Publication of WO2023273640A1 publication Critical patent/WO2023273640A1/en

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/02Detecting, measuring or recording pulse, heart rate, blood pressure or blood flow; Combined pulse/heart-rate/blood pressure determination; Evaluating a cardiovascular condition not otherwise provided for, e.g. using combinations of techniques provided for in this group with electrocardiography or electroauscultation; Heart catheters for measuring blood pressure
    • A61B5/0205Simultaneously evaluating both cardiovascular conditions and different types of body conditions, e.g. heart and respiratory condition
    • A61B5/02055Simultaneously evaluating both cardiovascular condition and temperature
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/02Detecting, measuring or recording pulse, heart rate, blood pressure or blood flow; Combined pulse/heart-rate/blood pressure determination; Evaluating a cardiovascular condition not otherwise provided for, e.g. using combinations of techniques provided for in this group with electrocardiography or electroauscultation; Heart catheters for measuring blood pressure
    • A61B5/0205Simultaneously evaluating both cardiovascular conditions and different types of body conditions, e.g. heart and respiratory condition
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/02Detecting, measuring or recording pulse, heart rate, blood pressure or blood flow; Combined pulse/heart-rate/blood pressure determination; Evaluating a cardiovascular condition not otherwise provided for, e.g. using combinations of techniques provided for in this group with electrocardiography or electroauscultation; Heart catheters for measuring blood pressure
    • A61B5/024Detecting, measuring or recording pulse rate or heart rate
    • A61B5/02416Detecting, measuring or recording pulse rate or heart rate using photoplethysmograph signals, e.g. generated by infrared radiation
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/05Detecting, measuring or recording for diagnosis by means of electric currents or magnetic fields; Measuring using microwaves or radio waves 
    • A61B5/053Measuring electrical impedance or conductance of a portion of the body
    • A61B5/0531Measuring skin impedance
    • A61B5/0533Measuring galvanic skin response
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/103Detecting, measuring or recording devices for testing the shape, pattern, colour, size or movement of the body or parts thereof, for diagnostic purposes
    • A61B5/11Measuring movement of the entire body or parts thereof, e.g. head or hand tremor, mobility of a limb
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/103Detecting, measuring or recording devices for testing the shape, pattern, colour, size or movement of the body or parts thereof, for diagnostic purposes
    • A61B5/11Measuring movement of the entire body or parts thereof, e.g. head or hand tremor, mobility of a limb
    • A61B5/1116Determining posture transitions
    • A61B5/1117Fall detection
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/24Detecting, measuring or recording bioelectric or biomagnetic signals of the body or parts thereof
    • A61B5/316Modalities, i.e. specific diagnostic methods
    • A61B5/389Electromyography [EMG]
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/40Detecting, measuring or recording for evaluating the nervous system
    • A61B5/4076Diagnosing or monitoring particular conditions of the nervous system
    • A61B5/4094Diagnosing or monitoring seizure diseases, e.g. epilepsy
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/68Arrangements of detecting, measuring or recording means, e.g. sensors, in relation to patient
    • A61B5/6801Arrangements of detecting, measuring or recording means, e.g. sensors, in relation to patient specially adapted to be attached to or worn on the body surface
    • A61B5/6802Sensor mounted on worn items
    • A61B5/681Wristwatch-type devices
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/72Signal processing specially adapted for physiological signals or for diagnostic purposes
    • A61B5/7235Details of waveform analysis
    • A61B5/725Details of waveform analysis using specific filters therefor, e.g. Kalman or adaptive filters
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/72Signal processing specially adapted for physiological signals or for diagnostic purposes
    • A61B5/7235Details of waveform analysis
    • A61B5/7264Classification of physiological signals or data, e.g. using neural networks, statistical classifiers, expert systems or fuzzy systems
    • A61B5/7267Classification of physiological signals or data, e.g. using neural networks, statistical classifiers, expert systems or fuzzy systems involving training the classification device
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B2562/00Details of sensors; Constructional details of sensor housings or probes; Accessories for sensors
    • A61B2562/02Details of sensors specially adapted for in-vivo measurements
    • A61B2562/0219Inertial sensors, e.g. accelerometers, gyroscopes, tilt switches
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B2562/00Details of sensors; Constructional details of sensor housings or probes; Accessories for sensors
    • A61B2562/02Details of sensors specially adapted for in-vivo measurements
    • A61B2562/0247Pressure sensors
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B2562/00Details of sensors; Constructional details of sensor housings or probes; Accessories for sensors
    • A61B2562/02Details of sensors specially adapted for in-vivo measurements
    • A61B2562/0271Thermal or temperature sensors

Definitions

  • the present application relates to the field of terminal technology, and in particular to a method and device for detecting epilepsy.
  • Epilepsy is a chronic, non-communicable disease of the brain characterized by recurrent seizures. When a seizure occurs, a part of the body or the whole body can undergo brief involuntary convulsions (also known as partial seizures or generalized seizures), and sometimes seizures are also accompanied by loss of consciousness or incontinence of the user , Epilepsy currently affects approximately 50 million people worldwide. Therefore, the detection of epilepsy is of great significance.
  • professional detection equipment such as EEG equipment
  • EEG equipment can be used to detect the abnormal discharge of brain neurons of epilepsy patients, and then determine whether the epilepsy patients are in a state of epileptic seizures.
  • Embodiments of the present application provide a method and device for detecting epilepsy, which can realize real-time detection of epilepsy.
  • an embodiment of the present application provides a method for epilepsy detection.
  • the terminal device includes an acceleration sensor and an inductance sensor.
  • the method includes: the terminal device acquires first data; the first data includes accelerometer data and electrical signal data; the accelerometer data is collected by the acceleration sensor, and the electrical signal data is collected by the inductance sensor; the terminal device extracts the first motion amplitude characteristic data and the depth characteristic data from the accelerometer data; the first motion amplitude characteristic data is data used for fall detection; the terminal device extracts the first motion amplitude characteristic data from the The second motion amplitude feature data is extracted from the accelerometer data; the second motion amplitude feature data is data used for twitch detection; the terminal device inputs the first motion amplitude feature data and depth feature data into the first neural network model to obtain fall detection Result; the terminal device inputs the second motion range characteristic data into the second neural network model to obtain the twitch detection result; the first motion range is greater than the second motion range; when the fall detection result satisfies the first preset
  • the first motion amplitude feature data can be the traditional feature in the fall detection method described in the embodiment of the application
  • the depth feature data can be the depth feature in the fall detection method described in the embodiment of the application
  • the first neural network model It can be the fall detection model described in the embodiment of the present application
  • the second motion amplitude characteristic data can be the traditional feature in the twitch detection method described in the embodiment of the present application
  • the second neural network model can be the one described in the embodiment of the present application Twitch detection model
  • the first preset condition can be that the state corresponding to the first data in the fall detection result satisfies the fall state
  • the second preset condition can be that the state corresponding to the first data in the twitch detection result satisfies the twitch state
  • the third The preset condition can be that when the rate of change of the electrical signal data exceeds the rate of change threshold, the muscle stiffness detection result indicates that the state corresponding to the first data is a muscle stiffness state
  • the first range of motion can be
  • the depth feature data is obtained by the terminal device using the third neural network model to extract the depth feature from the accelerometer data.
  • the deep feature extraction of the accelerometer data can use the deep feature to achieve accurate recognition of the fall state.
  • the third neural network model may be the convolutional neural network model in the fall detection method described in the embodiment of the present application.
  • the third neural network model is obtained by the terminal device based on accelerometer sample data training, the third neural network model includes an input module, a depth convolution module, a point convolution module and an output module, and the depth
  • the convolution module includes a convolution calculation layer with a kernel of 3*3, the first normalization layer, and the first stretch to the same latitude layer
  • the point convolution module includes a convolution calculation layer with a kernel of 1*1, the first Two normalize layers and a second stretch to the same latitude layer.
  • the first motion amplitude characteristic data includes at least one of the following: acceleration intensity vector SMV, maximum value of SMV, minimum value of SMV, difference between maximum value and minimum value of SMV, FFT feature vector, acceleration rate of change , SMV average, acceleration variance, x-axis acceleration mean, y-axis acceleration mean or z-axis acceleration mean.
  • the second motion amplitude characteristic data includes at least one of the following: SMV average value, acceleration variance, average deviation, difference between the maximum accelerometer data and the minimum accelerometer data on the x-axis, and the maximum acceleration on the y-axis The difference between the accelerometer data and the minimum accelerometer data, or the z-axis maximum accelerometer data and the minimum accelerometer data.
  • the first neural network model is trained based on the motion amplitude feature sample data corresponding to the accelerometer sample data and the depth feature sample data corresponding to the accelerometer data, and the first neural network model has four layers Fully connected neural network model, the first neural network model includes the input layer, the first hidden layer, the second hidden layer and the output layer; the nodes in the input layer include the number of nodes and the depth corresponding to the first motion amplitude feature data The number of nodes corresponding to the feature data.
  • the motion amplitude feature sample data corresponding to the accelerometer sample data can be the traditional feature sample data of the accelerometer data in the fall detection method described in the embodiment of the present application; the depth feature sample data corresponding to the accelerometer data can be this The depth feature sample data of the accelerometer data in the fall detection method described in the embodiment of the application.
  • the number of nodes in the input layer is 45
  • the number of nodes corresponding to the first motion amplitude feature data is 10
  • the number of nodes corresponding to the depth feature data is 35
  • the number of nodes in the output layer is 2.
  • the terminal device extracts the second motion amplitude characteristic data from the accelerometer data, including: the terminal device uses mean filtering to filter the accelerometer data to obtain filtered data; the terminal device determines the filtered Whether the processed data satisfies the first state, the second state and/or the third state; the first state is the state in which the difference between adjacent accelerometer data in the filtered data is 0, and the second state is the filtering process The difference value of the adjacent accelerometer data in the post data satisfies the state of the first difference value range; The third state is the state that the difference value of the adjacent accelerometer data in the filtered data satisfies the second difference value range; When the terminal device determines that the filtered data does not satisfy the first state, the second state and/or the third state, the terminal device extracts the second motion amplitude feature data from the filtered data. In this way, the terminal device can avoid the impact of the static state, walking or running state and/or phase micro-movement state on the twitch detection by judging
  • the first state may be the static state described in the embodiment of the present application
  • the second state may be the walking or running state described in the embodiment of the present application
  • the third state may be the phase micro-motion state described in the embodiment of the present application
  • the first difference range may be greater than the second difference range.
  • the terminal device extracts the first motion amplitude feature data and depth feature data from the accelerometer data, including: the terminal device uses a filter to filter the accelerometer data to obtain filtered data; The terminal device performs down-sampling processing on the filtered data to obtain the down-sampled data; the terminal device extracts the first motion amplitude characteristic data and depth characteristic data from the down-sampled data.
  • the above-mentioned processing process can remove the influence of noise in the data, and reduce the memory occupation of the above-mentioned data in subsequent models.
  • the filter has a window length of L 1 and an amplitude of filter, the filtered data Acc L (t) satisfies the following formula:
  • Acc(t) is accelerometer data, and i is an integer greater than or equal to 0.
  • the method further includes: the terminal device displays a first interface; the first interface includes warning information; the warning information is used to indicate that the user is in a state of epileptic seizure; when the terminal device receives an operation on the warning information , the terminal device displays the second interface; the second interface is an interface corresponding to the desktop of the terminal device.
  • the terminal device can realize real-time monitoring and recording of the user's epileptic seizure state, and reflect the current epileptic state on the interface in time, so that the user can easily notice it.
  • the method further includes: the terminal device sends the epileptic seizure state to other devices, and the other device is a device corresponding to an emergency contact during an epileptic seizure recorded by the terminal device.
  • the terminal device sends the epileptic seizure state to other devices
  • the other device is a device corresponding to an emergency contact during an epileptic seizure recorded by the terminal device.
  • the electrical signal data is a surface electromyography signal sEMG.
  • the first data further includes temperature data and heart rate data.
  • the twitch detection result satisfies the second preset condition, and/or the muscle stiffness detection result satisfies the third preset condition
  • the preset conditions include: when the fall detection result meets the first preset condition, the twitch detection result meets the second preset condition and/or the muscle stiffness detection result meets the third preset condition, and, in a possible implementation manner Among them, when the heart rate data meets the fourth preset condition and/or the temperature data meets the fifth preset condition; wherein, the terminal device also includes a temperature sensor and a proximity light sensor, the temperature data is collected by the temperature sensor, and the heart rate data is collected by the proximity light sensor Collected.
  • the fourth preset condition may be that the heart rate data exceeds 30% of the average heart rate data recorded by the terminal device
  • the fifth preset condition may be that the temperature data exceeds 30% of the average temperature data recorded by the terminal device.
  • an embodiment of the present application provides an epilepsy detection device.
  • the terminal device includes an acceleration sensor and an inductance sensor.
  • the device includes: a processing unit for acquiring first data; the first data includes accelerometer data and electrical signal data; The meter data is collected by the accelerometer, and the electrical signal data is collected by the inductance sensor; the processing unit is also used to extract the first motion amplitude feature data and depth feature data from the accelerometer data; the first motion amplitude feature data is used for falling Detected data; the processing unit is also used to extract the second amplitude of motion characteristic data from the accelerometer data; the second amplitude of motion characteristic data is data used for convulsion detection; the processing unit is also used to extract the first amplitude of motion characteristic data and depth feature data are input to the first neural network model to obtain the fall detection result; the processing unit is also used to input the second motion range feature data to the second neural network model to obtain the twitch detection result; the first motion range is greater than the second Range of motion; when the fall detection result meets the first
  • the depth feature data is obtained by the terminal device using the third neural network model to extract the depth feature from the accelerometer data.
  • the third neural network model is obtained by the terminal device based on accelerometer sample data training, the third neural network model includes an input module, a depth convolution module, a point convolution module and an output module, and the depth
  • the convolution module includes a convolution calculation layer with a kernel of 3*3, the first normalization layer, and the first stretch to the same latitude layer
  • the point convolution module includes a convolution calculation layer with a kernel of 1*1, the first Two normalize layers and a second stretch to the same latitude layer.
  • the first motion amplitude characteristic data includes at least one of the following: acceleration intensity vector SMV, maximum value of SMV, minimum value of SMV, difference between maximum value and minimum value of SMV, FFT feature vector, acceleration rate of change , SMV average, acceleration variance, x-axis acceleration mean, y-axis acceleration mean or z-axis acceleration mean.
  • the second motion amplitude characteristic data includes at least one of the following: SMV average value, acceleration variance, average deviation, difference between the maximum accelerometer data and the minimum accelerometer data on the x-axis, and the maximum acceleration on the y-axis The difference between the accelerometer data and the minimum accelerometer data, or the z-axis maximum accelerometer data and the minimum accelerometer data.
  • the first neural network model is trained based on the motion amplitude feature sample data corresponding to the accelerometer sample data and the depth feature sample data corresponding to the accelerometer data, and the first neural network model has four layers Fully connected neural network model, the first neural network model includes the input layer, the first hidden layer, the second hidden layer and the output layer; the nodes in the input layer include the number of nodes and the depth corresponding to the first motion amplitude feature data The number of nodes corresponding to the feature data.
  • the number of nodes in the input layer is 45
  • the number of nodes corresponding to the first motion amplitude feature data is 10
  • the number of nodes corresponding to the depth feature data is 35
  • the number of nodes in the output layer is 2.
  • the processing unit is specifically configured to filter the accelerometer data by means of mean filtering to obtain filtered data; the determining unit is specifically configured to determine whether the filtered data satisfies the first state , the second state and/or the third state; the first state is the state in which the difference between the adjacent accelerometer data in the filtered data is 0, and the second state is the adjacent accelerometer in the filtered data The state in which the data difference satisfies the first difference range; the third state is the state in which the difference between adjacent accelerometer data in the filtered data satisfies the second difference range; when the terminal device determines that the filtered data When the first state, the second state and/or the third state are not satisfied, the processing unit is further specifically configured to extract the second motion amplitude characteristic data from the filtered data.
  • the processing unit is specifically configured to: use a filter to filter the accelerometer data to obtain the filtered data; perform down-sampling processing to the filtered data to obtain the down-sampled data; extracting first motion amplitude feature data and depth feature data from the down-sampled data.
  • the filter has a window length of L 1 and an amplitude of filter, the filtered data Acc L (t) satisfies the following formula:
  • Acc(t) is accelerometer data, and i is an integer greater than or equal to 0.
  • the display unit is configured to display a first interface; the first interface includes warning information; the warning information is used to indicate that the user is in a state of epileptic seizure; when the terminal device receives an operation on the warning information,
  • the display unit is further configured to display a second interface; the second interface is an interface corresponding to the desktop of the terminal device.
  • the communication unit is configured to send the epileptic seizure state to other devices, and the other device is a device corresponding to an emergency contact during an epileptic seizure recorded by the terminal device.
  • the electrical signal data is a surface electromyography signal sEMG.
  • the first data further includes temperature data and heart rate data.
  • Preset conditions include: when the fall detection result meets the first preset condition, the twitch detection result meets the second preset condition and/or the muscle stiffness detection result meets the third preset condition, and the heart rate data satisfies the fourth preset condition When the condition and/or the temperature data meet the fifth preset condition; wherein, the terminal device further includes a temperature sensor and a proximity light sensor, the temperature data is collected by the temperature sensor, and the heart rate data is collected by the proximity light sensor.
  • the embodiment of the present application provides an epilepsy detection device, including a processor and a memory, the memory is used to store code instructions; the processor is used to run the code instructions, so that the electronic device can perform any of the first aspect or the first aspect.
  • the embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores instructions, and when the instructions are executed, the computer executes the first aspect or any implementation manner of the first aspect.
  • a computer program product includes a computer program.
  • the computer program executes the epilepsy detection method as described in the first aspect or any implementation manner of the first aspect.
  • FIG. 1 is a schematic diagram of a scene provided by an embodiment of the present application.
  • FIG. 2 is a schematic structural diagram of a terminal device provided in an embodiment of the present application.
  • FIG. 3 is a schematic diagram of an epilepsy detection framework provided by an embodiment of the present application.
  • FIG. 4 is a schematic flow chart of a fall detection method provided in an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a convolutional neural network model provided in an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of a fall detection model provided in an embodiment of the present application.
  • FIG. 7 is a schematic flowchart of a fall detection method provided in an embodiment of the present application.
  • FIG. 8 is a schematic interface diagram of a terminal device provided in an embodiment of the present application.
  • FIG. 9 is a schematic interface diagram of another terminal device provided in the embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of an epilepsy detection device provided in an embodiment of the present application.
  • FIG. 11 is a schematic diagram of a hardware structure of a control device provided in an embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of a chip provided by an embodiment of the present application.
  • words such as “first” and “second” are used to distinguish the same or similar items with basically the same function and effect.
  • the first value and the second value are only used to distinguish different values, and their sequence is not limited.
  • words such as “first” and “second” do not limit the number and execution order, and words such as “first” and “second” do not necessarily limit the difference.
  • At least one means one or more, and “multiple” means two or more.
  • “And/or” describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone, where A, B can be singular or plural.
  • the character “/” generally indicates that the contextual objects are an “or” relationship.
  • “At least one of the following” or similar expressions refer to any combination of these items, including any combination of single or plural items.
  • At least one item (piece) of a, b, or c can represent: a, b, c, a and b, a and c, b and c, or a, b and c, wherein a, b, c can be single or multiple.
  • Epilepsy is a chronic non-infectious disease of the brain. Epilepsy is usually accompanied by transient symptoms, such as sudden falls, convulsions, or muscle stiffness. Epilepsy seriously affects the quality of life of epilepsy patients and their families. Therefore, the detection of epilepsy is of great significance.
  • professional detection equipment such as EEG equipment
  • EEG equipment can be used to detect the abnormal discharge of brain neurons of epilepsy patients, and then determine whether the epilepsy patients are in a state of epileptic seizures.
  • the real-time detection of epilepsy is difficult.
  • the shortest onset time can be less than 3 seconds (s), which makes people around epilepsy patients or doctors It is difficult to detect the onset of epileptic patients in the first place, and it is easy to cause missed detection; moreover, due to the frequent seizures of epileptic patients, it is often difficult for patients to judge whether they are in a state of epileptic seizures. For example, when an epileptic patient falls suddenly, due to The difficulty in detecting whether a fall is related to a seizure in this patient with epilepsy makes the detection of epilepsy even more difficult.
  • an embodiment of the present application provides an epilepsy detection method.
  • the terminal device can detect epilepsy symptoms based on sensors, such as identifying whether the user is experiencing symptoms such as falls, convulsions, or muscle stiffness; furthermore, the terminal device Based on the recognized seizure symptoms of the user and the abnormality of the user's physical characteristics, it can be further identified whether the user is in a seizure state, so that the terminal device can not only realize the accuracy and real-time detection of seizures, but also detect seizures The status is notified in time to the emergency contacts or doctors bound to the epilepsy patient's terminal device, so as to speed up the progress of epilepsy treatment and avoid missing the best treatment time.
  • the above-mentioned terminal device may be a wearable device, such as a smart watch, a smart bracelet, a wearable virtual reality (virtual reality, VR) device, or a wearable augmented reality (augmented reality, AR) device Wait.
  • the above-mentioned terminal device may also be a smart phone or a tablet.
  • no limitation is imposed on the specific technology and specific device form adopted by the terminal device.
  • FIG. 1 is a schematic diagram of a scenario provided by an embodiment of the present application.
  • this scenario may include 101, and the user 101 may carry a terminal device 102 capable of detecting epilepsy, for example, the terminal device may be a wearable device such as a smart watch or a smart bracelet.
  • the terminal device 102 can detect the current state of the user 101 based on built-in sensors, for example, detect whether the user 101 is in a state of stillness, movement, fall, twitching or muscle stiffness, or can also detect the user's body temperature or Human characteristics such as heart rate.
  • the terminal device 102 when the terminal device 102 detects that the user 101 is in a falling state based on the acceleration sensor, and detects that the body temperature of the user 101 exceeds 30% of the normal body temperature recorded by the terminal device 102 based on the temperature sensor, the terminal device 102 can If the body temperature is abnormal, it is determined that the user 101 is in an epileptic seizure, and then the terminal device 102 can record the time of the epileptic seizure, and send information such as the onset of the epileptic patient or the location of the epileptic patient to the emergency contact recorded by the terminal device 102 .
  • FIG. 2 is a schematic structural diagram of a terminal device provided in an embodiment of the present application.
  • the terminal device may include a processor 110, an internal memory 121, a universal serial bus (universal serial bus, USB) interface, a charging management module 140, a power management module 141, an antenna 1, an antenna 2, a mobile communication module 150, and a wireless communication module 160 , an audio module 170, a speaker 170A, a receiver 170B, a sensor module 180, a button 190, an indicator 192, a camera 193, and a display screen 194, etc.
  • a processor 110 an internal memory 121, a universal serial bus (universal serial bus, USB) interface, a charging management module 140, a power management module 141, an antenna 1, an antenna 2, a mobile communication module 150, and a wireless communication module 160 , an audio module 170, a speaker 170A, a receiver 170B, a sensor module 180, a button 190, an indicator 192, a camera 193, and a display screen 194, etc.
  • USB universal serial bus
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, an inductance sensor 180F, a proximity light sensor 180G, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone Conductivity sensor 180M etc.
  • the structure shown in the embodiment of the present application does not constitute a specific limitation on the terminal device.
  • the terminal device may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components.
  • the illustrated components can be realized in hardware, software or a combination of software and hardware.
  • Processor 110 may include one or more processing units. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the charging management module 140 is configured to receive a charging input from a charger.
  • the charger may be a wireless charger or a wired charger.
  • the power management module 141 is used for connecting the charging management module 140 and the processor 110 .
  • the wireless communication function of the terminal device can be realized by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Antennas in end devices can be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
  • the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on terminal equipment.
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
  • the wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite system ( global navigation satellite system (GNSS), frequency modulation (frequency modulation, FM) and other wireless communication solutions.
  • WLAN wireless local area networks
  • Wi-Fi wireless fidelity
  • BT Bluetooth
  • GNSS global navigation satellite system
  • FM frequency modulation
  • the terminal device realizes the display function through the GPU, the display screen 194, and the application processor.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • the display screen 194 is used to display images, videos and the like.
  • the display screen 194 includes a display panel.
  • the terminal device may include 1 or N display screens 194, where N is a positive integer greater than 1.
  • the terminal device can realize the shooting function through ISP, camera 193 , video codec, GPU, display screen 194 and application processor.
  • Camera 193 is used to capture still images or video.
  • the terminal device may include 1 or N cameras 193, where N is a positive integer greater than 1.
  • the internal memory 121 may be used to store computer-executable program codes including instructions.
  • the internal memory 121 may include an area for storing programs and an area for storing data.
  • the terminal device can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, and the application processor. Such as music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal.
  • Speaker 170A also referred to as a "horn” is used to convert audio electrical signals into sound signals.
  • the terminal device can listen to music through the speaker 170A, or listen to hands-free calls.
  • Receiver 170B also called “earpiece”, is used to convert audio electrical signals into sound signals. When the terminal device answers a phone call or voice information, the receiver 170B can be placed close to the human ear to listen to the voice.
  • the pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal.
  • pressure sensor 180A may be disposed on display screen 194 .
  • the gyroscope sensor 180B can be used to determine the motion posture of the terminal device.
  • the air pressure sensor 180C is used to measure air pressure.
  • the magnetic sensor 180D includes a Hall sensor.
  • the acceleration sensor 180E can detect the acceleration of the terminal device in various directions.
  • the acceleration sensor 180E can be a three-axis (including x-axis, y-axis and z-axis) accelerometer sensor, which is used to measure the user's accelerometer in the state of falling, non-falling, twitching and non-twitching. data (or accelerometer data or acceleration data, etc.).
  • the inductance sensor 180F is used to detect the electrical skin signal of the human body, and the change of the electrical skin signal of the human body can be used to represent the tension degree of the muscles in the skin.
  • the inductance sensor 180F may be used to detect surface electromyography (sEMG), etc., and the sEMG may be a biological current generated by the contraction of the surface muscles of the human body. For example, when the inductance sensor 180F detects that the sEMG signal suddenly increases within a short period of time, the terminal device may determine that the user's muscles are in a stiff state at this time.
  • the proximity light sensor 180G may include, for example, a light emitting diode (light emitting diode, LED) and a light detector, and the light detector may be a photodiode (photo diode, PD).
  • the proximity light sensor 180G may use photoplethysmography (photoplethysmographic, PPG) to detect the user's heart rate or other human body characteristics.
  • the LED in the proximity light sensor 180G can be used to emit light sources such as red light, green light or infrared light
  • the PD in the proximity light sensor 180G can be used to receive the LED light signal and process the light signal into an electrical signal .
  • PD can be used to receive the light signal sent by LED and reflected back by skin tissue, and process the signal into an electrical signal, and then the terminal device can detect the user's heart rate, breathing rate or blood oxygen based on the electrical signal. feature.
  • the ambient light sensor 180L is used for sensing ambient light brightness.
  • the temperature sensor 180J is used to detect temperature. In the embodiment of the present application, when the terminal device touches the user's skin, the temperature sensor 180J can be used to measure the temperature of the skin (or it can also be understood as the user's body temperature).
  • the touch sensor 180K is also called “touch device”.
  • the touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the keys 190 include a power key, a volume key and the like.
  • the key 190 may be a mechanical key. It can also be a touch button.
  • the terminal device can receive key input and generate key signal input related to user settings and function control of the terminal device.
  • the indicator 192 can be an indicator light, which can be used to indicate the charging status, the change of the battery capacity, and can also be used to indicate messages, missed calls or notifications, etc.
  • FIG. 3 is a schematic diagram of an epilepsy detection architecture provided by an embodiment of the present application.
  • the epilepsy detection architecture may include: a fall detection module 301 , a twitch detection module 302 , a forearm muscle electrical signal detection module 303 , a health assistance module 304 , and an epilepsy detection module 305 .
  • the fall detection module 301 is used to detect whether the user is in a state of falling; the twitch detection module 302 is used to detect whether the user is in a twitch state; the forearm muscle electrical signal detection module 303 is used to detect whether the user is in a muscle stiffness state; the health assistance module 304 It is used to detect the user's human body characteristics, which can be heart rate or body temperature, etc.; the epilepsy detection module 305 is used to detect whether the user is in an epileptic seizure according to the user's fall state, convulsion state, or muscle stiffness state, etc., as well as the user's human body characteristics state.
  • the terminal device can obtain the user's accelerometer data based on the three-axis accelerometer sensor, perform traditional feature extraction and deep feature extraction of the fall state based on the above accelerometer data, and input the above traditional features and depth features into Prediction is made in the trained fall detection model, and then the terminal device can output the fall detection result corresponding to the traditional feature and the deep feature, for example, the user is in a falling state or the user is in a non-falling state.
  • the fall detection model is obtained by training the accelerometer sample data of the epileptic patient in the falling state and the accelerometer sample data of the epileptic patient in the non-falling state.
  • the traditional feature can be understood as a feature that can be obtained based on simple calculation or statistics of the accelerometer data
  • the deep feature can be a deeper and more abstract feature obtained by further mining the accelerometer data based on the neural network model.
  • the terminal device can obtain the user's accelerometer data based on the three-axis accelerometer sensor, and judge whether the user is in a static state, walking or running state, and relatively inching state based on the above accelerometer data. For the above three states, the terminal device can extract the traditional feature of the twitch state based on the above accelerometer data, and input the above traditional feature into the trained twitch detection model for prediction, and then the terminal device can output the twitch corresponding to the traditional feature Detection results, for example, the user is in a twitching state or the user is in a non-twitching state.
  • the twitch detection model is obtained by training the accelerometer sample data of epileptic patients in twitch state and the accelerometer sample data of epileptic patients in non-twitch state.
  • the terminal device can detect the sEMG signal on the user's skin surface based on the inductive sensor, and determine whether the forearm muscle is stiff by detecting whether the sEMG signal suddenly increases in a short time.
  • the terminal device when the user wears the smart bracelet at different parts, the smart bracelet can detect muscle stiffness in different parts. For example, when the user wears the smart bracelet in the wrist, the smart bracelet can determine whether the forearm muscles are stiff based on the detected sEMG signal; or, when the user wears the smart bracelet in the ankle, the smart bracelet can also Based on the detected sEMG signal, it is determined whether the calf muscle is stiff.
  • the terminal device may detect the user's body temperature based on the temperature sensor, or detect the user's heart rate and other human body characteristics based on the proximity light sensor. It can be understood that the human body features used for epilepsy detection and acquisition may include other content according to actual scenarios, which is not limited in this embodiment of the present application.
  • the terminal device determines that the user meets at least one of the state of falling, convulsions, or muscle stiffness, and the terminal device determines that the user's heart rate exceeds 30% of the heart rate in the normal state, and/or the user When the body temperature exceeds 30% of the body temperature in a normal state, the terminal device can determine that the user is in a state of epileptic seizures.
  • the terminal device can not only realize the real-time detection of the user's epilepsy, but also accurately identify the specific symptoms of epilepsy, and then the doctor can accurately judge the condition of the epilepsy patient based on the detected data of the epilepsy.
  • the epilepsy detection solution provided in the embodiments of the present application can not only detect the seizures of epilepsy patients in real time, but also identify the specific symptoms of epilepsy, for example, the symptoms of epilepsy are falls, convulsions, or muscle stiffness. Therefore, in the embodiment of the present application, the detection of the state of falling (as shown in the corresponding embodiment in Figure 4), the detection of the twitching state (as in the embodiment corresponding to Figure 7), the detection of the state of muscle stiffness, and the detection of the state based on the falling state can be realized. , twitch state, muscle stiffness state and user's human body data to realize the detection of epilepsy state.
  • FIG. 4 is a schematic flowchart of a fall detection method provided in an embodiment of the present application.
  • fall detection methods can include:
  • the terminal device collects accelerometer data of the user.
  • the user's accelerometer data includes: the accelerometer data of the epileptic patient when he is convulsed, and the accelerometer data of the epileptic patient when he is not convulsing.
  • the accelerometer data received by the terminal device from the three-axis accelerometer sensor can be:
  • the Acc(t) may be a three-axis time series array synchronized by time stamp calibration.
  • the frequency at which the three-axis accelerometer sensor collects accelerometer data may be 100 hertz (hz), which can be understood as collecting accelerometer data 100 times in 1 second, and accelerometer data is collected every 10 milliseconds (ms).
  • the terminal device preprocesses the accelerometer data.
  • the preprocessing process may include processing such as low-pass filtering and down-sampling.
  • the terminal device may input the accelerometer data acquired in S401 to a low-pass filter for filtering processing.
  • a low-pass filter for filtering processing.
  • the amplitude The filters of are respectively filtered in three dimensions, then the result of convolving the original data with the rectangular window W L can be:
  • the terminal device can down-sample the data:
  • the terminal device performs traditional feature extraction on the preprocessed data.
  • the traditional features may include: acceleration intensity vector (signal magnitude vector, SMV) (or also called combined velocity), combined velocity maximum value, combined velocity minimum value, combined velocity maximum and minimum difference, fast At least 10 data such as Fourier transform (fast fourier transform, FFT) eigenvector, acceleration change rate, average value of total velocity, acceleration variance, and average value of acceleration x, y, z within 5s. Therefore, 1*10 data can be generated every second.
  • SMV signal magnitude vector
  • FFT fast fourier transform
  • the combined speed can be:
  • x, y, and z can be the accelerometer data on the x-axis, y-axis, and z-axis respectively.
  • the combined speed can be the tenth combined speed among the 20 combined speeds within 1 second, which can be used to represent the instantaneous speed in the falling state in 1 second.
  • the maximum combined speed may be: the maximum value among multiple combined speeds within 1 second.
  • the minimum combined speed may be: the minimum value among multiple combined speeds within 1 second.
  • the maximum and minimum difference of combined speed may be: the difference between the maximum value and the minimum value of multiple combined speeds within 1 second.
  • the FFT eigenvector may be used for converting time domain data into frequency domain data.
  • 0.5s of accelerometer data can be randomly selected every 1 second for FFT calculation.
  • the rate of change of the acceleration may be: the rate of change of the combined velocity.
  • the combined speed in the first second is the average value of 20 combined speeds in the first second
  • the acceleration change rate in the second second can be the value of the first combined speed in the second second and the combined speed in the first second
  • the rate of change of (or it can also be understood as deriving the average value of the acceleration in the last second). It is used to represent the acceleration change in the falling state.
  • the average value of the composite speed may be: the average value of multiple composite speeds within the 1 second.
  • the acceleration variance may be: a variance value of multiple combined velocities within 1 second.
  • the average value of the acceleration x, y, and z within the 5s can be: when taking the acceleration average value in the first second, x can be the average value of the 20 accelerometer data acquired by the x-axis in the first second, and y can be the The average value of 20 accelerometer data acquired by the y-axis in the first second, and z may be the average value of the 20 accelerometer data acquired by the z-axis in the first second.
  • x can be the average value of the acceleration average value of the x-axis in the first second and the average value of the 20 accelerometer data acquired by the x-axis in the second second
  • y can be taken
  • z can be the acceleration average value of the above-mentioned first second z-axis and the second The average of the averages of the 20 accelerometer data acquired by the z-axis in seconds.
  • the average acceleration values in other seconds are similar to the above average acceleration values in the second second, and will not be repeated here.
  • the terminal device uses a convolutional neural network model to extract deep features from the preprocessed data.
  • FIG. 5 is a schematic structural diagram of a convolutional neural network model provided in an embodiment of the present application.
  • the convolutional neural network model can include: an input module 501, a network structure module 502, and an output module 503, and the network structure module 502 can include: a deep convolution (conv depthwise) module 504, a point convolution (conv pointwise) module 505 and other convolution modules.
  • the deep convolution module 504 can be composed of a convolution calculation layer (conv3*3) with a kernel of 3*3, a normalization layer (batch norm), and stretching to the same latitude layer (scale).
  • the product module 505 may be composed of a convolution calculation layer (conv1*1) with a kernel of 1*1, a normalization layer (batch norm), and stretching to the same latitude layer (scale).
  • the output module 503 may include an activation function, such as a hyperbolic tangent function (tanh).
  • the convolutional neural network model is trained from accelerometer sample data.
  • the terminal device inputs accelerometer data for 0.5 seconds into the convolutional neural network model, for example, the input parameter may be 10*3, and the output depth feature size, for example, the output parameter may be 1*35.
  • the terminal device uses the fall detection model to detect a fall state corresponding to the traditional feature and the depth feature.
  • the fall detection model is obtained by training the traditional feature sample data of the accelerometer data and the deep feature sample data of the accelerometer data.
  • the traditional feature in the fall detection model can also be called the first motion amplitude feature.
  • FIG. 6 is a schematic structural diagram of a fall detection model provided in an embodiment of the present application.
  • the fall detection model may be a four-layer fully connected neural network model, including an input layer 601 , a hidden layer 602 , a hidden layer 603 and an output layer 604 .
  • the number of nodes in the hidden layer 602 and the hidden layer 603 can be preset, for example, the number of nodes in the hidden layer 602 and the hidden layer 603 can be obtained according to the history of training the fall detection model, such as the node Both can be 15.
  • the number of nodes in the output layer 604 can be 2, which is used to output whether the data corresponding to the traditional feature data and the deep feature data belongs to the falling state, and the above output layer adopts full connection.
  • the conjugate gradient method may be used as the training method of the fall detection model.
  • one possible implementation of training the above fall detection model based on traditional feature sample data and deep feature sample data is: input in the neural network model to be trained, the traditional features of epilepsy patients in the falling state and the non-falling state Sample data, as well as deep feature sample data of epilepsy patients in the fall state and non-fall state, use the neural network model to be trained to output the predicted fall situation, and use the loss function to compare the gap between the predicted fall situation and the real fall situation, for example The recall rate or misrecognition rate of the predicted falls can be calculated.
  • the terminal device can identify whether the user is in a falling state based on the traditional feature data and the depth feature data of the user's accelerometer data.
  • the steps shown in S402-S405 can be implemented in the terminal device or in the server.
  • the terminal device may upload the accelerometer data obtained in the step S401 to the server, execute the steps S402-S405 in the server to obtain the traditional features and depth features of the accelerometer data, and identify the The fall state corresponding to the traditional feature and the depth feature, further, the server may send the above fall state to the terminal device.
  • the terminal device can extract traditional feature data and depth feature data corresponding to the detected fall state based on the detected accelerometer data of the user's current state, and more accurately identify whether the user is in a fall state based on the fall detection model.
  • FIG. 7 is a schematic flowchart of a fall detection method provided in the embodiment of the present application.
  • fall detection methods may include:
  • the terminal device collects accelerometer data of the user.
  • the user's accelerometer data may include: the accelerometer data of the epileptic patient when he is convulsed, and the accelerometer data of the epileptic patient when he is not convulsing.
  • the terminal device performs mean filtering processing on the accelerometer data.
  • the mean filtering is used to remove the influence of noise in the accelerometer data.
  • the terminal device uses the accelerometer data to determine whether the current user is in a static state, a walking or running state, or a phase micro-movement state.
  • the terminal device when the terminal device uses the accelerometer data to judge that the current user is in a static state, a walking or running state, or a phase inching state, etc., the terminal device can perform the steps shown in S704; or, when the terminal device When judging from the accelerometer data that the current user is not in a static state, a walking or running state, or a phase inching state, the terminal device may execute the steps shown in S705.
  • the static state can be understood as the difference of the combined speed in the accelerometer data approaches 0;
  • the speed difference satisfies a certain difference range, for example, it can be 2-3, etc.
  • the walking or running state can be understood as the difference of the combined speed approaches the corresponding difference range of walking or running, for example, it can be 3-10 Wait.
  • the aforementioned static state, walking or running state, or relative micro-movement state can also be identified based on a trained detection model.
  • the terminal device ends the twitch detection process.
  • the terminal device performs traditional feature extraction on the accelerometer data corresponding to the non-stationary state, the non-walking or running state, and the non-relative micro-motion state.
  • the traditional features may include: the average value of the combined velocity, the variance of the acceleration, the average deviation, the maximum and minimum difference on the x-axis, the maximum and minimum difference on the y-axis, and the maximum and minimum difference on the z-axis. Therefore, 1*6 data can be generated every second.
  • the average value of the combined velocity and the variance of the acceleration are the same as the average value of the combined velocity and the variance of the acceleration in the step shown in S403 , and will not be repeated here.
  • the average deviation may be: a difference from the average speed of the previous second.
  • the maximum and minimum difference of the x-axis may be: the difference between the maximum value of the accelerometer data and the minimum value of the accelerometer data in the x-axis within 1s.
  • the maximum and minimum difference of the y-axis may be: the difference between the maximum value of the accelerometer data and the minimum value of the accelerometer data in the y-axis within 1s.
  • the maximum and minimum difference of the z-axis may be: the difference between the maximum value of the accelerometer data and the minimum value of the accelerometer data in the z-axis within 1s.
  • the terminal device uses the twitch detection model to detect the twitch state corresponding to the traditional feature.
  • the fall detection model is trained by traditional feature sample data of epileptic patients in convulsive state and traditional feature sample data of epileptic patients in non-convulsive state.
  • the traditional feature in this twitch detection model can also be referred to as the second motion magnitude feature.
  • the first range of motion can be understood as the range of motion during fall detection
  • the second range of motion can be understood as the range of motion during detection of convulsions.
  • the second motion range is greater than the first motion range. It is understandable that the range of motion during fall detection is large.
  • the training method of the twitch detection model in the step S706 is similar to the training method of the fall detection model in the step S405.
  • one possible implementation of training a twitch detection model based on traditional feature sample data is as follows: input traditional feature sample data of epileptic patients in twitching state and non-twitching state in the neural network model to be trained, and use the to-be-trained
  • the neural network model outputs the predicted twitching situation, and uses the loss function to compare the gap between the predicted twitching situation and the real twitching situation. For example, the recall rate or misrecognition rate of the predicted twitching situation can be calculated.
  • the terminal device can identify whether the user is in a twitching state based on the traditional feature data of the user's accelerometer data.
  • the steps shown in S702-S706 can be implemented in the terminal device or in the server, and the specific process will not be repeated.
  • the terminal device can extract the traditional feature data corresponding to the detected twitch state according to the detected accelerometer data of the user's current state, and more accurately identify whether the user is in the twitch state based on the twitch detection model.
  • the embodiment of the present application can realize the detection of muscle stiffness.
  • the terminal device can detect the sEMG signal on the user's skin surface based on the inductance sensor, and determine whether the forearm muscle is stiff by detecting whether the sEMG signal suddenly increases in a short period of time.
  • the terminal device can obtain the sampling points of the sEMG signal within a period of time, such as obtaining the data of 20 sampling points of the sEMG signal within 5 seconds, taking the first 5 sampling points among the 20 sampling points as an example, if the sampling points between The time difference between them is ⁇ t, when the terminal equipment determines that among the first 5 sampling points, the signal of the 5th sampling point is different from the signal of the 1st sampling point (or the signal of the 2nd sampling point, the signal of the 3rd sampling point signal or the signal of the fourth sampling point) exceeds 50%, then the terminal device can determine that the user is in a state of muscle stiffness.
  • the terminal device can more accurately identify whether the user is in a state of muscle stiffness according to the detected change of the sEMG signal of the user's current state.
  • the terminal device may comprehensively determine whether the user is in an epileptic seizure state based on the fall detection situation, twitch detection situation, and muscle stiffness detection situation, as well as the abnormality of the user's human body feature data.
  • the human body characteristic data may include data such as heart rate or body temperature.
  • the abnormality judgment of the human body characteristic data may be that, based on the average heart rate data of the human body monitored in real time, the terminal device determines that the current heart rate data exceeds 30% of the average heart rate data of the human body, then the terminal device can determine the current abnormal heart rate; and/or , the terminal device determines that the current body temperature data exceeds 30% of the average body temperature data of the human body based on the average body temperature data monitored in real time, and the terminal device can determine that the current body temperature is abnormal.
  • the terminal device may determine that the user is in Seizure state. For example, when the terminal device determines that the user is in a falling state, and the heart rate data exceeds 25% of the normal heart rate data recorded by the terminal device, since the user's heart rate data is not abnormal, the terminal device can determine that the user is not currently in an epileptic seizure state. It can be understood that the above-mentioned data for judging the abnormality of human body characteristics may include other content according to the actual scene, which is not limited in this embodiment of the present application.
  • the terminal device can more accurately identify whether the user is in a state of epileptic seizures through epileptic seizure conditions such as falls, convulsions, and muscle stiffness, as well as human body characteristic data.
  • the terminal device can not only record the user's epileptic seizure state in real time (as shown in the corresponding embodiment in Figure 8), but also record the disease status through The message is sent to the emergency contact stored in the terminal device (as shown in the embodiment corresponding to FIG. 9 ).
  • FIG. 8 is a schematic interface diagram of a terminal device provided in an embodiment of the present application.
  • the terminal device is a smart watch as an example for illustration, and this example does not constitute a limitation to the embodiment of the present application.
  • the smart watch When the smart watch receives the user's operation of opening the epilepsy record in the sports health application, the smart watch can display an interface as shown in a in Figure 8, which can display the epilepsy of the user wearing the smart watch within a period of time.
  • the number of seizures for example, recording the number of seizures of the user within 6.1-6.7 days.
  • the smart watch when the smart watch receives the user triggering any time point in 6.1-6.7, such as triggering the operation of the control corresponding to 6.4, the smart watch can display as shown in b in Figure 8
  • the interface which can further display the specific time of 6.4 on that day, for example, one seizure around 08:00, two seizures around 12:00, one seizure around 16:00 and one seizure at 20:00. 00 around 1 attack.
  • the smart watch can also send the data corresponding to the epileptic seizure to the smart phone, and then the user can also view the above-mentioned data corresponding to the epileptic seizure based on the records in the smart phone.
  • the terminal device can realize real-time monitoring and recording of the user's epileptic seizure status, and the recorded data will be helpful for subsequent epilepsy treatment of the user.
  • FIG. 9 is a schematic interface diagram of another terminal device provided in an embodiment of the present application.
  • the terminal device is a smart watch as an example for illustration, and this example does not constitute a limitation to the embodiment of the present application.
  • the terminal device may display the interface as shown in FIG. 9 .
  • the interface may display epileptic state warning information, and the epileptic state warning information may be that it is detected that you are currently in a falling state, and your current state has been reported to an emergency contact.
  • the terminal device when the terminal device receives a user's trigger for the alarm information, the terminal device may display an interface corresponding to the desktop.
  • the terminal device when detecting that the user is in a state of epileptic seizures, can also obtain the location information of the user, and report the location information to the emergency contact; or, the terminal device can also emit an alarm sound, so as to obtain timely assistance.
  • the terminal device can send the current status of the epileptic patient to the emergency contact, thereby helping the epileptic patient get help in time.
  • Figure 10 is a schematic structural diagram of an epilepsy detection device provided in the embodiment of the present application.
  • the epilepsy detection device may be the terminal device in the embodiment of the present application, or it may be a chip or a chip system in the terminal device .
  • the epilepsy detection device 100 can be used in a communication device, a circuit, a hardware component or a chip, and the epilepsy detection device includes: a display unit 1001 , a determination unit 1002 , a processing unit 1003 , and a communication unit 1004 .
  • the display unit 1001 is used to support the steps of displaying performed by the epilepsy detection method;
  • the determination unit 1002 is used to support the epilepsy detection device to perform the steps of determination;
  • the processing unit 1003 is used to support the epilepsy detection device to perform the steps of information processing;
  • the communication unit 1004 uses To support the epilepsy detection device to perform the steps of sending and receiving information.
  • an embodiment of the present application provides an epilepsy detection device 100
  • the terminal device includes an acceleration sensor and an inductance sensor
  • the device includes: a processing unit 1003, configured to acquire first data; the first data includes accelerometer data and electrical signal data; The accelerometer data is collected by the acceleration sensor, and the electrical signal data is collected by the inductance sensor; the processing unit 1003 is also used to extract the first motion amplitude feature data and depth feature data from the accelerometer data; the first motion amplitude feature data is used The data used for fall detection; the processing unit 1003 is also used to extract the second motion amplitude feature data from the accelerometer data; the second motion amplitude feature data is data used for twitch detection; the processing unit 1003 is also used to extract the first Input the feature data of the range of motion and the feature data of the depth into the first neural network model to obtain the fall detection result; the processing unit 1003 is also used to input the feature data of the second range of motion into the second neural network model to obtain the twitch detection result; the first The range of
  • the depth feature data is obtained by the terminal device using the third neural network model to extract the depth feature from the accelerometer data.
  • the third neural network model is obtained by the terminal device based on accelerometer sample data training, the third neural network model includes an input module, a depth convolution module, a point convolution module and an output module, and the depth
  • the convolution module includes a convolution calculation layer with a kernel of 3*3, the first normalization layer, and the first stretch to the same latitude layer
  • the point convolution module includes a convolution calculation layer with a kernel of 1*1, the first Two normalize layers and a second stretch to the same latitude layer.
  • the first motion amplitude characteristic data includes at least one of the following: acceleration intensity vector SMV, maximum value of SMV, minimum value of SMV, difference between maximum value and minimum value of SMV, FFT feature vector, acceleration rate of change , SMV average, acceleration variance, x-axis acceleration mean, y-axis acceleration mean or z-axis acceleration mean.
  • the second motion amplitude characteristic data includes at least one of the following: SMV average value, acceleration variance, average deviation, difference between the maximum accelerometer data and the minimum accelerometer data on the x-axis, and the maximum acceleration on the y-axis The difference between the accelerometer data and the minimum accelerometer data, or the z-axis maximum accelerometer data and the minimum accelerometer data.
  • the first neural network model is trained based on the motion amplitude feature sample data corresponding to the accelerometer sample data and the depth feature sample data corresponding to the accelerometer data, and the first neural network model has four layers Fully connected neural network model, the first neural network model includes the input layer, the first hidden layer, the second hidden layer and the output layer; the nodes in the input layer include the number of nodes and the depth corresponding to the first motion amplitude feature data The number of nodes corresponding to the feature data.
  • the number of nodes in the input layer is 45
  • the number of nodes corresponding to the first motion amplitude feature data is 10
  • the number of nodes corresponding to the depth feature data is 35
  • the number of nodes in the output layer is 2.
  • the processing unit 1003 is specifically configured to filter the accelerometer data by means of mean filtering to obtain filtered data; the determining unit 1002 is specifically configured to determine whether the filtered data satisfies the first A state, a second state and/or a third state; the first state is a state in which the difference between adjacent accelerometer data in the filtered data is 0, and the second state is the adjacent accelerometer data in the filtered data The difference of accelerometer data satisfies the state of the first difference range; the third state is the state of the difference of adjacent accelerometer data in the filtered data meets the second difference range; when the terminal device determines that after the filtering process When the data does not satisfy the first state, the second state and/or the third state, the processing unit 1003 is further specifically configured to extract the second motion amplitude feature data from the filtered data.
  • the processing unit 1003 is specifically configured to: use a filter to filter the accelerometer data to obtain the filtered data; perform down-sampling processing on the filtered data to obtain the down-sampling processing the post-processing data; extracting the first motion amplitude feature data and depth feature data from the down-sampled data.
  • the filter has a window length of L 1 and an amplitude of filter, the filtered data Acc L (t) satisfies the following formula:
  • Acc(t) is accelerometer data, and i is an integer greater than or equal to 0.
  • the display unit 1001 is configured to display a first interface; the first interface includes warning information; the warning information is used to indicate that the user is in a state of epileptic seizure; when the terminal device receives an operation on the warning information , the display unit 1001 is further configured to display a second interface; the second interface is an interface corresponding to the desktop of the terminal device.
  • the communication unit 1004 is configured to send the epileptic seizure state to other devices, and the other device is a device corresponding to an emergency contact during an epileptic seizure recorded by the terminal device.
  • the electrical signal data is a surface electromyography signal sEMG.
  • the first data further includes temperature data and heart rate data.
  • Preset conditions include: when the fall detection result meets the first preset condition, the twitch detection result meets the second preset condition and/or the muscle stiffness detection result meets the third preset condition, and the heart rate data satisfies the fourth preset condition When the condition and/or the temperature data meet the fifth preset condition; wherein, the terminal device further includes a temperature sensor and a proximity light sensor, the temperature data is collected by the temperature sensor, and the heart rate data is collected by the proximity light sensor.
  • the display unit 1001 , the determination unit 1002 , the processing unit 1003 and the communication unit 1004 may be connected by wires.
  • the communication unit 1004 may be an input or output interface, a pin or a circuit, and the like.
  • the storage unit 1005 may store computer execution instructions in the terminal device, so as to enable the processing unit 1003 to execute the methods in the foregoing embodiments.
  • the storage unit 1005 may be a register, a cache, or a RAM, etc., and the storage unit 1005 may be integrated with the processing unit 1003 .
  • the storage unit 1005 may be a ROM or other types of static storage devices that can store static information and instructions, and the storage unit 1005 may be independent from the processing unit 1302 .
  • the epilepsy detection device 100 may further include: a storage unit 1005 .
  • the processing unit 1003 is connected to the storage unit 1005 through a line.
  • the storage unit 1005 may include one or more memories, and the memories may be devices used to store programs or data in one or more devices and circuits.
  • the storage unit 1005 can exist independently, and is connected to the processing unit 1003 of the epilepsy detection device through a communication line.
  • the storage unit 1005 may also be integrated with the processing unit 1003 .
  • FIG. 11 is a schematic diagram of the hardware structure of a control device provided in the embodiment of the present application. As shown in FIG. 1103 as an example for illustration).
  • the processor 1101 can be a general-purpose central processing unit (central processing unit, CPU), a microprocessor, a specific application integrated circuit (application-specific integrated circuit, ASIC), or one or more for controlling the execution of the application program program integrated circuit.
  • CPU central processing unit
  • ASIC application-specific integrated circuit
  • Communication lines 1104 may include circuitry that communicates information between the components described above.
  • the communication interface 1103 uses any device such as a transceiver for communicating with other devices or communication networks, such as Ethernet, wireless local area networks (wireless local area networks, WLAN) and so on.
  • a transceiver for communicating with other devices or communication networks, such as Ethernet, wireless local area networks (wireless local area networks, WLAN) and so on.
  • control device may also include a memory 1102 .
  • the memory 1102 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (random access memory, RAM) or other types that can store information and instructions It can also be an electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired program code in the form of instructions or data structures and can be programmed by a computer Any other medium accessed, but not limited to.
  • the memory may exist independently and be connected to the processor through the communication line 1104 . Memory can also be integrated with the processor.
  • the memory 1102 is used to store computer-executed instructions for implementing the solutions of the present application, and the execution is controlled by the processor 1101 .
  • the processor 1101 is configured to execute computer-executed instructions stored in the memory 1102, so as to implement the method provided in the embodiment of the present application.
  • the computer-executed instructions in the embodiment of the present application may also be referred to as application program code, which is not specifically limited in the embodiment of the present application.
  • the processor 1101 may include one or more CPUs, for example, CPU0 and CPU1 in FIG. 11 .
  • control device may include multiple processors, for example, processor 1101 and processor 1105 in FIG. 11 .
  • processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor.
  • a processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
  • FIG. 12 is a schematic structural diagram of a chip provided by an embodiment of the present application.
  • the chip 120 includes one or more than two (including two) processors 1220 and a communication interface 1230 .
  • the memory 1240 stores the following elements: executable modules or data structures, or subsets thereof, or extensions thereof.
  • the memory 1240 may include a read-only memory and a random access memory, and provides instructions and data to the processor 1220 .
  • a part of the memory 1240 may also include a non-volatile random access memory (non-volatile random access memory, NVRAM).
  • the memory 1240 , the communication interface 1230 and the processor 1220 are coupled together through the bus system 1210 .
  • the bus system 1210 may include not only a data bus, but also a power bus, a control bus, and a status signal bus.
  • the various buses are labeled bus system 1210 in FIG. 12 .
  • the methods described in the foregoing embodiments of the present application may be applied to the processor 1220 or implemented by the processor 1220 .
  • the processor 1220 may be an integrated circuit chip and has signal processing capability.
  • each step of the above method may be implemented by an integrated logic circuit of hardware in the processor 1220 or instructions in the form of software.
  • the above-mentioned processor 1220 may be a general-purpose processor (for example, a microprocessor or a conventional processor), a digital signal processor (digital signal processing, DSP), an application specific integrated circuit (application specific integrated circuit, ASIC), an off-the-shelf programmable gate Array (field-programmable gate array, FPGA) or other programmable logic devices, discrete gates, transistor logic devices or discrete hardware components, the processor 1220 can implement or execute the disclosed methods, steps and logic block diagrams in the embodiments of the present invention .
  • DSP digital signal processing
  • ASIC application specific integrated circuit
  • FPGA field-programmable gate array
  • the steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor.
  • the software module may be located in a mature storage medium in the field such as random access memory, read-only memory, programmable read-only memory, or electrically erasable programmable read only memory (EEPROM).
  • the storage medium is located in the memory 1240, and the processor 1220 reads the information in the memory 1240, and completes the steps of the above method in combination with its hardware.
  • the instructions stored in the memory for execution by the processor may be implemented in the form of computer program products.
  • the computer program product may be written in the memory in advance, or may be downloaded and installed in the memory in the form of software.
  • a computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part.
  • the computer can be a general purpose computer, special purpose computer, computer network, or other programmable device.
  • Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g. Coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL) or wireless (such as infrared, wireless, microwave, etc.) transmission to another website site, computer, server or data center.
  • Computer readable storage medium can be Any available media capable of being stored by a computer or a data storage device such as a server, data center, etc. integrated with one or more available media.
  • available media may include magnetic media (e.g., floppy disks, hard disks, or tapes), optical media (e.g., A digital versatile disc (digital versatile disc, DVD)), or a semiconductor medium (for example, a solid state disk (solid state disk, SSD)), etc.
  • magnetic media e.g., floppy disks, hard disks, or tapes
  • optical media e.g., A digital versatile disc (digital versatile disc, DVD)
  • a semiconductor medium for example, a solid state disk (solid state disk, SSD)
  • Computer-readable media may include computer storage media and communication media, and may include any medium that can transfer a computer program from one place to another.
  • a storage media may be any target media that can be accessed by a computer.
  • the computer-readable medium may include compact disc read-only memory (compact disc read-only memory, CD-ROM), RAM, ROM, EEPROM or other optical disc storage; the computer-readable medium may include a magnetic disk memory or other disk storage devices.
  • any connected cord is properly termed a computer-readable medium.
  • Disk and disc includes compact disc (CD), laser disc, compact disc, digital versatile disc (DVD), floppy disk and Blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Reproduce data.

Landscapes

  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Public Health (AREA)
  • Animal Behavior & Ethology (AREA)
  • Biophysics (AREA)
  • Pathology (AREA)
  • Veterinary Medicine (AREA)
  • Biomedical Technology (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Medical Informatics (AREA)
  • Molecular Biology (AREA)
  • Surgery (AREA)
  • General Health & Medical Sciences (AREA)
  • Physiology (AREA)
  • Cardiology (AREA)
  • Artificial Intelligence (AREA)
  • Neurology (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Dermatology (AREA)
  • Neurosurgery (AREA)
  • Dentistry (AREA)
  • Pulmonology (AREA)
  • Signal Processing (AREA)
  • Psychiatry (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Mathematical Physics (AREA)
  • Fuzzy Systems (AREA)
  • Evolutionary Computation (AREA)
  • Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
  • Radiology & Medical Imaging (AREA)
  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)

Abstract

Embodiments of the present application relate to the technical field of terminals, and provide an epilepsy detection method and apparatus. The method comprises: acquiring first data; extracting first motion amplitude feature data and depth feature data from accelerometer data; extracting second motion amplitude feature data from the accelerometer data; inputting the first motion amplitude feature data and the depth feature data into a first neural network model to obtain a fall detection result; inputting the second motion amplitude feature data into a second neural network model to obtain a convulsion detection result; and when the fall detection result satisfies a first preset condition, the convulsion detection result satisfies a second preset condition, and/or a muscle stiffness detection result satisfies a third preset condition, determining that a state corresponding to the first data is an epileptic seizure state. In this way, a terminal device can recognize, on the basis of the state of a user such as fall, convulsion, or muscle stiffness, whether the user is in the epileptic seizure state, such that the accuracy and real-time performance of epilepsy detection can be achieved.

Description

癫痫检测方法和装置Epilepsy detection method and device
本申请要求于2021年06月30日提交中国国家知识产权局、申请号为202110743810.6、申请名称为“癫痫检测方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202110743810.6 and the application title "Epipsysis Detection Method and Device" submitted to the State Intellectual Property Office of China on June 30, 2021, the entire contents of which are incorporated by reference in this application .
技术领域technical field
本申请涉及终端技术领域,尤其涉及一种癫痫检测方法和装置。The present application relates to the field of terminal technology, and in particular to a method and device for detecting epilepsy.
背景技术Background technique
癫痫是一种脑部慢性非传染性疾病,该病的特点是反复发作。当癫痫发作时,身体的某一部位或整个身体可以短暂的进行非自主性抽搐(或称为部分性发作或全身性发作),有时癫痫发作也伴随着用户的意识丧失或尿便失禁等情况,目前癫痫已经影响到了全球大约5000万人。因此,癫痫的检测具有较为重要的意义。Epilepsy is a chronic, non-communicable disease of the brain characterized by recurrent seizures. When a seizure occurs, a part of the body or the whole body can undergo brief involuntary convulsions (also known as partial seizures or generalized seizures), and sometimes seizures are also accompanied by loss of consciousness or incontinence of the user , Epilepsy currently affects approximately 50 million people worldwide. Therefore, the detection of epilepsy is of great significance.
通常情况下,可以利用专业的检测设备,如脑电图设备等,检测癫痫患者的大脑神经元的异常放电情况,进而确定癫痫患者是否处于癫痫发作状态。Usually, professional detection equipment, such as EEG equipment, can be used to detect the abnormal discharge of brain neurons of epilepsy patients, and then determine whether the epilepsy patients are in a state of epileptic seizures.
然而,由于癫痫的反复性和突发性,上述癫痫的检测方法,无法实现癫痫患者的发病情况的实时检测。However, due to the recurrent and sudden nature of epilepsy, the above epilepsy detection methods cannot realize real-time detection of the onset of epilepsy patients.
发明内容Contents of the invention
本申请实施例提供一种癫痫检测方法和装置,可以实现癫痫的实时检测。Embodiments of the present application provide a method and device for detecting epilepsy, which can realize real-time detection of epilepsy.
第一方面,本申请实施例提供一种癫痫检测方法,终端设备包括加速度传感器和电感传感器,方法包括:终端设备获取第一数据;第一数据包括加速度计数据和电信号数据;加速度计数据是加速度传感器采集的,电信号数据是电感传感器采集的;终端设备从加速度计数据中提取第一运动幅度特征数据以及深度特征数据;第一运动幅度特征数据为用于跌倒检测的数据;终端设备从加速度计数据中提取第二运动幅度特征数据;第二运动幅度特征数据为用于抽搐检测的数据;终端设备将第一运动幅度特征数据和深度特征数据输入至第一神经网络模型,得到跌倒检测结果;终端设备将第二运动幅度特征数据输入至第二神经网络模型,得到抽搐检测结果;第一运动幅度大于第二运动幅度;当跌倒检测结果满足第一预设条件、抽搐检测结果满足第二预设条件和/或肌肉僵硬检测结果满足第三预设条件时,终端设备确定第一数据对应的状态为癫痫发作状态;肌肉僵硬检测结果为基于电信号数据的检测得到的;或者,当跌倒检测结果不满足第一预设条件、抽搐检测结果不满足第二预设条件、和/或肌肉僵硬检测结果不满足第三预设条件时,终端设备确定第一数据对应的状态为非癫痫发作状态。这样,终端设备可以基于用户的发病特征,例如跌倒、抽搐或肌肉僵硬等状态识别用户是否处于癫痫发作状态,可以实现对于癫痫检测的准确性和实时性。In the first aspect, an embodiment of the present application provides a method for epilepsy detection. The terminal device includes an acceleration sensor and an inductance sensor. The method includes: the terminal device acquires first data; the first data includes accelerometer data and electrical signal data; the accelerometer data is collected by the acceleration sensor, and the electrical signal data is collected by the inductance sensor; the terminal device extracts the first motion amplitude characteristic data and the depth characteristic data from the accelerometer data; the first motion amplitude characteristic data is data used for fall detection; the terminal device extracts the first motion amplitude characteristic data from the The second motion amplitude feature data is extracted from the accelerometer data; the second motion amplitude feature data is data used for twitch detection; the terminal device inputs the first motion amplitude feature data and depth feature data into the first neural network model to obtain fall detection Result; the terminal device inputs the second motion range characteristic data into the second neural network model to obtain the twitch detection result; the first motion range is greater than the second motion range; when the fall detection result satisfies the first preset condition and the twitch detection result satisfies the first When the second preset condition and/or the muscle stiffness detection result meets the third preset condition, the terminal device determines that the state corresponding to the first data is an epileptic seizure state; the muscle stiffness detection result is obtained based on the detection of electrical signal data; or, when When the fall detection result does not meet the first preset condition, the twitch detection result does not meet the second preset condition, and/or the muscle stiffness detection result does not meet the third preset condition, the terminal device determines that the state corresponding to the first data is non-epilepsy Seizures. In this way, the terminal device can identify whether the user is in an epileptic seizure based on the user's onset characteristics, such as falling, twitching, or muscle stiffness, and can achieve accurate and real-time detection of epilepsy.
其中,第一运动幅度特征数据可以为本申请实施例中描述的跌倒检测方法中的传统特征,深度特征数据可以为本申请实施例中描述的跌倒检测方法中的深度特征,第一神经网 络模型可以为本申请实施例中描述的跌倒检测模型;第二运动幅度特征数据可以为本申请实施例中描述的抽搐检测方法中的传统特征,第二神经网络模型可以为本申请实施例中描述的抽搐检测模型;第一预设条件可以为跌倒检测结果中指示第一数据对应的状态满足跌倒状态,第二预设条件可以为抽搐检测结果中指示第一数据对应的状态满足抽搐状态,第三预设条件可以为当该电信号数据的变化率超过变化率阈值,则肌肉僵硬检测结果中指示第一数据对应的状态为肌肉僵硬状态;第一运动幅度可以理解为跌倒检测状态的运动幅度;第二运动幅度可以理解为抽搐检测状态的运动幅度。Wherein, the first motion amplitude feature data can be the traditional feature in the fall detection method described in the embodiment of the application, the depth feature data can be the depth feature in the fall detection method described in the embodiment of the application, the first neural network model It can be the fall detection model described in the embodiment of the present application; the second motion amplitude characteristic data can be the traditional feature in the twitch detection method described in the embodiment of the present application, and the second neural network model can be the one described in the embodiment of the present application Twitch detection model; the first preset condition can be that the state corresponding to the first data in the fall detection result satisfies the fall state, the second preset condition can be that the state corresponding to the first data in the twitch detection result satisfies the twitch state, and the third The preset condition can be that when the rate of change of the electrical signal data exceeds the rate of change threshold, the muscle stiffness detection result indicates that the state corresponding to the first data is a muscle stiffness state; the first range of motion can be understood as the range of motion of the fall detection state; The second range of motion can be understood as the range of motion in the twitch detection state.
在一种可能的实现方式中,深度特征数据为终端设备利用第三神经网络模型,对加速度计数据进行深度特征提取得到的。这样,对加速度计数据的进行深度特征提取,可以利用深度特征实现对于跌倒状态的精准识别。In a possible implementation manner, the depth feature data is obtained by the terminal device using the third neural network model to extract the depth feature from the accelerometer data. In this way, the deep feature extraction of the accelerometer data can use the deep feature to achieve accurate recognition of the fall state.
其中,第三神经网络模型可以为本申请实施例中描述的跌倒检测方法中的卷积神经网络模型。Wherein, the third neural network model may be the convolutional neural network model in the fall detection method described in the embodiment of the present application.
在一种可能的实现方式中,第三神经网络模型为终端设备基于加速度计样本数据训练得到的,第三神经网络模型中包括输入模块、深度卷积模块、点卷积模块和输出模块,深度卷积模块中包括核为3*3的卷积计算层、第一归一化层以及第一拉伸至同一纬度层,点卷积模块中包括核为1*1的卷积计算层、第二归一化层以及第二拉伸至同一纬度层。In a possible implementation, the third neural network model is obtained by the terminal device based on accelerometer sample data training, the third neural network model includes an input module, a depth convolution module, a point convolution module and an output module, and the depth The convolution module includes a convolution calculation layer with a kernel of 3*3, the first normalization layer, and the first stretch to the same latitude layer, and the point convolution module includes a convolution calculation layer with a kernel of 1*1, the first Two normalize layers and a second stretch to the same latitude layer.
在一种可能的实现方式中,第一运动幅度特征数据包括以下至少一项:加速度强度矢量SMV,SMV最大值,SMV最小值、SMV最大值与最小的差值,FFT特征向量,加速度变化速率,SMV平均值,加速度方差,x轴的加速度均值,y轴的加速度均值或z轴的加速度均值。In a possible implementation, the first motion amplitude characteristic data includes at least one of the following: acceleration intensity vector SMV, maximum value of SMV, minimum value of SMV, difference between maximum value and minimum value of SMV, FFT feature vector, acceleration rate of change , SMV average, acceleration variance, x-axis acceleration mean, y-axis acceleration mean or z-axis acceleration mean.
在一种可能的实现方式中,第二运动幅度特征数据包括以下至少一项:SMV平均值,加速度方差,平均偏差,x轴最大加速度计数据与最小加速度计数据的差值,y轴最大加速度计数据与最小加速度计数据的差值,或z轴最大加速度计数据与最小加速度计数据的差值。In a possible implementation, the second motion amplitude characteristic data includes at least one of the following: SMV average value, acceleration variance, average deviation, difference between the maximum accelerometer data and the minimum accelerometer data on the x-axis, and the maximum acceleration on the y-axis The difference between the accelerometer data and the minimum accelerometer data, or the z-axis maximum accelerometer data and the minimum accelerometer data.
在一种可能的实现方式中,第一神经网络模型为基于加速度计样本数据对应的运动幅度特征样本数据,以及加速度计数据对应的深度特征样本数据训练得到的,第一神经网络模型为四层全连接的神经网络模型,第一神经网络模型中包括输入层、第一隐含层、第二隐含层和输出层;输入层的节点中包含第一运动幅度特征数据对应的节点数以及深度特征数据对应的节点数。In a possible implementation, the first neural network model is trained based on the motion amplitude feature sample data corresponding to the accelerometer sample data and the depth feature sample data corresponding to the accelerometer data, and the first neural network model has four layers Fully connected neural network model, the first neural network model includes the input layer, the first hidden layer, the second hidden layer and the output layer; the nodes in the input layer include the number of nodes and the depth corresponding to the first motion amplitude feature data The number of nodes corresponding to the feature data.
其中,该加速度计样本数据对应的运动幅度特征样本数据可以为本申请实施例中描述的跌倒检测方法中的加速度计数据的传统特征样本数据;该加速度计数据对应的深度特征样本数据可以为本申请实施例中描述的跌倒检测方法中的加速度计数据的深度特征样本数据。Wherein, the motion amplitude feature sample data corresponding to the accelerometer sample data can be the traditional feature sample data of the accelerometer data in the fall detection method described in the embodiment of the present application; the depth feature sample data corresponding to the accelerometer data can be this The depth feature sample data of the accelerometer data in the fall detection method described in the embodiment of the application.
在一种可能的实现方式中,输入层的节点数为45,第一运动幅度特征数据对应的节点数为10,深度特征数据对应的节点数为35,输出层的节点数为2。In a possible implementation manner, the number of nodes in the input layer is 45, the number of nodes corresponding to the first motion amplitude feature data is 10, the number of nodes corresponding to the depth feature data is 35, and the number of nodes in the output layer is 2.
在一种可能的实现方式中,终端设备从加速度计数据中提取第二运动幅度特征数据,包括:终端设备利用均值滤波对加速度计数据进行滤波处理,得到滤波处理后的数据;终端设备确定滤波处理后的数据是否满足第一状态、第二状态和/或第三状态;第一状态为滤波处理后的数据中的相邻加速度计数据的差值为0的状态,第二状态为滤波处理后的数据中的相邻加速度计数据的差值满足第一差值范围的状态;第三状态为滤波处理后的数据中 的相邻加速度计数据的差值满足第二差值范围的状态;当终端设备确定滤波处理后的数据不满足第一状态、第二状态和/或第三状态时,终端设备从滤波处理后的数据中提取第二运动幅度特征数据。这样,终端设备可以通过对于当前运动状态的判断,避免静止状态、走或跑状态和/或相位微动状态对于抽搐检测的影响,进而提高终端设备对于抽搐检测的准确性。In a possible implementation manner, the terminal device extracts the second motion amplitude characteristic data from the accelerometer data, including: the terminal device uses mean filtering to filter the accelerometer data to obtain filtered data; the terminal device determines the filtered Whether the processed data satisfies the first state, the second state and/or the third state; the first state is the state in which the difference between adjacent accelerometer data in the filtered data is 0, and the second state is the filtering process The difference value of the adjacent accelerometer data in the post data satisfies the state of the first difference value range; The third state is the state that the difference value of the adjacent accelerometer data in the filtered data satisfies the second difference value range; When the terminal device determines that the filtered data does not satisfy the first state, the second state and/or the third state, the terminal device extracts the second motion amplitude feature data from the filtered data. In this way, the terminal device can avoid the impact of the static state, walking or running state and/or phase micro-movement state on the twitch detection by judging the current motion state, thereby improving the accuracy of the terminal device for twitch detection.
其中,第一状态可以为本申请实施例中描述的静止状态,第二状态可以为本申请实施例中描述的走或跑状态,第三状态可以为本申请实施例中描述的相位微动状态;第一差值范围可以大于第二差值范围。Wherein, the first state may be the static state described in the embodiment of the present application, the second state may be the walking or running state described in the embodiment of the present application, and the third state may be the phase micro-motion state described in the embodiment of the present application ; The first difference range may be greater than the second difference range.
在一种可能的实现方式中,终端设备从加速度计数据中提取第一运动幅度特征数据以及深度特征数据,包括:终端设备利用滤波器对加速度计数据进行滤波处理,得到滤波处理后的数据;终端设备对滤波处理后的数据进行降采样处理,得到降采样处理后的数据;终端设备从降采样处理后的数据中提取第一运动幅度特征数据以及深度特征数据。这样,上述处理过程可以去除数据中的噪声影响,并降低上述数据在后续模型中的内存的占用。In a possible implementation manner, the terminal device extracts the first motion amplitude feature data and depth feature data from the accelerometer data, including: the terminal device uses a filter to filter the accelerometer data to obtain filtered data; The terminal device performs down-sampling processing on the filtered data to obtain the down-sampled data; the terminal device extracts the first motion amplitude characteristic data and depth characteristic data from the down-sampled data. In this way, the above-mentioned processing process can remove the influence of noise in the data, and reduce the memory occupation of the above-mentioned data in subsequent models.
在一种可能的实现方式中,滤波器为窗长为L 1,幅值为
Figure PCTCN2022092800-appb-000001
的滤波器,滤波处理后的数据Acc L(t)满足下述公式:
In a possible implementation, the filter has a window length of L 1 and an amplitude of
Figure PCTCN2022092800-appb-000001
filter, the filtered data Acc L (t) satisfies the following formula:
Figure PCTCN2022092800-appb-000002
Figure PCTCN2022092800-appb-000002
其中,Acc(t)为加速度计数据,i为大于或等于0的整数。Among them, Acc(t) is accelerometer data, and i is an integer greater than or equal to 0.
在一种可能的实现方式中,方法还包括:终端设备显示第一界面;第一界面中包括告警信息;告警信息用于指示用户处于癫痫发作状态;当终端设备接收到针对告警信息的操作时,终端设备显示第二界面;第二界面为终端设备的桌面对应的界面。这样,终端设备可以实现对于用户的癫痫发作状态的实时监测和记录,并将当前的癫痫情况及时反映到界面中,便于用户察觉。In a possible implementation, the method further includes: the terminal device displays a first interface; the first interface includes warning information; the warning information is used to indicate that the user is in a state of epileptic seizure; when the terminal device receives an operation on the warning information , the terminal device displays the second interface; the second interface is an interface corresponding to the desktop of the terminal device. In this way, the terminal device can realize real-time monitoring and recording of the user's epileptic seizure state, and reflect the current epileptic state on the interface in time, so that the user can easily notice it.
在一种可能的实现方式中,方法还包括:终端设备将癫痫发作状态发送至其他设备,其他设备为终端设备记录的癫痫发作时的紧急联系人对应的设备。这样,使癫痫患者处于空旷地带,在癫痫发作时无法呼叫他人,终端设备也可以将癫痫患者当前的状态发送至紧急联系人处,进而帮助癫痫患者及时得到救助。In a possible implementation manner, the method further includes: the terminal device sends the epileptic seizure state to other devices, and the other device is a device corresponding to an emergency contact during an epileptic seizure recorded by the terminal device. In this way, epileptic patients are kept in an open area and cannot call others when they have an epileptic seizure, and the terminal device can also send the current status of epileptic patients to emergency contacts, thereby helping epileptic patients to get rescue in time.
在一种可能的实现方式中,电信号数据为表面肌电信号sEMG。In a possible implementation manner, the electrical signal data is a surface electromyography signal sEMG.
在一种可能的实现方式中,第一数据还包括温度数据和心率数据,当跌倒检测结果满足第一预设条件、抽搐检测结果满足第二预设条件和/或肌肉僵硬检测结果满足第三预设条件时,包括:当跌倒检测结果满足第一预设条件、抽搐检测结果满足第二预设条件和/或肌肉僵硬检测结果满足第三预设条件,并且,在一种可能的实现方式中,心率数据满足第四预设条件和/或温度数据满足第五预设条件时;其中,终端设备还包括温度传感器和接近光传感器,温度数据是温度传感器采集的,心率数据是接近光传感器采集的。In a possible implementation manner, the first data further includes temperature data and heart rate data. When the fall detection result satisfies the first preset condition, the twitch detection result satisfies the second preset condition, and/or the muscle stiffness detection result satisfies the third preset condition, When the preset conditions include: when the fall detection result meets the first preset condition, the twitch detection result meets the second preset condition and/or the muscle stiffness detection result meets the third preset condition, and, in a possible implementation manner Among them, when the heart rate data meets the fourth preset condition and/or the temperature data meets the fifth preset condition; wherein, the terminal device also includes a temperature sensor and a proximity light sensor, the temperature data is collected by the temperature sensor, and the heart rate data is collected by the proximity light sensor Collected.
其中,第四预设条件可以为心率数据超过终端设备记录的心率平均数据的30%,第五预设条件可以为温度数据超过终端设备记录的温度平均数据的30%。Wherein, the fourth preset condition may be that the heart rate data exceeds 30% of the average heart rate data recorded by the terminal device, and the fifth preset condition may be that the temperature data exceeds 30% of the average temperature data recorded by the terminal device.
第二方面,本申请实施例提供一种癫痫检测装置,终端设备包括加速度传感器和电感 传感器,装置包括:处理单元,用于获取第一数据;第一数据包括加速度计数据和电信号数据;加速度计数据是加速度传感器采集的,电信号数据是电感传感器采集的;处理单元,还用于从加速度计数据中提取第一运动幅度特征数据以及深度特征数据;第一运动幅度特征数据为用于跌倒检测的数据;处理单元,还用于从加速度计数据中提取第二运动幅度特征数据;第二运动幅度特征数据为用于抽搐检测的数据;处理单元,还用于将第一运动幅度特征数据和深度特征数据输入至第一神经网络模型,得到跌倒检测结果;处理单元,还用于将第二运动幅度特征数据输入至第二神经网络模型,得到抽搐检测结果;第一运动幅度大于第二运动幅度;当跌倒检测结果满足第一预设条件、抽搐检测结果满足第二预设条件和/或肌肉僵硬检测结果满足第三预设条件时,确定单元,用于确定第一数据对应的状态为癫痫发作状态;肌肉僵硬检测结果为基于电信号数据的检测得到的;或者,当跌倒检测结果不满足第一预设条件、抽搐检测结果不满足第二预设条件、和/或肌肉僵硬检测结果不满足第三预设条件时,确定单元,还用于确定第一数据对应的状态为非癫痫发作状态。In the second aspect, an embodiment of the present application provides an epilepsy detection device. The terminal device includes an acceleration sensor and an inductance sensor. The device includes: a processing unit for acquiring first data; the first data includes accelerometer data and electrical signal data; The meter data is collected by the accelerometer, and the electrical signal data is collected by the inductance sensor; the processing unit is also used to extract the first motion amplitude feature data and depth feature data from the accelerometer data; the first motion amplitude feature data is used for falling Detected data; the processing unit is also used to extract the second amplitude of motion characteristic data from the accelerometer data; the second amplitude of motion characteristic data is data used for convulsion detection; the processing unit is also used to extract the first amplitude of motion characteristic data and depth feature data are input to the first neural network model to obtain the fall detection result; the processing unit is also used to input the second motion range feature data to the second neural network model to obtain the twitch detection result; the first motion range is greater than the second Range of motion; when the fall detection result meets the first preset condition, the twitch detection result meets the second preset condition and/or the muscle stiffness detection result meets the third preset condition, the determination unit is used to determine the state corresponding to the first data It is an epileptic seizure state; the muscle stiffness detection result is obtained based on the detection of electrical signal data; or, when the fall detection result does not meet the first preset condition, the twitch detection result does not meet the second preset condition, and/or the muscle stiffness detection When the result does not meet the third preset condition, the determining unit is further configured to determine that the state corresponding to the first data is a non-epileptic seizure state.
在一种可能的实现方式中,深度特征数据为终端设备利用第三神经网络模型,对加速度计数据进行深度特征提取得到的。In a possible implementation manner, the depth feature data is obtained by the terminal device using the third neural network model to extract the depth feature from the accelerometer data.
在一种可能的实现方式中,第三神经网络模型为终端设备基于加速度计样本数据训练得到的,第三神经网络模型中包括输入模块、深度卷积模块、点卷积模块和输出模块,深度卷积模块中包括核为3*3的卷积计算层、第一归一化层以及第一拉伸至同一纬度层,点卷积模块中包括核为1*1的卷积计算层、第二归一化层以及第二拉伸至同一纬度层。In a possible implementation, the third neural network model is obtained by the terminal device based on accelerometer sample data training, the third neural network model includes an input module, a depth convolution module, a point convolution module and an output module, and the depth The convolution module includes a convolution calculation layer with a kernel of 3*3, the first normalization layer, and the first stretch to the same latitude layer, and the point convolution module includes a convolution calculation layer with a kernel of 1*1, the first Two normalize layers and a second stretch to the same latitude layer.
在一种可能的实现方式中,第一运动幅度特征数据包括以下至少一项:加速度强度矢量SMV,SMV最大值,SMV最小值、SMV最大值与最小的差值,FFT特征向量,加速度变化速率,SMV平均值,加速度方差,x轴的加速度均值,y轴的加速度均值或z轴的加速度均值。In a possible implementation, the first motion amplitude characteristic data includes at least one of the following: acceleration intensity vector SMV, maximum value of SMV, minimum value of SMV, difference between maximum value and minimum value of SMV, FFT feature vector, acceleration rate of change , SMV average, acceleration variance, x-axis acceleration mean, y-axis acceleration mean or z-axis acceleration mean.
在一种可能的实现方式中,第二运动幅度特征数据包括以下至少一项:SMV平均值,加速度方差,平均偏差,x轴最大加速度计数据与最小加速度计数据的差值,y轴最大加速度计数据与最小加速度计数据的差值,或z轴最大加速度计数据与最小加速度计数据的差值。In a possible implementation, the second motion amplitude characteristic data includes at least one of the following: SMV average value, acceleration variance, average deviation, difference between the maximum accelerometer data and the minimum accelerometer data on the x-axis, and the maximum acceleration on the y-axis The difference between the accelerometer data and the minimum accelerometer data, or the z-axis maximum accelerometer data and the minimum accelerometer data.
在一种可能的实现方式中,第一神经网络模型为基于加速度计样本数据对应的运动幅度特征样本数据,以及加速度计数据对应的深度特征样本数据训练得到的,第一神经网络模型为四层全连接的神经网络模型,第一神经网络模型中包括输入层、第一隐含层、第二隐含层和输出层;输入层的节点中包含第一运动幅度特征数据对应的节点数以及深度特征数据对应的节点数。In a possible implementation, the first neural network model is trained based on the motion amplitude feature sample data corresponding to the accelerometer sample data and the depth feature sample data corresponding to the accelerometer data, and the first neural network model has four layers Fully connected neural network model, the first neural network model includes the input layer, the first hidden layer, the second hidden layer and the output layer; the nodes in the input layer include the number of nodes and the depth corresponding to the first motion amplitude feature data The number of nodes corresponding to the feature data.
在一种可能的实现方式中,输入层的节点数为45,第一运动幅度特征数据对应的节点数为10,深度特征数据对应的节点数为35,输出层的节点数为2。In a possible implementation manner, the number of nodes in the input layer is 45, the number of nodes corresponding to the first motion amplitude feature data is 10, the number of nodes corresponding to the depth feature data is 35, and the number of nodes in the output layer is 2.
在一种可能的实现方式中,处理单元,具体用于利用均值滤波对加速度计数据进行滤波处理,得到滤波处理后的数据;确定单元,具体用于确定滤波处理后的数据是否满足第一状态、第二状态和/或第三状态;第一状态为滤波处理后的数据中的相邻加速度计数据的差值为0的状态,第二状态为滤波处理后的数据中的相邻加速度计数据的差值满足第一差值范围的状态;第三状态为滤波处理后的数据中的相邻加速度计数据的差值满足第二差值范围的状态;当终端设备确定滤波处理后的数据不满足第一状态、第二状态和/或第三状态时,处理单元,还具体用于从滤波处理后的数据中提取第二运动幅度特征数据。In a possible implementation manner, the processing unit is specifically configured to filter the accelerometer data by means of mean filtering to obtain filtered data; the determining unit is specifically configured to determine whether the filtered data satisfies the first state , the second state and/or the third state; the first state is the state in which the difference between the adjacent accelerometer data in the filtered data is 0, and the second state is the adjacent accelerometer in the filtered data The state in which the data difference satisfies the first difference range; the third state is the state in which the difference between adjacent accelerometer data in the filtered data satisfies the second difference range; when the terminal device determines that the filtered data When the first state, the second state and/or the third state are not satisfied, the processing unit is further specifically configured to extract the second motion amplitude characteristic data from the filtered data.
在一种可能的实现方式中,处理单元,具体用于:利用滤波器对加速度计数据进行滤波处理,得到滤波处理后的数据;对滤波处理后的数据进行降采样处理,得到降采样处理后的数据;从降采样处理后的数据中提取第一运动幅度特征数据以及深度特征数据。In a possible implementation manner, the processing unit is specifically configured to: use a filter to filter the accelerometer data to obtain the filtered data; perform down-sampling processing to the filtered data to obtain the down-sampled data; extracting first motion amplitude feature data and depth feature data from the down-sampled data.
在一种可能的实现方式中,滤波器为窗长为L 1,幅值为
Figure PCTCN2022092800-appb-000003
的滤波器,滤波处理后的数据Acc L(t)满足下述公式:
In a possible implementation, the filter has a window length of L 1 and an amplitude of
Figure PCTCN2022092800-appb-000003
filter, the filtered data Acc L (t) satisfies the following formula:
Figure PCTCN2022092800-appb-000004
Figure PCTCN2022092800-appb-000004
其中,Acc(t)为加速度计数据,i为大于或等于0的整数。Among them, Acc(t) is accelerometer data, and i is an integer greater than or equal to 0.
在一种可能的实现方式中,显示单元,用于显示第一界面;第一界面中包括告警信息;告警信息用于指示用户处于癫痫发作状态;当终端设备接收到针对告警信息的操作时,显示单元,还用于显示第二界面;第二界面为终端设备的桌面对应的界面。In a possible implementation manner, the display unit is configured to display a first interface; the first interface includes warning information; the warning information is used to indicate that the user is in a state of epileptic seizure; when the terminal device receives an operation on the warning information, The display unit is further configured to display a second interface; the second interface is an interface corresponding to the desktop of the terminal device.
在一种可能的实现方式中,通信单元,用于将癫痫发作状态发送至其他设备,其他设备为终端设备记录的癫痫发作时的紧急联系人对应的设备。In a possible implementation manner, the communication unit is configured to send the epileptic seizure state to other devices, and the other device is a device corresponding to an emergency contact during an epileptic seizure recorded by the terminal device.
在一种可能的实现方式中,电信号数据为表面肌电信号sEMG。In a possible implementation manner, the electrical signal data is a surface electromyography signal sEMG.
在一种可能的实现方式中,第一数据还包括温度数据和心率数据,当跌倒检测结果满足第一预设条件、抽搐检测结果满足第二预设条件和/或肌肉僵硬检测结果满足第三预设条件时,包括:当跌倒检测结果满足第一预设条件、抽搐检测结果满足第二预设条件和/或肌肉僵硬检测结果满足第三预设条件,并且,心率数据满足第四预设条件和/或温度数据满足第五预设条件时;其中,终端设备还包括温度传感器和接近光传感器,温度数据是温度传感器采集的,心率数据是接近光传感器采集的。In a possible implementation manner, the first data further includes temperature data and heart rate data. When the fall detection result satisfies the first preset condition, the twitch detection result satisfies the second preset condition, and/or the muscle stiffness detection result satisfies the third preset condition, Preset conditions include: when the fall detection result meets the first preset condition, the twitch detection result meets the second preset condition and/or the muscle stiffness detection result meets the third preset condition, and the heart rate data satisfies the fourth preset condition When the condition and/or the temperature data meet the fifth preset condition; wherein, the terminal device further includes a temperature sensor and a proximity light sensor, the temperature data is collected by the temperature sensor, and the heart rate data is collected by the proximity light sensor.
第三方面,本申请实施例提供一种癫痫检测装置,包括处理器和存储器,存储器用于存储代码指令;处理器用于运行代码指令,使得电子设备以执行如第一方面或第一方面的任一种实现方式中描述的癫痫检测方法。In the third aspect, the embodiment of the present application provides an epilepsy detection device, including a processor and a memory, the memory is used to store code instructions; the processor is used to run the code instructions, so that the electronic device can perform any of the first aspect or the first aspect. An epilepsy detection method described in one implementation.
第四方面,本申请实施例提供一种计算机可读存储介质,计算机可读存储介质存储有指令,当指令被执行时,使得计算机执行如第一方面或第一方面的任一种实现方式中描述的癫痫检测方法。In the fourth aspect, the embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores instructions, and when the instructions are executed, the computer executes the first aspect or any implementation manner of the first aspect. The epilepsy detection method described.
第五方面,一种计算机程序产品,包括计算机程序,当计算机程序被运行时,使得计算机执行如第一方面或第一方面的任一种实现方式中描述的癫痫检测方法。In a fifth aspect, a computer program product includes a computer program. When the computer program is executed, the computer executes the epilepsy detection method as described in the first aspect or any implementation manner of the first aspect.
应当理解的是,本申请的第二方面至第五方面与本申请的第一方面的技术方案相对应,各方面及对应的可行实施方式所取得的有益效果相似,不再赘述。It should be understood that the second aspect to the fifth aspect of the present application correspond to the technical solution of the first aspect of the present application, and the advantageous effects obtained by each aspect and the corresponding feasible implementation manners are similar, so details are not repeated here.
附图说明Description of drawings
图1为本申请实施例提供的一种场景示意图;FIG. 1 is a schematic diagram of a scene provided by an embodiment of the present application;
图2为本申请实施例提供的一种终端设备的结构示意图;FIG. 2 is a schematic structural diagram of a terminal device provided in an embodiment of the present application;
图3为本申请实施例提供的一种癫痫检测的架构示意图;FIG. 3 is a schematic diagram of an epilepsy detection framework provided by an embodiment of the present application;
图4为本申请实施例提供的一种跌倒检测方法的流程示意图;FIG. 4 is a schematic flow chart of a fall detection method provided in an embodiment of the present application;
图5为本申请实施例提供的一种卷积神经网络模型的结构示意图;FIG. 5 is a schematic structural diagram of a convolutional neural network model provided in an embodiment of the present application;
图6为本申请实施例提供的一种跌倒检测模型的结构示意图;FIG. 6 is a schematic structural diagram of a fall detection model provided in an embodiment of the present application;
图7为本申请实施例提供的一种跌倒检测方法的流程示意图;FIG. 7 is a schematic flowchart of a fall detection method provided in an embodiment of the present application;
图8为本申请实施例提供的一种终端设备的界面示意图;FIG. 8 is a schematic interface diagram of a terminal device provided in an embodiment of the present application;
图9为本申请实施例提供的另一种终端设备的界面示意图;FIG. 9 is a schematic interface diagram of another terminal device provided in the embodiment of the present application;
图10为本申请实施例提供的一种癫痫检测装置的结构示意图;FIG. 10 is a schematic structural diagram of an epilepsy detection device provided in an embodiment of the present application;
图11为本申请实施例提供的一种控制设备的硬件结构示意图;FIG. 11 is a schematic diagram of a hardware structure of a control device provided in an embodiment of the present application;
图12为本申请实施例提供的一种芯片的结构示意图。FIG. 12 is a schematic structural diagram of a chip provided by an embodiment of the present application.
具体实施方式detailed description
为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。例如,第一值和第二值仅仅是为了区分不同的值,并不对其先后顺序进行限定。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。In order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with basically the same function and effect. For example, the first value and the second value are only used to distinguish different values, and their sequence is not limited. Those skilled in the art can understand that words such as "first" and "second" do not limit the number and execution order, and words such as "first" and "second" do not necessarily limit the difference.
需要说明的是,本申请中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。It should be noted that, in this application, words such as "exemplary" or "for example" are used as examples, illustrations or illustrations. Any embodiment or design described herein as "exemplary" or "for example" is not to be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete manner.
本申请中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a和b,a和c,b和c,或a、b和c,其中a,b,c可以是单个,也可以是多个。In this application, "at least one" means one or more, and "multiple" means two or more. "And/or" describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone, where A, B can be singular or plural. The character "/" generally indicates that the contextual objects are an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one item (piece) of a, b, or c can represent: a, b, c, a and b, a and c, b and c, or a, b and c, wherein a, b, c can be single or multiple.
癫痫是一种脑部慢性非传染性疾病,癫痫的发作通常伴随着一些短暂性症状,例如突然间跌倒、抽搐或肌肉僵硬等症状,癫痫严重影响癫痫患者以及其家庭的生活质量。因此,癫痫的检测具有较为重要的意义。Epilepsy is a chronic non-infectious disease of the brain. Epilepsy is usually accompanied by transient symptoms, such as sudden falls, convulsions, or muscle stiffness. Epilepsy seriously affects the quality of life of epilepsy patients and their families. Therefore, the detection of epilepsy is of great significance.
通常情况下,可以利用专业的检测设备,如脑电图设备等,检测癫痫患者的大脑神经元的异常放电情况,进而确定癫痫患者是否处于癫痫发作状态。Usually, professional detection equipment, such as EEG equipment, can be used to detect the abnormal discharge of brain neurons of epilepsy patients, and then determine whether the epilepsy patients are in a state of epileptic seizures.
然而,由于癫痫的反复性和突发性,使得癫痫的实时检测成为难题。示例性的,当用户在运动中或者在病房中,突然发生抽搐时,由于癫痫的犯病时间较短,甚至最短的犯病时间可以小于3秒(s),这就使得癫痫患者身边的人或医生难以第一时间发现癫痫患者的发病情况,很容易造成漏检;并且,由于癫痫患者的症状发作的情况较多,患者经常难以判断自身是否处于癫痫发作状态,例如当癫痫患者突然跌倒时,由于该癫痫患者难以察觉跌倒是否与癫痫发作有关,因此更加重癫痫的检测难度。However, due to the recurrent and sudden nature of epilepsy, the real-time detection of epilepsy is difficult. Exemplarily, when the user is exercising or in the ward, when a convulsion suddenly occurs, due to the short onset time of epilepsy, even the shortest onset time can be less than 3 seconds (s), which makes people around epilepsy patients or doctors It is difficult to detect the onset of epileptic patients in the first place, and it is easy to cause missed detection; moreover, due to the frequent seizures of epileptic patients, it is often difficult for patients to judge whether they are in a state of epileptic seizures. For example, when an epileptic patient falls suddenly, due to The difficulty in detecting whether a fall is related to a seizure in this patient with epilepsy makes the detection of epilepsy even more difficult.
有鉴于此,本申请实施例提供一种癫痫检测方法,当用户佩戴终端设备时,终端设备可以基于传感器检测癫痫的发作症状,例如识别用户是否处于跌倒、抽搐或肌肉僵硬等症状;进而终端设备可以基于识别到的用户的癫痫发作症状以及用户的人体特征的异常情况, 进一步的识别该用户是否处于癫痫发作状态,使得终端设备不仅可以实现癫痫检测的准确性和实时性,也可以将癫痫发作状态及时告知与癫痫患者的终端设备绑定的紧急联系人或医生等,加快癫痫的治疗进度,避免错过最佳治疗时间。In view of this, an embodiment of the present application provides an epilepsy detection method. When a user wears a terminal device, the terminal device can detect epilepsy symptoms based on sensors, such as identifying whether the user is experiencing symptoms such as falls, convulsions, or muscle stiffness; furthermore, the terminal device Based on the recognized seizure symptoms of the user and the abnormality of the user's physical characteristics, it can be further identified whether the user is in a seizure state, so that the terminal device can not only realize the accuracy and real-time detection of seizures, but also detect seizures The status is notified in time to the emergency contacts or doctors bound to the epilepsy patient's terminal device, so as to speed up the progress of epilepsy treatment and avoid missing the best treatment time.
可以理解的是,上述终端设备可以为可穿戴设备,例如智能手表、智能手环、可穿戴式的虚拟现实(virtual reality,VR)设备、或可穿戴式的增强现实(augmented reality,AR)设备等。上述终端设备也可以为智能手机或平板等。本申请实施例中对终端设备所采用的具体技术和具体设备形态不做限定。It can be understood that the above-mentioned terminal device may be a wearable device, such as a smart watch, a smart bracelet, a wearable virtual reality (virtual reality, VR) device, or a wearable augmented reality (augmented reality, AR) device Wait. The above-mentioned terminal device may also be a smart phone or a tablet. In the embodiment of the present application, no limitation is imposed on the specific technology and specific device form adopted by the terminal device.
为了更好的理解本申请实施例的方法,下面首先对本申请实施例适用的应用场景进行描述。In order to better understand the method of the embodiment of the present application, the application scenarios applicable to the embodiment of the present application are firstly described below.
示例性的,图1为本申请实施例提供的一种场景示意图。如图1所示,该场景中可以包括101,用户101可以携带具有癫痫检测能力的终端设备102,例如该终端设备可以为可穿戴设备,如智能手表或智能手环等。Exemplarily, FIG. 1 is a schematic diagram of a scenario provided by an embodiment of the present application. As shown in FIG. 1 , this scenario may include 101, and the user 101 may carry a terminal device 102 capable of detecting epilepsy, for example, the terminal device may be a wearable device such as a smart watch or a smart bracelet.
在图1对应的场景中,终端设备102可以基于内置的传感器检测用户101当前的状态,例如检测用户101是否处于静止、运动、跌倒、抽搐或肌肉僵硬等状态,或者也可以检测用户的体温或心率等人体特征。例如,当终端设备102基于加速度传感器检测到用户101处于跌倒状态,且基于温度传感器检测到用户101的体温超出终端设备102记录的正常体温的30%时,则终端设备102可以基于上述跌倒状态以及体温异常状态,确定用户101处于癫痫发作,进而终端设备102可以记录癫痫发作的时间,并将癫痫患者的发病情况、或者癫痫患者所在的位置等信息,发送至终端设备102记录的紧急联系人处。In the scenario corresponding to FIG. 1 , the terminal device 102 can detect the current state of the user 101 based on built-in sensors, for example, detect whether the user 101 is in a state of stillness, movement, fall, twitching or muscle stiffness, or can also detect the user's body temperature or Human characteristics such as heart rate. For example, when the terminal device 102 detects that the user 101 is in a falling state based on the acceleration sensor, and detects that the body temperature of the user 101 exceeds 30% of the normal body temperature recorded by the terminal device 102 based on the temperature sensor, the terminal device 102 can If the body temperature is abnormal, it is determined that the user 101 is in an epileptic seizure, and then the terminal device 102 can record the time of the epileptic seizure, and send information such as the onset of the epileptic patient or the location of the epileptic patient to the emergency contact recorded by the terminal device 102 .
为了能够更好地理解本申请实施例,下面对本申请实施例的终端设备的结构进行介绍。示例性的,图2为本申请实施例提供的一种终端设备的结构示意图。In order to better understand the embodiment of the present application, the structure of the terminal device in the embodiment of the present application is introduced below. Exemplarily, FIG. 2 is a schematic structural diagram of a terminal device provided in an embodiment of the present application.
终端设备可以包括处理器110,内部存储器121,通用串行总线(universal serial bus,USB)接口,充电管理模块140,电源管理模块141,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,传感器模块180,按键190,指示器192,摄像头193,以及显示屏194等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,电感传感器180F、接近光传感器180G,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。The terminal device may include a processor 110, an internal memory 121, a universal serial bus (universal serial bus, USB) interface, a charging management module 140, a power management module 141, an antenna 1, an antenna 2, a mobile communication module 150, and a wireless communication module 160 , an audio module 170, a speaker 170A, a receiver 170B, a sensor module 180, a button 190, an indicator 192, a camera 193, and a display screen 194, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, an inductance sensor 180F, a proximity light sensor 180G, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone Conductivity sensor 180M etc.
可以理解的是,本申请实施例示意的结构并不构成对终端设备的具体限定。在本申请另一些实施例中,终端设备可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that, the structure shown in the embodiment of the present application does not constitute a specific limitation on the terminal device. In other embodiments of the present application, the terminal device may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components. The illustrated components can be realized in hardware, software or a combination of software and hardware.
处理器110可以包括一个或多个处理单元。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。处理器110中还可以设置存储器,用于存储指令和数据。 Processor 110 may include one or more processing units. Wherein, different processing units may be independent devices, or may be integrated in one or more processors. A memory may also be provided in the processor 110 for storing instructions and data.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。电源管理模块141用于连接充电管理模块140与处理器110。The charging management module 140 is configured to receive a charging input from a charger. Wherein, the charger may be a wireless charger or a wired charger. The power management module 141 is used for connecting the charging management module 140 and the processor 110 .
终端设备的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the terminal device can be realized by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
天线1和天线2用于发射和接收电磁波信号。终端设备中的天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Antennas in end devices can be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
移动通信模块150可以提供应用在终端设备上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。The mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on terminal equipment. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like. The mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
无线通信模块160可以提供应用在终端设备上的包括无线局域网(wirelesslocal area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM)等无线通信的解决方案。The wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite system ( global navigation satellite system (GNSS), frequency modulation (frequency modulation, FM) and other wireless communication solutions.
终端设备通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。The terminal device realizes the display function through the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。在一些实施例中,终端设备可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos and the like. The display screen 194 includes a display panel. In some embodiments, the terminal device may include 1 or N display screens 194, where N is a positive integer greater than 1.
终端设备可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The terminal device can realize the shooting function through ISP, camera 193 , video codec, GPU, display screen 194 and application processor.
摄像头193用于捕获静态图像或视频。在一些实施例中,终端设备可以包括1个或N个摄像头193,N为大于1的正整数。Camera 193 is used to capture still images or video. In some embodiments, the terminal device may include 1 or N cameras 193, where N is a positive integer greater than 1.
内部存储器121可以用于存储计算机可执行程序代码,可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。The internal memory 121 may be used to store computer-executable program codes including instructions. The internal memory 121 may include an area for storing programs and an area for storing data.
终端设备可以通过音频模块170,扬声器170A,受话器170B,以及应用处理器等实现音频功能。例如音乐播放,录音等。The terminal device can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, and the application processor. Such as music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。终端设备可以通过扬声器170A收听音乐,或收听免提通话。受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当终端设备接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal. Speaker 170A, also referred to as a "horn", is used to convert audio electrical signals into sound signals. The terminal device can listen to music through the speaker 170A, or listen to hands-free calls. Receiver 170B, also called "earpiece", is used to convert audio electrical signals into sound signals. When the terminal device answers a phone call or voice information, the receiver 170B can be placed close to the human ear to listen to the voice.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。陀螺仪传感器180B可以用于确定终端设备的运动姿态。气压传感器180C用于测量气压。磁传感器180D包括霍尔传感器。The pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal. In some embodiments, pressure sensor 180A may be disposed on display screen 194 . The gyroscope sensor 180B can be used to determine the motion posture of the terminal device. The air pressure sensor 180C is used to measure air pressure. The magnetic sensor 180D includes a Hall sensor.
加速度传感器180E可检测终端设备在各个方向上加速度的大小。本申请实施例中,该加速度传感器180E可以为三轴(包括x轴、y轴和z轴)加速度计传感器,用于测量用户在跌倒、非跌倒状态、抽搐以及非抽搐等状态下的加速度计数据(或称加速计数据或加速度数据等)。The acceleration sensor 180E can detect the acceleration of the terminal device in various directions. In the embodiment of the present application, the acceleration sensor 180E can be a three-axis (including x-axis, y-axis and z-axis) accelerometer sensor, which is used to measure the user's accelerometer in the state of falling, non-falling, twitching and non-twitching. data (or accelerometer data or acceleration data, etc.).
电感传感器180F,用于检测人体皮肤电信号,该人体皮肤电信号的变化情况可以用于表征皮肤内的肌肉的紧张程度。本申请实施例中,可以通过电感传感器180F检测表面肌电信号(surface electromyography,sEMG)等,该sEMG可以为人体表面肌肉通过收缩产生的生物电流。例如,当电感传感器180F检测到sEMG的信号在短时间内突然增加时, 终端设备可以确定此时用户的肌肉处于僵硬状态。The inductance sensor 180F is used to detect the electrical skin signal of the human body, and the change of the electrical skin signal of the human body can be used to represent the tension degree of the muscles in the skin. In the embodiment of the present application, the inductance sensor 180F may be used to detect surface electromyography (sEMG), etc., and the sEMG may be a biological current generated by the contraction of the surface muscles of the human body. For example, when the inductance sensor 180F detects that the sEMG signal suddenly increases within a short period of time, the terminal device may determine that the user's muscles are in a stiff state at this time.
接近光传感器180G可以包括例如发光二极管(light emitting diode,LED)和光检测器,该光检测器可以为光电二极管(photo diode,PD)。本申请实施例中,接近光传感器180G可以采用光电容积脉搏波描记法(photoplethysmographic,PPG)检测用户的心率或其他人体特征。其中,该接近光传感器180G中的LED可以用于发出红光、绿光或红外光等光源,该接近光传感器180G中的PD可以用于接收LED光信号,并将该光信号处理为电信号。例如,PD可以用于接收由LED发送的且经过皮肤组织反射回的光信号,并将该信号处理为电信号,进而终端设备可以基于该电信号检测用户的心率、呼吸率或血氧等人体特征。The proximity light sensor 180G may include, for example, a light emitting diode (light emitting diode, LED) and a light detector, and the light detector may be a photodiode (photo diode, PD). In the embodiment of the present application, the proximity light sensor 180G may use photoplethysmography (photoplethysmographic, PPG) to detect the user's heart rate or other human body characteristics. Wherein, the LED in the proximity light sensor 180G can be used to emit light sources such as red light, green light or infrared light, and the PD in the proximity light sensor 180G can be used to receive the LED light signal and process the light signal into an electrical signal . For example, PD can be used to receive the light signal sent by LED and reflected back by skin tissue, and process the signal into an electrical signal, and then the terminal device can detect the user's heart rate, breathing rate or blood oxygen based on the electrical signal. feature.
环境光传感器180L用于感知环境光亮度。The ambient light sensor 180L is used for sensing ambient light brightness.
温度传感器180J用于检测温度。本申请实施例中,当该终端设备接触用户的皮肤时,该温度传感器180J可以用于测量皮肤的温度(或也可以理解为用户的体温)。The temperature sensor 180J is used to detect temperature. In the embodiment of the present application, when the terminal device touches the user's skin, the temperature sensor 180J can be used to measure the temperature of the skin (or it can also be understood as the user's body temperature).
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。骨传导传感器180M可以获取振动信号。The touch sensor 180K is also called "touch device". The touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”. The bone conduction sensor 180M can acquire vibration signals.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。终端设备可以接收按键输入,产生与终端设备的用户设置以及功能控制有关的键信号输入。指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电或通知等。The keys 190 include a power key, a volume key and the like. The key 190 may be a mechanical key. It can also be a touch button. The terminal device can receive key input and generate key signal input related to user settings and function control of the terminal device. The indicator 192 can be an indicator light, which can be used to indicate the charging status, the change of the battery capacity, and can also be used to indicate messages, missed calls or notifications, etc.
示例性的,图3为本申请实施例提供的一种癫痫检测的架构示意图。如图3所示,该癫痫检测架构中可以包括:跌倒检测模块301、抽搐检测模块302、小臂肌肉电信号检测模块303、健康辅助模块304以及癫痫检测模块305等。其中,跌倒检测模块301用于检测用户是否处于跌倒状态;抽搐检测模块302用于检测用户是否处于抽搐状态;小臂肌肉电信号检测模块303用于检测用户是否处于肌肉僵硬状态;健康辅助模块304用于检测用户的人体特征,该人体特征可以为心率或体温等;癫痫检测模块305用于根据用户的跌倒状态、抽搐状态或肌肉僵硬状态等,以及用户的人体特征,检测用户是否处于癫痫发作状态。Exemplarily, FIG. 3 is a schematic diagram of an epilepsy detection architecture provided by an embodiment of the present application. As shown in FIG. 3 , the epilepsy detection architecture may include: a fall detection module 301 , a twitch detection module 302 , a forearm muscle electrical signal detection module 303 , a health assistance module 304 , and an epilepsy detection module 305 . Wherein, the fall detection module 301 is used to detect whether the user is in a state of falling; the twitch detection module 302 is used to detect whether the user is in a twitch state; the forearm muscle electrical signal detection module 303 is used to detect whether the user is in a muscle stiffness state; the health assistance module 304 It is used to detect the user's human body characteristics, which can be heart rate or body temperature, etc.; the epilepsy detection module 305 is used to detect whether the user is in an epileptic seizure according to the user's fall state, convulsion state, or muscle stiffness state, etc., as well as the user's human body characteristics state.
在跌倒检测模块301中,终端设备可以基于三轴加速度计传感器获取用户的加速度计数据,基于上述加速度计数据进行跌倒状态的传统特征提取和深度特征提取,并将上述传统特征和深度特征输入至训练好的跌倒检测模型中进行预测,进而终端设备可以输出该传统特征和深度特征对应的跌倒检测结果,例如用户为跌倒状态或者用户为非跌倒状态。其中,该跌倒检测模型是由癫痫患者跌倒状态的加速度计样本数据,以及癫痫患者非跌倒状态的加速度计样本数据训练得到的。该传统特征可以理解为基于加速度计数据的简单计算或统计可以得到的特征,该深度特征可以为基于神经网络模型对该加速度计数据进行进一步挖掘的,得到的更深、更为抽象的特征。In the fall detection module 301, the terminal device can obtain the user's accelerometer data based on the three-axis accelerometer sensor, perform traditional feature extraction and deep feature extraction of the fall state based on the above accelerometer data, and input the above traditional features and depth features into Prediction is made in the trained fall detection model, and then the terminal device can output the fall detection result corresponding to the traditional feature and the deep feature, for example, the user is in a falling state or the user is in a non-falling state. Among them, the fall detection model is obtained by training the accelerometer sample data of the epileptic patient in the falling state and the accelerometer sample data of the epileptic patient in the non-falling state. The traditional feature can be understood as a feature that can be obtained based on simple calculation or statistics of the accelerometer data, and the deep feature can be a deeper and more abstract feature obtained by further mining the accelerometer data based on the neural network model.
在抽搐检测模块302中,终端设备可以基于三轴加速度计传感器获取用户的加速度计数据,并基于上述加速度计数据判断用户是否为静止状态、走或跑状态和相对微动状态,若用户不属于上述三种状态,则终端设备可以基于上述加速度计数据进行抽搐状态的传统特征提取,并将上述传统特征输入至训练好的抽搐检测模型中进行预测,进而终端设备可 以输出该传统特征对应的抽搐检测结果,例如用户为抽搐状态或者用户为非抽搐状态。其中,该抽搐检测模型是由癫痫患者抽搐状态的加速度计样本数据,以及癫痫患者非抽搐状态的加速度计样本数据训练得到的。In the twitch detection module 302, the terminal device can obtain the user's accelerometer data based on the three-axis accelerometer sensor, and judge whether the user is in a static state, walking or running state, and relatively inching state based on the above accelerometer data. For the above three states, the terminal device can extract the traditional feature of the twitch state based on the above accelerometer data, and input the above traditional feature into the trained twitch detection model for prediction, and then the terminal device can output the twitch corresponding to the traditional feature Detection results, for example, the user is in a twitching state or the user is in a non-twitching state. Wherein, the twitch detection model is obtained by training the accelerometer sample data of epileptic patients in twitch state and the accelerometer sample data of epileptic patients in non-twitch state.
在小臂肌肉电信号检测模块303中,终端设备可以基于电感传感器检测用户的皮肤表面的sEMG信号,通过检测sEMG信号是否在短时间内突然增加,确定小臂肌肉是否僵硬。可以理解的是,以终端设备为智能手环为例,用户在不同的部位佩戴智能手环时,智能手环可以检测不同部位的肌肉的僵硬情况。例如,当用户在手腕中佩戴智能手环时,智能手环可以基于检测到的sEMG信号,确定小臂肌肉是否僵硬;或者,当用户在脚腕中佩戴智能手环时,智能手环也可以基于检测到的sEMG信号,确定小腿肌肉是否僵硬。本申请实施例中,对用户佩戴终端设备的部位,以及终端设备进行僵硬检测的部位不做具体限定。In the forearm muscle electrical signal detection module 303, the terminal device can detect the sEMG signal on the user's skin surface based on the inductive sensor, and determine whether the forearm muscle is stiff by detecting whether the sEMG signal suddenly increases in a short time. It can be understood that, taking the terminal device as an example of a smart bracelet, when the user wears the smart bracelet at different parts, the smart bracelet can detect muscle stiffness in different parts. For example, when the user wears the smart bracelet in the wrist, the smart bracelet can determine whether the forearm muscles are stiff based on the detected sEMG signal; or, when the user wears the smart bracelet in the ankle, the smart bracelet can also Based on the detected sEMG signal, it is determined whether the calf muscle is stiff. In the embodiment of the present application, there is no specific limitation on the position where the user wears the terminal device and the position where the terminal device performs stiffness detection.
在健康辅助模块304中,终端设备可以基于温度传感器检测用户的体温,或者基于接近光传感器检测用户的心率等人体特征。可以理解的是,用于癫痫检测获取的人体特征可以根据实际场景包括其他内容,本申请实施例中对此不做限定。In the health assistance module 304, the terminal device may detect the user's body temperature based on the temperature sensor, or detect the user's heart rate and other human body characteristics based on the proximity light sensor. It can be understood that the human body features used for epilepsy detection and acquisition may include other content according to actual scenarios, which is not limited in this embodiment of the present application.
在癫痫检测模块305中,当终端设备确定用户满足跌倒状态、抽搐状态或肌肉僵硬状态中的至少一种,并且,终端设备确定用户的心率超出正常状态下的心率的30%,和/或用户的体温超出正常状态下的体温的30%时,则终端设备可以判断用户处于癫痫发作状态。In the epilepsy detection module 305, when the terminal device determines that the user meets at least one of the state of falling, convulsions, or muscle stiffness, and the terminal device determines that the user's heart rate exceeds 30% of the heart rate in the normal state, and/or the user When the body temperature exceeds 30% of the body temperature in a normal state, the terminal device can determine that the user is in a state of epileptic seizures.
基于此,终端设备不仅可以实现用户的癫痫发作的实时检测,也可以准确的识别癫痫发病的具体症状,进而医生可以基于检测到的癫痫发作的数据,准确判断癫痫患者的病情。Based on this, the terminal device can not only realize the real-time detection of the user's epilepsy, but also accurately identify the specific symptoms of epilepsy, and then the doctor can accurately judge the condition of the epilepsy patient based on the detected data of the epilepsy.
下面以具体地实施例对本申请的技术方案以及本申请的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的实施例可以独立实现,也可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。The technical solution of the present application and how the technical solution of the present application solves the above technical problems will be described in detail below with specific embodiments. The following specific embodiments may be implemented independently, or may be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
本申请实施例中提供的癫痫检测方案不仅能够实时检测癫痫患者的发作情况,也能识别出癫痫发作的具体症状,例如该癫痫症状为跌倒、抽搐、或者肌肉僵硬。因此,本申请实施例中可以实现对于跌倒状态的检测(如图4对应的实施例),对于抽搐状态的检测(如图7对应的实施例),对于肌肉僵硬状态的检测,以及基于跌倒状态、抽搐状态、肌肉僵硬状态和用户的人体数据实现对于癫痫状态的检测。The epilepsy detection solution provided in the embodiments of the present application can not only detect the seizures of epilepsy patients in real time, but also identify the specific symptoms of epilepsy, for example, the symptoms of epilepsy are falls, convulsions, or muscle stiffness. Therefore, in the embodiment of the present application, the detection of the state of falling (as shown in the corresponding embodiment in Figure 4), the detection of the twitching state (as in the embodiment corresponding to Figure 7), the detection of the state of muscle stiffness, and the detection of the state based on the falling state can be realized. , twitch state, muscle stiffness state and user's human body data to realize the detection of epilepsy state.
示例性的,本申请实施例可以实现对于跌倒状态的检测。例如,图4为本申请实施例提供的一种跌倒检测方法的流程示意图。如图4所示,跌倒检测方法可以包括:Exemplarily, the embodiment of the present application can realize the detection of the falling state. For example, FIG. 4 is a schematic flowchart of a fall detection method provided in an embodiment of the present application. As shown in Figure 4, fall detection methods can include:
S401、终端设备采集用户的加速度计数据。S401. The terminal device collects accelerometer data of the user.
本申请实施例中,该用户的加速度计数据包括:癫痫患者抽搐时的加速度计数据,以及癫痫患者非抽搐时的加速度计数据。In the embodiment of the present application, the user's accelerometer data includes: the accelerometer data of the epileptic patient when he is convulsed, and the accelerometer data of the epileptic patient when he is not convulsing.
终端设备从三轴加速计传感器接收到的加速度计数据可以为:The accelerometer data received by the terminal device from the three-axis accelerometer sensor can be:
Figure PCTCN2022092800-appb-000005
Figure PCTCN2022092800-appb-000005
其中,该Acc(t)可以为经过时间戳校准同步的三轴时序数组。该三轴加速计传感器采集加速度计数据的频率可以为100赫兹(hz),可以理解为1s采集100次加速度计数据,每10毫秒(ms)采集一次加速度计数据。Wherein, the Acc(t) may be a three-axis time series array synchronized by time stamp calibration. The frequency at which the three-axis accelerometer sensor collects accelerometer data may be 100 hertz (hz), which can be understood as collecting accelerometer data 100 times in 1 second, and accelerometer data is collected every 10 milliseconds (ms).
S402、终端设备对加速度计数据进行预处理。S402. The terminal device preprocesses the accelerometer data.
本申请实施例中,该预处理的过程可以包括低通滤波以及降采样等处理。示例性的, 为滤除高频噪声的影响,终端设备可以将S401中获取的加速度计数据输入至低通滤波器进行滤波处理。例如利用窗长为L 1,幅值
Figure PCTCN2022092800-appb-000006
的滤波器分别在三个维度上进行滤波,则矩形窗W L卷积原始数据的结果可以为:
In the embodiment of the present application, the preprocessing process may include processing such as low-pass filtering and down-sampling. Exemplarily, in order to filter out the influence of high-frequency noise, the terminal device may input the accelerometer data acquired in S401 to a low-pass filter for filtering processing. For example, using the window length L 1 , the amplitude
Figure PCTCN2022092800-appb-000006
The filters of are respectively filtered in three dimensions, then the result of convolving the original data with the rectangular window W L can be:
Figure PCTCN2022092800-appb-000007
Figure PCTCN2022092800-appb-000007
进一步的,在不影响精度的前提下,为降低后续数据处理的复杂度以及后续模型参数的内存占用,终端设备可以对数据进行降采样处理:Furthermore, without affecting the accuracy, in order to reduce the complexity of subsequent data processing and the memory usage of subsequent model parameters, the terminal device can down-sample the data:
Acc(t)=Acc(5i)  i=0,1,2,3,…Acc(t)=Acc(5i) i=0,1,2,3,…
S403、终端设备对预处理后的数据进行传统特征提取。S403. The terminal device performs traditional feature extraction on the preprocessed data.
本申请实施例中,该传统特征可以包括:加速度强度矢量(signal magnitude vector,SMV)(或也可以称为合速度),合速度最大值,合速度最小值、合速度最大最小差值,快速傅里叶变换(fast fourier transform,FFT)特征向量,加速度变化速率,合速度的平均值,加速度方差,5s内的加速度x,y,z的均值等至少10个数据。因此,每秒钟可以产生1*10个数据。In the embodiment of the present application, the traditional features may include: acceleration intensity vector (signal magnitude vector, SMV) (or also called combined velocity), combined velocity maximum value, combined velocity minimum value, combined velocity maximum and minimum difference, fast At least 10 data such as Fourier transform (fast fourier transform, FFT) eigenvector, acceleration change rate, average value of total velocity, acceleration variance, and average value of acceleration x, y, z within 5s. Therefore, 1*10 data can be generated every second.
其中,该合速度可以为:Among them, the combined speed can be:
Figure PCTCN2022092800-appb-000008
Figure PCTCN2022092800-appb-000008
其中,x,y,z可以分别为x轴,y轴,z轴上的加速度计数据。该合速度可以1秒内20个合速度中的第10个合速度,用于表征1s时的跌倒状态下的瞬时速度。Wherein, x, y, and z can be the accelerometer data on the x-axis, y-axis, and z-axis respectively. The combined speed can be the tenth combined speed among the 20 combined speeds within 1 second, which can be used to represent the instantaneous speed in the falling state in 1 second.
该合速度最大值可以为:该1s内多次合速度中的最大值。该合速度最小值可以为:该1s内多次合速度中的最小值。The maximum combined speed may be: the maximum value among multiple combined speeds within 1 second. The minimum combined speed may be: the minimum value among multiple combined speeds within 1 second.
该合速度最大最小差值可以为:该1s内多次合速度中的最大值与最小值的差值。The maximum and minimum difference of combined speed may be: the difference between the maximum value and the minimum value of multiple combined speeds within 1 second.
该FFT特征向量可以为:用于将时域数据转化为频域数据。本申请实施例中,每1秒可以任取0.5s的加速度计数据进行FFT计算。The FFT eigenvector may be used for converting time domain data into frequency domain data. In the embodiment of the present application, 0.5s of accelerometer data can be randomly selected every 1 second for FFT calculation.
该加速度的变化速率可以为:合速度的变化率。例如,第1秒的合速度为第1秒内20个合速度的平均值,则第2秒的加速度变化速率可以为,第2秒的第一个合速度的数值与第1秒的合速度的变化率(或也可以理解为,对上一秒的加速度平均值进行求导)。用于表示跌倒状态下的加速度变化情况。The rate of change of the acceleration may be: the rate of change of the combined velocity. For example, the combined speed in the first second is the average value of 20 combined speeds in the first second, then the acceleration change rate in the second second can be the value of the first combined speed in the second second and the combined speed in the first second The rate of change of (or it can also be understood as deriving the average value of the acceleration in the last second). It is used to represent the acceleration change in the falling state.
该合速度的平均值可以为:该1s内多次合速度的平均值。The average value of the composite speed may be: the average value of multiple composite speeds within the 1 second.
该加速度方差可以为:该1s内多次合速度的方差值。The acceleration variance may be: a variance value of multiple combined velocities within 1 second.
该5s内的加速度x,y,z的均值可以为:当取第1秒的加速度均值时,x可以为该第1秒内x轴获取的20个加速度计数据的平均值,y可以为该第1秒内y轴获取的20个加速度计数据的平均值,z可以为该第1秒内z轴获取的20个加速度计数据的平均值。当取第2秒的加速度均值时,x可以为取该上述第1秒的x轴的加速度均值与第2秒内x轴获取的20个加速度计数据的平均值的平均值,y可以为取该上述第1秒的y轴的加速度均值与第2秒内y轴获取的20个加速度计数据的平均值的平均值,z可以为取该上述第1秒的z轴的加速度均值与第2秒内z轴获取的20个加速度计数据的平均值的平均值。其他秒的加速度均值与上述第2秒的加速度均值类似,在此不再赘述。The average value of the acceleration x, y, and z within the 5s can be: when taking the acceleration average value in the first second, x can be the average value of the 20 accelerometer data acquired by the x-axis in the first second, and y can be the The average value of 20 accelerometer data acquired by the y-axis in the first second, and z may be the average value of the 20 accelerometer data acquired by the z-axis in the first second. When taking the average acceleration value in the second second, x can be the average value of the acceleration average value of the x-axis in the first second and the average value of the 20 accelerometer data acquired by the x-axis in the second second, and y can be taken The above-mentioned acceleration average value of the y-axis in the first second and the average value of the average value of the 20 accelerometer data acquired by the y-axis in the second second, z can be the acceleration average value of the above-mentioned first second z-axis and the second The average of the averages of the 20 accelerometer data acquired by the z-axis in seconds. The average acceleration values in other seconds are similar to the above average acceleration values in the second second, and will not be repeated here.
S404、终端设备利用卷积神经网络模型,对预处理后的数据进行深度特征提取。S404. The terminal device uses a convolutional neural network model to extract deep features from the preprocessed data.
示例性的,图5为本申请实施例提供的一种卷积神经网络模型的结构示意图。如图5所示,该卷积神经网络模型可以包括:输入模块501、网络结构模块502,以及输出模块 503,该网络结构模块502可以包括:深度卷积(conv depthwise)模块504、点卷积(conv pointwise)模块505等其他卷积模块。其中,该深度卷积模块504可以由核为3*3的卷积计算层(conv3*3)、归一化层(batch norm)以及拉伸至同一纬度层(scale)等构成,该点卷积模块505可以由核为1*1的卷积计算层(conv1*1)、归一化层(batch norm)以及拉伸至同一纬度层(scale)等构成。该输出模块503中可以包括激活函数,例如双曲正切函数(tanh)。Exemplarily, FIG. 5 is a schematic structural diagram of a convolutional neural network model provided in an embodiment of the present application. As shown in Figure 5, the convolutional neural network model can include: an input module 501, a network structure module 502, and an output module 503, and the network structure module 502 can include: a deep convolution (conv depthwise) module 504, a point convolution (conv pointwise) module 505 and other convolution modules. Wherein, the deep convolution module 504 can be composed of a convolution calculation layer (conv3*3) with a kernel of 3*3, a normalization layer (batch norm), and stretching to the same latitude layer (scale). The product module 505 may be composed of a convolution calculation layer (conv1*1) with a kernel of 1*1, a normalization layer (batch norm), and stretching to the same latitude layer (scale). The output module 503 may include an activation function, such as a hyperbolic tangent function (tanh).
在图5对应的实施例中,该卷积神经网络模型是由加速度计样本数据训练得到的。例如,终端设备向该卷积神经网络模型中输入0.5秒的加速度计数据,例如入参可以为10*3,输出的深度特征的大小,例如出参可以为1*35。In the embodiment corresponding to FIG. 5 , the convolutional neural network model is trained from accelerometer sample data. For example, the terminal device inputs accelerometer data for 0.5 seconds into the convolutional neural network model, for example, the input parameter may be 10*3, and the output depth feature size, for example, the output parameter may be 1*35.
S405、终端设备利用跌倒检测模型,检测该传统特征和深度特征对应的跌倒状态。S405. The terminal device uses the fall detection model to detect a fall state corresponding to the traditional feature and the depth feature.
本申请实施例中,该跌倒检测模型是由,加速度计数据的传统特征样本数据以及加速度计数据的深度特征样本数据训练得到的。In the embodiment of the present application, the fall detection model is obtained by training the traditional feature sample data of the accelerometer data and the deep feature sample data of the accelerometer data.
该跌倒检测模型中的传统特征也可以称为第一运动幅度特征。The traditional feature in the fall detection model can also be called the first motion amplitude feature.
示例性的,图6为本申请实施例提供的一种跌倒检测模型的结构示意图。如图6所示,该跌倒检测模型可以为四层的全连接神经网络模型,包括输入层601、隐含层602、隐含层603以及输出层604。Exemplarily, FIG. 6 is a schematic structural diagram of a fall detection model provided in an embodiment of the present application. As shown in FIG. 6 , the fall detection model may be a four-layer fully connected neural network model, including an input layer 601 , a hidden layer 602 , a hidden layer 603 and an output layer 604 .
在该跌倒检测模型中,传统特征数据以及深度特征数据可以作为输入层601的输入数据,每个数据值可以对应于一个输入节点,输入层的节点数可以为45,例如传统特征的节点数可以为10,深度特征的节点数可以为30。In this fall detection model, traditional feature data and deep feature data can be used as input data of the input layer 601, each data value can correspond to an input node, and the number of nodes in the input layer can be 45, for example, the number of nodes of traditional features can be is 10, and the number of nodes of the depth feature can be 30.
隐含层602和隐含层603的节点数可以为预设的,例如该隐含层602和隐含层603中的节点数可以根据训练该跌倒检测模型的历史记录中得到的,如该节点均可以为15。如图6所示,隐含层602、隐含层603以及输出层604中的w可以为权重(weights),b可以为偏置(bias),可以理解的是,当隐含层602的输入为x时,该隐含层602的输出可以为y=wx+b;隐含层602和隐含层603中的激活函数可以为tanh,或者该激活函数也可以为线性整流函数(rectified linear unit,ReLU)、ReLU 6或S型生长函数(sigmoid)等,本申请实施例中对此不做限定。The number of nodes in the hidden layer 602 and the hidden layer 603 can be preset, for example, the number of nodes in the hidden layer 602 and the hidden layer 603 can be obtained according to the history of training the fall detection model, such as the node Both can be 15. As shown in Figure 6, w in hidden layer 602, hidden layer 603 and output layer 604 can be weights (weights), b can be bias (bias), it can be understood that when the input of hidden layer 602 When x, the output of the hidden layer 602 can be y=wx+b; the activation function in the hidden layer 602 and the hidden layer 603 can be tanh, or the activation function can also be a linear rectification function (rectified linear unit , ReLU), ReLU 6 or S-type growth function (sigmoid), etc., which are not limited in the embodiments of the present application.
输出层604的节点数可以为2,用于输出该传统特征数据以及深度特征数据对应的数据是否属于跌倒状态,上述输出层中采用全连接。The number of nodes in the output layer 604 can be 2, which is used to output whether the data corresponding to the traditional feature data and the deep feature data belongs to the falling state, and the above output layer adopts full connection.
其中,本申请实施例中可以采用共轭梯度法作为跌倒检测模型的训练方法。Wherein, in the embodiment of the present application, the conjugate gradient method may be used as the training method of the fall detection model.
示例性的,根据传统特征样本数据以及深度特征样本数据训练上述跌倒检测模型的一种可能实现为:在待训练的神经网络模型中输入,癫痫患者在跌倒状态下和非跌倒状态下的传统特征样本数据,以及,癫痫患者在跌倒状态下和非跌倒状态下的深度特征样本数据,利用待训练的神经网络模型输出预测的跌倒情况,利用损失函数比较预测跌倒情况与真实跌倒情况的差距,例如可以计算预测的跌倒情况的召回率或误识别率等,当该模型输出的预测跌倒情况与真实跌倒情况不满足损失函数时,则调整该模型参数,继续训练;直到模型输出的预测跌倒情况与真实跌倒情况的差距满足损失函数,则模型训练结束,得到跌倒检测模型。进而,终端设备可以基于用户的加速度计数据的传统特征数据和深度特征数据,识别用户的是否处于跌倒状态。Exemplarily, one possible implementation of training the above fall detection model based on traditional feature sample data and deep feature sample data is: input in the neural network model to be trained, the traditional features of epilepsy patients in the falling state and the non-falling state Sample data, as well as deep feature sample data of epilepsy patients in the fall state and non-fall state, use the neural network model to be trained to output the predicted fall situation, and use the loss function to compare the gap between the predicted fall situation and the real fall situation, for example The recall rate or misrecognition rate of the predicted falls can be calculated. When the predicted falls output by the model and the real falls do not meet the loss function, adjust the model parameters and continue training; until the predicted falls output by the model are consistent with If the gap between real falls satisfies the loss function, the model training ends and a fall detection model is obtained. Furthermore, the terminal device can identify whether the user is in a falling state based on the traditional feature data and the depth feature data of the user's accelerometer data.
可以理解的是,在S401所示的步骤中终端设备获取用户的加速度计数据后,该 S402-S405所示的步骤可以在终端设备中实现或者也可以在服务器中实现。示例性的,终端设备可以将S401所示的步骤中获取的加速度计数据上传至服务器,在服务器中执行S402-S405所示的步骤获取该加速度计数据的传统特征和深度特征,并识别出该传统特征和深度特征对应的跌倒状态,进一步的,服务器可以将上述跌倒状态发送至终端设备。It can be understood that, after the terminal device obtains the user's accelerometer data in the step S401, the steps shown in S402-S405 can be implemented in the terminal device or in the server. Exemplarily, the terminal device may upload the accelerometer data obtained in the step S401 to the server, execute the steps S402-S405 in the server to obtain the traditional features and depth features of the accelerometer data, and identify the The fall state corresponding to the traditional feature and the depth feature, further, the server may send the above fall state to the terminal device.
基于此,终端设备可以根据检测到的用户当前状态的加速度计数据,提取检测跌倒状态对应的传统特征数据以及深度特征数据,并基于跌倒检测模型更准确的识别用户是否处于跌倒状态。Based on this, the terminal device can extract traditional feature data and depth feature data corresponding to the detected fall state based on the detected accelerometer data of the user's current state, and more accurately identify whether the user is in a fall state based on the fall detection model.
示例性的,本申请实施例可以实现对于抽搐状态的检测。例如,图7为本申请实施例提供的一种跌倒检测方法的流程示意图。如图7所示,跌倒检测方法可以包括:Exemplarily, the embodiment of the present application can realize the detection of the twitching state. For example, FIG. 7 is a schematic flowchart of a fall detection method provided in the embodiment of the present application. As shown in Figure 7, fall detection methods may include:
S701、终端设备采集用户的加速度计数据。S701. The terminal device collects accelerometer data of the user.
本申请实施例中,该用户的加速度计数据可以包括:癫痫患者抽搐时的加速度计数据,以及癫痫患者非抽搐时的加速度计数据。In the embodiment of the present application, the user's accelerometer data may include: the accelerometer data of the epileptic patient when he is convulsed, and the accelerometer data of the epileptic patient when he is not convulsing.
S702、终端设备对加速度计数据进行均值滤波处理。S702. The terminal device performs mean filtering processing on the accelerometer data.
可以理解的是,该均值滤波用于去除加速度计数据中的噪声影响。It can be understood that the mean filtering is used to remove the influence of noise in the accelerometer data.
S703、终端设备利用加速度计数据判断当前用户是否处于静止状态、走或跑状态、或相位微动状态等。S703. The terminal device uses the accelerometer data to determine whether the current user is in a static state, a walking or running state, or a phase micro-movement state.
本申请实施例中,当终端设备利用加速度计数据判断当前用户处于静止状态、走或跑状态、或相位微动状态等状态时,则终端设备可以执行S704所示的步骤;或者,当终端设备利用加速度计数据判断当前用户不处于静止状态、走或跑状态、或相位微动状态等状态时,则终端设备可以执行S705所示的步骤。In the embodiment of this application, when the terminal device uses the accelerometer data to judge that the current user is in a static state, a walking or running state, or a phase inching state, etc., the terminal device can perform the steps shown in S704; or, when the terminal device When judging from the accelerometer data that the current user is not in a static state, a walking or running state, or a phase inching state, the terminal device may execute the steps shown in S705.
其中,该静止状态可以理解为加速度计数据中的合速度的差值趋近于0;该微动状态可以理解为该合速度的差值趋近于阈值,例如可以为2等,或者该合速度的差值满足一定差值范围,例如可以为2-3等;该走或跑状态可以理解为该合速度的差值趋近于走或跑对应的差值范围,例如可以为3-10等。或者,上述静止状态、走或跑状态、或相对微动状态也可以基于训练好的检测模型进行识别。Wherein, the static state can be understood as the difference of the combined speed in the accelerometer data approaches 0; The speed difference satisfies a certain difference range, for example, it can be 2-3, etc.; the walking or running state can be understood as the difference of the combined speed approaches the corresponding difference range of walking or running, for example, it can be 3-10 Wait. Alternatively, the aforementioned static state, walking or running state, or relative micro-movement state can also be identified based on a trained detection model.
S704、终端设备结束检测抽搐检测流程。S704. The terminal device ends the twitch detection process.
S705、终端设备对非静止状态、非走或跑状态、以及非相对微动状态对应的加速度计数据进行传统特征提取。S705. The terminal device performs traditional feature extraction on the accelerometer data corresponding to the non-stationary state, the non-walking or running state, and the non-relative micro-motion state.
本申请实施例中,该传统特征可以包括:合速度的平均值、加速度方差、平均偏差、x轴的最大最小差值、y轴的最大最小差值、z轴的最大最小差值。因此,每秒钟可以产生1*6个数据。In the embodiment of the present application, the traditional features may include: the average value of the combined velocity, the variance of the acceleration, the average deviation, the maximum and minimum difference on the x-axis, the maximum and minimum difference on the y-axis, and the maximum and minimum difference on the z-axis. Therefore, 1*6 data can be generated every second.
其中,该合速度的平均值和加速度方差,与S403所示的步骤中的合速度的平均值和加速度方差的取值相同,在此不再赘述。Wherein, the average value of the combined velocity and the variance of the acceleration are the same as the average value of the combined velocity and the variance of the acceleration in the step shown in S403 , and will not be repeated here.
该平均偏差可以为:与上一秒的合速度平均值的差值。The average deviation may be: a difference from the average speed of the previous second.
该x轴的最大最小差值可以为:该1s内x轴中的加速度计数据的最大值和加速度计数据的最小值的差值。The maximum and minimum difference of the x-axis may be: the difference between the maximum value of the accelerometer data and the minimum value of the accelerometer data in the x-axis within 1s.
该y轴的最大最小差值可以为:该1s内y轴中的加速度计数据的最大值和加速度计数据的最小值的差值。The maximum and minimum difference of the y-axis may be: the difference between the maximum value of the accelerometer data and the minimum value of the accelerometer data in the y-axis within 1s.
该z轴的最大最小差值可以为:该1s内z轴中的加速度计数据的最大值和加速度计数 据的最小值的差值。The maximum and minimum difference of the z-axis may be: the difference between the maximum value of the accelerometer data and the minimum value of the accelerometer data in the z-axis within 1s.
S706、终端设备利用抽搐检测模型,检测该传统特征对应的抽搐状态。S706. The terminal device uses the twitch detection model to detect the twitch state corresponding to the traditional feature.
本申请实施例中,该跌倒检测模型是由癫痫患者抽搐状态的传统特征样本数据以及癫痫患者非抽搐状态的传统特征样本数据训练得到的。In the embodiment of the present application, the fall detection model is trained by traditional feature sample data of epileptic patients in convulsive state and traditional feature sample data of epileptic patients in non-convulsive state.
该抽搐检测模型中的传统特征也可以称为第二运动幅度特征。第一运动幅度可以理解为跌倒检测时的运动幅度,第二运动幅度可以理解为抽搐检测时的运动幅度。其中,第二运动幅度大于第一运动幅度。可以理解的是,跌倒检测时的运动幅度较大。The traditional feature in this twitch detection model can also be referred to as the second motion magnitude feature. The first range of motion can be understood as the range of motion during fall detection, and the second range of motion can be understood as the range of motion during detection of convulsions. Wherein, the second motion range is greater than the first motion range. It is understandable that the range of motion during fall detection is large.
可以理解的是,S706所示的步骤中的抽搐检测模型的训练方法,与S405所示的步骤中的跌倒检测模型的训练方法类似。示例性的,根据传统特征样本数据训练抽搐检测模型的一种可能实现为:在待训练的神经网络模型中输入癫痫患者在抽搐状态下和非抽搐状态下的传统特征样本数据,利用待训练的神经网络模型输出预测的抽搐情况,利用损失函数比较预测抽搐情况与真实抽搐情况的差距,例如可以计算预测抽搐情况的召回率或误识别率等,当该模型输出的预测抽搐情况与真实抽搐情况不满足损失函数,则调整该模型参数,继续训练;直到模型输出的预测抽搐情况与真实抽搐情况的差距满足损失函数,则模型训练结束,得到抽搐检测模型。进而,终端设备可以基于用户的加速度计数据的传统特征数据,识别用户的是否处于抽搐状态。It can be understood that the training method of the twitch detection model in the step S706 is similar to the training method of the fall detection model in the step S405. Exemplarily, one possible implementation of training a twitch detection model based on traditional feature sample data is as follows: input traditional feature sample data of epileptic patients in twitching state and non-twitching state in the neural network model to be trained, and use the to-be-trained The neural network model outputs the predicted twitching situation, and uses the loss function to compare the gap between the predicted twitching situation and the real twitching situation. For example, the recall rate or misrecognition rate of the predicted twitching situation can be calculated. If the loss function is not satisfied, adjust the model parameters and continue training; until the gap between the predicted twitching situation output by the model and the real twitching situation satisfies the loss function, then the model training ends and the twitch detection model is obtained. Furthermore, the terminal device can identify whether the user is in a twitching state based on the traditional feature data of the user's accelerometer data.
可以理解的是,在S701所示的步骤中终端设备获取用户的加速度计数据后,该S702-S706所示的步骤可以在终端设备中实现或者也可以在服务器中实现,具体过程不再赘述。It can be understood that, after the terminal device obtains the user's accelerometer data in the step S701, the steps shown in S702-S706 can be implemented in the terminal device or in the server, and the specific process will not be repeated.
基于此,终端设备可以根据检测到的用户当前状态的加速度计数据,提取检测抽搐状态对应的传统特征数据,并基于抽搐检测模型更准确的识别用户是否处于抽搐状态。Based on this, the terminal device can extract the traditional feature data corresponding to the detected twitch state according to the detected accelerometer data of the user's current state, and more accurately identify whether the user is in the twitch state based on the twitch detection model.
示例性的,本申请实施例可以实现对于肌肉僵硬状态的检测。本申请实施例中,终端设备可以基于电感传感器检测用户的皮肤表面的sEMG信号,通过检测sEMG信号是否在短时间内突然增加,确定小臂肌肉是否僵硬。Exemplarily, the embodiment of the present application can realize the detection of muscle stiffness. In the embodiment of the present application, the terminal device can detect the sEMG signal on the user's skin surface based on the inductance sensor, and determine whether the forearm muscle is stiff by detecting whether the sEMG signal suddenly increases in a short period of time.
示例性的,终端设备可以获取一段时间内sEMG信号的采样点,如获取5s内20个sEMG信号的采样点的数据,以20个采样点中的前5个采样点为例,若采样点之间的时间差为△t,当终端设备确定前5个采样点中,第5个采样点的信号,与第1个采样点的信号(或第2个采样点的信号、第3个采样点的信号或第4个采样点的信号)的变化率超过50%,则终端设备可以确定用户处于肌肉僵硬状态。Exemplarily, the terminal device can obtain the sampling points of the sEMG signal within a period of time, such as obtaining the data of 20 sampling points of the sEMG signal within 5 seconds, taking the first 5 sampling points among the 20 sampling points as an example, if the sampling points between The time difference between them is △t, when the terminal equipment determines that among the first 5 sampling points, the signal of the 5th sampling point is different from the signal of the 1st sampling point (or the signal of the 2nd sampling point, the signal of the 3rd sampling point signal or the signal of the fourth sampling point) exceeds 50%, then the terminal device can determine that the user is in a state of muscle stiffness.
可以理解的是,若该20个采样点中的前5个采样点的信号变化率不超过50%,则可以继续判断下5个采样点的信号的变化率,具体判断过程与上述类似,在此不再赘述。It can be understood that if the signal change rate of the first 5 sampling points among the 20 sampling points does not exceed 50%, then the signal change rate of the next 5 sampling points can be judged. The specific judgment process is similar to the above. This will not be repeated here.
可以理解的是,本申请实施例中提供的具体的采样方法以及肌肉僵硬判断方法可以根据实际场景包括其他内容,本申请实施例中对此不做限定。It can be understood that the specific sampling method and muscle stiffness judgment method provided in the embodiment of the present application may include other content according to the actual scene, which is not limited in the embodiment of the present application.
基于此,终端设备可以根据检测到的用户当前状态的sEMG信号的变化情况,更准确的识别用户是否处于肌肉僵硬状态。Based on this, the terminal device can more accurately identify whether the user is in a state of muscle stiffness according to the detected change of the sEMG signal of the user's current state.
示例性的,终端设备可以基于述跌倒检测情况、抽搐检测情况和肌肉僵硬检测情况,以及用户的人体特征数据的异常情况,综合判断用户是否处于癫痫发作状态。Exemplarily, the terminal device may comprehensively determine whether the user is in an epileptic seizure state based on the fall detection situation, twitch detection situation, and muscle stiffness detection situation, as well as the abnormality of the user's human body feature data.
其中,该人体特征数据可以包括心率或体温等数据。该人体特征数据的异常判断可以为,终端设备基于实时监测的人体的心率平均数据,确定当前心率数据超出该人体的心率 平均数据的30%,则终端设备可以确定当前的心率异常;和/或,终端设备基于实时监测的人体的体温平均数据,确定当前体温数据超出该人体的体温平均数据的30%,则终端设备可以确定当前的体温异常。Wherein, the human body characteristic data may include data such as heart rate or body temperature. The abnormality judgment of the human body characteristic data may be that, based on the average heart rate data of the human body monitored in real time, the terminal device determines that the current heart rate data exceeds 30% of the average heart rate data of the human body, then the terminal device can determine the current abnormal heart rate; and/or , the terminal device determines that the current body temperature data exceeds 30% of the average body temperature data of the human body based on the average body temperature data monitored in real time, and the terminal device can determine that the current body temperature is abnormal.
示例性的,当终端设备确定用户满足跌倒状态、抽搐状态或肌肉僵硬状态中的至少一种,以及,用户满足心率数据异常或体温数据异常中的至少一种时,则终端设备可以确定用户处于癫痫发作状态。例如,当终端设备确定用户处于跌倒状态,并且心率数据超出终端设备记录的正常心率数据的25%,由于用户的心率数据并无异常,因此终端设备可以确定当前不处于癫痫发作状态。可以理解的是,上述用于判断人体特征异常的数据,可以根据实际场景包括其他内容,本申请实施例中对此不做限定。Exemplarily, when the terminal device determines that the user meets at least one of a falling state, a twitching state, or a muscle stiffness state, and the user meets at least one of abnormal heart rate data or abnormal body temperature data, the terminal device may determine that the user is in Seizure state. For example, when the terminal device determines that the user is in a falling state, and the heart rate data exceeds 25% of the normal heart rate data recorded by the terminal device, since the user's heart rate data is not abnormal, the terminal device can determine that the user is not currently in an epileptic seizure state. It can be understood that the above-mentioned data for judging the abnormality of human body characteristics may include other content according to the actual scene, which is not limited in this embodiment of the present application.
基于此,终端设备可以通过癫痫发作的状况例如跌倒、抽搐和肌肉僵硬,以及人体特征数据,更准确的识别用户是否处于癫痫发作状态。Based on this, the terminal device can more accurately identify whether the user is in a state of epileptic seizures through epileptic seizure conditions such as falls, convulsions, and muscle stiffness, as well as human body characteristic data.
在终端设备检测到癫痫发作状态的基础上,可能的实现方式中,终端设备不仅可以实时记录用户的癫痫发作状态(如图8对应的实施例),也可以在癫痫发作时将患病情况通过消息发送至终端设备保存的紧急联系人处(如图9对应的实施例)。Based on the detection of the epileptic seizure state by the terminal device, in a possible implementation, the terminal device can not only record the user's epileptic seizure state in real time (as shown in the corresponding embodiment in Figure 8), but also record the disease status through The message is sent to the emergency contact stored in the terminal device (as shown in the embodiment corresponding to FIG. 9 ).
示例性的,图8为本申请实施例提供的一种终端设备的界面示意图。在图8对应的实施例中,以终端设备为智能手表为例进行示例说明,该示例并不构成对本申请实施例的限定。Exemplarily, FIG. 8 is a schematic interface diagram of a terminal device provided in an embodiment of the present application. In the embodiment corresponding to FIG. 8 , the terminal device is a smart watch as an example for illustration, and this example does not constitute a limitation to the embodiment of the present application.
当智能手表接收到用户打开运动健康应用程序中的癫痫记录的操作时,智能手表可以显示如图8中的a所示的界面,该界面中可以显示一段时间内,佩戴智能手表的用户的癫痫发作次数,例如记录6.1-6.7日之内的用户的癫痫发作次数。When the smart watch receives the user's operation of opening the epilepsy record in the sports health application, the smart watch can display an interface as shown in a in Figure 8, which can display the epilepsy of the user wearing the smart watch within a period of time. The number of seizures, for example, recording the number of seizures of the user within 6.1-6.7 days.
如图8中的a所示的界面,当智能手表接收到用户触发6.1-6.7中的任一时间点,例如触发6.4对应的控件的操作时,智能手表可以显示如图8中的b所示的界面,该界面中可以进一步的显示6.4当天,癫痫发作的具体时间,例如在08:00左右发作1次,在12:00左右发作2次,在16:00左右发作1次以及在20:00左右发作1次。或者,当该智能手表与用户的智能手机绑定时,智能手机也可以将癫痫发作对应的数据发送至智能手机,进而用户也可以基于智能手机中记录查看上述癫痫发作对应的数据。On the interface shown in a in Figure 8, when the smart watch receives the user triggering any time point in 6.1-6.7, such as triggering the operation of the control corresponding to 6.4, the smart watch can display as shown in b in Figure 8 The interface, which can further display the specific time of 6.4 on that day, for example, one seizure around 08:00, two seizures around 12:00, one seizure around 16:00 and one seizure at 20:00. 00 around 1 attack. Alternatively, when the smart watch is bound to the user's smart phone, the smart phone can also send the data corresponding to the epileptic seizure to the smart phone, and then the user can also view the above-mentioned data corresponding to the epileptic seizure based on the records in the smart phone.
基于此,终端设备可以实现对于用户的癫痫发作状态的实时监测和记录,该记录的数据将有助于后续用户的癫痫治疗。Based on this, the terminal device can realize real-time monitoring and recording of the user's epileptic seizure status, and the recorded data will be helpful for subsequent epilepsy treatment of the user.
示例性的,图9为本申请实施例提供的另一种终端设备的界面示意图。在图9对应的实施例中,以终端设备为智能手表为例进行示例说明,该示例并不构成对本申请实施例的限定。Exemplarily, FIG. 9 is a schematic interface diagram of another terminal device provided in an embodiment of the present application. In the embodiment corresponding to FIG. 9 , the terminal device is a smart watch as an example for illustration, and this example does not constitute a limitation to the embodiment of the present application.
当智能手表基于本申请实施例提供的癫痫检测方法,检测到用户癫痫发作的症状,例如跌倒症状时,终端设备可以显示如图9所示的界面。该界面中可以显示癫痫状态告警信息,该癫痫状态告警信息可以为,检测到您当前处于跌倒状态,已将您当前的状态上报给紧急联系人。When the smart watch detects the symptoms of the user's epilepsy based on the epilepsy detection method provided by the embodiment of the present application, such as the symptoms of falling, the terminal device may display the interface as shown in FIG. 9 . The interface may display epileptic state warning information, and the epileptic state warning information may be that it is detected that you are currently in a falling state, and your current state has been reported to an emergency contact.
可能的实现方式中,当终端设备接收到用户针对该告警信息的触发时,终端设备可以显示桌面对应的界面。In a possible implementation manner, when the terminal device receives a user's trigger for the alarm information, the terminal device may display an interface corresponding to the desktop.
可能的实现方式中,在检测到用户处于癫痫发作状态时,终端设备也可以获取用户所在的位置信息,并将该位置信息上报给紧急联系人;或者,终端设备也可以发出告警声音, 以便得到及时的救助。In a possible implementation, when detecting that the user is in a state of epileptic seizures, the terminal device can also obtain the location information of the user, and report the location information to the emergency contact; or, the terminal device can also emit an alarm sound, so as to obtain timely assistance.
基于此,即使癫痫患者处于空旷地带,在癫痫发作时无法呼叫他人,终端设备也可以将癫痫患者当前的状态发送至紧急联系人处,进而帮助癫痫患者及时得到救助。Based on this, even if an epileptic patient is in an open area and cannot call others during an epileptic seizure, the terminal device can send the current status of the epileptic patient to the emergency contact, thereby helping the epileptic patient get help in time.
上面结合图3-图9,对本申请实施例提供的方法进行了说明,下面对本申请实施例提供的执行上述方法的装置进行描述。如图10所示,图10为本申请实施例提供的一种癫痫检测装置的结构示意图,该癫痫检测装置可以是本申请实施例中的终端设备,也可以是终端设备内的芯片或芯片系统。The method provided by the embodiment of the present application is described above with reference to FIG. 3-FIG. 9 , and the device for performing the above method provided by the embodiment of the present application is described below. As shown in Figure 10, Figure 10 is a schematic structural diagram of an epilepsy detection device provided in the embodiment of the present application. The epilepsy detection device may be the terminal device in the embodiment of the present application, or it may be a chip or a chip system in the terminal device .
如图10所示,癫痫检测装置100可以用于通信设备、电路、硬件组件或者芯片中,该癫痫检测装置包括:显示单元1001、确定单元1002、处理单元1003、通信单元1004。其中,显示单元1001用于支持癫痫检测方法执行的显示的步骤;确定单元1002用于支持癫痫检测装置执行确定的步骤;处理单元1003用于支持癫痫检测装置执行信息处理的步骤;通信单元1004用于支持癫痫检测装置执行信息的发送和接收的步骤。As shown in FIG. 10 , the epilepsy detection device 100 can be used in a communication device, a circuit, a hardware component or a chip, and the epilepsy detection device includes: a display unit 1001 , a determination unit 1002 , a processing unit 1003 , and a communication unit 1004 . Among them, the display unit 1001 is used to support the steps of displaying performed by the epilepsy detection method; the determination unit 1002 is used to support the epilepsy detection device to perform the steps of determination; the processing unit 1003 is used to support the epilepsy detection device to perform the steps of information processing; the communication unit 1004 uses To support the epilepsy detection device to perform the steps of sending and receiving information.
具体的,本申请实施例提供一种癫痫检测装置100,终端设备包括加速度传感器和电感传感器,装置包括:处理单元1003,用于获取第一数据;第一数据包括加速度计数据和电信号数据;加速度计数据是加速度传感器采集的,电信号数据是电感传感器采集的;处理单元1003,还用于从加速度计数据中提取第一运动幅度特征数据以及深度特征数据;第一运动幅度特征数据为用于跌倒检测的数据;处理单元1003,还用于从加速度计数据中提取第二运动幅度特征数据;第二运动幅度特征数据为用于抽搐检测的数据;处理单元1003,还用于将第一运动幅度特征数据和深度特征数据输入至第一神经网络模型,得到跌倒检测结果;处理单元1003,还用于将第二运动幅度特征数据输入至第二神经网络模型,得到抽搐检测结果;第一运动幅度大于第二运动幅度;当跌倒检测结果满足第一预设条件、抽搐检测结果满足第二预设条件和/或肌肉僵硬检测结果满足第三预设条件时,确定单元1002,用于确定第一数据对应的状态为癫痫发作状态;肌肉僵硬检测结果为基于电信号数据的检测得到的;或者,当跌倒检测结果不满足第一预设条件、抽搐检测结果不满足第二预设条件、和/或肌肉僵硬检测结果不满足第三预设条件时,确定单元1002,还用于确定第一数据对应的状态为非癫痫发作状态。Specifically, an embodiment of the present application provides an epilepsy detection device 100, the terminal device includes an acceleration sensor and an inductance sensor, and the device includes: a processing unit 1003, configured to acquire first data; the first data includes accelerometer data and electrical signal data; The accelerometer data is collected by the acceleration sensor, and the electrical signal data is collected by the inductance sensor; the processing unit 1003 is also used to extract the first motion amplitude feature data and depth feature data from the accelerometer data; the first motion amplitude feature data is used The data used for fall detection; the processing unit 1003 is also used to extract the second motion amplitude feature data from the accelerometer data; the second motion amplitude feature data is data used for twitch detection; the processing unit 1003 is also used to extract the first Input the feature data of the range of motion and the feature data of the depth into the first neural network model to obtain the fall detection result; the processing unit 1003 is also used to input the feature data of the second range of motion into the second neural network model to obtain the twitch detection result; the first The range of motion is greater than the second range of motion; when the fall detection result meets the first preset condition, the twitch detection result meets the second preset condition and/or the muscle stiffness detection result meets the third preset condition, the determination unit 1002 is used to determine The state corresponding to the first data is an epileptic seizure state; the muscle stiffness detection result is obtained based on the detection of electrical signal data; or, when the fall detection result does not meet the first preset condition, the twitch detection result does not meet the second preset condition, And/or when the muscle stiffness detection result does not meet the third preset condition, the determining unit 1002 is further configured to determine that the state corresponding to the first data is a non-epileptic seizure state.
在一种可能的实现方式中,深度特征数据为终端设备利用第三神经网络模型,对加速度计数据进行深度特征提取得到的。In a possible implementation manner, the depth feature data is obtained by the terminal device using the third neural network model to extract the depth feature from the accelerometer data.
在一种可能的实现方式中,第三神经网络模型为终端设备基于加速度计样本数据训练得到的,第三神经网络模型中包括输入模块、深度卷积模块、点卷积模块和输出模块,深度卷积模块中包括核为3*3的卷积计算层、第一归一化层以及第一拉伸至同一纬度层,点卷积模块中包括核为1*1的卷积计算层、第二归一化层以及第二拉伸至同一纬度层。In a possible implementation, the third neural network model is obtained by the terminal device based on accelerometer sample data training, the third neural network model includes an input module, a depth convolution module, a point convolution module and an output module, and the depth The convolution module includes a convolution calculation layer with a kernel of 3*3, the first normalization layer, and the first stretch to the same latitude layer, and the point convolution module includes a convolution calculation layer with a kernel of 1*1, the first Two normalize layers and a second stretch to the same latitude layer.
在一种可能的实现方式中,第一运动幅度特征数据包括以下至少一项:加速度强度矢量SMV,SMV最大值,SMV最小值、SMV最大值与最小的差值,FFT特征向量,加速度变化速率,SMV平均值,加速度方差,x轴的加速度均值,y轴的加速度均值或z轴的加速度均值。In a possible implementation, the first motion amplitude characteristic data includes at least one of the following: acceleration intensity vector SMV, maximum value of SMV, minimum value of SMV, difference between maximum value and minimum value of SMV, FFT feature vector, acceleration rate of change , SMV average, acceleration variance, x-axis acceleration mean, y-axis acceleration mean or z-axis acceleration mean.
在一种可能的实现方式中,第二运动幅度特征数据包括以下至少一项:SMV平均值,加速度方差,平均偏差,x轴最大加速度计数据与最小加速度计数据的差值,y轴最大加速度计数据与最小加速度计数据的差值,或z轴最大加速度计数据与最小加速度计数据的差值。In a possible implementation, the second motion amplitude characteristic data includes at least one of the following: SMV average value, acceleration variance, average deviation, difference between the maximum accelerometer data and the minimum accelerometer data on the x-axis, and the maximum acceleration on the y-axis The difference between the accelerometer data and the minimum accelerometer data, or the z-axis maximum accelerometer data and the minimum accelerometer data.
在一种可能的实现方式中,第一神经网络模型为基于加速度计样本数据对应的运动幅度特征样本数据,以及加速度计数据对应的深度特征样本数据训练得到的,第一神经网络模型为四层全连接的神经网络模型,第一神经网络模型中包括输入层、第一隐含层、第二隐含层和输出层;输入层的节点中包含第一运动幅度特征数据对应的节点数以及深度特征数据对应的节点数。In a possible implementation, the first neural network model is trained based on the motion amplitude feature sample data corresponding to the accelerometer sample data and the depth feature sample data corresponding to the accelerometer data, and the first neural network model has four layers Fully connected neural network model, the first neural network model includes the input layer, the first hidden layer, the second hidden layer and the output layer; the nodes in the input layer include the number of nodes and the depth corresponding to the first motion amplitude feature data The number of nodes corresponding to the feature data.
在一种可能的实现方式中,输入层的节点数为45,第一运动幅度特征数据对应的节点数为10,深度特征数据对应的节点数为35,输出层的节点数为2。In a possible implementation manner, the number of nodes in the input layer is 45, the number of nodes corresponding to the first motion amplitude feature data is 10, the number of nodes corresponding to the depth feature data is 35, and the number of nodes in the output layer is 2.
在一种可能的实现方式中,处理单元1003,具体用于利用均值滤波对加速度计数据进行滤波处理,得到滤波处理后的数据;确定单元1002,具体用于确定滤波处理后的数据是否满足第一状态、第二状态和/或第三状态;第一状态为滤波处理后的数据中的相邻加速度计数据的差值为0的状态,第二状态为滤波处理后的数据中的相邻加速度计数据的差值满足第一差值范围的状态;第三状态为滤波处理后的数据中的相邻加速度计数据的差值满足第二差值范围的状态;当终端设备确定滤波处理后的数据不满足第一状态、第二状态和/或第三状态时,处理单元1003,还具体用于从滤波处理后的数据中提取第二运动幅度特征数据。In a possible implementation manner, the processing unit 1003 is specifically configured to filter the accelerometer data by means of mean filtering to obtain filtered data; the determining unit 1002 is specifically configured to determine whether the filtered data satisfies the first A state, a second state and/or a third state; the first state is a state in which the difference between adjacent accelerometer data in the filtered data is 0, and the second state is the adjacent accelerometer data in the filtered data The difference of accelerometer data satisfies the state of the first difference range; the third state is the state of the difference of adjacent accelerometer data in the filtered data meets the second difference range; when the terminal device determines that after the filtering process When the data does not satisfy the first state, the second state and/or the third state, the processing unit 1003 is further specifically configured to extract the second motion amplitude feature data from the filtered data.
在一种可能的实现方式中,处理单元1003,具体用于:利用滤波器对加速度计数据进行滤波处理,得到滤波处理后的数据;对滤波处理后的数据进行降采样处理,得到降采样处理后的数据;从降采样处理后的数据中提取第一运动幅度特征数据以及深度特征数据。In a possible implementation manner, the processing unit 1003 is specifically configured to: use a filter to filter the accelerometer data to obtain the filtered data; perform down-sampling processing on the filtered data to obtain the down-sampling processing the post-processing data; extracting the first motion amplitude feature data and depth feature data from the down-sampled data.
在一种可能的实现方式中,滤波器为窗长为L 1,幅值为
Figure PCTCN2022092800-appb-000009
的滤波器,滤波处理后的数据Acc L(t)满足下述公式:
In a possible implementation, the filter has a window length of L 1 and an amplitude of
Figure PCTCN2022092800-appb-000009
filter, the filtered data Acc L (t) satisfies the following formula:
Figure PCTCN2022092800-appb-000010
Figure PCTCN2022092800-appb-000010
其中,Acc(t)为加速度计数据,i为大于或等于0的整数。Among them, Acc(t) is accelerometer data, and i is an integer greater than or equal to 0.
在一种可能的实现方式中,显示单元1001,用于显示第一界面;第一界面中包括告警信息;告警信息用于指示用户处于癫痫发作状态;当终端设备接收到针对告警信息的操作时,显示单元1001,还用于显示第二界面;第二界面为终端设备的桌面对应的界面。In a possible implementation manner, the display unit 1001 is configured to display a first interface; the first interface includes warning information; the warning information is used to indicate that the user is in a state of epileptic seizure; when the terminal device receives an operation on the warning information , the display unit 1001 is further configured to display a second interface; the second interface is an interface corresponding to the desktop of the terminal device.
在一种可能的实现方式中,通信单元1004,用于将癫痫发作状态发送至其他设备,其他设备为终端设备记录的癫痫发作时的紧急联系人对应的设备。In a possible implementation manner, the communication unit 1004 is configured to send the epileptic seizure state to other devices, and the other device is a device corresponding to an emergency contact during an epileptic seizure recorded by the terminal device.
在一种可能的实现方式中,电信号数据为表面肌电信号sEMG。In a possible implementation manner, the electrical signal data is a surface electromyography signal sEMG.
在一种可能的实现方式中,第一数据还包括温度数据和心率数据,当跌倒检测结果满足第一预设条件、抽搐检测结果满足第二预设条件和/或肌肉僵硬检测结果满足第三预设条件时,包括:当跌倒检测结果满足第一预设条件、抽搐检测结果满足第二预设条件和/或肌肉僵硬检测结果满足第三预设条件,并且,心率数据满足第四预设条件和/或温度数据满足第五预设条件时;其中,终端设备还包括温度传感器和接近光传感器,温度数据是温度传感器采集的,心率数据是接近光传感器采集的。In a possible implementation manner, the first data further includes temperature data and heart rate data. When the fall detection result satisfies the first preset condition, the twitch detection result satisfies the second preset condition, and/or the muscle stiffness detection result satisfies the third preset condition, Preset conditions include: when the fall detection result meets the first preset condition, the twitch detection result meets the second preset condition and/or the muscle stiffness detection result meets the third preset condition, and the heart rate data satisfies the fourth preset condition When the condition and/or the temperature data meet the fifth preset condition; wherein, the terminal device further includes a temperature sensor and a proximity light sensor, the temperature data is collected by the temperature sensor, and the heart rate data is collected by the proximity light sensor.
在癫痫检测装置100中,显示单元1001、确定单元1002、处理单元1003以及通信单元1004可以通过线路相连。其中,通信单元1004可以是输入或者输出接口、管脚或者电 路等。示例性的,存储单元1005可以存储终端设备中的计算机执行指令,以使处理单元1003执行上述实施例中的方法。存储单元1005可以是寄存器、缓存或者RAM等,存储单元1005可以和处理单元1003集成在一起。存储单元1005可以是ROM或者可存储静态信息和指令的其他类型的静态存储设备,存储单元1005可以与处理单元1302相独立。In the epilepsy detection device 100 , the display unit 1001 , the determination unit 1002 , the processing unit 1003 and the communication unit 1004 may be connected by wires. Wherein, the communication unit 1004 may be an input or output interface, a pin or a circuit, and the like. Exemplarily, the storage unit 1005 may store computer execution instructions in the terminal device, so as to enable the processing unit 1003 to execute the methods in the foregoing embodiments. The storage unit 1005 may be a register, a cache, or a RAM, etc., and the storage unit 1005 may be integrated with the processing unit 1003 . The storage unit 1005 may be a ROM or other types of static storage devices that can store static information and instructions, and the storage unit 1005 may be independent from the processing unit 1302 .
在一种可能的实施例中,癫痫检测装置100还可以包括:存储单元1005。处理单元1003与存储单元1005通过线路相连。In a possible embodiment, the epilepsy detection device 100 may further include: a storage unit 1005 . The processing unit 1003 is connected to the storage unit 1005 through a line.
存储单元1005可以包括一个或者多个存储器,存储器可以是一个或者多个设备、电路中用于存储程序或者数据的器件。The storage unit 1005 may include one or more memories, and the memories may be devices used to store programs or data in one or more devices and circuits.
存储单元1005可以独立存在,通过通信线路与癫痫检测装置具有的处理单元1003相连。存储单元1005也可以和处理单元1003集成在一起。The storage unit 1005 can exist independently, and is connected to the processing unit 1003 of the epilepsy detection device through a communication line. The storage unit 1005 may also be integrated with the processing unit 1003 .
图11为本申请实施例提供的一种控制设备的硬件结构示意图,如图11所示,该控制设备包括处理器1101,通信线路1104以及至少一个通信接口(图11中示例性的以通信接口1103为例进行说明)。FIG. 11 is a schematic diagram of the hardware structure of a control device provided in the embodiment of the present application. As shown in FIG. 1103 as an example for illustration).
处理器1101可以是一个通用中央处理器(central processing unit,CPU),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制本申请方案程序执行的集成电路。The processor 1101 can be a general-purpose central processing unit (central processing unit, CPU), a microprocessor, a specific application integrated circuit (application-specific integrated circuit, ASIC), or one or more for controlling the execution of the application program program integrated circuit.
通信线路1104可包括在上述组件之间传送信息的电路。 Communication lines 1104 may include circuitry that communicates information between the components described above.
通信接口1103,使用任何收发器一类的装置,用于与其他设备或通信网络通信,如以太网,无线局域网(wireless local area networks,WLAN)等。The communication interface 1103 uses any device such as a transceiver for communicating with other devices or communication networks, such as Ethernet, wireless local area networks (wireless local area networks, WLAN) and so on.
可能的,该控制设备还可以包括存储器1102。Possibly, the control device may also include a memory 1102 .
存储器1102可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器可以是独立存在,通过通信线路1104与处理器相连接。存储器也可以和处理器集成在一起。The memory 1102 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (random access memory, RAM) or other types that can store information and instructions It can also be an electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired program code in the form of instructions or data structures and can be programmed by a computer Any other medium accessed, but not limited to. The memory may exist independently and be connected to the processor through the communication line 1104 . Memory can also be integrated with the processor.
其中,存储器1102用于存储执行本申请方案的计算机执行指令,并由处理器1101来控制执行。处理器1101用于执行存储器1102中存储的计算机执行指令,从而实现本申请实施例所提供的方法。Wherein, the memory 1102 is used to store computer-executed instructions for implementing the solutions of the present application, and the execution is controlled by the processor 1101 . The processor 1101 is configured to execute computer-executed instructions stored in the memory 1102, so as to implement the method provided in the embodiment of the present application.
可能的,本申请实施例中的计算机执行指令也可以称之为应用程序代码,本申请实施例对此不作具体限定。Possibly, the computer-executed instructions in the embodiment of the present application may also be referred to as application program code, which is not specifically limited in the embodiment of the present application.
在具体实现中,作为一种实施例,处理器1101可以包括一个或多个CPU,例如图11中的CPU0和CPU1。In a specific implementation, as an embodiment, the processor 1101 may include one or more CPUs, for example, CPU0 and CPU1 in FIG. 11 .
在具体实现中,作为一种实施例,控制设备可以包括多个处理器,例如图11中的处理器1101和处理器1105。这些处理器中的每一个可以是一个单核(single-CPU)处理器,也可以是一个多核(multi-CPU)处理器。这里的处理器可以指一个或多个设备、电路、和 /或用于处理数据(例如计算机程序指令)的处理核。In a specific implementation, as an embodiment, the control device may include multiple processors, for example, processor 1101 and processor 1105 in FIG. 11 . Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
示例性的,图12为本申请实施例提供的一种芯片的结构示意图。芯片120包括一个或两个以上(包括两个)处理器1220和通信接口1230。Exemplarily, FIG. 12 is a schematic structural diagram of a chip provided by an embodiment of the present application. The chip 120 includes one or more than two (including two) processors 1220 and a communication interface 1230 .
在一些实施方式中,存储器1240存储了如下的元素:可执行模块或者数据结构,或者他们的子集,或者他们的扩展集。In some implementations, the memory 1240 stores the following elements: executable modules or data structures, or subsets thereof, or extensions thereof.
本申请实施例中,存储器1240可以包括只读存储器和随机存取存储器,并向处理器1220提供指令和数据。存储器1240的一部分还可以包括非易失性随机存取存储器(non-volatile random access memory,NVRAM)。In this embodiment of the present application, the memory 1240 may include a read-only memory and a random access memory, and provides instructions and data to the processor 1220 . A part of the memory 1240 may also include a non-volatile random access memory (non-volatile random access memory, NVRAM).
本申请实施例中,存储器1240、通信接口1230以及处理器1220通过总线系统1210耦合在一起。其中,总线系统1210除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。为了便于描述,在图12中将各种总线都标为总线系统1210。In the embodiment of the present application, the memory 1240 , the communication interface 1230 and the processor 1220 are coupled together through the bus system 1210 . Wherein, the bus system 1210 may include not only a data bus, but also a power bus, a control bus, and a status signal bus. For ease of description, the various buses are labeled bus system 1210 in FIG. 12 .
上述本申请实施例描述的方法可以应用于处理器1220中,或者由处理器1220实现。处理器1220可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器1220中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器1220可以是通用处理器(例如,微处理器或常规处理器)、数字信号处理器(digital signal processing,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现成可编程门阵列(field-programmable gate array,FPGA)或者其他可编程逻辑器件、分立门、晶体管逻辑器件或分立硬件组件,处理器1220可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。The methods described in the foregoing embodiments of the present application may be applied to the processor 1220 or implemented by the processor 1220 . The processor 1220 may be an integrated circuit chip and has signal processing capability. In the implementation process, each step of the above method may be implemented by an integrated logic circuit of hardware in the processor 1220 or instructions in the form of software. The above-mentioned processor 1220 may be a general-purpose processor (for example, a microprocessor or a conventional processor), a digital signal processor (digital signal processing, DSP), an application specific integrated circuit (application specific integrated circuit, ASIC), an off-the-shelf programmable gate Array (field-programmable gate array, FPGA) or other programmable logic devices, discrete gates, transistor logic devices or discrete hardware components, the processor 1220 can implement or execute the disclosed methods, steps and logic block diagrams in the embodiments of the present invention .
结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。其中,软件模块可以位于随机存储器、只读存储器、可编程只读存储器或带电可擦写可编程存储器(electrically erasable programmable read only memory,EEPROM)等本领域成熟的存储介质中。该存储介质位于存储器1240,处理器1220读取存储器1240中的信息,结合其硬件完成上述方法的步骤。The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. Wherein, the software module may be located in a mature storage medium in the field such as random access memory, read-only memory, programmable read-only memory, or electrically erasable programmable read only memory (EEPROM). The storage medium is located in the memory 1240, and the processor 1220 reads the information in the memory 1240, and completes the steps of the above method in combination with its hardware.
在上述实施例中,存储器存储的供处理器执行的指令可以以计算机程序产品的形式实现。其中,计算机程序产品可以是事先写入在存储器中,也可以是以软件形式下载并安装在存储器中。In the above embodiments, the instructions stored in the memory for execution by the processor may be implemented in the form of computer program products. Wherein, the computer program product may be written in the memory in advance, or may be downloaded and installed in the memory in the form of software.
计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存储的任何可用介质或者是包括一个或多个可用介质集成的服务器、数据中心等数据存储设备。例如,可用介质可以包括磁性介质(例如,软盘、硬盘或磁带)、光介质(例如,数字通用光盘(digital versatile disc,DVD))、或者半导体介质(例如,固态硬盘(solid state disk,SSD))等。A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part. The computer can be a general purpose computer, special purpose computer, computer network, or other programmable device. Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g. Coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL) or wireless (such as infrared, wireless, microwave, etc.) transmission to another website site, computer, server or data center. Computer readable storage medium can be Any available media capable of being stored by a computer or a data storage device such as a server, data center, etc. integrated with one or more available media. For example, available media may include magnetic media (e.g., floppy disks, hard disks, or tapes), optical media (e.g., A digital versatile disc (digital versatile disc, DVD)), or a semiconductor medium (for example, a solid state disk (solid state disk, SSD)), etc.
本申请实施例还提供了一种计算机可读存储介质。上述实施例中描述的方法可以全部 或部分地通过软件、硬件、固件或者其任意组合来实现。计算机可读介质可以包括计算机存储介质和通信介质,还可以包括任何可以将计算机程序从一个地方传送到另一个地方的介质。存储介质可以是可由计算机访问的任何目标介质。The embodiment of the present application also provides a computer-readable storage medium. The methods described in the foregoing embodiments may be fully or partially implemented by software, hardware, firmware or any combination thereof. Computer-readable media may include computer storage media and communication media, and may include any medium that can transfer a computer program from one place to another. A storage media may be any target media that can be accessed by a computer.
作为一种可能的设计,计算机可读介质可以包括紧凑型光盘只读储存器(compact disc read-only memory,CD-ROM)、RAM、ROM、EEPROM或其它光盘存储器;计算机可读介质可以包括磁盘存储器或其它磁盘存储设备。而且,任何连接线也可以被适当地称为计算机可读介质。例如,如果使用同轴电缆,光纤电缆,双绞线,DSL或无线技术(如红外,无线电和微波)从网站,服务器或其它远程源传输软件,则同轴电缆,光纤电缆,双绞线,DSL或诸如红外,无线电和微波之类的无线技术包括在介质的定义中。如本文所使用的磁盘和光盘包括光盘(CD),激光盘,光盘,数字通用光盘(digital versatile disc,DVD),软盘和蓝光盘,其中磁盘通常以磁性方式再现数据,而光盘利用激光光学地再现数据。As a possible design, the computer-readable medium may include compact disc read-only memory (compact disc read-only memory, CD-ROM), RAM, ROM, EEPROM or other optical disc storage; the computer-readable medium may include a magnetic disk memory or other disk storage devices. Also, any connected cord is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave, then coaxial cable, fiber optic cable, twisted pair, DSL or wireless technologies such as infrared, radio and microwave are included in the definition of medium. Disk and disc, as used herein, includes compact disc (CD), laser disc, compact disc, digital versatile disc (DVD), floppy disk and Blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Reproduce data.
上述的组合也应包括在计算机可读介质的范围内。以上,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。Combinations of the above should also be included within the scope of computer-readable media. The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone familiar with the technical field can easily think of changes or replacements within the technical scope disclosed in the present invention, and should cover all Within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims (31)

  1. 一种癫痫检测方法,其特征在于,终端设备包括加速度传感器和电感传感器,所述方法包括:A method for epilepsy detection, characterized in that the terminal device includes an acceleration sensor and an inductance sensor, and the method includes:
    所述终端设备获取第一数据;所述第一数据包括加速度计数据和电信号数据;所述加速度计数据是所述加速度传感器采集的,所述电信号数据是所述电感传感器采集的;The terminal device acquires first data; the first data includes accelerometer data and electrical signal data; the accelerometer data is collected by the acceleration sensor, and the electrical signal data is collected by the inductance sensor;
    所述终端设备从所述加速度计数据中提取第一运动幅度特征数据以及深度特征数据;所述第一运动幅度特征数据为用于跌倒检测的数据;The terminal device extracts first motion amplitude feature data and depth feature data from the accelerometer data; the first motion amplitude feature data is data used for fall detection;
    所述终端设备从所述加速度计数据中提取第二运动幅度特征数据;所述第二运动幅度特征数据为用于抽搐检测的数据;The terminal device extracts second motion amplitude feature data from the accelerometer data; the second motion amplitude feature data is data used for convulsion detection;
    所述终端设备将所述第一运动幅度特征数据和所述深度特征数据输入至第一神经网络模型,得到跌倒检测结果;The terminal device inputs the first motion amplitude feature data and the depth feature data into a first neural network model to obtain a fall detection result;
    所述终端设备将所述第二运动幅度特征数据输入至第二神经网络模型,得到抽搐检测结果;所述第一运动幅度大于所述第二运动幅度;The terminal device inputs the second motion amplitude feature data into a second neural network model to obtain a twitch detection result; the first motion range is greater than the second motion range;
    当所述跌倒检测结果满足第一预设条件、所述抽搐检测结果满足第二预设条件和/或肌肉僵硬检测结果满足第三预设条件时,所述终端设备确定所述第一数据对应的状态为癫痫发作状态;所述肌肉僵硬检测结果为基于所述电信号数据的检测得到的;When the fall detection result satisfies the first preset condition, the twitch detection result satisfies the second preset condition, and/or the muscle stiffness detection result satisfies the third preset condition, the terminal device determines that the first data corresponds to The state is an epileptic seizure state; the muscle stiffness detection result is obtained based on the detection of the electrical signal data;
    或者,当所述跌倒检测结果不满足所述第一预设条件、所述抽搐检测结果不满足所述第二预设条件、和/或所述肌肉僵硬检测结果不满足所述第三预设条件时,所述终端设备确定所述第一数据对应的状态为非癫痫发作状态。Or, when the fall detection result does not meet the first preset condition, the twitch detection result does not meet the second preset condition, and/or the muscle stiffness detection result does not meet the third preset condition condition, the terminal device determines that the state corresponding to the first data is a non-epileptic seizure state.
  2. 根据权利要求1所述的方法,其特征在于,所述深度特征数据为所述终端设备利用第三神经网络模型,对所述加速度计数据进行深度特征提取得到的。The method according to claim 1, wherein the deep feature data is obtained by the terminal device using a third neural network model to extract deep features from the accelerometer data.
  3. 根据权利要求2所述的方法,其特征在于,所述第三神经网络模型为所述终端设备基于加速度计样本数据训练得到的,所述第三神经网络模型中包括输入模块、深度卷积模块、点卷积模块和输出模块,所述深度卷积模块中包括核为3*3的卷积计算层、第一归一化层以及第一拉伸至同一纬度层,所述点卷积模块中包括核为1*1的卷积计算层、第二归一化层以及第二拉伸至同一纬度层。The method according to claim 2, wherein the third neural network model is obtained by training the terminal device based on accelerometer sample data, and the third neural network model includes an input module and a deep convolution module , a point convolution module and an output module, the depth convolution module includes a convolution calculation layer with a core of 3*3, the first normalization layer and the first stretching to the same latitude layer, the point convolution module Include a convolution calculation layer with a kernel of 1*1, a second normalization layer, and a second stretch to the same latitude layer.
  4. 根据权利要求1所述的方法,其特征在于,所述第一运动幅度特征数据包括以下至少一项:加速度强度矢量SMV,SMV最大值,SMV最小值、所述SMV最大值与所述最小的差值,FFT特征向量,加速度变化速率,SMV平均值,加速度方差,x轴的加速度均值,y轴的加速度均值或z轴的加速度均值。The method according to claim 1, wherein the first motion amplitude feature data includes at least one of the following: acceleration intensity vector SMV, SMV maximum value, SMV minimum value, the SMV maximum value and the minimum Difference, FFT eigenvector, acceleration rate, SMV average, acceleration variance, x-axis acceleration mean, y-axis acceleration mean or z-axis acceleration mean.
  5. 根据权利要求1所述的方法,其特征在于,所述第二运动幅度特征数据包括以下至少一项:SMV平均值,加速度方差,平均偏差,x轴最大加速度计数据与最小加速度计数据的差值,y轴最大加速度计数据与最小加速度计数据的差值,或z轴最大加速度计数据与最小加速度计数据的差值。The method according to claim 1, wherein the second motion amplitude characteristic data comprises at least one of the following: SMV average value, acceleration variance, average deviation, and the difference between the maximum accelerometer data and the minimum accelerometer data on the x-axis Value, the difference between the maximum accelerometer data and the minimum accelerometer data on the y-axis, or the difference between the maximum accelerometer data and the minimum accelerometer data on the z-axis.
  6. 根据权利要求1所述的方法,其特征在于,所述第一神经网络模型为基于加速度计样本数据对应的运动幅度特征样本数据,以及所述加速度计数据对应的深度特征样本数据训练得到的,所述第一神经网络模型为四层全连接的神经网络模型,所述第一神经网络模型中包括输入层、第一隐含层、第二隐含层和输出层;所述输入层的节点中包含所述第一运动幅度特征数据对应的节点数以及所述深度特征数据对应的节点数。The method according to claim 1, wherein the first neural network model is obtained by training based on the motion amplitude feature sample data corresponding to the accelerometer sample data and the depth feature sample data corresponding to the accelerometer data, The first neural network model is a four-layer fully connected neural network model, including an input layer, a first hidden layer, a second hidden layer and an output layer in the first neural network model; the nodes of the input layer contains the number of nodes corresponding to the first motion amplitude feature data and the number of nodes corresponding to the depth feature data.
  7. 根据权利要求6所述的方法,其特征在于,所述输入层的节点数为45,所述第一运动幅度特征数据对应的节点数为10,所述深度特征数据对应的节点数为35,所述输出层的节点数为2。The method according to claim 6, wherein the number of nodes in the input layer is 45, the number of nodes corresponding to the first motion amplitude feature data is 10, the number of nodes corresponding to the depth feature data is 35, The number of nodes in the output layer is 2.
  8. 根据权利要求1所述的方法,其特征在于,所述终端设备从所述加速度计数据中提取第二运动幅度特征数据,包括:The method according to claim 1, wherein the terminal device extracts the second motion amplitude characteristic data from the accelerometer data, comprising:
    所述终端设备利用均值滤波对所述加速度计数据进行滤波处理,得到滤波处理后的数据;The terminal device performs filtering processing on the accelerometer data by means of mean filtering to obtain filtered data;
    所述终端设备确定所述滤波处理后的数据是否满足第一状态、第二状态和/或第三状态;所述第一状态为所述滤波处理后的数据中的相邻加速度计数据的差值为0的状态,所述第二状态为所述滤波处理后的数据中的相邻加速度计数据的差值满足第一差值范围的状态;所述第三状态为所述滤波处理后的数据中的相邻加速度计数据的差值满足第二差值范围的状态;The terminal device determines whether the filtered data satisfies a first state, a second state and/or a third state; the first state is the difference between adjacent accelerometer data in the filtered data A state with a value of 0, the second state is a state in which the difference between adjacent accelerometer data in the filtered data satisfies the first difference range; the third state is the state after the filtered The difference between adjacent accelerometer data in the data satisfies the state of the second difference range;
    当所述终端设备确定所述滤波处理后的数据不满足所述第一状态、所述第二状态和/或所述第三状态时,所述终端设备从所述滤波处理后的数据中提取所述第二运动幅度特征数据。When the terminal device determines that the filtered data does not satisfy the first state, the second state and/or the third state, the terminal device extracts from the filtered data The second motion amplitude feature data.
  9. 根据权利要求1所述的方法,其特征在于,所述终端设备从所述加速度计数据中提取第一运动幅度特征数据以及深度特征数据,包括:The method according to claim 1, wherein the terminal device extracts the first motion amplitude feature data and depth feature data from the accelerometer data, including:
    所述终端设备利用滤波器对所述加速度计数据进行滤波处理,得到滤波处理后的数据;The terminal device uses a filter to filter the accelerometer data to obtain filtered data;
    所述终端设备对所述滤波处理后的数据进行降采样处理,得到降采样处理后的数据;The terminal device performs down-sampling processing on the filtered data to obtain the down-sampling data;
    所述终端设备从所述降采样处理后的数据中提取所述第一运动幅度特征数据以及所述深度特征数据。The terminal device extracts the first motion amplitude feature data and the depth feature data from the downsampled data.
  10. 根据权利要求9所述的方法,其特征在于,所述滤波器为窗长为L 1,幅值为
    Figure PCTCN2022092800-appb-100001
    的滤波器,所述滤波处理后的数据Acc L(t)满足下述公式:
    The method according to claim 9, wherein the filter has a window length of L 1 and an amplitude of
    Figure PCTCN2022092800-appb-100001
    filter, the filtered data Acc L (t) satisfies the following formula:
    Figure PCTCN2022092800-appb-100002
    Figure PCTCN2022092800-appb-100002
    其中,所述Acc(t)为所述加速度计数据,所述i为大于或等于0的整数。Wherein, the Acc(t) is the accelerometer data, and the i is an integer greater than or equal to 0.
  11. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, further comprising:
    所述终端设备显示第一界面;所述第一界面中包括告警信息;所述告警信息用于指示用户处于所述癫痫发作状态;The terminal device displays a first interface; the first interface includes warning information; the warning information is used to indicate that the user is in the epileptic seizure state;
    当所述终端设备接收到针对所述告警信息的操作时,所述终端设备显示第二界面;所述第二界面为所述终端设备的桌面对应的界面。When the terminal device receives an operation on the alarm information, the terminal device displays a second interface; the second interface is an interface corresponding to the desktop of the terminal device.
  12. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, further comprising:
    所述终端设备将所述癫痫发作状态发送至其他设备,所述其他设备为所述终端设备记录的癫痫发作时的紧急联系人对应的设备。The terminal device sends the epileptic seizure state to other devices, and the other device is a device corresponding to an emergency contact during an epileptic seizure recorded by the terminal device.
  13. 根据权利要求1所述的方法,其特征在于,所述电信号数据为表面肌电信号sEMG。The method according to claim 1, wherein the electrical signal data is a surface electromyography signal sEMG.
  14. 根据权利要求1-13任一项所述的方法,其特征在于,所述第一数据还包括温度数据和心率数据,所述当所述跌倒检测结果满足第一预设条件、所述抽搐检测结果满足第二 预设条件和/或肌肉僵硬检测结果满足第三预设条件时,包括:The method according to any one of claims 1-13, wherein the first data further includes temperature data and heart rate data, and when the fall detection result satisfies the first preset condition, the convulsion detection When the result meets the second preset condition and/or the muscle stiffness detection result meets the third preset condition, including:
    当所述跌倒检测结果满足所述第一预设条件、所述抽搐检测结果满足所述第二预设条件和/或所述肌肉僵硬检测结果满足所述第三预设条件,并且,所述心率数据满足第四预设条件和/或所述温度数据满足第五预设条件时;其中,所述终端设备还包括温度传感器和接近光传感器,所述温度数据是所述温度传感器采集的,所述心率数据是所述接近光传感器采集的。When the fall detection result satisfies the first preset condition, the twitch detection result satisfies the second preset condition, and/or the muscle stiffness detection result satisfies the third preset condition, and, When the heart rate data meets the fourth preset condition and/or the temperature data meets the fifth preset condition; wherein the terminal device further includes a temperature sensor and a proximity light sensor, the temperature data is collected by the temperature sensor, The heart rate data is collected by the proximity light sensor.
  15. 一种癫痫检测装置,其特征在于,终端设备包括加速度传感器和电感传感器,所述装置包括:An epilepsy detection device, characterized in that the terminal device includes an acceleration sensor and an inductance sensor, and the device includes:
    处理单元,用于获取第一数据;所述第一数据包括加速度计数据和电信号数据;所述加速度计数据是所述加速度传感器采集的,所述电信号数据是所述电感传感器采集的;A processing unit, configured to acquire first data; the first data includes accelerometer data and electrical signal data; the accelerometer data is collected by the acceleration sensor, and the electrical signal data is collected by the inductance sensor;
    所述处理单元,还用于从所述加速度计数据中提取第一运动幅度特征数据以及深度特征数据;所述第一运动幅度特征数据为用于跌倒检测的数据;The processing unit is further configured to extract first motion amplitude feature data and depth feature data from the accelerometer data; the first motion amplitude feature data is data used for fall detection;
    所述处理单元,还用于从所述加速度计数据中提取第二运动幅度特征数据;所述第二运动幅度特征数据为用于抽搐检测的数据;The processing unit is further configured to extract second motion amplitude feature data from the accelerometer data; the second motion amplitude feature data is data used for convulsion detection;
    所述处理单元,还用于将所述第一运动幅度特征数据和所述深度特征数据输入至第一神经网络模型,得到跌倒检测结果;The processing unit is further configured to input the first motion amplitude feature data and the depth feature data into a first neural network model to obtain a fall detection result;
    所述处理单元,还用于将所述第二运动幅度特征数据输入至第二神经网络模型,得到抽搐检测结果;所述第一运动幅度大于所述第二运动幅度;The processing unit is further configured to input the second motion amplitude characteristic data into a second neural network model to obtain a twitch detection result; the first motion range is greater than the second motion range;
    当所述跌倒检测结果满足第一预设条件、所述抽搐检测结果满足第二预设条件和/或肌肉僵硬检测结果满足第三预设条件时,确定单元,用于确定所述第一数据对应的状态为癫痫发作状态;所述肌肉僵硬检测结果为基于所述电信号数据的检测得到的;When the fall detection result satisfies a first preset condition, the twitch detection result satisfies a second preset condition, and/or the muscle stiffness detection result satisfies a third preset condition, the determining unit is configured to determine the first data The corresponding state is an epileptic seizure state; the muscle stiffness detection result is obtained based on the detection of the electrical signal data;
    或者,当所述跌倒检测结果不满足所述第一预设条件、所述抽搐检测结果不满足所述第二预设条件、和/或所述肌肉僵硬检测结果不满足所述第三预设条件时,所述确定单元,还用于确定所述第一数据对应的状态为非癫痫发作状态。Or, when the fall detection result does not meet the first preset condition, the twitch detection result does not meet the second preset condition, and/or the muscle stiffness detection result does not meet the third preset condition condition, the determining unit is further configured to determine that the state corresponding to the first data is a non-epileptic state.
  16. 根据权利要求15所述的装置,其特征在于,所述深度特征数据为所述终端设备利用第三神经网络模型,对所述加速度计数据进行深度特征提取得到的。The device according to claim 15, wherein the depth feature data is obtained by the terminal device using a third neural network model to extract depth features from the accelerometer data.
  17. 根据权利要求16所述的装置,其特征在于,所述第三神经网络模型为所述终端设备基于加速度计样本数据训练得到的,所述第三神经网络模型中包括输入模块、深度卷积模块、点卷积模块和输出模块,所述深度卷积模块中包括核为3*3的卷积计算层、第一归一化层以及第一拉伸至同一纬度层,所述点卷积模块中包括核为1*1的卷积计算层、第二归一化层以及第二拉伸至同一纬度层。The device according to claim 16, wherein the third neural network model is obtained by training the terminal device based on accelerometer sample data, and the third neural network model includes an input module and a deep convolution module , a point convolution module and an output module, the depth convolution module includes a convolution calculation layer with a core of 3*3, the first normalization layer and the first stretching to the same latitude layer, the point convolution module Include a convolution calculation layer with a kernel of 1*1, a second normalization layer, and a second stretch to the same latitude layer.
  18. 根据权利要求15所述的装置,其特征在于,所述第一运动幅度特征数据包括以下至少一项:加速度强度矢量SMV,SMV最大值,SMV最小值、所述SMV最大值与所述最小的差值,FFT特征向量,加速度变化速率,SMV平均值,加速度方差,x轴的加速度均值,y轴的加速度均值或z轴的加速度均值。The device according to claim 15, wherein the first motion amplitude feature data includes at least one of the following: acceleration intensity vector SMV, SMV maximum value, SMV minimum value, the SMV maximum value and the minimum Difference, FFT eigenvector, acceleration rate, SMV average, acceleration variance, x-axis acceleration mean, y-axis acceleration mean or z-axis acceleration mean.
  19. 根据权利要求15所述的装置,其特征在于,所述第二运动幅度特征数据包括以下至少一项:SMV平均值,加速度方差,平均偏差,x轴最大加速度计数据与最小加速度计数据的差值,y轴最大加速度计数据与最小加速度计数据的差值,或z轴最大加速度计数据与最小加速度计数据的差值。The device according to claim 15, wherein the second motion amplitude feature data includes at least one of the following: SMV average value, acceleration variance, average deviation, and the difference between the maximum accelerometer data and the minimum accelerometer data on the x-axis Value, the difference between the maximum accelerometer data and the minimum accelerometer data on the y-axis, or the difference between the maximum accelerometer data and the minimum accelerometer data on the z-axis.
  20. 根据权利要求15所述的装置,其特征在于,所述第一神经网络模型为基于加速度计样本数据对应的运动幅度特征样本数据,以及所述加速度计数据对应的深度特征样本数据训练得到的,所述第一神经网络模型为四层全连接的神经网络模型,所述第一神经网络模型中包括输入层、第一隐含层、第二隐含层和输出层;所述输入层的节点中包含所述第一运动幅度特征数据对应的节点数以及所述深度特征数据对应的节点数。The device according to claim 15, wherein the first neural network model is obtained by training based on the motion amplitude feature sample data corresponding to the accelerometer sample data and the depth feature sample data corresponding to the accelerometer data, The first neural network model is a four-layer fully connected neural network model, including an input layer, a first hidden layer, a second hidden layer and an output layer in the first neural network model; the nodes of the input layer contains the number of nodes corresponding to the first motion amplitude feature data and the number of nodes corresponding to the depth feature data.
  21. 根据权利要求20所述的装置,其特征在于,所述输入层的节点数为45,所述第一运动幅度特征数据对应的节点数为10,所述深度特征数据对应的节点数为35,所述输出层的节点数为2。The device according to claim 20, wherein the number of nodes in the input layer is 45, the number of nodes corresponding to the first motion amplitude feature data is 10, the number of nodes corresponding to the depth feature data is 35, The number of nodes in the output layer is 2.
  22. 根据权利要求15所述的装置,其特征在于,所述处理单元,具体用于利用均值滤波对所述加速度计数据进行滤波处理,得到滤波处理后的数据;所述确定单元,具体用于确定所述滤波处理后的数据是否满足第一状态、第二状态和/或第三状态;所述第一状态为所述滤波处理后的数据中的相邻加速度计数据的差值为0的状态,所述第二状态为所述滤波处理后的数据中的相邻加速度计数据的差值满足第一差值范围的状态;所述第三状态为所述滤波处理后的数据中的相邻加速度计数据的差值满足第二差值范围的状态;当所述终端设备确定所述滤波处理后的数据不满足所述第一状态、所述第二状态和/或所述第三状态时,所述处理单元,还具体用于从所述滤波处理后的数据中提取所述第二运动幅度特征数据。The device according to claim 15, wherein the processing unit is specifically configured to filter the accelerometer data by mean filtering to obtain filtered data; the determining unit is specifically configured to determine Whether the filtered data satisfies the first state, the second state and/or the third state; the first state is a state in which the difference between adjacent accelerometer data in the filtered data is 0 , the second state is the state in which the difference between adjacent accelerometer data in the filtered data satisfies the first difference range; the third state is the state in which the adjacent accelerometer data in the filtered data The difference value of the accelerometer data satisfies the state of the second difference range; when the terminal device determines that the filtered data does not satisfy the first state, the second state and/or the third state , the processing unit is further specifically configured to extract the second motion amplitude feature data from the filtered data.
  23. 根据权利要求15所述的装置,其特征在于,所述处理单元,具体用于:利用滤波器对所述加速度计数据进行滤波处理,得到滤波处理后的数据;对所述滤波处理后的数据进行降采样处理,得到降采样处理后的数据;从所述降采样处理后的数据中提取所述第一运动幅度特征数据以及所述深度特征数据。The device according to claim 15, wherein the processing unit is specifically configured to: use a filter to filter the accelerometer data to obtain filtered data; Perform downsampling processing to obtain downsampled data; extract the first motion amplitude feature data and the depth feature data from the downsampled data.
  24. 根据权利要求23所述的装置,其特征在于,所述滤波器为窗长为L 1,幅值为
    Figure PCTCN2022092800-appb-100003
    的滤波器,所述滤波处理后的数据Acc L(t)满足下述公式:
    The device according to claim 23, wherein the filter has a window length of L 1 and an amplitude of
    Figure PCTCN2022092800-appb-100003
    filter, the filtered data Acc L (t) satisfies the following formula:
    Figure PCTCN2022092800-appb-100004
    Figure PCTCN2022092800-appb-100004
    其中,所述Acc(t)为所述加速度计数据,所述i为大于或等于0的整数。Wherein, the Acc(t) is the accelerometer data, and the i is an integer greater than or equal to 0.
  25. 根据权利要求15所述的装置,其特征在于,显示单元,用于显示第一界面;所述第一界面中包括告警信息;所述告警信息用于指示用户处于所述癫痫发作状态;当所述终端设备接收到针对所述告警信息的操作时,所述显示单元,还用于显示第二界面;所述第二界面为所述终端设备的桌面对应的界面。The device according to claim 15, wherein the display unit is configured to display a first interface; the first interface includes warning information; the warning information is used to indicate that the user is in the epileptic seizure state; when the When the terminal device receives an operation on the alarm information, the display unit is further configured to display a second interface; the second interface is an interface corresponding to the desktop of the terminal device.
  26. 根据权利要求15所述的装置,其特征在于,通信单元,用于将所述癫痫发作状态发送至其他设备,所述其他设备为所述终端设备记录的癫痫发作时的紧急联系人对应的设备。The device according to claim 15, wherein the communication unit is configured to send the epileptic seizure state to other devices, and the other device is the device corresponding to the emergency contact during the epileptic seizure recorded by the terminal device .
  27. 根据权利要求15所述的装置,其特征在于,所述电信号数据为表面肌电信号sEMG。The device according to claim 15, wherein the electrical signal data is a surface electromyography signal sEMG.
  28. 根据权利要求15-27任一项所述的装置,其特征在于,所述第一数据还包括温度数据和心率数据,所述当所述跌倒检测结果满足第一预设条件、所述抽搐检测结果满足第二预设条件和/或肌肉僵硬检测结果满足第三预设条件时,包括:当所述跌倒检测结果满足所 述第一预设条件、所述抽搐检测结果满足所述第二预设条件和/或所述肌肉僵硬检测结果满足所述第三预设条件,并且,所述心率数据满足第四预设条件和/或所述温度数据满足第五预设条件时;其中,所述终端设备还包括温度传感器和接近光传感器,所述温度数据是所述温度传感器采集的,所述心率数据是所述接近光传感器采集的。The device according to any one of claims 15-27, wherein the first data further includes temperature data and heart rate data, and when the fall detection result satisfies the first preset condition, the convulsion detection When the result meets the second preset condition and/or the muscle stiffness detection result meets the third preset condition, it includes: when the fall detection result meets the first preset condition, and the twitch detection result meets the second preset condition. Assume that the condition and/or the muscle stiffness detection result satisfies the third preset condition, and the heart rate data satisfies the fourth preset condition and/or the temperature data satisfies the fifth preset condition; wherein, the The terminal device further includes a temperature sensor and a proximity light sensor, the temperature data is collected by the temperature sensor, and the heart rate data is collected by the proximity light sensor.
  29. 一种电子设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时,使得所述电子设备执行如权利要求1至14任一项所述的方法。An electronic device, comprising a memory, a processor, and a computer program stored in the memory and operable on the processor, wherein, when the processor executes the computer program, the electronic device Carrying out the method as described in any one of claims 1 to 14.
  30. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时,使得计算机执行如权利要求1至14任一项所述的方法。A computer-readable storage medium, the computer-readable storage medium stores a computer program, wherein, when the computer program is executed by a processor, the computer executes the method according to any one of claims 1 to 14 .
  31. 一种计算机程序产品,其特征在于,包括计算机程序,当所述计算机程序被运行时,使得计算机执行如权利要求1至14任一项所述的方法。A computer program product, characterized in that it includes a computer program, and when the computer program is run, causes the computer to execute the method according to any one of claims 1 to 14.
PCT/CN2022/092800 2021-06-30 2022-05-13 Epilepsy detection method and apparatus WO2023273640A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110743810.6A CN115530774B (en) 2021-06-30 2021-06-30 Epilepsy detection method and device
CN202110743810.6 2021-06-30

Publications (1)

Publication Number Publication Date
WO2023273640A1 true WO2023273640A1 (en) 2023-01-05

Family

ID=84690227

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/092800 WO2023273640A1 (en) 2021-06-30 2022-05-13 Epilepsy detection method and apparatus

Country Status (2)

Country Link
CN (1) CN115530774B (en)
WO (1) WO2023273640A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117238485B (en) * 2023-11-14 2024-01-30 天津市环湖医院(天津市神经外科研究所、天津市脑系科中心医院) Intelligent management and control system based on data processing

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101862193A (en) * 2010-05-27 2010-10-20 杭州尚想科技有限公司 Epilepsy early warning device based on acceleration sensor
CN103462611A (en) * 2013-09-09 2013-12-25 中国科学院深圳先进技术研究院 Wearable epilepsy monitoring device and system
CN203552412U (en) * 2013-11-21 2014-04-16 燕山大学 Portable epileptic seizure detection and alarm device
US20140163413A1 (en) * 2011-07-19 2014-06-12 Ictalcare A/S Method for Detecting Seizures
WO2015084899A1 (en) * 2013-12-02 2015-06-11 Brain Sentinel, Inc. Method and apparatus for classification of seizure type and severity using electromyography
US20150190085A1 (en) * 2007-05-18 2015-07-09 Smart Monitor Corp. Abnormal motion detector and monitor
CN104771177A (en) * 2015-05-08 2015-07-15 重庆软汇科技股份有限公司 Tumble detection system and method based on machine learning
CN109620249A (en) * 2019-02-14 2019-04-16 瑞尔脑康(北京)科技有限公司 The monitoring method and device of epileptic attack
CN109670527A (en) * 2018-11-13 2019-04-23 平安科技(深圳)有限公司 Acceleration recognition methods, device, computer equipment and storage medium
CN110674743A (en) * 2019-09-24 2020-01-10 广州市康源图像智能研究院 Tumble detection method based on triaxial acceleration data
CN112220454A (en) * 2020-09-29 2021-01-15 黑龙江吉远健康科技有限公司 Wearable epilepsy detection system based on multi-physiological information fusion and detection method thereof

Family Cites Families (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB0512192D0 (en) * 2005-06-15 2005-07-20 Greater Glasgow Nhs Board Seizure detection apparatus
US8337404B2 (en) * 2010-10-01 2012-12-25 Flint Hills Scientific, Llc Detecting, quantifying, and/or classifying seizures using multimodal data
EP2575605A4 (en) * 2010-05-28 2015-01-21 Res Triangle Inst Int Apparatus, system, and method for seizure symptom detection
US8684921B2 (en) * 2010-10-01 2014-04-01 Flint Hills Scientific Llc Detecting, assessing and managing epilepsy using a multi-variate, metric-based classification analysis
PL2627244T3 (en) * 2010-10-15 2019-05-31 Brain Sentinel Inc Apparatus with emg sensors for detecting seizures
CN102646319B (en) * 2012-04-13 2014-04-09 嘉兴恒怡科技有限公司 Organism-falling detection device and method
US9681836B2 (en) * 2012-04-23 2017-06-20 Cyberonics, Inc. Methods, systems and apparatuses for detecting seizure and non-seizure states
US9414776B2 (en) * 2013-03-06 2016-08-16 Navigated Technologies, LLC Patient permission-based mobile health-linked information collection and exchange systems and methods
CN103417219A (en) * 2013-09-11 2013-12-04 重庆大学 Wearable human body falling detection device
US20170188895A1 (en) * 2014-03-12 2017-07-06 Smart Monitor Corp System and method of body motion analytics recognition and alerting
WO2016156171A1 (en) * 2015-03-31 2016-10-06 Koninklijke Philips N.V. System and method for automatic prediction and prevention of migraine and/or epilepsy
CN105225419A (en) * 2015-09-18 2016-01-06 深圳大学 Fall detection method, system and the autoalarm of falling based on this system
WO2017055275A2 (en) * 2015-09-29 2017-04-06 Koninklijke Philips N.V. Method and apparatus for determining a pain threshold of a subject
WO2017087680A1 (en) * 2015-11-18 2017-05-26 GraceFall, Inc. Seizure detection and injury mitigation system and method for using same
CN105760861B (en) * 2016-03-29 2020-05-12 华东师范大学 Epileptic seizure monitoring method and system based on depth data
CN106539587A (en) * 2016-12-08 2017-03-29 浙江大学 A kind of fall risk assessment and monitoring system and appraisal procedure based on sensor of doing more physical exercises
US10198928B1 (en) * 2017-12-29 2019-02-05 Medhab, Llc. Fall detection system
CN109620248B (en) * 2019-02-14 2021-12-14 北京瑞尔唯康科技有限公司 Epileptic seizure monitoring system
CN110477865A (en) * 2019-08-14 2019-11-22 深圳先进技术研究院 A kind of epileptic attack detection device, terminal device and storage medium
CN111325946A (en) * 2020-01-19 2020-06-23 浙江理工大学 Fall detection method and system based on edge calculation

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150190085A1 (en) * 2007-05-18 2015-07-09 Smart Monitor Corp. Abnormal motion detector and monitor
CN101862193A (en) * 2010-05-27 2010-10-20 杭州尚想科技有限公司 Epilepsy early warning device based on acceleration sensor
US20140163413A1 (en) * 2011-07-19 2014-06-12 Ictalcare A/S Method for Detecting Seizures
CN103462611A (en) * 2013-09-09 2013-12-25 中国科学院深圳先进技术研究院 Wearable epilepsy monitoring device and system
CN203552412U (en) * 2013-11-21 2014-04-16 燕山大学 Portable epileptic seizure detection and alarm device
WO2015084899A1 (en) * 2013-12-02 2015-06-11 Brain Sentinel, Inc. Method and apparatus for classification of seizure type and severity using electromyography
CN104771177A (en) * 2015-05-08 2015-07-15 重庆软汇科技股份有限公司 Tumble detection system and method based on machine learning
CN109670527A (en) * 2018-11-13 2019-04-23 平安科技(深圳)有限公司 Acceleration recognition methods, device, computer equipment and storage medium
CN109620249A (en) * 2019-02-14 2019-04-16 瑞尔脑康(北京)科技有限公司 The monitoring method and device of epileptic attack
CN110674743A (en) * 2019-09-24 2020-01-10 广州市康源图像智能研究院 Tumble detection method based on triaxial acceleration data
CN112220454A (en) * 2020-09-29 2021-01-15 黑龙江吉远健康科技有限公司 Wearable epilepsy detection system based on multi-physiological information fusion and detection method thereof

Also Published As

Publication number Publication date
CN115530774B (en) 2024-03-26
CN115530774A (en) 2022-12-30

Similar Documents

Publication Publication Date Title
US11006896B2 (en) Food intake monitor
JP6503347B2 (en) Sensor assembly for measurement of electrical activity of the brain including electric field electroencephalogram
US11020059B2 (en) System and method for diagnosing and notification regarding the onset of a stroke
US8552871B2 (en) Apparatus and method for sensing photoplethysmogram and fall
JP2011505891A (en) Apparatus and method for detecting fainting
US10524676B2 (en) Apparatus and method for determining a health parameter of a subject
US20160331315A1 (en) Systems and Methods for Wearable Health Monitoring
CN106725445A (en) A kind of the portable body injury gained in sports monitor system and method for brain wave control
CN109152557A (en) The system and method for early detection for transient ischemic attack
WO2023273640A1 (en) Epilepsy detection method and apparatus
Gharghan et al. A comprehensive review of elderly fall detection using wireless communication and artificial intelligence techniques
WO2021046342A1 (en) Systems and methods for detecting sleep activity
Doukas et al. Enabling human status awareness in assistive environments based on advanced sound and motion data classification
US20240156389A1 (en) Health monitoring system and method
WO2022232992A1 (en) System and method for determining risk of stroke for person
Khawandi et al. Integrated monitoring system for fall detection in elderly
WO2024032084A1 (en) Wearing detection method and wearable device
Zhao et al. The emerging wearable solutions in mHealth
US20230301523A1 (en) Systems and apparatuses for physiological and psychological parameter monitoring from a subject's head and methods of use thereof
WO2024032063A1 (en) Electrocardiogram signal processing method and electronic device
CN116602644B (en) Vascular signal acquisition system and human body characteristic monitoring system
US10463260B1 (en) Heart disease risk assessment
Malche et al. Research Article Artificial Intelligence of Things-(AIoT-) Based Patient Activity Tracking System for Remote Patient Monitoring
Sangeetha et al. A Wearable System Design for Epileptic Seizure Detection
Salama et al. An intelligent mobile app for fall detection

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22831467

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE