| Literature DB >> 35756126 |
Souleyman Hassan1, Elijah Mwangi2, Peter Kamita Kihato3.
Abstract
The unpredictable nature of epileptic seizures makes it challenging to detect and effectively treat this disorder. The seizures are random, and most epileptic patients experience dangerous physical symptoms during an attack that renders the patient uneasy when conducting their daily tasks. This paper focuses on the generalised type of epilepsy, namely "Grand mal epilepsy Tonic-Clonic (GTC) seizure. The research aims to monitor symptoms of epileptic disease behaviour signals in humans and prevent it at its early stage of illness. To achieve this objective, we used the Electrocardiogram (ECG), Electromyography (EMG), accelerometer 3-axes for fall detection, and Dallas sensor for body temperature signals monitoring for updating the IoT system. The fuzzy logic algorithm that has been used to assess specified data set of diseased patients' parameters allows the classification into diverse types of seizures such as heart rate, body temperature, muscles spasm and falls. These are used as inputs to obtain the seizure type as an output which is then illustrated graphically on the dashboard of an IoT platform (Think-Speak), where abnormal conditions have been used to notify the medical personnel by sending an SMS message through "If This Then That" (IFTTT) technology. A prototype of an epileptic monitoring system has been successfully built and tested. It has an average accuracy of 98.90%, 95.49%, 83.0%, and 87.21% for body temperature, heart rate monitoring, muscle spasm, and fall detection.Entities:
Keywords: Epilepsy; Fuzzy logic; GTC; IFTTT; IoT; Seizure
Year: 2022 PMID: 35756126 PMCID: PMC9213709 DOI: 10.1016/j.heliyon.2022.e09618
Source DB: PubMed Journal: Heliyon ISSN: 2405-8440
Figure 4Blok diagram of epileptic monitoring system using fuzzy logic.
Figure 5Flowchart of the algorithm system to monitor epileptic patient's.
Figure 6ECG electrodeposition on the body patient [15].
Figure 7EMG Myoware electrodeposition on the muscle.
Membership function input/output variables with fuzzy system: The X-axis shows the input variables such as heart rate, muscular spasm, body temperature, and fall detection, and the output variable named seizure type, while the Y-axis represents the degrees of membership in the [0, 1] interval.
| Inputs/Outputs | Membership functions | Graphical representation of M.F. |
|---|---|---|
| Heart Rate (ECG): The membership functions of heart rate input come with five linguistic variables which are very low (VL), low (L) and normal (N), then high (H), very high (VH). defended as | ||
| Muscles spasms (EMG): The membership functions of the muscles spasms (EMG) have four linguistic variables: rest (R), start (S), end (E), and relax (r), defended as | ||
| Fall detection (ACC): The membership functions of the fall detection (Acc) contain three linguistic variables: low, medium, high defended as | ||
| Body Temperature: The membership functions of the body temperature (Dallas) have three linguistic variables: low, normal, high defended as Body Temperature = | ||
| Muscles spasms (EMG): The membership functions of the muscles spasms (EMG) have four linguistic variables: rest (R), start (S), end (E), and relax (r) defended as | ||
The number of patients participated in the study.
| Clinic Name | No of Male | No of Female | Total |
|---|---|---|---|
| Karen Health Centre | 9 | 15 | 24 |
| Riruta Health Centre | 18 | 14 | 32 |
| Lions Health Clinic | 30 | 25 | 55 |
The age categories of patients were 57% (From 21 to 50 years), 22% (from 10 to 20 years), and 11% (Above 50 years), then 10% (Under ten years). As it is illustrated in Figure 1
GTC seizures affect 74% of individuals, with 16% developing Myoclonic attacks and 10% experiencing Absence seizures. As it is shown in Figure 1
5% of patients blanked out for less than 1 min during the attack, 14% never blanked out during the seizure, 15% of patients blanked out for 1–2 min during the attack, then 22 % blanked out for more than 5 min, and 44 % blanked out between 3 to 5 min. As it is illustrated in Figure 1
The recovery time after the attack is significant for the patients who have GTC seizures, so we figure out that 37% of the patient take from 1 to 2 h and 33% of them take from 6 min to 1 h, and as a minimum and 2 h as maximum to be expected. As it is illustrated in Figure 2
The seizure level was varied as 29% of the patients experienced a very severe seizure, and 31% of them have usually experienced a severe episode, then 29% had mild attacks, and 11% of the patients experienced very mild seizures. As it is illustrated in Figure 2
The number of seizures is significant to know the repetitive rate of attack for each particular patient; where we figure out that 38% of patients experience ten or more during 2021, and most of them have GTC seizure type Figure 2 shows the graphical statistic of epilepsy behaviours
Based on the study, 74% of the patients with GTC seizures have common symptoms and behaviours came as follows, loss of consciousness that can cause falling of the body, which the accelerometer sensor can detect, and muscles spasm that can be detected by the EMG sensor and increasing heart rate that will be detected by ECG sensor.
28% of the patients with GTC seizures have additional symptoms, such as the increasing temperature that the Dallas temperature sensor will detect. As it is illustrated in Figure 3.
Figure 1Data conducted from Epileptic patients, (A) Age category, (B) Seizure type, (C) Time of blanking out.
Figure 2The graphical statistic of epilepsy parameters (D) Recovering time after the attack, (E) Seizure level, and (F) Number of seizures in 2021.
Figure 3Categories of epilepsy symptoms in terms of the number of patients (G).
Fuzzy inference system rules.
| RULES | IF THEN OUTPUTS |
|---|---|
| Rule 1 | If (ECG is H) or (EMG is Start), then (Seizure Type is Clonic) |
| Rule 2 | If (Temperature is High) and (EMG is Start), then (Seizure Type is Clonic) |
| Rule 3 | If (ECG is N) and (EMG is Start), then (Seizure Type is Tonic) |
| Rule 4 | If (ECG is H) and (EMG is Start) and (Accelerometer is Medium), then (Seizure Type is Tonic) |
| Rule 5 | If (ECG is H) and (Temperature is Low) and (EMG is Start), then (Seizure Type is Tonic) |
| Rule 6 | If (ECG is N) and (Temperature is Low) and (EMG is End) and (Accelerometer is High), then (Seizure Type is Atonic) |
| Rule 7 | If (ECG is N) and (Temperature is Low) and (EMG is Relax) and (Accelerometer is High), then (Seizure Type is Atonic) |
| Rule 8 | If (ECG is N) and (Accelerometer is High), then (Seizure Type is Atonic) |
| Rule 9 | If (Temperature is High) and (EMG is Start), then (Seizure Type is Myoclonic) |
| Rule 10 | If (ECG is N) and (Temperature is High) and (EMG is Start), then (Seizure Type is Myoclonic) |
| Rule 11 | If (ECG is N) and (Temperature is High) and (EMG is Rest) and (Accelerometer is Medium), then (Seizure Type is Absence) |
| Rule 12 | If (Temperature is High) then (Seizure Type is Absence) |
Figure 8Rule Viewer of Seizure type classification System.
Figure 9Rule surface of the proposed system based on (a) heart rate and temperature, (b)heart rate and muscles spasm, (c)heart rate and fall.
Figure 10Rule Viewer of Seizure type classification System.
Figure 11Rule surface of the proposed system based on (d) Temperature and Muscles spasm, (e)Temperature and Fall.
Figure 12Final prototype of IoT based monitoring system for epileptic patients.
Figure 13Final Test of IoT based monitoring system for epileptic patients.
Figure 14Graphical waveform of the sensors ECG, EMG, and Dallas temp on IoT platform, (A)Temperature, (B)Heart rate, (C) Muscles signal.
Figure 15Graphical waveform of the sensor ACC on IoT platform, (D)ACC-Y, (E)ACC-Z, (F)ACC-X.
Figure 16Seizure notification through IFTTT.