A fall detection method based on partitioned convolutional neural network
By deploying the Lightweight Openpose model partitions on the mobile terminal and the cloud, using the computing resources of both ends for collaborative calculation, and combining the KNN classifier for fall judgment, the problem of real-time and safety of fall detection in the existing technology is solved. It achieves high-accuracy and low-overhead fall detection while protecting user privacy.
Patent Information
- Application Number
- CN202110341787.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-30
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2041-03-30
AI Technical Summary
Existing fall detection methods are difficult to balance between real-time performance and safety. Methods based on hardware-assisted equipment are sensitive to environmental noise and have poor anti-interference capabilities. Methods based on computer vision are complex and resource-consuming, making real-time detection difficult. At the same time, user privacy is at risk. Data is easily leaked during transmission.
Using a partitioned convolutional neural network, the Lightweight Openpose model is deployed in partitions on the mobile terminal and the cloud. The middle layer tensor data is transmitted through WIFI, and the computing resources at both ends are used for collaborative computing, reducing transmission overhead and protecting user privacy. It is combined through the KNN classifier Human body key point offset values are used to determine falls.
It achieves high-accuracy fall detection, reduces computing resource utilization and communication overhead, and effectively protects user privacy.
Smart Images

Figure CN113052093B
Abstract
Description
Technical Field
[0001] The present invention relates to a fall detection method based on a partitioned convolutional neural network, which can effectively reduce the time of fall detection and protect the privacy of users when edge device resources are limited, thereby solving the problems of real-time and safety of existing fall detection methods. Background Art
[0002] As the problem of population aging becomes increasingly serious, the safety of the elderly becomes more and more important, and the biggest threat to the safety of the elderly is often the problem of falls. Therefore, the realization of real-time fall detection has become one of the topics that people are paying more and more attention to.
[0003] Existing fall detection methods are mainly divided into fall detection based on hardware-assisted devices and fall detection based on computer vision. Fall detection methods based on hardware-assisted devices usually use wearable data acquisition devices with various sensors. The collected data include human movement speed, acceleration, external pressure, etc. However, this type of method is sensitive to environmental noise and has poor anti-interference ability. At the same time, wearing equipment will inevitably cause discomfort to the elderly.
[0004] The fall detection methods based on computer vision can be divided into traditional geometric feature methods and machine learning methods. Among them, the currently popular convolutional neural network shows good accuracy in fall detection applications. The current mainstream models are represented by VGGNet, AlexNet, GoogleNet, etc. Although this type of method has high accuracy, due to its complex network structure, it is accompanied by a large number of convolution operations during operation, which is not conducive to the implementation of real-time detection in embedded systems. In addition, this type of fall detection method based on computer vision relies on RGB cameras or built-in cameras on mobile terminals to collect image data. In order to ensure the real-time performance of heavyweight network calculations, the system must pre-process the collected image data and upload it to the cloud server. In this process, users will face the security issue of privacy leakage. In contrast, the method based on human body geometric feature analysis meets the expected requirements in real time and can perform all calculations on the local mobile terminal without worrying about user privacy leakage. However, its accuracy of fall detection is difficult to apply in practice. Summary of the invention
[0005] In order to overcome the shortcomings of existing fall detection methods in terms of real-time performance, accuracy, and user privacy and security, the present invention provides a fall detection method based on a partitioned convolutional neural network to improve the real-time and security issues of traditional neural network fall detection methods. Compared with traditional geometric feature analysis methods, it shows better robustness.
[0006] The technical solution adopted by the present invention to solve its technical problem is:
[0007] A fall detection method based on partitioned convolutional neural network. The convolutional neural network used in this method is Lightweight Openpose, which is used to identify the coordinates of key points of the human body in the image. The process is as follows:
[0008] First, the output data size analysis and floating point operations statistics of each layer of the target neural network are performed. The statistics are calculated using the following formula, where H and W are the height and width of the output feature map, and C in is the number of input channels, C out is the number of output channels, K is the number of convolution kernels, and 1 is the bias term:
[0009] FLOPs = 2HW (C in K 2 +1)C out (1)
[0010] Subsequently, the candidate partitioning layers of the network model are preliminarily determined based on the analysis and statistical results, and then the optimal partitioning layer p is determined based on the overall computing time. The lightweight part is deployed on the mobile terminal, and the heavy part is deployed on the cloud server to achieve collaborative computing at both ends. It should be noted that the output data size of the lightweight part network must be minimized to minimize the transmission and communication overhead between the two ends.
[0011] The neural network is used to identify the key point coordinates of the human body in the image, and then combined with the KNN classifier to make a judgment on the key point coordinates to realize fall detection.
[0012] Furthermore, in order to make the key point detection more accurate, a human body contour pre-recognition step is designed on the mobile terminal, and the contour point set C of the moving human body is extracted by the background difference method. contour , and the output tensor of the network model on the mobile terminal is transmitted to the cloud server via WIFI at the same time.
[0013] Furthermore, after receiving the intermediate tensor from the mobile terminal, the cloud will perform the calculation of the remaining network layers and obtain the initial key point coordinate set C keypoints[n] , and then match the coordinate set and the human body contour information according to the following overlap formula:
[0014]
[0015] The point set with the maximum overlap is the target human body coordinate set.
[0016] Furthermore, after obtaining the target human coordinate set, in order to fully consider the motion information of key points, the offset value of the specified key points between consecutive frames is used as part of the features of the KNN classifier input; the key points include the head, left and right hips, left and right knees, and left and right ankles. During the fall, the offset value is larger than the offset value of daily sitting, walking and other activities, indicating that the target has a high relative motion speed. Considering the shape of the target, the key point coordinates are normalized based on the head coordinate value as another part of the input features of KNN. KNN calculates the Euclidean distance between these input features to complete the fall judgment task.
[0017] Preferably, the fall detection method comprises the following steps:
[0018] Step 1, structural analysis of the neural network to determine the best partition layer;
[0019] Step 2: partition the model using the optimal partition layer as the stratification point, and deploy the lightweight part of the network on the mobile terminal with limited computing resources;
[0020] Step 3: Deploy the weighted network on a cloud with high computing performance.
[0021] Step 4: The mobile terminal collects video image frames and uses them as input to the system;
[0022] Step 5, execute the model calculation on the mobile terminal to obtain the tensor data of the middle layer, and preliminarily extract the contour information set of the human target based on the background difference method;
[0023] Step 6: The mobile terminal sends the tensor data of the middle layer and the contour information set of the human body to the cloud, and the transmission communication overhead during this period is lower than the transmission overhead of the original input video image frame;
[0024] Step 7: After receiving the transmitted data, the cloud performs the model calculation on the cloud and initially outputs the coordinates of the key points of the human body. At this time, the prediction result contains some erroneous key point data;
[0025] Step 8: The cloud matches the key point set output by the model with the received human body contour point set to achieve maximum overlap, and finally outputs the human body key point coordinate set with maximum overlap;
[0026] Step 9, the KNN classifier extracts the offset values of the key point coordinates of the head, left and right hips, left and right knees, and left and right ankles between consecutive frames as part of the input features; then, considering the target shape, the key point coordinates are normalized based on the head coordinate value as another part of the input features of the KNN input, and finally the classifier outputs the prediction of human behavior activities, that is, whether it falls.
[0027] The technical concept of the present invention is: partition the neural network containing a large number of convolution operations and deploy them on the mobile terminal and the cloud respectively. The data in tensor format at both ends are transmitted via WIFI. The transmission communication overhead during this period will be much lower than the communication overhead of the original video stream, and the computing resources of the mobile terminal and the cloud will be fully utilized for collaborative calculations, thereby effectively reducing the time of fall detection to ensure the real-time detection; first, the feature map output by the middle layer of the network has filtered out a large amount of information contained in the original image. Secondly, assuming that the cloud server is attacked by hackers, the data output by the cloud is the coordinate information of the key points of the human body, not the original image data. The original image data cannot be reversely inferred by relying solely on the model parameters of the cloud. Therefore, this method can also ensure the security of user privacy.
[0028] The beneficial effects of the present invention are mainly manifested in: (1) the fall detection method based on key points has high accuracy; (2) the computing resources are used evenly and the communication overhead is low; and (3) the privacy security of users can be effectively protected. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 This is a network structure diagram of the model Lightweight Openpose used in the present invention;
[0030] Figure 2 A schematic diagram of partitioning the network to achieve collaborative computing between mobile and cloud;
[0031] Figure 3 It is the flowchart of function call;
[0032] Figure 4 System flow chart for fall detection;
[0033] Figure 5 The output tensor of the optimal partition layer corresponds to the visualized feature map; DETAILED DESCRIPTION
[0034] The present invention is further described below in conjunction with the accompanying drawings and specific implementation methods. It should be noted that the implementation cases described are only intended to facilitate the understanding of the present invention and do not have any limiting effect on it.
[0035] Reference Figure 1 to Figure 5 , a fall detection method based on partitioned convolutional neural network, partitions the model according to the results of the model, and deploys it on the mobile terminal and the cloud respectively. Both ends collaborate to calculate and detect fall behavior. The neural network used in this method is Lightweight Openpose, which is used to identify the key point coordinates of the human body in the image, and then combines the KNN classifier to make judgments on the key point coordinates. The process is as follows:
[0036] First, the output data size analysis and floating point operations statistics of each layer of the target neural network are performed. The statistics are calculated using the following formula, where H and W are the height and width of the output feature map, and C in is the number of input channels, C out is the number of output channels, K is the number of convolution kernels, and 1 is the bias term:
[0037] FLOPs = 2HW (C in K 2 +1)C out (1)
[0038] Subsequently, the candidate partitioning layers of the network model are preliminarily determined based on the analysis and statistical results, and then the optimal partitioning layer p is determined based on the overall computing time. The lightweight part is deployed on the embedded device, and the heavy part is deployed on the cloud server to achieve collaborative computing at both ends. It should be noted that the output data size of the lightweight part network must be as small as possible to minimize the transmission overhead between the two ends.
[0039] Lightweight Openpose network structure diagram Figure 1 As shown in the figure, F is the feature map obtained after passing through the backbone network MobileNet. After passing through three 3*3 convolution kernels, the network is bifurcated into two branches. At this time, the data transmission overhead is significantly increased. Therefore, the candidate partition layer should be before the model bifurcation to reduce the communication overhead during the period.
[0040] Furthermore, in order to make the key point detection more accurate, a human body contour pre-recognition step is designed on the mobile terminal, and the contour point set C of the moving human body is extracted by the background difference method. contour , and the output tensor of the network model on the mobile terminal is transmitted to the cloud server via WIFI at the same time.
[0041] Furthermore, after receiving the intermediate tensor from the mobile terminal, the cloud will perform the calculation of the remaining network layers and obtain the initial key point coordinate set C keypoints[n] , and then match the coordinate set and the human body contour information according to the following intersection over union formula:
[0042]
[0043] The point set with the maximum overlap is the target human body coordinate set.
[0044] Furthermore, after obtaining the target human body coordinate set, in order to fully consider the motion information of the key points, the offset value of the specified key points between consecutive frames is used as part of the features of the KNN classifier input; the key points include the head, left and right hips, left and right knees, and left and right ankles. During the fall process, the offset value is larger than the offset value of daily sitting, walking and other activities, indicating that the target has a high relative motion speed; considering the target shape, the key point coordinates are normalized based on the head coordinate value as another part of the input features of the KNN input. KNN calculates the Euclidean distance between these input features to complete the fall judgment task.
[0045] Figure 1 It is the network structure diagram of the model Lightweight Openpose used in the present invention. F is the feature map obtained after passing through the backbone network MobileNet. After passing through three 3*3 convolution kernels, the network is bifurcated into two branches. At this time, the data transmission overhead is significantly increased. Therefore, the candidate partitioning layer should be before the model bifurcation to reduce the communication overhead during the period.
[0046] Figure 2 This is a schematic diagram of partitioning the network to achieve collaborative computing between the mobile terminal and the cloud. The lightweight part of the network is deployed on the local side, and the heavy part of the network is deployed on the cloud. The two ends transmit the output tensor of the middle layer via WIFI, replacing the large amount of video stream data containing user privacy information.
[0047] Figure 3 This is a maximum overlap matching flowchart based on the background difference method. Among them, obtaining multiple sets of key point sets requires collaborative calculations on the mobile terminal and the cloud. The target contour point set calculation is deployed on the mobile terminal. The overall system flowchart is as follows: Figure 4 shown.
[0048] Figure 4 It is the system flow chart of fall detection.
[0049] Step 401, performing structural analysis on the applied neural network to determine the best partitioning layer;
[0050] Step 402, partitioning the model with the best partition layer as the stratification point, and deploying the lightweight part of the network on the mobile terminal with limited computing resources;
[0051] Step 403, correspondingly, the network of the weight part is deployed on the cloud with high computing performance. It should be noted that the parameters of the models at both ends are not necessarily related, and the parameters of the model at the other end cannot be inferred based on the model parameters at the current end, which provides protection for data security;
[0052] Step 404, the mobile terminal collects video image frames and uses them as input to the system;
[0053] Step 405, executing model calculation on the mobile terminal to obtain tensor data of the middle layer, and preliminarily extracting the contour information set of the human target based on the background difference method;
[0054] Step 406, the mobile terminal sends the tensor data of the middle layer and the contour information set of the human body to the cloud, and the transmission communication overhead during the transmission is lower than the transmission overhead of the original input video image frame;
[0055] Step 407: After receiving the transmitted data, the cloud performs the model calculation in the cloud and initially outputs the coordinates of the key points of the human body. At this time, the prediction result contains some wrong key point data;
[0056] Step 408: The cloud performs maximum overlap matching between the key point set output by the model and the received human body contour point set, and finally outputs a human body key point coordinate set with maximum overlap;
[0057] In step 409, the KNN classifier extracts the offset values of the key point coordinates of the head, left and right hips, left and right knees, and left and right ankles between consecutive frames as part of the input features. During a fall, the offset value is larger than the offset value of daily activities such as sitting down and walking, indicating that the target has a large relative motion speed. Considering the shape of the target, the key point coordinates are normalized based on the head coordinate value as another part of the input features of the KNN input. Finally, the classifier outputs the prediction of human behavior activities, that is, whether a fall occurs.
[0058] Figure 5 It is the feature map after visualization corresponding to the output tensor of the optimal partition layer. There are 128 feature maps in total. Each feature map only contains local information of the original image. Most of the private information has been filtered after convolution and pooling. Even if the data is stolen during transmission, it can effectively protect the privacy of users.
[0059] This method can be applied to most existing neural network models for key point detection of the human body. Here we take the more popular Lightweight Openpose as an example. The fall detection process can be divided into two stages: the calculation stage of the mobile neural network model, and the calculation of the neural network model in the cloud and the KNN fall judgment stage. It should be pointed out that the implementation cases described are only intended to facilitate the understanding of the present invention and do not have any limiting effect on it.
Claims
1. A fall detection method based on partitioned convolutional neural network, characterized in that: The convolutional neural network used to identify key points of the human body is partitioned and deployed on the mobile terminal and the cloud respectively. The process is as follows: First, the output data size analysis and floating-point operation statistics of each layer of the target neural network are performed. The statistics are calculated using the following formula (1), where H and W are the height and width of the output feature map, and C in is the number of input channels, C out is the number of output channels, K is the number of convolution kernels, and 1 is the bias term: FLOPs=2HW(C in K 2 +1)C out (1) Subsequently, the candidate partitioning layers of the network model are preliminarily determined based on the analysis and statistical results, and then the optimal partitioning layer p is determined based on the overall computing time; the lightweight part is deployed on the mobile terminal, and the heavy part is deployed on the cloud server to achieve collaborative computing on both ends; The neural network is used to identify the key point coordinates of the human body in the image, and then combined with the KNN classifier to judge the key point coordinates to achieve fall detection; The fall detection method comprises the following steps: Step 1, structural analysis of the neural network to determine the best partition layer; Step 2: partition the model using the optimal partition layer as the stratification point, and deploy the lightweight part of the network on the mobile terminal with limited computing resources; Step 3: Deploy the weighted network on a cloud with high computing performance. Step 4: The mobile terminal collects video image frames and uses them as input to the system; Step 5, execute the model calculation on the mobile terminal to obtain the output tensor, and preliminarily extract the contour information set of the human target based on the background difference method; Step 6: The mobile terminal sends the output tensor data and the human body contour information set to the cloud, and the transmission communication overhead during this period is lower than the transmission overhead of the original input video image frame; Step 7: After receiving the transmitted data, the cloud performs the model calculation on the cloud and initially outputs the coordinates of the key points of the human body. At this time, the prediction result contains some erroneous key point data; Step 8: The cloud matches the key point set output by the model with the received human body contour point set to achieve maximum overlap, and finally outputs the human body key point coordinate set with maximum overlap; Step 9, the KNN classifier extracts the offset values of the key point coordinates of the head, left and right hips, left and right knees, and left and right ankles between consecutive frames as part of the input features; then, considering the target shape, the key point coordinates are normalized based on the head coordinate value as another part of the input features of the KNN input, and finally the classifier outputs the prediction of human behavior activities, that is, whether it falls.
2. A fall detection method based on partitioned convolutional neural network as claimed in claim 1, characterized in that: A human body contour pre-recognition step is designed on the mobile terminal. The contour point set of the moving human body is extracted by the background difference method, and is transmitted to the cloud server via WIFI at the same time as the output tensor of the network model on the mobile terminal.
3. A fall detection method based on partitioned convolutional neural network as claimed in claim 1 or 2, characterized in that: After receiving the output tensor from the mobile terminal, the cloud will perform the calculation of the remaining network layers to obtain the initial key point coordinate set C keypoints[n] , and then match the coordinate set and the human body contour information according to the following overlap formula: The point set with the maximum overlap is the target human coordinate set, where C contour is the human body contour point set.
4. A fall detection method based on partitioned convolutional neural network as claimed in claim 1 or 2, characterized in that: After obtaining the target human coordinate set, in order to fully consider the motion information of key points, the offset values of designated key points between consecutive frames are used as part of the features of the KNN classifier input. The key points include the head, left and right hips, left and right knees, and left and right ankles. Considering the target shape, the key point coordinates are normalized based on the head coordinate value as another part of the input features of KNN. KNN calculates the Euclidean distance between these input features to complete the fall judgment task.
5. A fall detection method based on partitioned convolutional neural network as claimed in claim 1 or 2, characterized in that: The feature map output by the middle layer of the network has filtered out a large amount of information contained in the original image; assuming that the cloud server is attacked by hackers, the data output by the cloud is the coordinate information of the key points of the human body, not the original image data, and the original image data cannot be reversely inferred relying solely on the model parameters of the cloud.
