Seizure detection ai
Patent Information
- Authority / Receiving Office
- EP · EP
- Patent Type
- Applications
- Current Assignee / Owner
- UNEEG MEDICAL AS
- Filing Date
- 2024-06-20
- Publication Date
- 2026-05-06
AI Technical Summary
Existing methods face challenges in training artificial intelligence to detect seizures using non-standardized electroencephalogram (EEG) sensors due to the incompatibility and limited availability of seizure-specific data, which is typically collected using standardized sensors in controlled environments.
A method that involves receiving seizure-specific data from a standardized EEG sensor, manipulating it to match data from a non-standardized sensor, combining it with secondary data from the non-standardized sensor to create a training set, and using image processing techniques to improve the AI's detection accuracy, including the use of inactive data to account for normal everyday activities.
This approach enhances the AI's ability to detect seizures accurately by incorporating realistic non-seizure data and long-term effects, reducing false positives and negatives, and enabling the use of portable, subcutaneous EEG sensors for continuous data collection, ultimately improving seizure detection and prediction.
Smart Images

Figure EP2024067193_02012025_PF_FP_ABST
Abstract
Description
[0001] SEIZURE DETECTION Al
[0002] Technical Field
[0003] The present inventive concept relates to methods for training an artificial intelligence (Al) to detect seizures. In particular, the present inventive concept relates to methods for training an Al to detect seizures using a non-standardized electroencephalogram (EEG) sensor.
[0004] Background
[0005] In order to train an Al, a lot of data is needed. There exists a lot of measured data for seizures, but this data is of a very specific type and is not useable for a nonstandardized EEG sensor.
[0006] Summary
[0007] It is thereby an object of the present inventive concept to make use of the available measured data for seizures. Another object of the present inventive concept is to make use of long-term EEG data, which is not typically available in the same data sets as the measured data for seizures. These and other objects are achieved by the features set out in the appended independent claims, with embodiments set out in the dependent claims.
[0008] Accordingly, a first aspect of the inventive concept is provided by a method for training an artificial intelligence (Al) to detect seizures using a first EEG sensor. The method comprises steps of: receiving seizure-specific data sensed using a second EEG sensor of a different type than the first EEG sensor; manipulating the seizurespecific data into primary data, which corresponds to the seizure-specific data having been sensed using the first EEG sensor; receiving secondary data sensed using the first EEG sensor; detecting seizures in the secondary data; separating the secondary data into active data, which comprises the detected seizures, and inactive data, which does not comprise the detected seizures; generating a training set for the artificial intelligence by combining the inactive data and the primary data; and training the artificial intelligence using the training data. The first EEG sensor may be any EEG sensor, including non-standardized EEG sensors.
[0009] The second EEG sensor is typically a standardized EEG sensor used to collect large data sets of seizure-specific data.
[0010] Manipulating the seizure-specific data into data corresponding to having been sensed using the first EEG sensor may comprise removing some amount of data that would not be measurable by the first EEG sensor, and / or transforming some of the data to better match the measurements made by the first EEG sensor.
[0011] The secondary data may comprise all data sensed by the first EEG sensor, i.e. not only seizure data but also inactive data. By training the Al also on inactive data, the training is improved by having a more realistic non-seizure data.
[0012] The method may be implemented in any processing circuit and the trained artificial intelligence may be stored in a memory circuit either locally or on a (remote) server.
[0013] The seizure-specific data may comprise at least two different types of seizures.
[0014] There are many types of seizures, such as temporal lobe seizures, frontal lobe seizures and generalized seizures, so training the Al on at least two different types makes the detection of the Al more reliable.
[0015] The secondary data may comprise data collected during at least one continuous week.
[0016] By training the Al with data collected during at least a full week, the data contains normal everyday activity not normally collected at hospitals during seizure data collection. Further, by having access to more long-term data, long-term effects leading to seizures may be trained to be detected by the Al.
[0017] The inactive data may be at least 10000 times larger than the active data.
[0018] Seizures are generally rare, so training the Al on realistic amounts of data will provide more accurate detection. Further, training the algorithm to better recognize a non-seizure lowers the rate of incorrect detections (i.e. false positives or false negatives). Additionally, it may be easier to acquire inactive data.
[0019] The seizure-specific data may comprise multi-rater labels.
[0020] Labelled data, and especially multi-rater labelled data, may be used as absolute truth when training the Al to improve the accuracy of the training. The method may comprise steps of: generating a validation set by combining inactive data and active data; and fine tuning the artificial intelligence using the validation set.
[0021] By using a validation set, the detection of the Al is improved by the fine-tuning made available by the validation set. Using the inactive and active data when generating the validation set has shown to be effective.
[0022] Generating a training set for the artificial intelligence may comprise combining an amount of the inactive data and an equivalent amount of a combination of the active data and the primary data.
[0023] Using active data when generating the training set has shown to improve the detection of the trained Al. Further, equivalent amounts of non-seizure data and seizure data has shown to improve the detection of the trained Al.
[0024] The first EEG sensor may be portable and / or the second EEG sensor may be non-portable.
[0025] Portability may comprise a lack of cumbersome wires, a robustness against fast and sudden motion, a size that allows mobility and using headwear such as hats and headphones, and / or other factors that enable the EEG sensor to be worn uninterrupted (at least while awake) for over a day and preferably several days to weeks during normal day-to-day activities.
[0026] The first EEG sensor may comprise subcutaneous EEG electrodes.
[0027] Available standardized seizure-specific data uses scalp-mounted EEG electrodes. Hence an EEG sensor that uses subcutaneous EEG electrodes is further improved by the method of the invention. Subcutaneous EEG electrodes also enable better portability of the EEG sensor, which in turn enables more non-controlled data to be collected.
[0028] The first EEG sensor may be limited to sensing an area above and around a temporal lobe of a user.
[0029] Available standardized seizure-specific data comprises data from the whole brain. Hence an EEG sensor that has a limited sensing area is further improved by the method of the invention.
[0030] Training the artificial intelligence may comprise transforming the training set into images and using image processing techniques to detect seizures. Image processing techniques are well-researched and there exists very advanced and effective algorithms and implementations that may be used to improve the training of the Al.
[0031] Training the artificial intelligence further may comprise transforming segments of the training set between 90 and 150 seconds long into image frames and using image processing techniques on the image frames to detect seizures.
[0032] 90 to 150 seconds long image frames have shown to improve the detection of the trained Al. This time window is long enough to contain a characteristic evolution of epileptic activity of most seizures with margin, which means that there may be several frames with seizures and a good number of frames with partial seizures in the data set.
[0033] Each sequential segment may overlap by at least 60 seconds to the preceding segment.
[0034] Such an overlap further improves the detection of the trained Al. This means that the number of frames with partial seizures is optimized for the Al to be able to quickly and efficiently detect a seizure even with limited information.
[0035] This limited information, especially frames comprising only the beginning of the seizure and some time beforehand, may be also used to predict seizures before they occur.
[0036] Manipulating the seizure-specific data into primary data may comprise simulating how the seizure-specific data would appear if sensed using the first EEG sensor by removing data beyond the sensing range of the first EEG sensor and adding noise and / or artefacts specific to the first EEG sensor.
[0037] This is an efficient and reliable method for creating primary data from the seizure-specific data.
[0038] A second aspect of the inventive concept is provided by a method for detecting seizures using a first EEG sensor. The method comprising steps of: training an artificial intelligence to detect seizures according to the first aspect; transmitting user data sensed by the first EEG sensor to the trained artificial intelligence; and using the trained artificial intelligence to detect seizures within the transmitted user data.
[0039] The method may further comprise a step of alerting a user or caretaker that a seizure has been detected. The user may fall or suffocate during a seizure, alerting may prevent these risk-factors. Sudden death from suffocating in bed is relatively common and may be prevented with an alarm if a seizure is detected.
[0040] All the embodiments and advantages of the first aspect also apply to the second aspect mutatis mutandis.
[0041] Description of drawings
[0042] The invention will be described in further detail with reference to preferred aspects and the accompanying drawing, in which:
[0043] Fig. 1a shows a schematic view of different data sets according to an embodiment;
[0044] Fig. 1 b shows a schematic view of an area above a temporal lobe of a user according to an embodiment;
[0045] Fig. 1c shows a prior art standardized EEG sensor;
[0046] Fig. 2a shows a schematic view of different data sets according to an embodiment;
[0047] Fig. 2b shows a schematic view of different data segments according to an embodiment;
[0048] Fig. 2c shows a schematic view of transforming different data sets according to an embodiment;
[0049] Fig. 3 shows a flowchart of a method for training an artificial intelligence to detect seizures using a first EEG sensor according to an embodiment,
[0050] Fig. 4a shows a schematic view of a method for detecting seizures using a first EEG sensor according to an embodiment; and
[0051] Fig. 4b shows a flowchart of a method for detecting seizures using a first EEG sensor according to an embodiment.
[0052] Description of embodiments
[0053] In the following, terms such as a / an / the and comprising are intended to be interpreted as non-limiting. Any processor or computing unit may be implemented as an electronic circuit and electronic connections may be wired or wireless unless otherwise explicitly stated. Unless explicitly specified, a wireless connection may be implemented in any number of standards known to a person skilled in the art, such as Wi-Fi, Bluetooth®, Zigbee, 4G / LTE, 5G and so on. Electroencephalograms (EEGs) are mainly used today to investigate brain activity. They are recorded using standardized EEG sensors and usually comprise three-dimensional data of electric activity in a brain of a user.
[0054] Such EEGs are mainly used today to learn about the brain as activity is sensed in a controlled testing environment, but ideally EEGs may also be used to detect and / or predict further brain activity in a non-controlled environment. One such brain activity that is of special importance is detecting seizures, as seizures may be of great risk to a person experiencing the seizure if they are not prepared for it and / or if they are alone.
[0055] Further, by using a more objective seizure count (e.g. taken by an Al), medication may be prescribed with more accuracy.
[0056] The inventors of the present inventive concept have realized that it is possible to detect seizures using an Al trained on large data sets of EEGs comprising seizures, however it proved challenging to generate such a data set.
[0057] The Al may be implemented by a deep neural network.
[0058] Fig. 1 a shows a schematic view of different data sets of the inventive concept. The inventive concept relies on manipulating different available data sets into a training set 30.
[0059] The inventive concept starts out with an assumption that there are two available data sets from the start: secondary data 10 and seizure-specific data 20.
[0060] The secondary data 10 is sensed using a first EEG sensor, which may be a non-standardized EEG sensor. The first EEG sensor may comprise subcutaneous EEG electrodes rather than the more standardized scalp electrodes.
[0061] The first EEG sensor may be limited in its sensing area, i.e. not be able to measure electric activity in the whole brain. The first EEG sensor may have a limited number of sensing electrodes, such as 2-3 or around 10, and / or may be limited in its position and placement on the head of the user.
[0062] One such example is shown in Fig. 1 b, where an area around a temporal lobe of the user is highlighted in white. The first EEG sensor may be limited to sensing this area, on one or both sides of the head.
[0063] The first EEG sensor may be portable. The first EEG sensor may thereby be used to enable taking measurements during a longer time than a more standardized EEG, and in non-controlled environments. A first EEG sensor may be worn without great discomfort or limited mobility for the user, such that the user may wear the first EEG sensor during their normal day- to-day life.
[0064] Accordingly, a first EEG sensor may collect data from a user suffering from seizures that comprises non-seizure activity and seizure activity that occurs naturally, which is different from induced seizures that are recorded during a session at a hospital using a standardized EEG sensor.
[0065] The secondary data 10 comprises both seizure activity and non-seizure activity. The secondary data may thereby be separated into active data 11 , which comprises the seizures, and inactive data 12, which does not comprise the seizures.
[0066] This separation is performed by first detecting the seizures in the secondary data 10. The detection may be performed in any number of ways, such as a user manually labelling the data by registering a seizure as it occurs or by algorithms detecting activity that corresponds to seizures. This detection process will be described in more detail in relation to Figs. 2b-c.
[0067] The secondary data 10 may have been collected over several days, such as during at least one continuous week.
[0068] Seizures are relatively rare when non-induced by artificial means, such as chemical, biological, or psychological means, even with users that suffer from a lot of seizures. The inactive data 12 may be much larger than the active data 11 , such as 1 ,000 or 10,000 times larger.
[0069] The secondary data 10 is not large enough to train an Al to detect seizures, as it may not comprise enough seizures. Therefore, the secondary data 10 is complemented by seizure-specific data 20.
[0070] The seizure-specific data 20 is sensed using a second EEG sensor of a different type than the first EEG sensor. The second EEG sensor may be a standardized EEG sensor, such as the one in Fig. 1c.
[0071] The second EEG sensor may use scalp-attached electrodes to sense brain activity. The electrodes may be in a web or cloth to position them on the head of the user and may be attached to the scalp using gel.
[0072] The second EEG sensor may use dozens of electrodes attached to a computer via wires or wirelessly.
[0073] The second EEG sensor may be configured to be used while sitting and staying relatively immobile. The second EEG sensor may be non-portable. The sensing area of the second EEG sensor may be most or all of the brain of the user.
[0074] Scalp-mounted electrodes as in the embodiment of the second EEG sensor shown in Fig. 1c may provide less sensitive and more noisy readings than subcutaneous electrodes, as in one embodiment of the first EEG sensor. However, this may be compensated for using more electrodes, at a cost of portability and wearability.
[0075] The second EEG sensor has been used to sense seizure-specific data 20. This normally comprises the patient visiting a hospital and inducing seizures, e.g. using flashing lights or drugs, which are measured in a controlled environment with the second EEG sensor.
[0076] The exact method for collecting the seizure-specific data 20 is beyond the scope of this application. The important thing is that there now exists large databases of seizure-specific data 20 that may be used to train an Al.
[0077] The seizure-specific data 20 may comprise information collected from most or all of the brain.
[0078] The seizure-specific data 20 may comprise at least two different types of seizures and may be formatted and have been collected in different ways.
[0079] The seizure-specific data 20 mainly comprises seizure data, i.e. not background activity such as normal day-to-day life when seizures are not occurring.
[0080] The seizure-specific data 20 has been sensed using a different type of EEG sensor than the secondary data 10. The seizure-specific data 20 may be further differentiated from the secondary data 10. For example, the seizure-specific data 20 may have a larger sensing area, have more data on seizure activity and less data on non-seizure activity than the secondary data.
[0081] The seizure-specific data 20 may further be collected in a different, more controlled environment than the secondary data 10.
[0082] The seizure-specific data 20 may also comprise multi-rater labels. As this data is created for research purposes, large parts of it have been rated several times by doctors and researchers. This is especially useful when training an Al, as these labels may be used as absolute truth.
[0083] The seizure-specific data 20 may be relatively inconsistent, especially if taken from different sources. By relying on multi-rater labels, such as using a predetermined amount of data with multi-rater labels, fewer falsely labelled seizures used to train the Al.
[0084] While the seizure-specific data 20 is large and possibly even rated, it’s still not ideal for training an Al as it’s lacking normal day-to-day brain activity to contrast the seizure activity. Further, the seizures available in the seizure-specific data 20, while numerous and possibly of different types, have been occurred in a controlled environment and were possibly induced. Hence, training will be improved by also using secondary data 10.
[0085] However, these seizure-specific data 20 and secondary data 10 are incompatible, as they’ve been collected using different types of EEG sensors.
[0086] The present inventive concept thereby comprises manipulating the seizurespecific data 20 into primary data 21 , which corresponds to the seizure-specific data 20 having been sensed using the first EEG sensor.
[0087] The secondary data 10 and the primary data 21 are thereby compatible. It may be impossible to instead manipulate the secondary data 10 to be compatible with the seizure-specific data 20, either because the secondary data 10 has a more limited sensing area than the seizure-specific data 20; or because the seizurespecific data 20 is inconsistently formatted so there is no single compatible format into which the secondary data 10 may be transformed.
[0088] The manipulation of the seizure-specific data 20 into primary data 21 may comprise simulating how the seizure-specific data 20 would appear if sensed using the first EEG sensor by removing data beyond the sensing range of the first EEG sensor and adding noise and / or artefacts specific to the first EEG sensor.
[0089] A training set 30 may then be generated by combining the secondary data 10 and the primary data 21 . In particular, at least the inactive data 12 of the secondary data 10 is combined with the primary data 21 to generate the training set 30, so that the training set 30 comprises both seizure data and non-seizure data.
[0090] The Al may then be trained using the training set 30.
[0091] The training set 30 may comprise an amount of the inactive data 12 and an equivalent amount of a combination of the active data 11 and the primary data 21 . This may further improve the training set 30 as now seizures detected in a noncontrolled manner is used. Additionally, by having an equivalent amount of seizure data and non-seizure data, the training set 30 may be made more similar to validation and testing data sets 40, 60.
[0092] The secondary data 10 may also be used to create a validation set 40 and a test set 60. This may be done by combining an equivalent amount of active data 11 and inactive data 12.
[0093] The validation set 40 may be used to fine-tune the Al after training is performed. This mitigates over-fitting the Al to the training set 30.
[0094] The test set 60 may be used to test the Al to ensure consistency and quality.
[0095] The use of validation sets 40 and test sets 60 once they are generated is known in the art.
[0096] Fig. 2a shows a more detailed zoomed-in view of the training set 30, validation set 40 and test set 60.
[0097] Fig. 2b shows a schematic view of segmenting the secondary data 10 in order to detect seizures within the data. Each rectangle shows a segment 16 of the secondary data 10. The secondary data 10 may be separated into any number of segments, much more than the two shown in Fig. 2b.
[0098] The segments 16 may be between 30-300 seconds, such as 60-180 seconds or 90-150 seconds or around 120 seconds long.
[0099] Each sequential segment 16 may overlap by at least 30, 45, 60 or 90 seconds with each other.
[0100] Fig. 2c shows a schematic view of transforming the secondary data 10, or segments 16 of the secondary data 10, from time series signals into images 15. By transforming the data 10, 16 into images 15, image processing techniques may be used to detect seizures in the images 15.
[0101] Other similar transformations are also possible.
[0102] Fig. 3 shows a flowchart of a method 100 for training an artificial intelligence to detect seizures using a first EEG sensor. Method steps shown with a dashed line are optional. The method steps are listed in a specific order, however a different order may also be possible, as well as some steps being performed simultaneously.
[0103] The method 100 may be implemented using a processing circuit and a memory, e.g. using a computer.
[0104] The details of the different method steps have already been discussed in relation to Figs. 1-2. The first step is receiving S110 seizure-specific data sensed using a second EEG sensor of a different type than the first EEG sensor.
[0105] A next step is manipulating S120 the seizure-specific data into primary data, which corresponds to the seizure-specific data having been sensed using the first EEG sensor.
[0106] A next step is receiving S130 secondary data sensed using the first EEG sensor.
[0107] A next step is detecting S140 seizures in the secondary data.
[0108] A next step is separating S150 the secondary data into active data, which comprises the detected seizures, and inactive data, which does not comprise the detected seizures.
[0109] A next step is generating S160 a training set for the artificial intelligence by combining the inactive data and the primary data.
[0110] A next step is training S170 the artificial intelligence using the training set.
[0111] A next optional step is generating S180 a validation set by combining inactive data and active data.
[0112] A next optional step is fine-tuning S190 the artificial intelligence using the validation set.
[0113] Fig. 4a shows a schematic view of a method for detecting seizures using a first EEG sensor.
[0114] The method comprises training an artificial intelligence (Al) to detect seizures. This may be done e.g. as discussed in relation to Fig. 3. The method further comprises transmitting user data 50 sensed by the first EEG sensor to a trained Al. The trained Al is used to detect seizures within the user data 50, shown as a lightbulb in Fig. 4a.
[0115] The first EEG sensor and the Al may be the same as discussed in relation to Figs. 1 -3.
[0116] By detecting seizures in such a manner, an objective seizure count may be received to be relied upon when prescribing medication.
[0117] Once the trained Al has detected seizures, the method may further comprise alerting the user or a caretaker that a seizure has been detected.
[0118] This may comprise sounding an audio alarm or sending an automatic text or emergency signal to a caretaker or hospital.
[0119] This may reduce risks associated with having a seizure. The trained Al may be used to detect seizures as they are about to happen, i.e. be able to alert the user before the user has any effect of the seizure. This may further reduce risks associated with having a seizure.
[0120] Fig. 4b shows a flowchart of a method 200 for detecting seizures using a first EEG sensor according to an embodiment. Method steps shown with a dashed line are optional. The method steps are listed in a specific order, however a different order may also be possible, as well as some steps being performed simultaneously.
[0121] The method 200 may be implemented using a processing circuit and a memory, e.g. using a computer.
[0122] The details of the different method steps have already been discussed in relation to the preceding Figures.
[0123] The first step is training 100 an artificial intelligence to detect seizures. This corresponds to the method of Fig. 3.
[0124] The next step is transmitting S210 user data sensed by a first EEG sensor to the trained artificial intelligence.
[0125] The next step is using S220 the trained artificial intelligence to detect seizures within the transmitted user data.
[0126] The next optional step is alerting S230 a user or caretaker that a seizure has been detected.
[0127] The preceding description has been a non-exhaustive disclosure of different exemplifying embodiments of the present inventive concept. This is not to be misconstrued as limiting the scope of the protection sought for the inventive concept, which is defined by the appended claims.
Claims
CLAIMS1 . A method (100) for training an artificial intelligence to detect seizures using a first EEG sensor, the method comprising steps of: receiving (S110) seizure-specific data (20) sensed using a second EEG sensor of a different type than the first EEG sensor; manipulating (S120) the seizure-specific data (20) into primary data (21 ), which corresponds to the seizure-specific data (20) having been sensed using the first EEG sensor; receiving (S130) secondary data (10) sensed using the first EEG sensor; detecting (S140) seizures in the secondary data (10); separating (S150) the secondary data (10) into active data (11 ), which comprises the detected seizures, and inactive data (12), which does not comprise the detected seizures; generating (S160) a training set (30) for the artificial intelligence by combining the inactive data (12) and the primary data (21 ); and training (S170) the artificial intelligence using the training set (30).
2. The method according to claim 1 , wherein the seizure-specific data (20) comprises at least two different types of seizures.
3. The method according to claim 1 or 2, wherein the secondary data (10) comprises data collected during at least one continuous week.
4. The method according to any one of the preceding claims, wherein the inactive data (12) is at least 10000 times larger than the active data (11 ).
5. The method according to any one of the preceding claims, wherein the seizure-specific data (20) comprises multi-rater labels.
6. The method according to any one of the preceding claims, further comprising steps of: generating (S180) a validation set (40) by combining inactive data (12) and active data (11 ); and fine-tuning (S190) the artificial intelligence using the validation set (40).
7. The method according to any one of the preceding claims, wherein generating (S160) a training set (30) for the artificial intelligence comprises combining an amount of the inactive data (12) and an equivalent amount of a combination of the active data (11 ) and the primary data (21 ).
8. The method according to any one of the preceding claims, wherein the first EEG sensor comprises subcutaneous EEG electrodes.
9. The method according to any one of the preceding claims, wherein the first EEG sensor is limited to sensing an area above and around a temporal lobe of a user.
10. The method according to any one of the preceding claims, wherein detecting (S140) seizures in the secondary data (10) comprises transforming the secondary data (10) into images (15) and using image processing techniques to detect seizures in the images (15).11 . The method according to claim 10, wherein detecting (S140) seizures in the secondary data (10) further comprises transforming segments (16) of the secondary data (10) between 90 and 150 seconds long into images (15) and using image processing techniques on the images (15) to detect seizures in the images(15).
12. The method according to claim 11 , wherein each sequential segment(16) overlaps by at least 60 seconds to the preceding segment (16).
13. The method according to any one of the preceding claims, wherein manipulating (S120) the seizure-specific data (20) into primary data (21 ) comprises simulating how the seizure-specific data (20) would appear if sensed using the first EEG sensor by removing data beyond the sensing range of the first EEG sensor and adding noise and / or artefacts specific to the first EEG sensor.
14. A method (200) for detecting seizures using a first EEG sensor, the method (200) comprising steps of: training (100) an artificial intelligence to detect seizures according to any one of the preceding claims; transmitting (S210) user data (50) sensed by the first EEG sensor to the trained artificial intelligence; and using (S220) the trained artificial intelligence to detect seizures within the transmitted user data (50).
15. The method according to claim 14, further comprising a step of alerting (S230) a user or caretaker that a seizure has been detected.