A real-time fall prediction method based on multi-input convolutional network
By using a method that combines multi-input convolutional neural network and attitude calculation in pre-fall prediction, the problem of insufficient accuracy and real-time performance of fall prediction algorithms in the existing technology is solved, and real-time operation and real-time operation on embedded devices are realized. High accuracy, adaptable to fall prediction for different groups of people.
Patent Information
- Application Number
- CN202111679870.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-31
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2041-12-31
AI Technical Summary
Existing pre-fall prediction algorithms have flaws in accuracy, real-time performance, and adaptability to different groups of people. The traditional threshold method has poor robustness. The algorithm network based on neural networks is too large and difficult to run in real time on embedded devices.
A real-time fall prediction method based on multi-input convolutional neural network is adopted. Data is obtained by installing inertial sensors on the human waist. Combined with posture calculation and multi-one-dimensional convolutional network classification algorithms, a real-time fall prediction algorithm adapted to different groups of people is designed. Using The trunk tilt angle is extracted from training data and predicted through a multi-input one-dimensional convolutional neural network model.
It achieved an accuracy of 97.3% on the Sisfall data set. It is lightweight, can quickly process sensor signals, adapts to people with different physiological characteristics, and improves the accuracy and real-time performance of fall prediction.
Smart Images

Figure CN114386459B
Abstract
Description
Technical Field
[0001] The present invention belongs to the fields of machine learning, human motion recognition, and sensor signal processing, and in particular relates to a real-time fall prediction method based on a multi-input convolutional neural network. Background Art
[0002] As the aging population continues to grow, the safety of the elderly population has received more and more attention. Falls in the elderly can cause serious injuries, including hip injuries and head injuries, and can even cause psychological fear of falling in the elderly, making them less willing to exercise. Therefore, fall protection has become an issue that needs to be addressed urgently.
[0003] Fall prevention measures mainly include post-fall detection and pre-fall prediction. Post-fall detection can only provide timely alarms, while pre-fall prediction can be combined with safety devices to greatly reduce fall injuries.
[0004] Pre-fall prediction schemes usually require the elderly to wear motion sensing sensors and fall protectors to provide portable fall protection, so they are more practical than simple post-fall detection. Sensors that can be used for motion recognition usually include acceleration angular velocity sensors, pressure sensors, etc. After the algorithm predicts a fall, a signal is immediately generated to trigger the fall protection device, which can protect key parts of the human body before the person falls and hits the ground, avoiding serious injuries. These devices can be installed on the chest, waist, arms and other parts of the human body, and installing them on the waist is more comfortable, and the signal at the waist will not be disturbed by certain body movements, so it is more favored by researchers.
[0005] Most traditional fall prediction algorithms are based on thresholds. This algorithm has poor robustness and cannot be adjusted according to the physiological characteristics of different groups of people. It performs poorly in practical applications. Ahn proposed a threshold-based algorithm, which has a maximum accuracy of only 90.3% on the Sisfall dataset (Ahn S, Kim J, Koo B, et al. Evaluation of Inertial Sensor-Based Pre-Impact Fall Detection Algorithms Using Public Dataset[J]. Sensors (Basel), 2019, 19 (4).); Jung proposed a threshold-based algorithm, which has a maximum accuracy of only 92.4% on the Sisfall dataset (Jung H, Koo B, Kim J, et al. Enhanced Algorithm for the Detection of Preimpact Fall for Wearable Airbags[J]. Sensors (Basel), 2020, 20 (5).). With the development of deep learning technology, a fall detection algorithm based on neural networks has been proposed. This algorithm can achieve better performance than the threshold method under the training of big data, which is of great significance to the development of fall protection devices. The existing pre-fall prediction algorithms have defects in accuracy, real-time performance, and adaptability to different populations, which need to be improved. Wang proposed an algorithm based on convolutional networks, which achieved an accuracy of 99.3% on their private data set (Wang L, Peng M, Zhou Q. Pre-Impact Fall Detection Based on Multi-Source CNN Ensemble [J]. IEEE Sensors Journal, 2020, 20 (10): 5442-5451.), but the network is too large, with more than 3,000 network nodes, and the calculation is complex, making it difficult to run in real time on embedded devices. In contrast, the multi-input convolutional network model proposed in the present invention has fewer parameters, less than 200 network nodes, can run in real time, and can achieve an accuracy of 97.3% in the Sisfall data set. In addition, the model proposed in the present invention also integrates individual physiological characteristics into the neural network, so that after training, the model can make decisions based on sensor signals and physiological characteristics, can adapt to people with different physiological characteristics, and improve the accuracy of fall prediction. Summary of the invention
[0006] In order to solve the above technical problems, the present invention proposes a real-time fall prediction method based on a multi-input convolutional neural network. According to the inertial sensor installed on the human waist combined with posture solution and a multi-input one-dimensional convolutional network classification algorithm, a real-time fall prediction algorithm with stronger adaptability to different groups of people is designed.
[0007] The present invention is achieved by at least one of the following technical solutions.
[0008] A real-time fall prediction method based on a multi-input convolutional network comprises the following steps:
[0009] Step 1, obtaining data generated by human waist movement as training samples, using the posture solving algorithm to solve the three-axis posture angle information, and using the three-axis posture angle to solve the trunk tilt angle;
[0010] Step 2: Extract training data during the fall imbalance period using the trunk tilt angle to create target data;
[0011] Step 3: Input the target data into a one-dimensional convolutional neural network model for training to obtain a convolutional neural network model for prediction;
[0012] Step 4: Use the sensor installed at the waist to collect acceleration and angular velocity data in real time, pre-process the collected raw data, input it into the convolutional neural network model for prediction, and output the results.
[0013] Preferably, an inertial sensor is used to obtain the three-axis acceleration and three-axis angular velocity signals generated by the waist movement of the human body, and then an attitude calculation algorithm is used to calculate the three-axis attitude angle signals: roll angle, pitch angle, and yaw angle, and then the attitude angle is used to solve the trunk tilt angle;
[0014] θ=cos -1 (-cosβcosγ) (1)
[0015] In formula (1), θ is the trunk tilt angle, β is the roll angle, and γ is the pitch angle.
[0016] Preferably, step 2 comprises the following steps:
[0017] Step 2.1: Extract the time window of the acceleration and angular velocity time series data generated by the unbalanced fall action: Use the posture solution algorithm and formula (1) to solve the trunk tilt angle signal time series data, and record the average trunk tilt angle in the lying state after falling as θ p , the trunk tilt angle time series signal reaches θ for the first time p The time is t p , the extracted fall sample time window is the interval [t p -300ms,t p-100ms], the three-axis acceleration, three-axis angular velocity, and three-axis attitude angle signals within the fall sample time window are set as fall labels;
[0018] Step 2.2: For the acceleration and angular velocity time series data generated by normal behavior, extract the time window centered on the acceleration peak value, and set the data as the normal behavior label.
[0019] Preferably, the three-axis acceleration, three-axis angular velocity, and three-axis attitude angle signals within the fall sample time window are extracted fall sample training data, and the data is set as a fall label.
[0020] Preferably, for each normal action, the time at which the acceleration peak occurs is defined as t a , the time window [t a -1000ms,t a +1000ms] is equally divided into several time windows, and the acceleration, angular velocity and posture angle in each time window are the training data extracted from a normal behavior action.
[0021] Preferably, step 3 comprises the following steps:
[0022] Step 3.1, normalize the three-axis acceleration signal, three-axis angular velocity signal, and three-axis attitude angle signal in the fall sample time window and the normal behavior sample time window, and the normalization method is not limited to maximum and minimum value normalization and standardization;
[0023] Step 3.2, perform one-dimensional convolution on the normalized acceleration signal, angular velocity signal, and attitude angle signal respectively, and then extract features, and then perform maximum pooling and activation function operation on the data obtained after convolution to obtain acceleration, angular velocity, and attitude angle feature maps;
[0024] Step 3.3, pass the physiological characteristics of the human body into the double hidden layer fully connected neural network to obtain the individual feature vector;
[0025] Step 3.6: Expand and concatenate the feature maps generated in step 3.3 and step 3.4 in one dimension to form a feature vector, and then pass the vector into a fully connected neural network with three hidden layers;
[0026] Step 3.7: Train the multi-input convolutional neural network based on the Sisfall dataset. The loss function is set to the binary cross entropy loss function. The number of iterations is set to more than 250 times. Stop training when the loss is less than 0.05.
[0027] Preferably, the binary cross entropy loss function is:
[0028]
[0029] Where L is the loss value, N is the number of samples, i is the training sample number, y i is the label value of the i-th sample, p i is the classification probability value of the i-th sample, and k is the class imbalance coefficient.
[0030] Preferably, the attitude solution algorithm is a Mahony complementary filter algorithm or a Kalman filter algorithm.
[0031] Preferably, the pretreatment comprises the following steps:
[0032] Step 41: Perform RC low-pass filtering on the acceleration and angular velocity signals in the raw data acquired by the sensor, and then solve the three-axis attitude angle signal according to the acceleration and angular velocity signals and the attitude solving algorithm, and the solved attitude angle is stored in the time window in a queue manner;
[0033] Step 42: normalize the acceleration, angular velocity, and attitude angle signals within the time window of step 41.
[0034] Preferably, if the predicted result is a fall, a signal 1 is output, otherwise the signal is 0; if the signal is 0, return to step 4.
[0035] Compared with the prior art, the present invention has the following beneficial effects:
[0036] The fall prediction method proposed in this method has the following characteristics:
[0037] (1) Use the trunk tilt angle to extract fall imbalance training data to obtain data with more training value;
[0038] (2) The proposed multi-input convolutional neural network is lightweight and can quickly process sensor signals and generate fall predictions;
[0039] (3) The proposed multi-input convolutional network has multi-dimensional inputs, namely acceleration signal input, angular velocity signal input, posture angle signal input, and individual physiological characteristic input. It can fully obtain the signals generated by movement and individual physiological characteristics. After training, it can not only achieve higher accuracy, but also have better adaptability to people with different physiological characteristics. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 A schematic diagram of a real-time fall prediction method based on a multi-input convolutional network according to the present invention;
[0041] Figure 2 A schematic diagram of a multi-input convolutional network structure in a real-time fall prediction method based on a multi-input convolutional network according to the present invention;
[0042] Figure 3Schematic diagram of the torso inclination angle. DETAILED DESCRIPTION
[0043] The present invention will be described in more detail below with reference to the accompanying drawings and implementation examples.
[0044] Example 1
[0045] A real-time fall prediction method based on a multi-input convolutional network, the method comprising a training data part extracted by using a trunk tilt angle and a multi-input one-dimensional convolutional network part, Figure 1 The training phase and real-time prediction phase of a multi-input convolutional neural network are shown. The specific steps are as follows:
[0046] Step 1: Use an inertial sensor installed at the waist of the human body to measure the acceleration and angular velocity signals generated by the waist of the human body, and use the attitude calculation algorithm to solve the three-axis attitude angle signal, and use the three-axis attitude angle to solve the trunk inclination angle;
[0047] In the training phase, the three-axis attitude angle signal is first solved based on the data set according to the acceleration and angular velocity signals and the attitude solution algorithm (such as the Mahony complementary filter algorithm or the Kalman filter algorithm);
[0048] Step 2: In the training phase, the trunk tilt angle signal is solved according to the posture angle signal solved in step 1, referring to Figure 3 Coordinate axes and parameter definitions are shown. Figure 3 The A coordinate system is the human body coordinate system, the B coordinate system is the earth coordinate system, and the three-axis attitude angle includes the yaw angle α, the roll angle β and the pitch angle γ. The relationship between the trunk tilt angle and the attitude angle is as shown in formula (1):
[0049] θ=cos -1 (-cosβcosγ) (1)
[0050] θ is the trunk tilt angle, which characterizes the angle at which the human body tilts in any direction;
[0051] Step 3: In the training phase, extract the training data with training value from the data set, including the following steps:
[0052] Step 3.1: In the training phase, for the signal generated by the falling action, the falling imbalance training sample is extracted according to the trunk inclination angle. Specifically, for each falling action, the trunk inclination angle after falling and lying on the ground is defined as θ p , defined as the first time the trunk tilt angle reaches θ during the fall process p The time is t p , time window[t p -300ms,t p -100ms] are the training data extracted from a fall action;
[0053] Step 3.2: In the training phase, for the signal generated by normal behavior, the training samples are extracted according to the acceleration peak. Specifically, for each normal behavior, the time at which the acceleration peak occurs is defined as t a , the time window [t a -1000ms,t a +1000ms] is equally divided into 20 time windows of 200ms in length. The acceleration, angular velocity, and attitude angle in each time window are the training data extracted from a normal behavior action;
[0054] Step 4: In the training phase, the multi-input convolutional neural network is trained using the training data extracted in step 3. The multi-input convolutional neural network structure is as follows: Figure 2 As shown in the figure, the loss function is set to binary cross entropy loss function, the hidden layer before the model output layer is set to dropout layer, the dropout probability is 0.5, the number of training iterations is more than 250, and the training is stopped when the loss is less than 0.05;
[0055] The binary cross entropy loss function takes into account the class imbalance cost, and its specific form is shown in formula (2):
[0056]
[0057] Where L is the loss value, N is the number of samples, i is the sample number, and y is i is the label value of the i-th sample, p i is the classification probability value of the i-th sample, and k is the class imbalance coefficient;
[0058] Step 5: In the real-time prediction stage, data is collected, that is, the acceleration signal and angular velocity signal are collected by using the inertial sensor tied to the waist of the person. The sampling frequency of the sensor is 200 Hz, and the collected signals are stored in a time window of 200 ms in a queue manner;
[0059] Step 6: In the real-time prediction stage, data preprocessing is performed;
[0060] Step 6.1, perform 5Hz RC low-pass filtering on the acceleration and angular velocity signals obtained by the sensor, and then solve the three-axis attitude angle signal according to the acceleration and angular velocity signals and the attitude solution algorithm (such as Mahony complementary filter algorithm or Kalman filter algorithm); the solved attitude angle is stored in a time window of 200ms in a queue;
[0061] Step 6.2, normalize the acceleration, angular velocity, and attitude angle signals within the 200ms time window, wherein the normalization method includes but is not limited to maximum and minimum value normalization and standardization;
[0062] Step 7: In the real-time prediction stage, the normalized acceleration, angular velocity, posture angle, and individual physiological characteristics (gender, age, height, and weight) in steps 5 and 6 are input into the multi-input convolutional neural network to calculate the fall prediction result;
[0063] Step 8: In the real-time prediction stage, if the prediction result of step 7 is a fall, a signal 1 is output, otherwise the signal is 0. If the signal is 0, the process returns to step 5 and continues to execute steps 5 to 8 in sequence.
[0064] like Figure 2 As shown in the figure, the processing flow of acceleration signals, angular velocity signals, attitude angle signals and individual physiological characteristics in a multi-input convolutional neural network is shown in the following steps:
[0065] Step 1: Perform one-dimensional convolution on the acceleration signal, angular velocity signal, and attitude angle signal respectively to extract features. The convolution process includes two convolution kernels, and then perform maximum pooling and activation function operations on the data obtained after the convolution to obtain acceleration, angular velocity, and attitude angle feature maps;
[0066] Step 2), the individual physiological feature vector is transmitted to a fully connected neural network, wherein the fully connected neural network includes two hidden layers, and the output layer of the fully connected neural network is used as a new feature vector;
[0067] Step 3), the feature map and feature vector obtained in step 1)-step 2) are respectively expanded into one-dimensional vectors, and then these one-dimensional vectors are spliced into new one-dimensional vectors, and then passed into a fully connected neural network. The fully connected neural network includes two hidden layers and an output layer, and the output layer outputs the final prediction result.
[0068] Example 2
[0069] A real-time fall prediction method based on a multi-input convolutional network, the method comprising a training data part extracted by using a trunk tilt angle and a multi-input one-dimensional convolutional network part, specifically comprising the following steps:
[0070] Step 1: Use the data of the sensor that can directly output the attitude angle as the training sample, without using the attitude solving algorithm to solve the attitude angle;
[0071] Step 2: Extract training data during the fall imbalance period using the trunk tilt angle to create target data;
[0072] Step 3: Input the target data into a one-dimensional convolutional neural network model for training to obtain a convolutional neural network model for prediction;
[0073] Step 4: Use the sensor installed at the waist to collect acceleration and angular velocity data in real time, pre-process the collected raw data, input it into the convolutional neural network model for prediction, and output the results.
[0074] Example 3
[0075] A real-time fall prediction method based on a multi-input convolutional network, the method comprising extracting a training data part using a trunk tilt angle and a multi-input one-dimensional convolutional network part, comprising the following steps:
[0076] Step 1, obtaining data generated by human waist movement as training samples, using the posture solving algorithm to solve the three-axis posture angle information, and using the three-axis posture angle to solve the trunk tilt angle;
[0077] Step 2: Extract training data during the fall imbalance period using the trunk tilt angle to create target data;
[0078] Step 3: Input the target data into a one-dimensional convolutional neural network model for training to obtain a convolutional neural network model for prediction;
[0079] Step 4: Use the sensor installed at the waist to collect acceleration and angular velocity data in real time, pre-process the collected raw data, input it into the convolutional neural network model for prediction, and output the results.
[0080] The difference from Example 1 is that in step 4, the dropout probability can be set to any reasonable value that can suppress overfitting, and the number of iterations can be set to any reasonable value that can make the model converge; in step 8, the output 0 or 1 signal can be agreed to be any value that can distinguish between falls and normal behaviors.
[0081] The preferred embodiments of the present invention disclosed above are only used to help illustrate the present invention. The preferred embodiments do not describe all the details in detail, nor do they limit the invention to the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can understand and use the present invention well. The present invention is limited only by the claims and their full scope and equivalents.
Claims
1. A real-time fall prediction method based on a multi-input convolutional network, characterized in that: The following steps are involved: Step 1, obtain the data generated by the human waist movement as a training sample, use the attitude solution algorithm to solve the three-axis attitude angle information, and use the three-axis attitude angle to solve the trunk tilt angle. Specifically, use the inertial sensor to obtain the three-axis acceleration and three-axis angular velocity signals generated by the human waist movement, and then use the attitude solution algorithm to solve the three-axis attitude angle signals: roll angle, pitch angle, yaw angle, and then use the attitude angle to solve the trunk tilt angle; θ=cos -1 (-cosβcosγ) (1) In formula (1), θ is the trunk tilt angle, β is the roll angle, and γ is the pitch angle; Step 2: Extract training data during the fall imbalance using the trunk tilt angle to create target data, including the following steps: Step 2.1: Extract the time window of the acceleration and angular velocity time series data generated by the unbalanced fall action: Use the posture solution algorithm and formula (1) to solve the trunk tilt angle signal time series data, and record the average trunk tilt angle in the lying state after falling as θ p , the trunk tilt angle time series signal reaches θ for the first time p The time is t p , the extracted fall sample time window is the interval [t p -300ms,t p -100ms], the three-axis acceleration, three-axis angular velocity, and three-axis attitude angle signals within the fall sample time window are set as fall labels; Step 2.2: For the acceleration and angular velocity time series data generated by normal behavior, extract the time window centered on the acceleration peak value, and set the data as the normal behavior label; The three-axis acceleration, three-axis angular velocity, and three-axis attitude angle signals within the fall sample time window are extracted fall sample training data, and the data is set as a fall label; For each normal action, the time at which the acceleration peak occurs is defined as t a , the time window [t a -1000ms,t a +1000ms] is equally divided into several time windows, and the acceleration, angular velocity, and attitude angle in each time window are the training data extracted from a normal behavior action; Step 3: Input the target data into the multi-input convolutional neural network model for training to obtain a convolutional neural network model for prediction, including the following steps: Step 3.1, normalize the three-axis acceleration signal, three-axis angular velocity signal, and three-axis attitude angle signal in the fall sample time window and the normal behavior sample time window, and the normalization method is not limited to maximum and minimum value normalization and standardization; Step 3.2, perform one-dimensional convolution on the normalized acceleration signal, angular velocity signal, and attitude angle signal respectively, and then extract features, and then perform maximum pooling and activation function operation on the data obtained after convolution to obtain acceleration, angular velocity, and attitude angle feature maps; Step 3.3, pass the physiological characteristics of the human body into the double hidden layer fully connected neural network to obtain the individual feature vector; Step 3.6: Expand and concatenate the feature maps generated in step 3.3 and step 3.4 in one dimension to form a feature vector, and then pass the vector into a fully connected neural network with three hidden layers; Step 3.7: Train the multi-input convolutional neural network model based on the Sisfall dataset. The loss function is set to the binary cross entropy loss function. The number of iterations is set to more than 250. When the loss is less than 0.05, stop training. Step 4: Use the sensor installed at the waist to collect acceleration and angular velocity data in real time, pre-process the collected raw data, input it into the convolutional neural network model for prediction, and output the results.
2. According to claim 1, a real-time fall prediction method based on a multi-input convolutional network is characterized in that: The binary cross entropy loss function is: Where L is the loss value, N is the number of samples, i is the training sample number, y i is the label value of the i-th sample, p i is the classification probability value of the i-th sample, and k is the class imbalance coefficient.
3. The real-time fall prediction method based on a multi-input convolutional network according to claim 1, characterized in that: The attitude solution algorithm is a Mahony complementary filter algorithm or a Kalman filter algorithm.
4. The real-time fall prediction method based on a multi-input convolutional network according to claim 1, characterized in that: The pre-processing comprises the following steps: Step 41: Perform RC low-pass filtering on the acceleration and angular velocity signals in the raw data acquired by the sensor, and then solve the three-axis attitude angle signal according to the acceleration and angular velocity signals and the attitude solving algorithm, and the solved attitude angle is stored in the time window in a queue manner; Step 42: normalize the acceleration, angular velocity, and attitude angle signals within the time window of step 41.
5. A real-time fall prediction method based on a multi-input convolutional network according to any one of claims 1 to 4, characterized in that: If the prediction result is a fall, the output signal is 1, otherwise the signal is 0; if the signal is 0, return to step 4.
