Information Theory Inspired Pattern Analysis for Time-series Data
Yushan Huang, Yuchen Zhao, Alexander Capstick, Francesca Palermo,, Hamed Haddadi, Payam Barnaghi

TL;DR
This paper introduces a novel, information theory-based approach for pattern analysis in multivariate time-series data, demonstrating improved accuracy and efficiency over traditional statistical and probabilistic methods.
Contribution
The paper presents a highly generalizable method using entropy-based features for pattern detection in complex time-series data, applicable to various scenarios including stochastic state transitions.
Findings
Improved recall rate, F1 score, and accuracy by up to 23.01%.
Achieved an average reduction of 18.75 times in model parameters.
Validated approach on human activity data with significant performance gains.
Abstract
Current methods for pattern analysis in time series mainly rely on statistical features or probabilistic learning and inference methods to identify patterns and trends in the data. Such methods do not generalize well when applied to multivariate, multi-source, state-varying, and noisy time-series data. To address these issues, we propose a highly generalizable method that uses information theory-based features to identify and learn from patterns in multivariate time-series data. To demonstrate the proposed approach, we analyze pattern changes in human activity data. For applications with stochastic state transitions, features are developed based on Shannon's entropy of Markov chains, entropy rates of Markov chains, entropy production of Markov chains, and von Neumann entropy of Markov chains. For applications where state modeling is not applicable, we utilize five entropy variants,…
| Digital Marker | Monitoring Device | Frequency |
|---|---|---|
| Human activity | Passive infrared sensors | Triggered by movement |
| Home device usage | Smart plugs | Triggered by device use |
| Body temperature | Smart temporal thermometers | Twice daily or continuous |
| Blood pressure and heart rate | Wearable devices | Twice daily |
| Weight and heart rate | Smart scale | Once a day |
| Respiratory and heart rate during sleep | Sleep mat | Once a minute |
| Environmental light | Light sensors | Every 15 minutes |
| Environmental temperature | Temperature sensors | Once an hour |
| Evaluation | Baseline | Entropy | Improvement | |
| LR | Recall rate | 46.42±6.11% | 55.41±5.67% | 8.79% |
| F1 score | 50.76±4.53% | 56.59±4.67% | 5.46% | |
| Accuracy | 56.52±4.13% | 58.03±4.70% | 1.52% | |
| SVM | Recall rate | 51.11±5.24% | 57.84±3.35% | 6.73% |
| F1 score | 50.61±5.48% | 59.34±3.65% | 8.73% | |
| Accuracy | 50.13±5.76% | 60.94±4.03% | 10.81% | |
| MLP | Recall rate | 63.76±5.03% | 84.16±5.21% | 20.40% |
| F1 score | 66.59±3.71% | 84.97±4.97% | 18.38% | |
| Accuracy | 70.15±5.85% | 85.88±5.51% | 15.73% | |
| LSTM | Recall rate | 67.28±4.99% | 90.29±4.41% | 23.01% |
| F1 score | 71.25±4.99% | 91.29±3.72% | 20.04% | |
| Accuracy | 76.06±7.15% | 92.41±4.18% | 16.35% | |
| Average | Recall rate | - | - | 14.73% |
| F1 score | - | - | 13.15% | |
| Accuracy | - | - | 11.10% |
| Recall rate | F1 score | Accuracy | |
|---|---|---|---|
| Baseline-CNN | 77.27±1.99% | 80.91±1.54% | 84.93±1.38% |
| Baseline-LSTM | 96.01±1.47% | 95.21±0.66% | 94.46±1.11% |
| Entropy-MLP | 97.51±0.81% | 97.80±0.45% | 98.10±0.72% |
| Avg Improvement | 10.87% | 9.74% | 8.41% |
| Recall rate | F1 score | Accuracy | |
|---|---|---|---|
| Baseline-MLP | 91.68±1.29% | 92.54±0.73% | 93.42±0.40% |
| Baseline-CNN | 97.14±1.12% | 97.13±0.67% | 97.13±0.51% |
| Entropy-MLP | 98.08±0.94% | 98.37±0.81% | 98.66±0.79% |
| Avg Improvement | 3.67% | 3.54% | 3.39% |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsTime Series Analysis and Forecasting · Neural Networks and Applications
\NewDocumentCommand\ie
i.e.\NewDocumentCommand\ege.g.\NewDocumentCommand\etcetc.\NewDocumentCommand\etalet al. \NewDocumentCommand\cadc-à-d.
Information Theory Inspired Pattern Analysis for Time-Series IoT Data
Yushan Huang, Yuchen Zhao, Alexander Capstick, Francesca Palermo,
Hamed Haddadi, and Payam Barnaghi Yushan Huang is with the Department of Computing, Imperial College London, and Care Research and Technology Centre, The UK Dementia Research Institute, London, UK (e-mail: [email protected]).Yuchen Zhao is with the Department of Computer Science, University of York, York, UK (e-mail: [email protected]).Alexander Capstcik, Francesca Paleromo, and Payam Barnaghi are with the Department of Brain Sciences, Imperial College London, and Care Research and Technology Centre, The UK Dementia Research Institute, London, UK (e-mail: alexander.capstick19, f.palermo, [email protected]).Hamed Haddadi is with the Department of Computing, Imperial College London, UK (e-mail: [email protected]).Payam Barnaghi is also with the Great Ormond Street Institute of Child Health, University College London.
Abstract
Current methods for pattern analysis in time series mainly rely on statistical features or probabilistic learning and inference methods to identify patterns and trends in the data. Such methods do not generalize well when applied to multivariate, multi-source, state-varying, and noisy time-series data. To address these issues, we propose a highly generalizable method that uses information theory-based features to identify and learn from patterns in multivariate time-series data. To demonstrate the proposed approach, we analyze pattern changes in human activity data. For applications with stochastic state transitions, features are developed based on Shannon’s entropy of Markov chains, entropy rates of Markov chains, entropy production of Markov chains, and von Neumann entropy of Markov chains. For applications where state modeling is not applicable, we utilize five entropy variants, including approximate entropy, increment entropy, dispersion entropy, phase entropy, and slope entropy. The results show the proposed information theory-based features improve the recall rate, F1 score, and accuracy on average by up to 23.01% compared with the baseline models and a simpler model structure, with an average reduction of 18.75 times in the number of model parameters.
Index Terms:
entropy, IoT, time-series data, pattern analysis
I Introduction
With the development of small-scale and low-cost network-connected devices, large volumes of data is generated [1]. In particular, the Internet of Things (IoT) provides us with an unprecedented ability to capture real-world information. By integrating the real world with the digital world, IoT enables us to analyze and mine useful information based on collected data. These technologies have been widely applied across several fields such as healthcare [2].
Time-series data is critical in the real world, as it contains key information on relationships from a temporal perspective. Analyzing time-series data facilitates the development of effective methods for observing the raw data and also allows us to understand relationships within the data. It also enables us to uncover the various patterns that exist in the data, determine the relationships between these patterns, analyze the trends, and make predictions. Unfortunately, the analysis of time-series data is very challenging, as such data (\eg, human activity data) is often multivariate [3], multi-source [4], rapidly state-varying [5], and noisy [6], which is difficult to mine the potential information and can be easily affected by noise.
There are several well-established methods for pattern and trend analysis applied to time-series data [7]. These methods can be classified into four categories based on their data mining approaches: statistical methods, statistical and probabilistic learning and inference methods, deep neural networks, and information theory-driven techniques. However, these methods have been limited in their applicability to multivariate, multi-source, rapidly state-varying, and noisy time-series data. Recently, deep neural network (DNN) models have attracted a great deal of attention. Such models can learn spatio-temporal properties of data, extract features automatically, and analyze patterns to predict outcomes or changes, such as state transitions[8]. Although deep neural network models can be effective in analyzing complex datasets, these models and the features they extract are often difficult to be interpreted. Interpretable features such as the features extracted by information theory-driven techniques can make a learning model surpass the performance of deep neural network models [9], while also improving our ability to explain the inference process of machine learning models.
Our previous works include the Blocks of Eigenvalues algorithm for time series segmentation [10] as a method to represent time-series data, a pattern representation method based on mutual information and entropy [11], and preliminary experiments and analysis of three Markov chain-based entropy features via heat maps [12]. These studies highlight the potential of entropy features in analyzing time-series data. However, these works do not present a complete pipeline for analyzing time series data and do not validate the results of the methods by machine learning and deep learning models. These works have demonstrated the potential of using entropy when handling data that is multivariate, multi-source, rapidly state-varying, and noisy. Thus, inspired by information theory and entropy, in this paper we propose a pipeline to extract interpretable features in multivariate time-series data, which will enhance the performance of machine learning and deep learning models. The primary contributions of this paper are as follows:
(1) We introduce different entropy-based methods to derive engineered features from time-series data. We then propose a pipeline for extracting interpretable, higher-level features that are highly generalizable and applicable to processing multivariate, multi-source, rapidly state-varying and noisy time-series data.
(2) We apply our information theory-based models to one human activity dataset (from a clinical study for remote healthcare monitoring) and two publicly available datasets (Gait in Aging and Disease Database [13], and PTB Diagnostic ECG Database [14]) to demonstrate the applicability of this approach in different settings and for different applications.
(3) We evaluate the effectiveness of the extracted features using different models such as logistic regression, Support Vector Machines (SVM), Multi-Layer Perception (MLP), and Long Short Term Memory (LSTM) neural networks. Our experimental results show that, for the three different types of datasets, compared to the baseline methods, the information theory-based features can significantly improve the accuracy, recall, and F1 scores of the models by an average of 10%-25%.
In conclusion, we present a general pipeline for processing multivariate, multi-source, rapidly changing, and noisy time-series data. Our approach provides a comprehensive description of the creation, selection, and modeling of entropy features, offering a new perspective for analyzing this type of data. We also evaluate the effectiveness of our information theory-based pipeline using various datasets, showcasing its versatility and generalizability. Our approach has the potential to enhance the performance of machine learning models for time-series data analysis, making it a useful tool for real-world applications.
The remainder of this paper is organized as follows. In Section II, we review the state-of-the-art works in pattern analysis for time-series data. In Section III, we introduce and analyze the original data from three datasets, which are multivariate, multi-source, rapidly state-varying and noisy. In Section IV, to process this type of time-series data, we provide a technical description of the entropy techniques and their variants in detail to mine the potential information of the time-series data. In Section V, we demonstrate the evaluation results of the three datasets on different machine learning and deep learning models. Finally, in Section VI, we conclude our studies and discuss future work.
The source code, constructed models and links to the public datasets are made available via self-explanatory code with mark-up on a GitHub repository [15].
II Related Works
There are four main approaches to mining information from time-series data: statistical methods, statistical and probabilistic learning and inference methods, deep neural network models, and information theory-driven techniques.
Classical statistical methods primarily focus on feature selection rather than data mining. However, with the increase in the amount and complexity of data, it becomes challenging to apply classical statistical theory-based techniques as they assume that the data is statistically uncorrelated. These techniques tend to perform poorly when applied to multivariate, multi-source, rapidly changing, or noisy time-series data [16].
DNN-based techniques are popular for mining information from time-series data due to their ability to extract features and yield optimal results for large datasets. Feature extraction methods such as convolutional neural networks (CNN) and long short-term memory (LSTM) are typically used in the design of the DNN structure. In recent years, researchers have continuously carried out innovative research on the basis of these representative methods. For example, Xia \etalcombined CNN and LSTM to create an eight-layer CNN-LSTM model that considers both spatial and temporal embedded information of the original data [17]. Singh \etaladded a self-attention mechanism to CNN-LSTM for better performance [18]. Despite the convenience of feature extraction using DNNs for time-series data, understanding and interpreting the extracted features is still a significant challenge due to the "black box" nature of DNNs. Furthermore, DNNs can only automatically extract simple features and not more complex features.
To mine features that are both interpretable and more complex from time-series data, some researchers have begun to develop research from the perspective of information theory. Shannon first proposed the concept of entropy, to measure the uncertainty of information, establishing the scientific theoretical basis of modern information theory [19]. Based on Shannon’s entropy, several entropy variants such as spectral entropy [20] and sample entropy [21] have been proposed. Nurwulan \etalcompared traditional features with multi-scale entropy (MSE) features extracted from 3-axis acceleration data and showed that MSE outperformed traditional features in KNN and random forest (RF) classification [22]. Bao \etalextracted frequency-domain entropy features from original acceleration data, which were combined with mean, energy, and correlation of the original data as inputs to build a model with ideal results [23]. While the above entropy-based methods offer new avenues for time-series data analysis, they also have certain limitations. Many existing studies only utilize a single entropy feature or use entropy features as supplementary to traditional features. Furthermore, these methods are task-specific and do not form a comprehensive pipeline based on entropy methods. Additionally, there is a lack of a clear explanation for the selection and calculation of entropy features.
A similar study to this paper is Howedi \etal’s entropy measurement model [24], which uses approximate entropy (ApEn), sample entropy (SampEn), and fuzzy entropy (FuzzyEn) to detect visitors in a home environment. However, this study does not select entropy features based on the data characteristics, such as Markovian systems and stochastic state transitions, and does not provide a justification for the selection of entropy features.
III Datasets
In this paper, we apply our information theory-based pipeline to three datasets, one human activity data collected from the in-home healthcare monitoring IoT platform of our ongoing Minder study, as well as two publicly available EEG signal datasets, providing information on epileptic seizure and heart disease, respectively.
III-A Minder Dataset
We have developed an in-home healthcare monitoring IoT platform (illustrated in Fig. 1), called Minder, to support people living with dementia (PLWD) [25]. The Minder platform collects various digital markers, including activity data, home device usage, and clinical information. It comprises four main parts: 1) device-independent sensors installed in participants’ homes to collect original data, 2) a back-end system with cloud infrastructure, storage, and analysis tools to analyze the data and install machine learning algorithms, 3) a user interface presenting clinical and environmental information, as well as alerts generated by the system, and 4) clinical intervention involving healthcare professionals using the system/alerts to communicate with participants and caregivers to address their medical needs.
The Minder study protocol received ethical approval from the London-Surrey Borders Research Ethics Committee and South West London Ethics Committee (see link here) and we obtained informed written consent from all study participants.
The dataset is labeled by our monitoring team in response to alerts generated on the Minder platform, which operates 24/7. These alerts are verified with the people living with dementia (PLWD) or their caregivers, and provide information on potential healthcare-related events such as falls, abnormal motor function behavior, hospital admissions, Urinary Tract Infections, anxiety and depression, agitation, confusion, and disturbed sleep patterns. Participants who have experienced such events will have labeled data for that adverse health event.
In this study, we focus on the activity data of Minder only. This includes 3762 person-weeks of data collected between December 2020 and March 2022. The mean age of participants is 79. All of the data presented here has been anonymized.
Activity data in the Minder platform is collected using PIR sensors installed in various locations, including the kitchen, bathroom, bedroom, lounge, and hallway, as shown in Fig. 2. The PIR sensor logs an event with seconds precision and a 30-second delay when a person passes by. The recorded data is time-series data, showing the household’s life patterns over time. We can identify clear differences in behaviors by visualizing the raw data, as shown in Fig. 5, which compares the routine activities of two PLWDs.
III-B Epileptic Seizure Recognition Dataset
The ESRD (Epileptic Seizure Recognition Dataset) contains 11,500 time-series EEG signal data samples from 500 subjects and is used to study EEG signal changes during seizures [26]. Each sample consists of 23 segments containing 178 data points over a one-second interval. The UCI preprocessed the original dataset and randomly rearranged the segments to form the 11,500 time-series EEG signal samples from 500 subjects. The dataset includes five different health conditions, including one related to epileptic seizures, and four normal conditions where the subjects do not show symptoms of epilepsy. However, many researchers choose to perform binary classification to distinguish between class 1 (representing epileptic seizures) and other classes. Our goal is also to distinguish between healthy participants and those with epileptic seizures.
III-C PTB Diagnostic ECG Database
The PTB Diagnostic ECG Database (PTBDB) is a collection of 549 records from 290 subjects (209 male, and 81 female) [14, 13]. The age range of participants is 17 to 87 years old, with an average age of 57.2. The sampling frequency is 125Hz. The Diagnostic class includes myocardial infarction, cardiomyopathy/heart failure, bundle branch block, dysrhythmia, myocardial hypertrophy, valvular heart disease, myocarditis, miscellaneous, and healthy controls. In this study, we extract heartbeat signals and only use ECG lead 2 [27]. We focus on the myocardial infarction and healthy control categories, with a total of 14552 samples in the dataset. The histogram color maps for the PTB data marked as abnormal and normal are shown in Fig. 4.
IV Methodology
The pipeline proposed in this paper is mainly composed of three parts: data preprocessing, feature construction, and modeling.
The data preprocessing phase includes missing value processing, data resampling, and label encoding. The missing values are forward-filled with the last valid value, then backfilled with the next valid value. Data resampling is determined by the characteristics of the data as well as the requirements of the target. For example, if a dataset has a low sample size, but narrowing the time window has little impact on the target results, then resampling will be performed to expand the dataset.
In the modeling stage, we use classical machine learning and deep learning models such as Logistic Regression (LR), Support Vector Machine (SVM), Multilayer perceptron (MLP), Convolutional neural network (CNN), and Long Short-term Memory (LSTM).
The following introduces the feature construction stage, including the entropy and entropy variants used in this study, and the feature selection methods.
IV-A Entropy and Entropy Variants
IV-A1 Shannon’s Entropy of a Markov chain
Assuming that a certain human activity (\eg, a sequence of locations) can form a Markov chain, then we can regard the occurrence of these activities as random events, and measure the extent of occurrence of these random events. We apply Shannon’s entropy of a Markov chain to represent pattern changes in human activity data. Suppose that there are locations in a participant’s activity, then the Shannon’s entropy of a Markov chain can be described as:
[TABLE]
In which is the probability of activity . When the frequency of a participant’s activity changes, will change accordingly to represent the change in activity pattern.
IV-A2 Entropy Rate of a Markov Chain
Shannon’s entropy of a Markov chain does not link the activities in a Markov chain together, but only treats each activity as a separate individual. However, if we utilize the first-order Markov chain to profile the human activities and collect these activities together, we can get the corresponding transitions, where the current activity event of a participant is only dependent on the preceding activity event [28]. Suppose that represents states in a Markov chain. Let , represent the previous state and the current state, respectively. Then the probability of the route from to can be represented as:
[TABLE]
Where and . Suppose that there are states in a Markov chain, then the Markov chain can be represented as matrix , called Transition Matrix , an example is shown in Fig. 6. From Markov chains, stationary distributions can be calculated, which represent:
[TABLE]
In which, is an n-dimension vector associated with a Markov chain with states. Using this, the entropy rate of a Markov chain can be expressed as [25]:
[TABLE]
In which, is the probability in the stationary distribution associated with activity in a Markov chain with the stationary distribution. When calculating the entropy rate of a Markov chain, there are two time-windows that need to be set, one time-window is used to calculate for target time-series data, and the other is used to calculate to represent the characteristics of time-series data. The time window to calculate is set by the mission objective. And it has to be noted that the time window to calculate the stationary distribution is important, as it should reflect the stationary pattern of the participant. For example, participants’ routines may be affected by the seasons, then we need to avoid the possible effects of the seasons when setting up the time windows to calculate the stationary distribution, such as setting the time windows to override the seasonal variations. The complete procedure for calculating the Entropy Rate of a Markov Chain is shown in the Algorithm 1.
IV-A3 Entropy Production of a Markov Chain
Entropy Production (EP) is a description of the diverse non-equilibrium principle [29], which is intended to describe physical processes. Physical processes can be described by stochastic processes, such as Markov chains and diffusion processes. The Markov chains generated by human activity data can be regarded as a stochastic process [30]. Therefore, we can apply EP to Markov chains to describe the pattern changes.
EP can be estimated by ML models such as the Neural Estimator for Entropy Production (NEEP), which can estimate EP of Markovian systems [31]. Given a Markov chain trajectory and a function acting over previous state and the current state in the Markov chain, where denotes the trainable neural network parameters, then the output of NEEP can be defined as [31]:
[TABLE]
Where is:
[TABLE]
The procedure for training NEEP is shown in Algorithm 2 and the model structure of NEEP is shown in Fig. 7. In NEEP, an embedding layer is used to transform the discrete state into a trainable continuous vector [31], then the embedded data is input into a hidden MLP layer. It has to be noted that, the length of the time series data is very important when training NEEP, as we need to ensure that the data for this period of time is sufficient for training and can reflect the participant’s characteristics.
IV-A4 von Neumann Entropy of a Markov Chain
The von Neumann entropy (VNE) quantifies the amount of information present in a system, which can be applied to time-series data to quantify the fluctuation and the correlation of the data [32]. For a density operator with eigenvalues , VN is defined as follows:
[TABLE]
We apply VNE to the human activity data with stochastic state transitions to reflect the pattern change of the data. The human activity data of a Markov chain can be analyzed by VN from spatial and temporal perspectives, for example, illustrated in Fig. 8. One of the key points to calculate VN is to obtain the density operator , which must satisfy (i) be Hermitian, (ii) have unit trace, and (iii) be positive semidefinite. Given , an N-dimension Pearson correlation matrix of the human activity data, then the density operator can be defined as [33]:
[TABLE]
The density operator , calculated by Eq. (9) satisfies all the requirements. However, it has to be noted that the density operator , which is calculated from real IoT data, may be sparse and thus there may be anomalies in the calculation of using standard classical mathematical methods. Therefore, we calculate by Mercator’s Series. Suppose is a matrix and sufficiently close to the identity matrix , and , then a logarithm of can be computed by means of the following k-power series [34]:
[TABLE]
This means, we can obtain by:
[TABLE]
Integrating Eq. (8), Eq. (9) and Eq. (10), the VN can be obtained. The complete procedure for calculating VNE is shown in the Algorithm 3.
IV-A5 Approximate Entropy
For Non-Markovian chain systems, Approximate Entropy (ApEn) can be used to quantify the complexity of the system. Given a time series dataset with samples, form the sequence in order to generate an m-dimension vector:
[TABLE]
Define the distance between the vectors and to be the maximum of the differences between the corresponding elements of the two vectors:
[TABLE]
Given a threshold , count the number of , denoted as , and calculate the ratio of to , denoted as :
[TABLE]
Calculate the average value of :
[TABLE]
Increase the dimension from to , and repeat the above steps. For sequences of finite length, an estimate of the sample entropy can be obtained as [35]:
[TABLE]
IV-A6 Increment Entropy
The Incremental Entropy (IncrEn) algorithm is a method for calculating the entropy of a sequence of data points incrementally, rather than computing the entropy of the entire sequence all at once. Given a time series dataset with samples. Construct an increment time series by from . Hence, for a positive integer , vectors of dimension are derived from an incremental time series. These vectors, denoted as , represent contiguous segments of the time series. Each element in a vector is mapped onto a word of two letters. The sign of each component is represented by , and the magnitude of each component in relation to the other components within the vector is represented by for a quantifying resolution . As a result, words, , are generated. Each word, consisting of letters, can have variations, depending on the values of and . The frequency of occurrence of each unique word is defined as:
[TABLE]
where signifies the count of the unique word within the . The Increment Entropy (IncrEn) of order m (where is equal to or greater than 2) and resolution is defined as:
[TABLE]
IV-A7 Dispersion Entropy
Dispersion entropy (DE) can be used to describe the complexity of time series data. For time series with low regularity, DE can reflect the degree of disorder of the series [36]. Given a time series dataset with samples. Map to between 0 and 1 by normal cumulative distribution function (NCDF):
[TABLE]
In which, the parameter is the expectation of , while the parameter is its standard deviation. Map to the range of , and obtain a new sequence :
[TABLE]
In which, is the number of categories, and is the rounding function. Then construct the embedding vector by:
[TABLE]
In which, is the embedding dimension, is the number of class, is the time delay. Then each is mapped to dispersion pattern , in which , , , and . The number of possible dispersion of each is .
Calculate the relative frequency for each potential dispersion pattern:
[TABLE]
Finally, based on Shannon’s entropy, DE can be obtained by [37]:
[TABLE]
IV-A8 Phase Entropy
Phase entropy (PhEn) is developed to detect the complexity of physiological signals. For example, given a time series dataset with samples, we can represent the data by the Lorenz plot, as Fig. 9 (a) shows. In the Poincaré plot, if we replace the sequence by , then we can get SODP plot, as Fig. 9 (b) shows. Specifically, from a given time series , we can obtain and by [38]:
[TABLE]
Then compute the slope angle of each scatter point as shown in Fig (b).
[TABLE]
Then the probability distribution can be calculated by:
[TABLE]
Finally, based on Shannon’s entropy, the PhEn can be calculated as [38]:
[TABLE]
IV-A9 Slope Entropy
Slope Entropy (SlopEn) is an algorithm to describe the complexity of a time series dataset, which is primarily based on transferring the original time series data to a series of single-threshold and symbolic patterns [39, 40]. Given a time series dataset with samples. Decompose into subsequences according to the embedded dimension :
[TABLE]
In which, , . Define two soft threshold parameters and to calculate the symbolic patterns of , where .
Define , and compare with the two soft threshold parameters and , then five patterns can be obtained:
[TABLE]
Based on the five patterns, we can get sequence combinations. The relative frequency of the the combination can be calculated by the number of occurrences of each combination:
[TABLE]
Finally, SlopEn can be calculated based on the Shannon’s entropy:
[TABLE]
IV-B Feature Selection
For feature selection, if the dataset is with stochastic state transitions and can be constructed as a Markov chain, we prioritize the entropy features associated with Markov chains, because linking the time-series data together to form Markov chains can potentially mine more information. For the dataset where state-space modeling is not applicable, we utilize mathematical statistics such as mutual information and the Pearson relationship matrix for filtering.
IV-B1 Minder Database
As Fig. 5 shows, the original data of the Minder Database mainly includes the time and location where the infrared sensors were triggered, and the original data can be reconstructed into Markov chains to reflect the activity routes of the participants. Therefore, we prioritize the entropy features associated with Markov chains, including Shannon’s entropy, the entropy rate of a Markov chain, the entropy production of a Markov chain, and the von Neumann entropy of a Markov chain (from the perspective of spatial and temporal).
IV-B2 ESRD and PTBDB
As Fig. 3 and Fig. 4 show, the data from ESRD and PTBDB is collected by wearable sensors, and it is hard to generate Markov chains. Thus we apply mutual information and Pearson relationship matrices to ESRD and PTBDB to select approximate entropy features, as Fig. 10 shows.
V Modeling and Results
We utilize classical models to evaluate the entropy features, including Logistic Regression (LR), Support Vector Machine (SVM), Multilayer Perceptron (MLP), Convolutional neural network (CNN), and Long-short Term Memory (LSTM).
V-A Minder Database
We evaluate the performance of LR, SVM, MLP, and LSTM on the Minder database. Since our focus is on identifying whether a participant has had any non-healthy events, we use recall rate, F1 score, and accuracy as evaluation methods. Additionally, we consider the effect of sundowning and circadian rhythms in people living with dementia (PLWD) [41] by dividing one day into two time periods: daytime (06:00 - 18:00) and night (18:00 - 24:00 and 00:00 - 6:00). The baseline features are average frequency of bathroom, bedroom, hallway, kitchen, and lounge in each week (daytime and night). The entropy features are Shannon’s entropy of Markov chains, Entropy rate of Markov chains, EP of Markov chains, VNE of Markov chains (activity frequency), VNE of Markov chains (activity duration), and activity duration difference of Markov chains in each week (daytime and night). The output of the models is healthcare-related events (True or False).
LR: Model parameters of the baseline features: penalty = L2, solver = sag, class weight = balanced, random state = 10, test size = 0.3, repeat times = 30. Model parameters of the entropy features: penalty = L2, solver = sag, class weight = balanced, random state = 10, test size = 0.3, repeat times = 30.
SVM: Model parameters of the baseline features: kernel = linear, test size = 0.3, repeat times = 30. Model parameters of the entropy features: kernel = linear, test size = 0.3, repeat times = 30.
MLP: Model parameters of the baseline features: input layer (), hidden layer (), output layer (), activation functions = (), epochs = 3000, batch size = 256, learning rate = 0.15, criterion = Binary Cross-Entropy, optimizer = SGD, test size = 0.3, repeat times = 30. Model parameters of the entropy features: input layer (), hidden layer (), output layer (), activation functions = (), epochs = 5000, batch size = 256, learning rate = 0.06, criterion = Binary Cross-Entropy, optimizer = SGD, test size = 0.3, repeat times = 30.
LSTM: Model parameters of the baseline features: input layer (), hidden layer (), output layer (), activation functions = (), epochs = 5000, batch size = 256, learning rate = 0.15, criterion = Binary Cross-Entropy, optimizer = SGD, timesteps = 3, test size = 0.3, repeat times = 30. Model parameters of the entropy features: input layer (), hidden layer (), output layer (), activation functions = (), epochs = 5000, batch size = 256, learning rate = 0.4, criterion = Binary Cross-Entropy, optimizer = SGD, timesteps = 3, test size = 0.3, repeat times = 30.
The results of the Minder Database are shown in Fig. 11 and Table. II. We can find that, compared with the baseline features, modeling with the entropy features can improve the recall rate, F1 score, and accuracy on average by 14.03%, 13.86%, and 11.10%. Especially for LSTM, compared with the model build using baseline features, the recall rate (90.29%), F1 score (91.29%), and Accuracy (92.41%) are improved by 23.01%, 20.04%, and 16.35%.
V-B Epileptic Seizure Recognition Dataset
We aim to differentiate between the normal participants and those with epileptic seizures. The baseline models are LSTM and CNN with complete data. The entropy model is MLP with IncrEn, ApEn, SlopEn, and PhEn. The output of the models is Participants with epileptic seizures (True or False).
The Baseline-CNN: Max pooling-1d layer 1 (), Conv-1d layer 1 (), Max pooling-1d layer 2 (), Conv-1d layer 2 (), Flatten layer (), Dense layer 1 (), Dense layer 2 (), activation functions = , epochs = 1000, batch size = 256, learning rate = 0.0001, criterion = sparse categorical crossentropy, optimizer = adam, test size = 0.3, repeat times = 30.
The Baseline-LSTM: LSTM layer 1 (), LSTM layer 2 (), LSTM layer 3 (), Flatten layer (), Dense layer 1 (), Dense layer 2 (), activation functions = , epochs = 1000, batch size = 256, learning rate = 0.0001, criterion = sparse categorical crossentropy, optimizer = adam, test size = 0.3, repeat times = 30.
The Entropy-MLP: Dense layer 1 (), Dense layer 2 (), Dense layer 3 (), Dense layer 4 (), Dense layer 5 (), activation functions = , epochs = 2000, batch size = 256, learning rate = 0.3, criterion = Binary Cross-Entropy, optimizer = SGD, test size = 0.3, repeat times = 30.
The results of the ESRD Database are shown in Fig. 12 and Table. III. We can find that, compared with the baseline models, modeling with the entropy features can improve the recall rate, F1 score, and accuracy by up to 10.87%, 9.74%, and 8.41% on average. For the model structure, compared with the Baseline-LSTM and Baseline-CNN, Entropy-MLP can reduce by 5.86 times and 1.59 times.
V-C PTBDB
We aim to distinguish the ordinary participants and the participants with any heart disease. The baseline models are MLP and CNN with complete data. The entropy model is MLP with PhEn, DE, ApEn, and FuzzyEn. The output of the models is the participants with any heart disease (True or False).
The Baseline-MLP: Dense layer 1 (), Dense layer 2 (), Dense layer 3 (), Dense layer 4 (), Dense layer 5 (), activation functions = , epochs = 1000, batch size = 256, learning rate = 0.0001, criterion = sparse categorical crossentropy, optimizer = adam, test size = 0.3, repeat times = 30.
The Baseline-CNN: Conv-1d layer 1 (), Conv-1d layer 2 (), Max pooling-1d layer (), Dropout layer (), Flatten layer (), Dense layer 1 (), Dense layer 1 (), activation functions = , epochs = 1000, batch size = 256, learning rate = 0.0001, criterion = sparse categorical crossentropy, optimizer = adam, test size = 0.3, repeat times = 30.
The Entropy-MLP: Dense layer 1 (), Dense layer 2 (), Dense layer 3 (), Dense layer 4 (), Dense layer 5 (), activation functions = , epochs = 2000, batch size = 256, learning rate = 0.3, criterion = Binary Cross-Entropy, optimizer = SGD, test size = 0.3, repeat times = 30.
The results of the PTBDB Database are shown in Fig. 13 Table. IV. We can find that, compared with the Baseline-MLP and Baseline-CNN, Entropy-MLP can achieve better performance with a simpler model structure, and reduce the number of model structure parameters by 6.19 times and 61.35 times. And the Entropy-MLP can improve the recall rate, F1 score, and accuracy to 98.08%, 98.37%, and 98.66%.
VI Conclusions
We propose a novel method for analyzing multivariate time-series data using information theory-based features analysis methods. Our approach utilizes entropy-based features. For applications with stochastic state transitions, we utilize Shannon’s entropy of Markov chains, entropy rates of Markov chains, entropy production of Markov chains, and von Neumann entropy of Markov chains to analyze pattern changes in the data. Additionally, for applications where state transition modeling is not applicable, we used five classical entropy and entropy variants, and introduce the entropy feature selection method (by mutual information and Pearson relationship matrix).
The results show that, compared with the baseline, the entropy-based models improve the recall rate, F1 score, and accuracy on average by up to 23.01%. We also compared the entropy-based model with state-of-the-art deep learning models on ESRD and PTBDB. And the results show that the entropy based model can achieve better performances on the recall rate, F1 score, and accuracy, with an average reduction of 18.75 times in the number of model parameters.
The proposed pipeline offers a versatile, high-precision, and interpretable solution for analyzing time series data from the perspective of information theory, which can be applied to various forms of time series data, such as those in the fields of IoT, intelligent systems, and data security.
Acknowledgments
This project is supported by the EPSRC PROTECT Project (grant number: EP/W031892/1), EPSRC OpenPlus Fellowship (EP/W005271/1), and the UK DRI Care Research and Technology Centre funded by MRC and Alzheimer’s Society (grant number: UKDRI-7002). The raw data from the Minder dataset was accessed using DCARTE library developed by Dr Eyal Soreq at the UK Dementia Research Institute’s Care Research and Technology Centre. Yushan Huang is funded by the China Scholarship Council. Payam Barnaghi’s research is also supported by the Great Ormond Street Hospital Children’s Charity Award VS0618.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Charmi Jobanputra, Jatna Bavishi and Nishant Doshi “Human activity recognition: A survey” In Procedia Computer Science 155 Elsevier, 2019, pp. 698–703
- 2[2] Sureshkumar Selvaraj and Suresh Sundaravaradhan “Challenges and opportunities in Io T healthcare systems: a systematic review” In SN Applied Sciences 2.1 Springer, 2020, pp. 1–8
- 3[3] Chuxu Zhang et al. “A deep neural network for unsupervised anomaly detection and diagnosis in multivariate time series data” In Proceedings of the AAAI Conf. on Artificial Intel. 33.01 , 2019, pp. 1409–1416
- 4[4] Francesco Piccialli et al. “Artificial intelligence and healthcare: Forecasting of medical bookings through multi-source time-series fusion” In Information Fusion 74 Elsevier, 2021, pp. 1–16
- 5[5] Tao Tao, Enrico Zio and Wei Zhao “A novel support vector regression method for online reliability prediction under multi-state varying operating conditions” In Reliability Engineering & System Safety 177 Elsevier, 2018, pp. 35–49
- 6[6] Gert-Jan Both, Subham Choudhury, Pierre Sens and Remy Kusters “Deep Mo D: Deep learning for model discovery in noisy data” In Journal of Computational Physics 428 Elsevier, 2021, pp. 109985
- 7[7] Jiadong Zhu, Rubén San-Segundo and José M Pardo “Feature extraction for robust physical activity recognition” In Human-centric Computing and Information Sciences 7.1 Springer, 2017, pp. 1–16
- 8[8] Liana CL Portugal et al. “Predicting anxiety from wholebrain activity patterns to emotional faces in young adults: a machine learning approach” In Neuro Image 23 Elsevier, 2019
