Health data detection method based on convolutional autoencoder Gaussian mixture model

Through the combination of convolutional autoencoders and Gaussian mixture models, the problem of high computational overhead in health data detection is solved, and efficient and accurate anomaly detection on wearable devices is achieved, which is suitable for chronic disease screening and monitoring.

CN112509696BActive Publication Date: 2024-10-15JIANGNAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011226516.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-04
Publication Date
2024-10-15
Estimated Expiration
2040-11-04

AI Technical Summary

Technical Problem

Existing health data detection methods have high computational overhead for high-precision detection and are difficult to effectively apply in wearable devices. This is especially challenging for the screening and monitoring of chronic diseases such as sleep disorders and obstructive sleep apnea syndrome.

Method used

A health data anomaly detection method based on the convolutional autoencoder Gaussian mixture model is used to convert high-dimensional data into low-dimensional features through the convolutional autoencoder, and combined with the EM algorithm and cholesky decomposition to reduce computational complexity and improve detection efficiency.

Benefits of technology

It achieves a significant reduction in computing overhead while ensuring detection accuracy, improves the efficiency and accuracy of health data detection, and is suitable for real-time monitoring of wearable devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112509696B_ABST
    Figure CN112509696B_ABST
Patent Text Reader

Abstract

The present invention discloses a health data detection method based on a convolutional autoencoder Gaussian mixture model, belonging to the field of medical care technology. The method uses an adaptive, nonlinear, multi-layer coding method to convert multidimensional data into a low-dimensional feature representation, effectively avoiding the problem of reduced detection accuracy due to large computational overhead caused by the "dimensionality disaster"; this method targets the multi-stage characteristics of human activity data, adds convolution and deconvolution neural network layers, effectively identifies and extracts data features, and further improves the detection accuracy; the present invention organically combines the dimensionality reduction process and the density estimation process, avoiding the dilemma of falling into a local optimum due to the independence of the two models; at the same time, considering the singularity problem of the matrix, the inverse of the covariance matrix may not be solved, and the mixed probability, mean and covariance are used to construct the Cholesky decomposition of the covariance matrix to calculate the sample density to avoid the problem of being unable to be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a health data detection method based on a convolutional autoencoder Gaussian mixture model, and belongs to the technical field of medical care. Background Art

[0002] With the continuous development of the modern economy, people are paying more and more attention to their own health status. Therefore, they are paying more and more attention to their own health data in daily life. More and more people are starting to use wearable devices that can monitor sleep data, exercise steps and resting heart rate, such as bracelets. At the same time, if patients can provide their personal daily health information when seeking medical treatment, it will greatly speed up the diagnosis and improve the quality of diagnosis. Especially for chronic diseases such as sleep disorders and obstructive sleep apnea syndrome, if such chronic diseases can be screened and monitored in advance based on daily health data, it will be a major advancement in the entire medical field.

[0003] Wearable devices have been ubiquitous in our lives since 2010 due to their functionality, portability, and affordability. However, current wearable devices can only record sleep data, exercise steps, and resting heart rate data, and the analysis of the data is superficial, without any further analysis or processing; for example, the sleep quality of the wearer can be roughly judged based on the monitored sleep duration.

[0004] If wearable devices can conduct in-depth and effective analysis of the daily health data they monitor to determine whether the user is at risk of developing a certain disease, especially some of the chronic diseases mentioned above, then it will play a key role in monitoring people's physical health.

[0005] However, existing methods that can perform in-depth analysis and detection of health data usually require a lot of computational overhead to achieve high detection accuracy. For example, the abnormal data monitoring method based on Gaussian Mixture Model (GMM), although its performance is significantly better than anomaly detection algorithms such as K-means and LOF, its detection effect depends to a large extent on clustering accuracy, and clustering operations on big data will inevitably encounter the problem of high computational overhead. If it is to adapt to wearable devices, an algorithm with low computational overhead and high detection accuracy is needed, and the time complexity needs to be reduced while ensuring detection accuracy. Summary of the invention

[0006] In order to solve the problem of high computational overhead in existing health data detection methods, the present invention provides a health data anomaly detection method based on a convolutional autoencoder Gaussian mixture model, the method comprising:

[0007] Step 1: The collected original high-dimensional health data is trained on the convolutional autoencoder. Based on the principle of minimizing the reconstruction error, the BP optimization algorithm is combined to obtain the low-dimensional feature representation of the original high-dimensional health data and the corresponding reconstruction error;

[0008] Step 2: Use the low-dimensional features of the original high-dimensional health data as the input of the Gaussian mixture model to calculate the sample density corresponding to the original high-dimensional health data, record the maximum value of the sample density as the density threshold, and train the Gaussian mixture model in combination with the EM algorithm to obtain the optimal Gaussian mixture model parameters;

[0009] During the calculation process, the mixed probability, mean and covariance are used to construct the Cholesky decomposition of the covariance matrix to obtain the sample density of the original high-dimensional health data;

[0010] During the training process, the Bayesian information criterion is used to determine the number of Gaussian mixture model components. The Gaussian mixture model is trained through continuous iterations of the EM algorithm to obtain the optimal Gaussian mixture model parameters.

[0011] Step 3: When testing health data, use the Gaussian mixture model under the optimal Gaussian mixture model parameters to perform density estimation on the low-dimensional feature representation of the original high-dimensional health data, and obtain the sample density of each original high-dimensional health data under the parameters of the optimal Gaussian mixture model. The health data corresponding to the sample density exceeding the density threshold is abnormal data.

[0012] Optionally, the original high-dimensional health data includes but is not limited to calories consumed, number of steps, distance, altitude, resting heart rate, sleeping heart rate, exercise heart rate, light exercise heart rate, exercise heart rate, sedentary time, aerobic exercise time, aerobic exercise calories consumed, fat burned, sleep efficiency, sleep time, sleep onset time, sleep start time, sleep end time, deep sleep time, light sleep time, REM sleep time and number of wake-ups.

[0013] Optionally, before training the collected original high-dimensional health data on the convolutional autoencoder, the method further includes:

[0014] Preprocess the original high-dimensional health data: use multiple interpolation to deal with the problem of missing values ​​in health data and use min-max normalization to process the original high-dimensional health data;

[0015] The original high-dimensional health data is normalized according to the following formula:

[0016] (1)

[0017] in Represents any dimension of data in each original high-dimensional health data, and Respectively represent the minimum and maximum values ​​in any dimension data, Represents the normalized data.

[0018] Optionally, assume that the low-dimensional feature representation of the original high-dimensional health data obtained by the convolutional autoencoder is ,in represents the dimension of the latent space representation of the original high-dimensional health data;

[0019] In the calculation process, the mixed probability, mean and covariance are used to construct the Cholesky decomposition of the covariance matrix to obtain the sample density of the original high-dimensional health data. :

[0020] (2)

[0021] in, Represents the number of Gaussian components;

[0022] (3)

[0023] (4)

[0024] in, Representative k Gaussian component covariance, ; is the Gaussian component covariance matrix The lower triangular matrix of the penalty term after Cholesky decomposition; It is the solution to the linear equations obtained when the Cholesky decomposition of the covariance matrix is ​​constructed using the mixing probability, mean and covariance; is the dimensionality of the latent representation provided by the convolutional autoencoder.

[0025] Optionally, during the training process, the number of Gaussian mixture model components is determined using the Bayesian information criterion, and the Gaussian mixture model is trained through continuous iterations of the EM algorithm to obtain optimal Gaussian mixture model parameters, including:

[0026] Step 1: Expected step, calculated based on current parameters The likelihood that the data is generated by each Gaussian component:

[0027] (5)

[0028] in, ;

[0029] The current parameters are the mixing probabilities for each component , mean and covariance. In the first iteration, the current parameter is the initial value of the current parameter; in subsequent iterations, the current parameter is the parameter value obtained in the previous iteration;

[0030] and,

[0031] (6)

[0032] in, represents the deep belief network DBN, represents the low-dimensional features of the dataset S obtained by the convolutional autoencoder, represents the weight vector of DBN, In the Gaussian mixture model, The sample is from The probability of generating Gaussian components is Indicates the first The set of probabilities generated by each Gaussian component of the original high-dimensional health data;

[0033] Step 2: Maximization step, use the following formula to calculate the parameters of the Gaussian mixture model for the next round of iteration, that is, the mixing probability of each component , mean and covariance :

[0034] (7)

[0035] (8)

[0036] (9)

[0037] Step 3: Repeat the calculation of the expected step and the maximization step until convergence to obtain the optimal Gaussian mixture model parameters.

[0038] Optionally, the step 1 includes:

[0039] S1 constructs a fully connected neural network within the local receptive field of the convolutional layer to form a convolution kernel. Then, a local receptive field is selected every certain step length to construct the same number of convolution kernels. The weights of all convolution kernels are not shared.

[0040] S2 uses a fully connected neural network to construct a multi-layer autoencoder. First, the weights in the encoder and decoder are initialized using a restricted Boltzmann machine (RBM), and the encoder is stacked for training.

[0041] S3 performs a deconvolution operation to reconstruct the potential low-dimensional data into the original data; the deconvolution operation is a convolution layer symmetric to the convolution layer of S1;

[0042] S4 learns the features in the health data to form the final convolutional autoencoder. The low-dimensional features of the original high-dimensional health data obtained by the final convolutional autoencoder are represented as .

[0043] Optionally, the method of using multiple interpolation to deal with the problem of missing values ​​in health data includes: using the Monte Carlo method to fill in the missing health data.

[0044] Optionally, the original high-dimensional health data can be collected using wearable electronic devices.

[0045] Optionally, the wearable electronic device includes: a smart bracelet and a smart watch.

[0046] The present invention also provides a health data anomaly detection device based on a convolutional autoencoder Gaussian mixture model, and the device adopts the above method to realize anomaly detection of health data. The health data includes but is not limited to calories consumed, number of steps, distance, altitude, resting heart rate, sleeping heart rate, exercise heart rate, light exercise heart rate, exercise heart rate, sedentary time, aerobic exercise time, aerobic exercise calories consumed, fat burned, sleep efficiency, sleep time, sleep onset time, sleep start time, sleep end time, deep sleep time, light sleep time, REM sleep time and number of wake-ups.

[0047] The beneficial effects of the present invention are:

[0048] (1) The present invention adopts an adaptive, nonlinear, multi-layer encoding method to convert multi-dimensional data into low-dimensional feature representation, effectively avoiding the problem of reduced detection accuracy due to high computational overhead caused by the "curse of dimensionality".

[0049] (2) Aiming at the multi-stage characteristics of human activity data, the present invention adds convolutional and deconvolutional neural network layers, which can effectively identify and extract data features, further improving the detection accuracy.

[0050] (3) The present invention organically combines the dimensionality reduction process and the density estimation process, avoiding the dilemma of falling into the local optimum caused by the independence of the two models; at the same time, considering the singularity problem of the matrix, the inverse of the covariance matrix may not be solved. Therefore, the Cholesky decomposition of the covariance matrix is ​​constructed using the mixed probability, mean and covariance to calculate the sample density. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0052] Figure 1 FIG. 4 is a schematic diagram of the network structure of CAE-GMM in one embodiment of the present invention.

[0053] Figure 2 The figure is a comparison graph of ROC curves of various algorithms for Arrhythmia data set in one embodiment of the present invention.

[0054] Figure 3 The following is a simulation diagram of the AUC values ​​corresponding to different o values ​​of each data set on CAE-GMM.

[0055] Figure 4 This is a simulation diagram of the experimental results of CAE-GMM algorithm for benefit group detection on health data.

[0056] Figure 5 This is a simulation diagram of the experimental results of anomaly detection using the DAGMM algorithm on health data. DETAILED DESCRIPTION

[0057] In order to make the objectives, technical solutions and advantages of the present invention more clear, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.

[0058] Embodiment 1:

[0059] This embodiment provides a health data detection method based on a convolutional autoencoder Gaussian mixture model, the method comprising:

[0060] Step 1: The collected original high-dimensional health data is trained on the convolutional autoencoder. Based on the principle of minimizing the reconstruction error, the BP optimization algorithm is combined to obtain the low-dimensional feature representation of the original high-dimensional health data and the corresponding reconstruction error;

[0061] Step 2: Use the low-dimensional features of the original high-dimensional health data as the input of the Gaussian mixture model to calculate the sample density corresponding to the original high-dimensional health data, record the maximum value of the sample density as the density threshold, and train the Gaussian mixture model in combination with the EM algorithm to obtain the optimal Gaussian mixture model parameters;

[0062] During the calculation process, the mixed probability, mean and covariance are used to construct the Cholesky decomposition of the covariance matrix to obtain the sample density of the original high-dimensional health data;

[0063] During the training process, the Bayesian information criterion is used to determine the number of Gaussian mixture model components. The Gaussian mixture model is trained through continuous iterations of the EM algorithm to obtain the optimal Gaussian mixture model parameters.

[0064] Step 3: When testing health data, use the Gaussian mixture model under the optimal Gaussian mixture model parameters to perform density estimation on the low-dimensional feature representation of the original high-dimensional health data, and obtain the sample density of each original high-dimensional health data under the parameters of the optimal Gaussian mixture model. The health data corresponding to the sample density exceeding the density threshold is abnormal data.

[0065] Embodiment 2:

[0066] This embodiment provides a health data detection method based on a convolutional autoencoder Gaussian mixture model (CAE-GMM). The method first performs data preprocessing on data samples by using min-max normalization. Due to the "curse of dimensionality", it is very difficult to perform density estimation by traditional methods. Therefore, the data samples are trained on the convolutional autoencoder until the reconstruction error is minimized. This nonlinear method is used to reduce the impact of the "curse of dimensionality" while obtaining the potential space representation of the data samples as accurately as possible.

[0067] Next, the Gaussian mixture model is used to perform density estimation on the latent space representation of the samples. Due to the singularity problem of the matrix, the inverse of the covariance matrix may become impossible to solve. Therefore, the present invention uses the mixed probability, mean and covariance to construct the Cholesky decomposition of the covariance matrix to calculate the sample density. Finally, the data with sample density higher than the threshold in the training stage is regarded as abnormal, thereby realizing anomaly detection of healthy data.

[0068] Specifically, the method can use the existing sports bracelets on the market to collect a series of human body data indicators such as user heart rate, exercise steps, calories burned, sleep duration, etc. to form a data set to be analyzed. In this embodiment, the data set contains 30 days of activity data of 6 users, from which 32 feature indicators are selected. It can be expressed as , each piece of sports data is the activity data of a user for one day, 1≤ j ≤180, represented as a 32-dimensional vector in, .

[0069] The characteristic indicators selected in this application include calories consumed, number of steps, distance, altitude, resting heart rate, sleeping heart rate, exercise heart rate, light exercise heart rate, exercise heart rate, sedentary time, aerobic exercise time, aerobic exercise calories consumed, fat burned, sleep efficiency, sleep time, sleep onset time, sleep start time, sleep end time, deep sleep time, light sleep time, REM sleep time, wake-up times, etc. According to actual conditions, the selected characteristic indicators may also include other data indicators, such as exercise times, etc.

[0070] In this embodiment, data collection was conducted on six people for one month using the Xiaomi Mi Band 3. The subjects' daily schedule was set to be 7:30-23:30, and the subjects wore the bracelet 24 hours a day, and the bracelet was charged 5 times during this period.

[0071] After the data set S is collected, the following steps are used for processing:

[0072] Step 1: Data preprocessing:

[0073] The health data in the collected data set S are preprocessed, including dealing with the problem of missing values ​​of health data through multiple interpolation; the data set S is normalized using min-max standardization to reduce the difficulty of the learning task as much as possible.

[0074] Since the wristband needs to be charged and the wristband is not worn correctly, the collected health data often has missing values. This application uses multiple interpolation to complete the data set S, specifically using the Monte Carlo method to fill it.

[0075] In order to enable the convolutional autoencoder network to reconstruct the data samples in the data set S and perform latent space representation, the data samples need to be normalized, otherwise the convolutional autoencoder cannot accurately perform latent space representation. The present invention adopts min-max normalization:

[0076] (1)

[0077] in Represents a 32-dimensional vector Any dimension data in and Respectively represent the minimum and maximum values ​​of the 32-dimensional vector, Represents the normalized data.

[0078] Step 2: Using the data preprocessed in step 1, a convolutional autoencoder is used to minimize the reconstruction error, combined with the BP optimization algorithm, to finally obtain an accurate low-dimensional representation of the data set S.

[0079] Specifically, they include:

[0080] S1 First, a fully connected neural network is constructed within the local receptive field of the convolutional layer to form a convolution kernel. Then, a local receptive field is selected every certain step size to construct the same number of convolution kernels, and so on. The weights between all convolution kernels are not shared.

[0081] S2 uses a fully connected neural network to construct a multi-layer autoencoder. First, the weights in the encoder and decoder are initialized using a restricted Boltzmann machine (RBM), and the encoder is stacked for training.

[0082] S3 performs deconvolution to reconstruct the potential low-dimensional data into the original data. To ensure that the reconstructed data of the autoencoder has the same dimension as the original data, the convolution layer of this step is symmetrical with the convolution layer of S1, as shown in Figure 1 As shown;

[0083] S4 obtains the local receptive field. In order to minimize the reconstruction error, it is necessary to learn the features in the health data to form the final convolutional autoencoder. The low-dimensional feature representation of the data set S obtained by the convolutional autoencoder is .

[0084] Step 3: Using the potential representation and reconstruction error of the sample data obtained in step 2, modeling is performed through GMM combined with the expectation maximization algorithm EM to perform density estimation.

[0085] After the convolutional autoencoder network, the number is , the dimension is The low-dimensional feature representation of the dataset S is , due to the singularity problem of the matrix, the inverse of the covariance matrix may not be solved. Therefore, the CAE-GMM method provided in this application uses mixed probability, mean and covariance to construct the Cholesky decomposition of the covariance matrix to calculate the sample density:

[0086] (2)

[0087] in,

[0088] (3)

[0089] (4)

[0090] in represents the sample density of GMM, represents the number of Gaussian components, Representative k Gaussian component covariances (where ), is the Gaussian component covariance matrix The lower triangular matrix of the penalty term after Cholesky decomposition; It is the solution to the linear equations obtained when the Cholesky decomposition of the covariance matrix is ​​constructed using the mixing probability, mean and covariance; is the dimension of the potential representation provided by the convolutional autoencoder. After determining the number of Gaussian mixture model components K using the Bayesian Information Criterion (BIC), the Gaussian mixture model is trained through continuous iterations of the EM algorithm. The mixing probability of each component , mean and covariance There are the following operations:

[0091] Step 1: Expected step (E-step), based on the current parameters (initial values ​​or parameter values ​​obtained in the previous iteration, that is, the mixing probability of each component , mean and covariance ),calculate The likelihood that the data is generated by each Gaussian component:

[0092] (5)

[0093] in, .

[0094] and,

[0095] (6)

[0096] in, represents the Deep Brief Network (DBN), represents the low-dimensional features of the dataset S obtained by the convolutional autoencoder, represents the weight vector of DBN, Indicates that in the Gaussian mixture model, the i-th sample is composed of the The probability of generating a Gaussian component; Indicates the first The collection of probabilities generated by each Gaussian component of the original high-dimensional health data.

[0097] Step 2: Maximization step (M-step), calculate the parameters of the Gaussian mixture model for the new iteration, that is, the mixing probability of each component , mean and covariance :

[0098] (7)

[0099] (8)

[0100] (9)

[0101] Step 3: Repeat the calculation of E-step and M-step until convergence.

[0102] Through the above steps, the "optimal" combination of Gaussian mixture model parameters is obtained.

[0103] However, it should be noted that: since the EM algorithm may fall into a local optimal solution, in order to avoid this situation, the experiment uses multiple initialization parameters to iterate and take the parameters with the best result.

[0104] The maximum density of the dataset S during the training phase is recorded as , take the density threshold as .

[0105] Finally, the density of each sample is predicted according to the Gaussian mixture model, and the sample density higher than The data is considered abnormal, that is, This indicates that the test sample is abnormal.

[0106] Based on the above explanation, this experimental platform is configured with Windows 10 operating system, Intel Core i7-7700HQ CPU processor, 2.80GHz, 20GB memory, and all algorithms are implemented in Python.

[0107] This embodiment uses 5 data sets for verification, all from the ODDS anomaly detection database. These data sets contain anomaly classes and are distinguished according to sample labels. Data with label 0 is a normal class, and data with label 1 is an anomaly class. The data features of the data sets are shown in Table 1.

[0108] Table 1 Dataset information

[0109]

[0110] The performance indicators used in the present invention to evaluate the anomaly detection algorithm are recall rate (Recall), F1 score (F1-Score), accuracy (ACC), receiver operating characteristic curve (ROC) and receiver operating curve (AUC). The ROC curve describes the changing relationship between the true positive rate and the false positive rate, and the AUC curve is the area enclosed by the ROC curve and the coordinate axis. A better anomaly detection model should have higher Recall, F1-Score, ACC, ROC, and AUC.

[0111] First, in order to verify the advantages of the present invention in detecting high-dimensional data, a high-dimensional Arrhythmia dataset was selected, and the ROC curves were compared with those of the SOS, VAE, and DAGMM algorithms in a qualitative way. The comparison results are shown in Figure 2. Figure 2 shown.

[0112] For the SOS algorithm, please refer to the literature "Janssens, JHM, Huszar, F., Postma, EO,&van den Herik, HJStochastic Outlier Selection[J]. Technical report TiCC TR 2012–001, Tilburg Center for Cognition and Communication, 2012, 23(5), 857-864."; for the VAE algorithm, please refer to the literature "Aggarwal C C. Outlier analysis[C] / / Datamining. Cham: Springer, 2015: 237-263."; for the DAGMM algorithm, please refer to the literature "Zong B, Song Q,Min MR, et al. Deep autoencoding gaussian mixture model for unsupervised anomaly detection[C] / / International Conference on Learning Representations.2018.".

[0113] Depend on Figure 2 From the comparison results, we can see that compared with the area under the ROC curve AUC values ​​of SOS, VAE and DAGMM algorithms, CAE-GMM has the largest area, that is, the highest AUC value. Among them, the detection effect of the VAE algorithm is the worst, which may be because when VAE represents the data in the latent space, it mistakenly deletes the key information related to the original sample and the anomaly, so its reconstruction error is relatively large, resulting in a low detection AUC value.

[0114] from Figure 3It can be seen that for different data sets, the corresponding encoder layer number o is different when the present invention achieves the best detection effect. When the o value increases, the AUC value corresponding to each data set always increases first and then decreases. This is because increasing the o value first can make the encoder perform data compression well and learn better features of the original sample, so the AUC value increases; but then as o continues to increase, it leads to overfitting of the training, resulting in a decrease in the AUC value. After comprehensive consideration of the AUC value and the accuracy of the algorithm, the experiment Figure 3 The o values ​​for the five data sets are 5, 2, 4, 3, and 3 respectively.

[0115] In order to verify the advantage of CAE-GMM in time complexity, the average detection time of CAE-GMM is compared with that of SOS algorithm, VAE algorithm and DAGMM algorithm. The comparison results are shown in Table 2:

[0116] Table 2 Comparison of average detection time of each algorithm

[0117]

[0118] It can be seen from Table 2 that although the average detection time of the CAE-GMM method provided in this application is not the lowest, it is only 0.11s different from the VAE algorithm with the lowest average detection time; and its average detection time is 56% higher than that of the DAGMM algorithm with similar performance, which reflects the advantage of the method of this application in terms of detection time, that is, while ensuring the detection performance, the computational overhead of the method of this application is relatively small compared to several other methods.

[0119] Table 3 Comparison of experimental results of different algorithms

[0120]

[0121] From the comparative test results in Table 3, it can be seen that the accuracy of the CAE-GMM provided in this application is only slightly lower than that of the DAGMM algorithm on the large data set Shuttle; its AUC value is also only slightly lower than that of the DAGMM algorithm on the Annthyroid data set; although the ACC value on the large data set Shuttle is not the highest, it is not much different from the highest value; the accuracy on the high-dimensional data set Arrhythmia reaches 0.821, which is much higher than 0.675 of the SOS algorithm.

[0122] The results of the comparison of various algorithms show that the CAE-GMM provided in this application can effectively solve the problem of low detection accuracy caused by the dimensionality disaster caused by the excessively large sample dimension, and greatly improve the detection effect.

[0123] Secondly, the detection accuracy of CAE-GMM provided by this application is verified as follows:

[0124] The CAE-GMM provided in this application is used to detect outliers in the collected health data. Figure 4 This is the result of using the method of this application to visualize anomaly detection, where the dots represent normal data and the square dots represent abnormal data.

[0125] In order to highlight the advantages of CAE-GMM provided by this application, the DAGMM algorithm with equally good detection effect was used to conduct experiments on the same data set under the same environment. The detection results are as follows: Figure 5 .

[0126] contrast Figure 4 and Figure 5 It can be seen that both detection methods can detect relatively obvious abnormal sample points, but the DAGMM algorithm has misjudgment and missed detection at the edge of the cluster. The sample points numbered 1 and 3 are missed, and the sample point numbered 2 is misjudged. When the CAE-GMM provided in this application detects abnormal points at the edge of the cluster, only 3 sample points are missed, and the overall performance is better.

[0127] Some steps in the embodiments of the present invention may be implemented using software, and the corresponding software program may be stored in a readable storage medium, such as a CD or a hard disk.

[0128] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A health data anomaly detection method based on a convolutional autoencoder Gaussian mixture model, characterized in that: The method comprises: Step 1: Train the collected original high-dimensional health data on the convolutional autoencoder, based on the principle of minimizing the reconstruction error, and combine the BP optimization algorithm to obtain the low-dimensional feature representation of the original high-dimensional health data; Step 2: Use the low-dimensional features of the original high-dimensional health data as the input of the Gaussian mixture model to calculate the sample density corresponding to the original high-dimensional health data, record the maximum value of the sample density as the density threshold, and train the Gaussian mixture model in combination with the EM algorithm to obtain the optimal Gaussian mixture model parameters; During the calculation process, the mixed probability, mean and covariance are used to construct the Cholesky decomposition of the covariance matrix to obtain the sample density of the original high-dimensional health data; During the training process, the Bayesian information criterion is used to determine the number of Gaussian mixture model components. The Gaussian mixture model is trained through continuous iterations of the EM algorithm to obtain the optimal Gaussian mixture model parameters. Step 3: When testing health data, use the Gaussian mixture model under the optimal Gaussian mixture model parameters to perform density estimation on the low-dimensional feature representation of the original high-dimensional health data, and obtain the sample density of each original high-dimensional health data under the parameters of the optimal Gaussian mixture model. The health data corresponding to the sample density exceeding the density threshold is abnormal data; In the calculation process, the mixed probability, mean and covariance are used to construct the Cholesky decomposition of the covariance matrix to obtain the sample density E(z) of the original high-dimensional health data: Among them, K represents the number of Gaussian components; in, represents the kth Gaussian component covariance, 1≤k≤K; L is the Gaussian component covariance matrix The lower triangular matrix of the Cholesky decomposition of the sum penalty terms; v is the solution of the linear equations obtained by constructing the Cholesky decomposition of the covariance matrix using the mixed probability, mean and covariance, Z = [z1, z2, ..., z d′ ] represents the low-dimensional features of the original high-dimensional health data obtained by the convolutional autoencoder, and d′ represents the dimension of the latent space representation of the original high-dimensional health data.

2. The method according to claim 1, characterized in that The original high-dimensional health data includes but is not limited to calories consumed, number of steps, distance, altitude, resting heart rate, sleeping heart rate, exercise heart rate, light exercise heart rate, exercise heart rate, sedentary time, aerobic exercise time, aerobic exercise calories consumed, fat burned, sleep efficiency, sleep time, sleep onset time, sleep start time, sleep end time, deep sleep time, light sleep time, REM sleep time and number of wake-ups.

3. The method according to claim 2, characterized in that The method further includes, before training the collected original high-dimensional health data on the convolutional autoencoder: Preprocess the original high-dimensional health data: use multiple interpolation to deal with the problem of missing values ​​in health data and use min-max normalization to process the original high-dimensional health data; The original high-dimensional health data is normalized according to the following formula: where x e Represents any dimension data in each original high-dimensional health data, x min With x max Respectively represent the minimum and maximum values ​​in any dimension data, x e ' represents the data after normalization.

4. The method according to claim 3, characterized in that In the training process, the number of Gaussian mixture model components is determined using the Bayesian information criterion, and the Gaussian mixture model is trained through continuous iteration of the EM algorithm to obtain the optimal Gaussian mixture model parameters, including: Step 1: Expected step, calculate Z=[z1,z2,...,z d′ ] is generated by each Gaussian component: C i =b λ (z i +ω) (5) Among them, 1≤i≤d′; The current parameters are the mixing probabilities for each component Mean and covariance. In the first iteration, the current parameter is the initial value of the current parameter; in subsequent iterations, the current parameter is the parameter value obtained in the previous iteration; and, Among them, b λ (·) represents the deep belief network DBN, z i represents the low-dimensional features of the dataset S obtained by the convolutional autoencoder, ω represents the weight vector of DBN, represents the probability that the i-th sample is generated by the k-th Gaussian component in the Gaussian mixture model, Γ i It represents the set of probabilities generated by each Gaussian component for the i-th original high-dimensional health data predicted by DNB; Step 2: Maximization step, use the following formula to calculate the parameters of the Gaussian mixture model for the next round of iteration, that is, the mixing probability of each component Mean and covariance Step 3: Repeat the calculation of the expected step and the maximization step until convergence to obtain the optimal Gaussian mixture model parameters.

5. The method according to claim 4, characterized in that The step one comprises: S1 constructs a fully connected neural network within the local receptive field of the convolutional layer to form a convolution kernel. Then, a local receptive field is selected every certain step length to construct the same number of convolution kernels. The weights of all convolution kernels are not shared. S2 uses a fully connected neural network to construct a multi-layer autoencoder. First, the weights in the encoder and decoder are initialized using a restricted Boltzmann machine (RBM), and the encoder is stacked for training. S3 performs a deconvolution operation to reconstruct the potential low-dimensional data into the original data; the deconvolution operation is a convolution layer symmetric to the convolution layer of S1; S4 learns the features in the health data to form the final convolutional autoencoder. The low-dimensional features of the original high-dimensional health data obtained by the final convolutional autoencoder are expressed as Z = [z1, z2, ..., z d′ ].

6. The method according to claim 5, characterized in that The method of using multiple interpolation to deal with the problem of missing values ​​in health data includes: using the Monte Carlo method to fill in the missing health data.

7. The method according to claim 6, characterized in that The original high-dimensional health data can be collected using wearable electronic devices.

8. The method according to claim 7, characterized in that The wearable electronic devices include: smart bracelets, smart watches, smart glasses and smart sports shoes.

9. A health data anomaly detection device based on a convolutional autoencoder Gaussian mixture model, characterized in that: The device adopts the method described in any one of claims 1-8 to realize abnormal detection of health data, and the health data includes but is not limited to calories consumed, number of steps, distance, altitude, resting heart rate, sleeping heart rate, exercise heart rate, light exercise heart rate, exercise heart rate, sedentary time, aerobic exercise time, aerobic exercise calories consumed, fat burned, sleep efficiency, sleep time, sleep onset time, sleep start time, sleep end time, deep sleep time, light sleep time, REM sleep time and number of wake-ups.