Method, device, computer equipment and storage medium for detecting human body falls

Through the collection and processing of three-axis acceleration and angular velocity data, combined with time series characteristics, it is determined whether the human body is in a fall state, which solves the problems of limited information acquisition and poor stability of human fall detection in the existing technology, and achieves low cost and high stability. detection effect.

CN113367686BActive Publication Date: 2024-09-20JD DIGITS HAIYI INFORMATION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010163275.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-03-10
Publication Date
2024-09-20
Estimated Expiration
2040-03-10

AI Technical Summary

Technical Problem

Existing non-visual tracking systems and electromagnetic wave positioning methods have problems such as limited information acquisition, susceptibility to interference, high cost and poor stability when detecting human movement and falls.

Method used

Three-axis acceleration and three-axis angular velocity data are collected through motion sensors to calculate the total acceleration, combined angular velocity and inclination angle, and combined with multiple target timing characteristics, determine whether the human body behavior is abnormal and determine whether it is in a fall state.

Benefits of technology

It achieves low-cost, stable human fall detection, reduces detection costs, and improves detection accuracy and stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113367686B
    Figure CN113367686B
Patent Text Reader

Abstract

The present application relates to a method, device, computer equipment and storage medium for detecting human falls. The method comprises: acquiring motion data, the motion data comprising three-axis acceleration and three-axis angular velocity, the motion data being the motion data of the lower limbs of a human body acquired by a motion sensor; calculating the combined acceleration, combined angular velocity, inclination angle and multiple target time series features according to the motion data, the inclination angle being the angle between the lower limbs of a human body and the direction of gravity; judging whether the behavior of the human body is abnormal according to the multiple target time series features; when the behavior of the human body is judged to be abnormal, judging whether the human body is in a falling state according to the combined acceleration, the combined angular velocity and the inclination angle. The motion data of the lower limbs of a human body acquired by a motion sensor is used for detection, and the data acquisition equipment has low cost and good detection stability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, apparatus, computer device and storage medium for detecting a human fall. Background Art

[0002] Non-visual tracking system, based on infrared feature point tracking technology, has great limitations in information acquisition, requires a specific color background, is easily interfered by natural light or artificial light, and is expensive, mostly used for 3D movie shooting; Human body motion posture detection method based on electromagnetic wave positioning: It is greatly interfered by electromagnetic waves from the external environment (such as electronic products). The detection cost is high and the detection accuracy is affected by the environment, and there are problems with the stability of the detection. Summary of the invention

[0003] In order to solve the above technical problems, the present application provides a method, apparatus, computer device and storage medium for detecting human falls.

[0004] In a first aspect, the present application provides a method for detecting a human fall, comprising:

[0005] Acquire motion data, the motion data includes three-axis acceleration and three-axis angular velocity, and the motion data is the motion data of the lower limbs of the human body collected by the motion sensor;

[0006] The combined acceleration, combined angular velocity, inclination angle and multiple target time series characteristics are calculated based on the motion data. The inclination angle is the angle between the lower limbs of the human body and the direction of gravity.

[0007] Determine whether the human behavior is abnormal based on multiple target time series features;

[0008] When the human body's behavior is judged to be abnormal, whether the human body is in a falling state is determined based on the combined acceleration, combined angular velocity and inclination angle.

[0009] In a second aspect, the present application provides a device for detecting a human fall, comprising:

[0010] A data acquisition module is used to acquire motion data, the motion data including three-axis acceleration and three-axis angular velocity, and the motion data is the motion data of the lower limbs of the human body collected by the motion sensor;

[0011] A data processing module is used to calculate the combined acceleration, combined angular velocity, inclination angle and multiple target time series characteristics according to the motion data, where the inclination angle is the angle between the lower limb direction of the human body and the direction of gravity;

[0012] A feature judgment module is used to judge whether the human behavior is abnormal based on multiple target time series features;

[0013] The fall judgment module is used to judge whether the human body is in a fall state according to the combined acceleration, combined angular velocity and inclination angle when the human body's behavior is judged to be abnormal.

[0014] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the following steps are implemented:

[0015] Acquire motion data, the motion data includes three-axis acceleration and three-axis angular velocity, and the motion data is the motion data of the lower limbs of the human body collected by the motion sensor;

[0016] The combined acceleration, combined angular velocity, inclination angle and multiple target time series characteristics are calculated based on the motion data. The inclination angle is the angle between the lower limbs of the human body and the direction of gravity.

[0017] Determine whether the human behavior is abnormal based on multiple target time series features;

[0018] When the human body's behavior is judged to be abnormal, whether the human body is in a falling state is determined based on the combined acceleration, combined angular velocity and inclination angle.

[0019] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:

[0020] Acquire motion data, the motion data includes three-axis acceleration and three-axis angular velocity, and the motion data is the motion data of the lower limbs of the human body collected by the motion sensor;

[0021] The combined acceleration, combined angular velocity, inclination angle and multiple target time series characteristics are calculated based on the motion data. The inclination angle is the angle between the lower limbs of the human body and the direction of gravity.

[0022] Determine whether the human behavior is abnormal based on multiple target time series features;

[0023] When the human body's behavior is judged to be abnormal, whether the human body is in a falling state is determined based on the combined acceleration, combined angular velocity and inclination angle.

[0024] The above-mentioned method, device, computer equipment and storage medium for detecting human falls, the method includes: obtaining motion data, the motion data includes three-axis acceleration and three-axis angular velocity, the motion data is the motion data of the lower limbs of the human body collected by the motion sensor; calculating the combined acceleration, combined angular velocity, inclination angle and multiple target time series features according to the motion data, the inclination angle is the angle between the lower limbs of the human body and the direction of gravity; judging whether the behavior of the human body is abnormal according to the multiple target time series features; when the behavior of the human body is judged to be abnormal, judging whether the human body is in a falling state according to the combined acceleration, combined angular velocity and inclination angle. The motion data of the lower limbs of the human body collected by the motion sensor is used for detection, and the data acquisition equipment has low cost and good detection stability. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0026] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0027] Figure 1 A diagram of an application environment of a method for detecting a human body falling in one embodiment;

[0028] Figure 2 A schematic diagram of a flow chart of a method for detecting a human body falling in one embodiment;

[0029] Figure 3 is a structural block diagram of a device for detecting a human body falling in one embodiment;

[0030] Figure 4 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0031] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0032] Figure 1 FIG. 1 is an application environment diagram of a method for detecting a human body falling in an embodiment. Figure 1, the method for detecting human falls is applied to a system for detecting human falls. The system for detecting human falls includes a motion data acquisition device 110 and a computer device 120. The motion data acquisition device 110 and the computer device 120 are connected via a network. The computer device 120 acquires motion data, the motion data includes three-axis acceleration and three-axis angular velocity, and the motion data is the motion data of the lower limbs of the human body acquired by the motion data acquisition device 110; the combined acceleration, combined angular velocity, inclination angle and multiple target time series features are calculated based on the motion data, and the inclination angle is the angle between the lower limbs of the human body and the direction of gravity; whether the behavior of the human body is abnormal is judged based on the multiple target time series features; when the behavior of the human body is judged to be abnormal, whether the human body is in a falling state is judged based on the combined acceleration, combined angular velocity and inclination angle.

[0033] The motion data collection device 110 includes a motion sensor, which is used to collect motion data. When the motion data collection device further includes a processor and a memory, the above method for detecting a human fall can also be executed on the motion data collection device.

[0034] The computer device 120 includes a terminal and a server, wherein the terminal can be a desktop terminal or a mobile terminal, and the mobile terminal can be at least one of a mobile phone, a tablet computer, a laptop computer, etc. The server can be implemented as an independent server or a server cluster composed of multiple servers.

[0035] like Figure 2 As shown, in one embodiment, a method for detecting a human body falling is provided. This embodiment mainly applies the method to the above Figure 1 The motion data collection device 110 (or computer device 120) in FIG. Figure 2 The method for detecting human body falls specifically comprises the following steps:

[0036] Step S201, obtaining motion data.

[0037] In this specific embodiment, the motion data includes three-axis acceleration and three-axis angular velocity, and the motion data is the motion data of the lower limbs of the human body collected by the motion sensor.

[0038] Specifically, motion data refers to the data of the lower limbs of the human body collected by motion sensors, that is, motion sensors are worn on the lower limbs of the human body, such as the thigh and / or calf. The motion sensor consists of a three-axis acceleration sensor, a gyroscope, and a magnetometer. The data collected by the three data acquisition devices of the three-axis acceleration sensor, gyroscope, and magnetometer include three-axis acceleration, three-axis angular velocity, and angle data.

[0039] In one embodiment, before acquiring the motion data, the method further includes: preprocessing the raw motion data collected by the motion sensor. The data is denoised by preprocessing, such as using common data denoising methods such as median filtering and wavelet denoising to denoise the raw motion data.

[0040] Step S202, calculating the combined acceleration, combined angular velocity, inclination angle and multiple target time series characteristics based on the motion data.

[0041] In this specific embodiment, the inclination angle is the angle between the lower limbs of the human body and the direction of gravity.

[0042] Step S203, judging whether the human behavior is abnormal based on multiple target time series features.

[0043] Specifically, the resultant acceleration and the resultant angular velocity are obtained by respectively calculating the three-axis acceleration and the three-axis resultant angular velocity. The time series feature refers to the feature obtained by extracting the time series information of the motion data, and the target time series feature is obtained by screening the time series features, wherein the time series features include but are not limited to variance, mean, skewness, peak, standard deviation and interquartile range. Variance is used to measure the degree to which the data deviates from the mean. The larger the variance, the greater the degree of deviation of the data, that is, the larger the range of motion of the user wearing the motion sensor. The mean can reflect an indicator of the intensity of the change of a set of data, which can make full use of the characteristics of the data, is simple to calculate, and has a small amount of calculation. Skewness is a feature vector used to measure the direction and degree of skewness of the data. The standard deviation is used to measure the degree to which the data deviates from the mean. The greater the degree of deviation, the greater the standard deviation. The interquartile range is a feature used to measure the intensity of signal change, which is not affected by abnormal signals and peaks. The target time series feature refers to the feature obtained by screening the time series features. Common dimensionality reduction algorithms can be used to screen the time series features, wherein the dimensionality reduction algorithms are not limited to principal component analysis algorithms, linear discriminant analysis algorithms, and singular value decomposition algorithms, etc. The human behavior is judged based on the filtered target time series features. The judgment can be made using trained machine learning models and deep learning models. For example, the similarity between the features extracted from the time series features carrying the labels and the features extracted from the target time series features can be used to determine whether the human behavior is abnormal. When the features match the abnormal features, the human behavior is judged to be abnormal, otherwise it is normal. When the human body is normal, the fall judgment process is returned.

[0044] In one embodiment, multiple target time series features are input into a trained behavior detection model to obtain corresponding detection results.

[0045] Specifically, the trained behavior detection model is a mathematical model obtained by training the time series features corresponding to a large amount of motion data carrying labels. The labels carried are normal and abnormal. The data corresponding to the normal label is the data of the human body in a normal state, and the data labeled abnormal refers to the motion data generated by the human body during a fall. The input of the mathematical model is the time series features, and the output detection result is abnormal or normal. The model trained by the motion data carrying labels can quickly and accurately identify the state of the human body. The behavior detection model can be a deep learning model, a machine learning model, and the like.

[0046] Step S203, when the human body's behavior is determined to be abnormal, whether the human body is in a falling state is determined based on the combined acceleration, combined angular velocity and inclination angle.

[0047] Specifically, when the result of the human body's behavior is abnormal, the human body's behavior is judged again through the data of three different dimensions of combined acceleration, combined angular velocity and inclination. If the three-dimensional data meets the preset fall conditions, it is determined that the user has fallen. Otherwise, it means that the user has not fallen, and the process of data acquisition, behavior judgment and fall judgment is continued. Among them, when judging the combined acceleration, combined angular velocity and inclination, one or more parameters at the same time can be judged, or it can be judged according to the combined acceleration, combined angular velocity and inclination in chronological order. For example, first judge whether the combined acceleration at the current moment meets the combined acceleration condition. When there is a value that meets the combined acceleration, judge whether there is a value that meets the combined angular velocity condition in the combined angular velocity corresponding to the subsequent moment. When there is a value that meets the combined angular velocity condition, judge whether the inclination meets the inclination condition. Among them, the combined acceleration condition can include multiple conditions. For example, one combined acceleration condition should be met in the early stage of falling, and another combined acceleration condition should be met in the later stage of falling.

[0048] In one embodiment, after determining that a fall has occurred, a warning command is generated and sent, and the user is prompted that a fall has occurred by executing the warning command.

[0049] In one embodiment, the inclination angle is continuously used to determine the user's fall situation. When the length of time when the inclination angle is less than the third threshold is greater than a preset time length threshold, a warning command is generated and sent.

[0050] The above-mentioned method for detecting human falls includes: obtaining motion data, the motion data includes three-axis acceleration and three-axis angular velocity, and the motion data is the motion data of the lower limbs of the human body collected by the motion sensor; calculating the combined acceleration, combined angular velocity, inclination angle and multiple target time series features according to the motion data, and the inclination angle is the angle between the lower limbs of the human body and the direction of gravity; judging whether the behavior of the human body is abnormal according to the multiple target time series features; when the behavior of the human body is judged to be abnormal, judging whether the human body is in a falling state according to the combined acceleration, combined angular velocity and inclination angle. The data of the wearer's lower limbs during the fall process is collected by low-cost motion sensors, and the fall process is judged according to the changes in the data, thereby reducing the cost of fall detection. The wearable motion sensor technology based on the advantages of low power consumption, portability, low cost, etc. is used to detect the lower limb falls of the human body, and can respond after the wearer falls.

[0051] In one embodiment, the motion data includes motion data at multiple moments, and step S204 includes:

[0052] Step S2041, when the human body's behavior is determined to be abnormal, determine whether the current moment's combined acceleration is less than a first threshold.

[0053] Step S2042: When the resultant acceleration at the current moment is less than the first threshold, determine whether the next resultant angular velocity at the next moment is less than the second threshold.

[0054] Step S2043, when the next angular velocity is less than the second threshold, determine whether the inclination angle at the next moment is greater than the third threshold.

[0055] Step S2044: when the inclination angle is greater than the third threshold, it is determined that the human body is in a falling state.

[0056] Specifically, the current moment refers to the moment of obtaining the motion data being executed. If the detection result is abnormal, it means that the human body is more likely to fall. In order to further determine whether the human body has fallen, it is necessary to determine whether the combined acceleration at the current moment meets the preset conditions, that is, whether it is less than the first threshold. Among them, the first threshold is the preset critical value of the combined acceleration, the second threshold is the preset critical value of the combined angular velocity, and the third threshold is the preset critical value of the inclination. The inclination is the angle between the lower limb and the direction of gravity. By successively judging the judgment results of the combined acceleration, the combined angular velocity and the inclination at different times, the falling process is monitored. When all three conditions are met, it means that a fall has occurred. First, the combined acceleration is judged. When the combined acceleration is less than the first threshold, the combined angular velocity is judged. The combined angular velocity is the data collected after the combined acceleration is collected. There is a combined angular velocity less than the second threshold in the combined angular velocity within a period of time. When it is determined that the combined angular velocity is less than the second threshold, it is judged whether the inclination is less than the third threshold. If the inclination is less than the third threshold, it is determined that the user has fallen. The combined acceleration is less than the first threshold because in the process of sending the fall, weightlessness will occur at the beginning of the fall, and weightlessness can be judged by the combined acceleration. If a fall occurs, it takes a while to get up, or it is impossible to get up. At this time, the human body is basically in a static state. When in a static state, the combined angular velocity will not change, so it can be judged whether the combined angular velocity is less than the second threshold. After the fall, the body posture of the human body changes more than before the fall, so the angle between the lower limbs of the human body and the direction of gravity can be used to judge whether the user has fallen.

[0057] In one embodiment, whether the user has fallen can be determined based on the degree of change between the inclination angle before the fall and the inclination angle after the fall. For example, the degree of change can be measured by the difference, ratio, etc. between the two.

[0058] In one embodiment, the method for detecting a human fall further includes:

[0059] Step S2045, when the next angular velocity is greater than or equal to the second threshold value, obtain the angular velocity at the next moment of the next angular velocity, take the angular velocity at the next moment of the next angular velocity as the next angular velocity, and execute to determine whether the next angular velocity is less than the second threshold value, until the next angular velocity is less than the second threshold value, execute to determine whether the inclination angle at the next moment is greater than the third threshold value.

[0060] In this specific embodiment, the time difference between the acquisition time of the next combined angular velocity and the current time is less than the first preset time threshold.

[0061] Step S2046, when the next angular velocity is greater than or equal to the second threshold, and the time difference between the acquisition time of the next angular velocity and the current time is greater than or equal to the first preset time threshold, execute acquisition of motion data.

[0062] Specifically, if the next combined angular velocity is greater than or equal to the second threshold, it is determined that the human body has not fallen yet, and whether the combined angular velocity at the next moment is greater than the second threshold is continued to be determined. If it is greater than or equal to the second threshold, step S2043 is executed. Otherwise, whether the combined angular velocity obtained at the subsequent time is greater than the second threshold is continued to be determined until the combined angular velocity is greater than the second threshold within the preset time length after the current moment (within the first preset time threshold), and step S205 is executed. Otherwise, if all the combined angular velocities within the preset time length after the current moment are less than or equal to the second threshold, the process returns to step S201, that is, new motion data is obtained, and the fall judgment process is executed again.

[0063] In one embodiment, when the combined acceleration at the current moment is less than the first threshold, the method further includes:

[0064] Step S2047, obtaining the next combined acceleration at the next moment, determining whether the next combined acceleration is greater than a fourth threshold, and when the next combined acceleration is greater than the fourth threshold, obtaining the combined angular velocity of the next combined acceleration at the next moment.

[0065] In this specific embodiment, step S2043 includes: determining whether the resultant angular velocity of the next resultant acceleration at the next moment is less than a second threshold.

[0066] Specifically, if the next combined acceleration is less than the first threshold, it indicates that weightlessness has occurred. During a fall, overweight may occur within a period of time after weightlessness occurs. Therefore, after determining that weightlessness has occurred, monitor whether there is a combined acceleration greater than the fourth threshold in the subsequent combined accelerations. If there is a combined acceleration greater than the second threshold, it indicates that overweight has occurred. When overweight occurs, obtain the combined angular velocity after the overweight occurs, and determine whether the combined angular velocity is less than the second threshold. That is, if overweight occurs at the next moment, obtain the corresponding combined angular velocity at the next moment, and determine whether the combined angular velocity is less than the second threshold. The judgment of the combined angular velocity is consistent with the judgment principle of the combined angular velocity in the above steps S2043, S2045, and S2046.

[0067] In one embodiment, the method for detecting a human fall further includes:

[0068] Step S2048, when the next combined acceleration is less than or equal to the fourth threshold, obtain the combined acceleration at the next moment of the next combined acceleration, take the combined acceleration at the next moment of the next combined acceleration as the next combined acceleration, and execute to determine whether the next combined acceleration is greater than the fourth threshold, until the next combined acceleration is greater than the fourth threshold, and then execute to determine whether the combined angular velocity at the next moment of the next combined acceleration is less than the second threshold.

[0069] In this specific embodiment, the time difference between the acquisition time of the next combined acceleration and the current time is less than the second preset time threshold.

[0070] Step S2049, when the next combined acceleration is less than or equal to the fourth threshold, and the time difference between the acquisition time of the next combined acceleration and the current time is greater than or equal to the second preset time threshold, execute acquisition of motion data.

[0071] Specifically, if the next resultant acceleration is less than or equal to the fourth threshold, the subsequent resultant accelerations are continuously judged, and when there is a resultant acceleration greater than the fourth threshold in the resultant angular velocity within the preset time after the current moment (within the second preset time threshold), after determining that the resultant acceleration is greater than the fourth threshold, step S2043 is executed. On the contrary, if there is no resultant acceleration greater than the fourth threshold within the preset time after the current moment, the process returns to step S201.

[0072] In one embodiment, step S202 includes:

[0073] Step S2021, obtaining the acceleration parallel to the direction of the lower limb from the three-axis acceleration at the next moment as the first acceleration.

[0074] Step S2022, calculating the square roots of the accelerations of the remaining two axes.

[0075] Step S2023, calculating the ratio of the first acceleration to the square root.

[0076] Step S2024, calculate the tangent angle of the ratio and use the tangent angle as the inclination angle.

[0077] Specifically, one of the axes of the three-axis acceleration sensor in the worn motion sensor is parallel to the direction of the lower limb. The acceleration parallel to the direction of the lower limb is obtained from the three-axis acceleration at the next moment as the first acceleration. The square root of the acceleration of the remaining two axes is calculated, and the square root is the square root of the sum of the squares of the acceleration of the remaining two axes. The ratio of the first acceleration to the square root is calculated, and the tangent angle corresponding to the ratio is calculated to obtain the inclination angle. Let the acceleration parallel to the lower limb be a x , the accelerations of the other two axes are a y and a z , the tangent angle is θ, and the tangent angle calculation formula is as follows:

[0078]

[0079] In one embodiment, the target time series features include variance features, mean features, skewness features, peak features, and interquartile range features. Step S201 includes:

[0080] Step S201, obtaining a plurality of original motion data within a preset time period corresponding to the current moment.

[0081] Specifically, the preset duration refers to predefined time information, which can be customized or determined according to the frequency of data collection by the motion sensor. The current moment corresponds to multiple data collected by the sensor, that is, the original motion data corresponding to multiple collection times are obtained.

[0082] In this specific embodiment, step S202 further includes:

[0083] Step S2025, calculating the average value of multiple original motion data to obtain the mean feature.

[0084] Step S2026, calculating the variance of the multiple original motion data to obtain the variance feature.

[0085] Specifically, the average value is calculated for multiple raw motion data according to the data type. That is, the average value of the acceleration of each axis in the three-axis acceleration and the average value of the angular velocity of each axis in the three-axis angular velocity are calculated to obtain the average value corresponding to each type of data. The variance of the motion data is also calculated according to the data type to obtain the variance of the acceleration of each axis in the three-axis acceleration, the variance of the angular velocity of each axis in the three-axis angular velocity, and so on.

[0086] Step S2027, searching for data peaks from multiple original motion data to obtain peak features.

[0087] Specifically, the peak value refers to sorting the various types of data of the original motion data according to the acquisition time, finding the peak value in each type of data, and describing the intensity of the signal change in a cycle through the peak value. The larger the peak value, the larger the corresponding motion amplitude. The peak value can be represented by the maximum value and the minimum value.

[0088] Step S2028, divide the multiple original motion data into four equal parts from small to large, calculate the difference between the third part and the first part, and obtain the interquartile range feature.

[0089] Specifically, multiple original motion data of each type are sorted according to data size, and the sorted data are divided into four parts, and the corresponding difference between each data in the third part and the first part is calculated to obtain the interquartile range characteristics of each type of data.

[0090] Step S2029, calculating the skewness characteristics of the multiple original motion data, the skewness characteristic calculation formula is:

[0091]

[0092] Among them, SK k is the skewness of the original motion data of the kth class, is the i-th original motion data of the k-th category, n is the number of original motion data of each type, is the average value of n original motion data of the kth category, sd k is the standard deviation of the n original motion data of the kth class.

[0093] In one embodiment, the motion sensor includes a first motion sensor located at the thigh and a second motion sensor located at the calf, the original motion data includes a first group of original motion data collected by the first motion sensor and a second group of original motion data collected by the second motion sensor, the timing features include a first timing feature corresponding to the first group of original motion data and a second timing feature corresponding to the second group of original motion data, and the method further includes: using a principal component analysis algorithm to perform feature screening on a timing feature composed of a timing feature and a second timing feature to obtain a target timing feature of the motion data.

[0094] Specifically, the first motion sensor and the second motion sensor are respectively worn on the thigh and calf of the same leg, and the first motion sensor and the second motion sensor are only used to distinguish the difference in wearing positions. Each motion sensor collects motion data of the lower limbs of the human body to obtain original motion data, and obtains first original motion data and second original motion data. Extract multiple time series features of the first original motion data and the second original motion data respectively to obtain first time series features and second time series features. The first time series features and the second time series features constitute the time series features of the entire motion data, and the principal component analysis algorithm is used to screen the corresponding time series features to obtain the target time series features. The principal component analysis algorithm is used to reduce the dimension of the data, that is, to reduce the dimension of the data through the correlation of the data, and select some time series features from the time series features after the dimension reduction as the target time series features. The specific number of time series features to be selected as the target time series features can be customized.

[0095] In one embodiment, the calculation formula for the resultant acceleration is shown in formula (3), and the calculation formula for the resultant angular velocity is shown in formula (4), a x 、a y 、a z are the accelerations of the x, y, and z axes, respectively, and w x 、w y 、w z are the angular velocities of the x, y, and z axes respectively.

[0096]

[0097]

[0098] In a specific embodiment, the above method for detecting a human fall includes:

[0099] (1) Collection of motion data:

[0100] The motion sensors are worn on the sides of the subject's thigh and calf. The motion sensors collect leg motion data including gyroscope data, acceleration data, angle data, etc. The data can be transmitted by wire or wirelessly.

[0101] (2) Motion signal extraction:

[0102] Extract thigh and calf motion data. The data collected by each motion sensor contains 9 groups of different data. According to the simulation results, observe the specific change trends of different data during the specific movement of the lower limbs of the human body, and extract data that conforms to the characteristics of falling.

[0103] Since the direction of the fall is uncertain, the three-axis combined angular velocity and three-axis combined acceleration data of the thigh and calf are extracted. The combined acceleration is the scalar sum of the three-axis accelerations, which is more stable than the data of a single axis and is not limited by the sensor wearing method. The calculation formulas for the combined angular velocity and combined acceleration are formula (3) and formula (4), respectively.

[0104] The falling process will bring about a dramatic change in the trunk angle. The result of the change in the side angle of the human body falling is to extract the inclination angle with the direction of gravity acceleration. The inclination angle calculation formula is shown in formula (1).

[0105] The three-axis angular velocity and three-axis acceleration data of the thigh and calf are preprocessed separately, such as using median filtering to remove noise from the data. Median filtering is a nonlinear signal smoothing technology based on sorting statistics theory that can effectively suppress noise. Its basic principle is to replace the value of a point in a set of data with the median of the surrounding points, so as to avoid the influence of this noise point on the data, thereby achieving the purpose of eliminating noise.

[0106] (3) Feature extraction:

[0107] From the data within a fixed time window, the time domain features of acceleration and angular velocity are extracted: variance, peak, mean, skewness, and interquartile range. Because falls are non-periodic and instantaneous, frequency domain features are generally not considered.

[0108] A. Variance, that is, the degree to which the data deviates from the mean. The larger the variance, the greater the deviation of the data, that is, the larger the range of the tester's action. When describing the volatility of data, the role of variance and standard deviation is the same, but the standard deviation requires the square root of the variance, and the amount of calculation is larger than the variance.

[0109] Let be a sample of motion sensor data x, and the variance Among them, Var is the variance, x mean is the average of n observations of the sample, where the samples are three-axis acceleration, three-axis angular velocity and angle data.

[0110] B. The interquartile range is used to measure the characteristics of signal change intensity, which is not affected by abnormal signals and peaks. The data of each axis of the sensor is arranged from small to large and divided into four parts. The interquartile range is the difference between the third quartile and the first quartile, that is, IQR = Q3-Q1, where IQR is the interquartile range, Q1 and Q3 are the first quartile and the third quartile respectively.

[0111] C. Peak value: Peak value is used to describe the intensity of signal change in a cycle. It can be positive or negative. The larger the peak value, the larger the corresponding movement amplitude. The behavior pattern of the tester can be reflected according to the changes in the three axial peak values ​​of the acceleration sensor.

[0112] D. Mean. The mean is an indicator that reflects the intensity of change in a set of data. Its advantage is that it can make full use of the characteristics of the data, and the calculation is simple and the amount of calculation is small. M is the mean, n is the number of samples, x i is the i-th sample. The samples are three-axis acceleration, three-axis angular velocity and angle data.

[0113] E. Skewness is a characteristic vector that measures the direction and degree of data skewness. The skewness characteristics of multiple original motion data of each type are calculated. The skewness calculation formula is shown in formula (2).

[0114] (4) Behavioral detection:

[0115] A linear classifier is used to classify the time domain features within the time window into daily behavior and abnormal behavior. If it is classified as abnormal behavior, the angular velocity threshold is used to determine whether a weightless impact has occurred, and the inclination detection is used to determine whether a fall has occurred.

[0116] (5) Behavioral detection:

[0117] When a fall begins, there will be a certain degree of weightlessness. After the body loses weight, if it falls, the body will collide with the ground or other objects, which will cause overweight for a period of time. Both weightlessness and overweight can be judged by the combined acceleration threshold.

[0118] First, determine whether the combined acceleration value is less than TH1 (the first threshold). If so, weightlessness occurs. After weightlessness is determined, determine whether there is a combined acceleration greater than TH2 (the fourth threshold) within a preset period of time after weightlessness occurs. If so, it is considered that overweight has occurred, and the combined angular velocity is determined. Otherwise, it means that there is no fall, and subsequent data is obtained to perform feature extraction and behavior detection again.

[0119] (6) Angular velocity determination:

[0120] If a fall occurs, it is impossible to get up immediately, and a short static state will occur. Therefore, when the combined acceleration is greater than TH2 within the preset time, the combined angular velocity threshold is determined to be less than TH3 (the second threshold). If the combined angular velocity threshold is less than the threshold TH3, and the time difference between the acquisition time of the combined angular velocity and the acquisition time of the combined acceleration greater than TH2 is less than the time threshold (the first preset time threshold), it is determined that static state has occurred and the inclination judgment is performed. Otherwise, it means that there is no fall, and subsequent data is obtained to re-perform operations such as feature extraction and behavior detection.

[0121] (7) Tilt angle judgment:

[0122] After a person falls, the body posture of the person changes greatly compared to before the fall. That is, the person changes from the original standing state to the lying or lying state. At this time, the inclination angle between the acceleration of the axis parallel to the lower limbs and the direction of gravity is calculated to determine whether the inclination angle is greater than the threshold TH4 (the third threshold). If it is greater than the threshold TH4, it is determined to be a fall. Otherwise, it is determined that the person has not fallen, and subsequent data is obtained to perform feature extraction and behavior detection again.

[0123] The above method for detecting human falls uses motion sensors worn at two locations, the thigh and the calf, to collect 18 groups of original data, including three-axis acceleration, angular velocity, and angle data. Five time series features in the time domain of each group of original data are extracted, and some feature vectors are screened out from all the time series features according to the principal component analysis method. The screened partial feature vectors are input into a linear classifier to obtain two different classification results of daily behavior and abnormal behavior. When the classification result is abnormal behavior, the conditions that the motion data needs to meet in the whole process are judged according to the characteristic analysis of the fall process, that is, the weightless state in the early stage of the fall, the overweight state of colliding with the ground in the middle stage of the fall, the static state in the late stage of the fall, and the process of inclination change, and when all are met, it is determined to be a fall.

[0124] The upper torso of the human body moves relatively smoothly, while the arms, wrists, legs, and ankles are frequently used in daily life, and their movements are complex and highly random, so these parts are generally not selected as research objects. According to the motion sensors worn on the lower limbs, the wearer's fall behavior is detected in real time, providing essential time cost and safety control for further control of smart wearable devices.

[0125] Figure 2 FIG. 1 is a flow chart of a method for detecting a human body falling in one embodiment. It should be understood that although Figure 2 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0126] In one embodiment, Figure 3 As shown, a device 200 for detecting a human body falling is provided, comprising:

[0127] The data acquisition module 201 is used to acquire motion data, which includes three-axis acceleration and three-axis angular velocity. The motion data is the motion data of the lower limbs of the human body collected by the motion sensor.

[0128] The data processing module 202 is used to calculate the current moment's combined acceleration, combined angular velocity, inclination angle and multiple target time series features based on the motion data, where the inclination angle is the angle between the lower limb direction of the human body and the direction of gravity.

[0129] The feature judgment module 203 judges whether the human behavior is abnormal based on multiple target time series features.

[0130] The fall judgment module 204 is used to judge whether the human body is in a fall state according to the combined acceleration, the combined angular velocity and the inclination angle when the human body's behavior is judged to be abnormal.

[0131] In one embodiment, the fall determination module 204 includes:

[0132] The combined acceleration judging unit is used to judge whether the combined acceleration at the current moment is less than a first threshold value.

[0133] The combined angular velocity judgment unit is configured to judge whether the next combined angular velocity at the next moment is less than the second threshold value when the combined acceleration at the current moment is less than the first threshold value.

[0134] The inclination angle judgment unit judges whether the inclination angle at the next moment is greater than the third threshold value when the next angular velocity is less than the second threshold value.

[0135] The fall determination unit is used to determine that the human body is in a fall state when the inclination angle is greater than a third threshold value.

[0136] In one embodiment, the angular velocity judgment unit is also used to obtain the angular velocity at the next moment of the next angular velocity when the next angular velocity is greater than or equal to the second threshold value, take the angular velocity at the next moment of the next angular velocity as the next angular velocity, and execute a judgment on whether the next angular velocity is less than the second threshold value, until the next angular velocity is less than the second threshold value, and then execute a judgment on whether the inclination angle at the next moment is greater than a third threshold value, wherein the time difference between the moment of obtaining the next angular velocity and the current moment is less than the first preset time threshold.

[0137] The angular velocity judgment unit is further configured to return to the data acquisition module 201 when the next angular velocity is greater than or equal to the second threshold and the time difference between the acquisition time of the next angular velocity and the current time is greater than or equal to the first preset time threshold.

[0138] In one embodiment, the combined acceleration judgment unit is further used to obtain the next combined acceleration at the next moment when the combined acceleration at the current moment is less than the first threshold, and to judge whether the next combined acceleration is greater than a fourth threshold.

[0139] The combined angular velocity judgment unit is further used to obtain the combined angular velocity of the next combined acceleration at the next moment when the next combined acceleration is greater than the fourth threshold, and to judge whether the combined angular velocity of the next combined acceleration at the next moment is less than the second threshold.

[0140] In one embodiment, the combined acceleration judgment unit is also used to obtain the combined acceleration at the next moment of the next combined acceleration when the next combined acceleration is less than or equal to a fourth threshold, take the combined acceleration at the next moment of the next combined acceleration as the next combined acceleration, and execute a judgment on whether the next combined acceleration is greater than the fourth threshold, until the next combined acceleration is greater than the fourth threshold, and then execute a judgment on whether the combined angular velocity at the next moment of the next combined acceleration is less than the second threshold, wherein the time difference between the moment of obtaining the next combined acceleration and the current moment is less than a second preset time threshold.

[0141] The combined acceleration judgment unit is further configured to return to the data acquisition module 201 when the next combined acceleration is less than or equal to the fourth threshold and the time difference between the acquisition time of the next combined acceleration and the current time is greater than or equal to the second preset time threshold.

[0142] In one embodiment, the data processing module 202 is specifically used to obtain the acceleration parallel to the direction of the lower limb from the three-axis acceleration as the first acceleration; calculate the square root of the acceleration of the remaining two axes; calculate the ratio of the first acceleration to the square root; calculate the tangent angle of the ratio, and use the tangent angle as the inclination angle.

[0143] In one embodiment, the data acquisition module 201 is specifically used to acquire multiple types of original motion data within a preset time period corresponding to the current moment.

[0144] The data processing module 202 is specifically used to calculate the average value of multiple original motion data according to the type to obtain the mean feature of each type; calculate the variance of multiple original motion data according to the type to obtain the variance feature of each type; find the data peak from the multiple original motion data corresponding to each type to obtain the peak feature of each type; divide the multiple original motion data corresponding to each type into four parts according to the type from small to large, calculate the difference between the third part and the first part of each type, and obtain the interquartile range feature of each type; calculate the skewness feature of multiple original motion data of each type, and the skewness feature calculation formula is:

[0145]

[0146] Among them, SK k is the skewness of the original motion data of the kth class, is the i-th original motion data of the k-th category, n is the number of original motion data of each type, is the average value of n original motion data of the kth category, sd k is the standard deviation of the n original motion data of the kth class.

[0147] In one embodiment, the above-mentioned device 200 for detecting a human body falling further includes:

[0148] A timing feature screening module is used to use a principal component analysis algorithm to perform feature screening on a timing feature composed of a first timing feature and a second timing feature to obtain a target timing feature of motion data, wherein the motion sensor includes a first motion sensor located at the thigh and a second motion sensor located at the calf, the original motion data includes a first group of original motion data collected by the first motion sensor and a second group of original motion data collected by the second motion sensor, and the timing feature includes a first timing feature corresponding to the first group of original motion data and a second timing feature corresponding to the second group of original motion data.

[0149] In one embodiment, the calculation formula of the combined acceleration in the data processing module 202 is: The calculation formula of the angular velocity in the data processing module 202 is: Among them, a x 、a y 、a z are the accelerations of the x, y, and z axes, respectively, and w x 、w y 、w z are the angular velocities of the x, y, and z axes respectively.

[0150] Figure 4 The internal structure diagram of a computer device in one embodiment is shown. The computer device may specifically be Figure 1 The computer device 120 in FIG. Figure 4 As shown, the computer device includes a processor, a memory, a network interface, an input device and a display screen connected via a system bus. Among them, the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program, which, when executed by the processor, enables the processor to implement a method for detecting a human body falling. The internal memory may also store a computer program, which, when executed by the processor, enables the processor to execute a method for detecting a human body falling. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covering the display screen, or a button, trackball or touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse, etc.

[0151] Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0152] In one embodiment, the device for detecting human falls provided by the present application can be implemented in the form of a computer program. The computer program can be used in Figure 4 The computer device shown in the figure is run on the computer device. The memory of the computer device can store various program modules constituting the device for detecting human body falls, for example, Figure 3 The data acquisition module 201, data processing 202, abnormal behavior detection module 203 and fall judgment module 204 are shown. The computer program composed of various program modules enables the processor to execute the steps of the method for detecting human body fall in various embodiments of the present application described in this specification.

[0153] For example, Figure 4 The computer device shown can be Figure 3 The data acquisition module 201 in the device 200 for detecting human falls shown in the figure acquires motion data, and the motion data includes three-axis acceleration and three-axis angular velocity, and the motion data is the motion data of the lower limbs of the human body collected by the motion sensor. The computer device can calculate the combined acceleration, combined angular velocity, inclination angle and multiple target time series features at the current moment according to the motion data through the data processing module 202, and the inclination angle is the angle between the lower limb direction of the human body and the direction of gravity. The computer device can judge whether the behavior of the human body is abnormal according to multiple target time series features through the feature judgment module 203. The computer device can judge whether the human body is in a falling state according to the combined acceleration, combined angular velocity and inclination angle when the behavior of the human body is judged to be abnormal through the fall judgment module 204.

[0154] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program: acquiring motion data, the motion data including three-axis acceleration and three-axis angular velocity, the motion data being motion data of a lower limb of a human body acquired by a motion sensor; calculating a combined acceleration, a combined angular velocity, an inclination angle, and a plurality of target time series features based on the motion data, the inclination angle being the angle between the lower limb of the human body and the direction of gravity; judging whether the behavior of the human body is abnormal based on the plurality of target time series features; and when the behavior of the human body is judged to be abnormal, judging whether the human body is in a falling state based on the combined acceleration, the combined angular velocity, and the inclination angle.

[0155] In one embodiment, the motion data includes motion data at multiple moments, and judging whether the human body is in a falling state based on the combined acceleration, the combined angular velocity, and the inclination angle includes: judging whether the combined acceleration at the current moment is less than a first threshold; when the combined acceleration at the current moment is less than the first threshold, judging whether the next combined angular velocity at the next moment is less than the second threshold; when the next combined angular velocity is less than the second threshold, judging whether the inclination angle at the next moment is greater than a third threshold; when the inclination angle is greater than the third threshold, determining that the human body is in a falling state.

[0156] In one embodiment, the processor also implements the following steps when executing the computer program: when the next angular velocity is greater than or equal to the second threshold, the angular velocity at the next moment of the next angular velocity is obtained, the angular velocity at the next moment of the next angular velocity is used as the next angular velocity, and a judgment is made as to whether the next angular velocity is less than the second threshold, until the next angular velocity is less than the second threshold, a judgment is made as to whether the inclination angle at the next moment is greater than a third threshold, wherein the time difference between the moment of obtaining the next angular velocity and the current moment is less than the first preset time threshold; when the next angular velocity is greater than or equal to the second threshold, and the time difference between the moment of obtaining the next angular velocity and the current moment is greater than or equal to the first preset time threshold, acquisition of motion data is executed.

[0157] In one embodiment, when the combined acceleration at the current moment is less than the first threshold, the processor also implements the following steps when executing the computer program: obtaining the next combined acceleration at the next moment, and determining whether the next combined acceleration is greater than a fourth threshold; when the next combined acceleration is greater than the fourth threshold, obtaining the combined angular velocity of the next combined acceleration at the next moment; determining whether the combined angular velocity at the next moment is less than the second threshold, including: determining whether the combined angular velocity of the next combined acceleration at the next moment is less than the second threshold.

[0158] In one embodiment, when the processor executes the computer program, the following steps are also implemented: when the next combined acceleration is less than or equal to a fourth threshold, the combined acceleration at the next moment of the next combined acceleration is obtained, the combined acceleration at the next moment of the next combined acceleration is used as the next combined acceleration, and a judgment is executed whether the next combined acceleration is greater than the fourth threshold, until the next combined acceleration is greater than the fourth threshold, and then a judgment is executed whether the combined angular velocity at the next moment of the next combined acceleration is less than a second threshold, wherein the time difference between the acquisition moment of the next combined acceleration and the current moment is less than a second preset time threshold; when the next combined acceleration is less than or equal to the fourth threshold, and the time difference between the acquisition moment of the next combined acceleration and the current moment is greater than or equal to the second preset time threshold, acquisition of motion data is executed.

[0159] In one embodiment, the inclination angle is calculated based on the motion data, including: obtaining the acceleration parallel to the direction of the lower limb from the three-axis acceleration as the first acceleration; calculating the square root of the acceleration of the remaining two axes; calculating the ratio of the first acceleration to the square root; calculating the tangent angle of the ratio, and using the tangent angle as the inclination angle.

[0160] In one embodiment, the target time series feature includes a variance feature, a mean feature, a skewness feature, a peak feature and an interquartile range feature, and the motion data is obtained, and the target time series feature at the current moment is calculated according to the motion data at the current moment, including: obtaining multiple original motion data of each type within a preset time length corresponding to the current moment; calculating the average value of the multiple original motion data according to the type to obtain the mean feature of each type; calculating the variance of the multiple original motion data according to the type to obtain the variance feature of each type; finding the data peak from the multiple original motion data corresponding to each type to obtain the peak feature of each type; dividing the multiple original motion data corresponding to each type into four parts according to the type from small to large, calculating the difference between the third part and the first part of each type, and obtaining the interquartile range feature of each type; calculating the skewness feature of the multiple original motion data of each type, and the skewness feature calculation formula is:

[0161]

[0162] Among them, SK k is the skewness of the original motion data of the kth class, is the i-th original motion data of the k-th category, n is the number of original motion data of each type, is the average value of n original motion data of the kth category, sd k is the standard deviation of the n original motion data of the kth class.

[0163] In one embodiment, the motion sensor includes a first motion sensor located at the thigh and a second motion sensor located at the calf, the original motion data includes a first group of original motion data collected by the first motion sensor and a second group of original motion data collected by the second motion sensor, the timing features include a first timing feature corresponding to the first group of original motion data and a second timing feature corresponding to the second group of original motion data, and the method further includes: using a principal component analysis algorithm to perform feature screening on the timing features composed of the first timing features and the second timing features to obtain the target timing features of the motion data.

[0164] In one embodiment, the calculation formula of the combined acceleration is: The formula for calculating the combined angular velocity is: Among them, a x 、a y 、a z are the accelerations of the x, y, and z axes, respectively, and w x 、w y 、w z are the angular velocities of the x, y, and z axes respectively.

[0165] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: acquiring motion data, the motion data including three-axis acceleration and three-axis angular velocity, the motion data being the motion data of the lower limbs of a human body acquired by a motion sensor; calculating a combined acceleration, a combined angular velocity, an inclination angle, and a plurality of target time series features according to the motion data, the inclination angle being the angle between the lower limbs of the human body and the direction of gravity; judging whether the behavior of the human body is abnormal according to the plurality of target time series features; and when the behavior of the human body is judged to be abnormal, judging whether the human body is in a falling state according to the combined acceleration, the combined angular velocity, and the inclination angle.

[0166] In one embodiment, the motion data includes motion data at multiple moments, and judging whether the human body is in a falling state based on the combined acceleration, the combined angular velocity, and the inclination angle includes: judging whether the combined acceleration at the current moment is less than a first threshold; when the combined acceleration at the current moment is less than the first threshold, judging whether the next combined angular velocity at the next moment is less than the second threshold; when the next combined angular velocity is less than the second threshold, judging whether the inclination angle at the next moment is greater than a third threshold; when the inclination angle is greater than the third threshold, determining that the human body is in a falling state.

[0167] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: when the next angular velocity is greater than or equal to the second threshold, the angular velocity at the next moment of the next angular velocity is obtained, the angular velocity at the next moment of the next angular velocity is used as the next angular velocity, and a judgment is executed whether the next angular velocity is less than the second threshold, until the next angular velocity is less than the second threshold, a judgment is executed whether the inclination angle at the next moment is greater than a third threshold, wherein the time difference between the acquisition moment of the next angular velocity and the current moment is less than the first preset time threshold; when the next angular velocity is greater than or equal to the second threshold, and the time difference between the acquisition moment of the next angular velocity and the current moment is greater than or equal to the first preset time threshold, acquisition of motion data is executed.

[0168] In one embodiment, when the combined acceleration at the current moment is less than the first threshold, the computer program also implements the following steps when executed by the processor: obtaining the next combined acceleration at the next moment, and determining whether the next combined acceleration is greater than a fourth threshold; when the next combined acceleration is greater than the fourth threshold, obtaining the combined angular velocity of the next combined acceleration at the next moment; determining whether the combined angular velocity at the next moment is less than the second threshold, including: determining whether the combined angular velocity of the next combined acceleration at the next moment is less than the second threshold.

[0169] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: when the next combined acceleration is less than or equal to a fourth threshold, the combined acceleration at the next moment of the next combined acceleration is obtained, the combined acceleration at the next moment of the next combined acceleration is used as the next combined acceleration, and a judgment is executed whether the next combined acceleration is greater than the fourth threshold, until the next combined acceleration is greater than the fourth threshold, and then a judgment is executed whether the combined angular velocity at the next moment of the next combined acceleration is less than a second threshold, wherein the time difference between the acquisition moment of the next combined acceleration and the current moment is less than a second preset time threshold; when the next combined acceleration is less than or equal to the fourth threshold, and the time difference between the acquisition moment of the next combined acceleration and the current moment is greater than or equal to the second preset time threshold, acquisition of motion data is executed.

[0170] In one embodiment, the inclination angle is calculated based on the motion data, including: obtaining the acceleration parallel to the direction of the lower limb from the three-axis acceleration as the first acceleration; calculating the square root of the acceleration of the remaining two axes; calculating the ratio of the first acceleration to the square root; calculating the tangent angle of the ratio, and using the tangent angle as the inclination angle.

[0171] In one embodiment, the target time series feature includes a variance feature, a mean feature, a skewness feature, a peak feature and an interquartile range feature, and the motion data is obtained, and the target time series feature at the current moment is calculated according to the motion data at the current moment, including: obtaining multiple original motion data of each type within a preset time length corresponding to the current moment; calculating the average value of the multiple original motion data according to the type to obtain the mean feature of each type; calculating the variance of the multiple original motion data according to the type to obtain the variance feature of each type; finding the data peak from the multiple original motion data corresponding to each type to obtain the peak feature of each type; dividing the multiple original motion data corresponding to each type into four parts according to the type from small to large, calculating the difference between the third part and the first part of each type, and obtaining the interquartile range feature of each type; calculating the skewness feature of the multiple original motion data of each type, and the skewness feature calculation formula is:

[0172]

[0173] Among them, SK k is the skewness of the original motion data of the kth class, is the i-th original motion data of the k-th category, n is the number of original motion data of each type, is the average value of n original motion data of the kth category, sd k is the standard deviation of the n original motion data of the kth class.

[0174] In one embodiment, the motion sensor includes a first motion sensor located at the thigh and a second motion sensor located at the calf, the original motion data includes a first group of original motion data collected by the first motion sensor and a second group of original motion data collected by the second motion sensor, the timing features include a first timing feature corresponding to the first group of original motion data and a second timing feature corresponding to the second group of original motion data, and the method further includes: using a principal component analysis algorithm to perform feature screening on the timing features composed of the first timing features and the second timing features to obtain the target timing features of the motion data.

[0175] In one embodiment, the calculation formula of the combined acceleration is: The formula for calculating the combined angular velocity is: Among them, a x 、a y 、a z are the accelerations of the x, y, and z axes, respectively, and w x 、w y 、w z are the angular velocities of the x, y, and z axes respectively.

[0176] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0177] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0178] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A method for detecting a human body falling, characterized in that: The method comprises: Acquiring motion data, the motion data including three-axis acceleration and three-axis angular velocity, the motion data being motion data of a lower limb of a human body collected by a motion sensor; Calculating the combined acceleration, combined angular velocity, inclination angle and multiple target time series features according to the motion data, wherein the inclination angle is the angle between the lower limbs of the human body and the direction of gravity, wherein the target time series feature is a feature obtained by screening the time series feature, and the time series feature refers to a feature obtained by extracting the time series information of the motion data; Determining whether the human body's behavior is abnormal according to the multiple target time series features; When the behavior of the human body is determined to be abnormal, judging whether the human body is in a falling state according to the combined acceleration, the combined angular velocity and the inclination angle; The determining whether the human behavior is abnormal according to the multiple target time series features comprises: inputting the multiple target time series features into a trained behavior detection model to obtain corresponding detection results, wherein the detection results are abnormal or normal; The motion data includes motion data at multiple moments, and judging whether the human body is in a falling state according to the combined acceleration, the combined angular velocity, and the inclination angle includes: Determine whether the combined acceleration at the current moment is less than a first threshold; When the resultant acceleration at the current moment is less than the first threshold, determining whether the next resultant angular velocity at the next moment is less than the second threshold; When the next angular velocity is less than the second threshold, determining whether the inclination angle at the next moment is greater than a third threshold; When the inclination angle is greater than a third threshold, it is determined that the human body is in a falling state.

2. The method according to claim 1, characterized in that: The method further comprises: When the next angular velocity is greater than or equal to the second threshold, the angular velocity at the next moment of the next angular velocity is obtained, the angular velocity at the next moment of the next angular velocity is used as the next angular velocity, and the step of determining whether the next angular velocity is less than the second threshold is performed, until the next angular velocity is less than the second threshold, and then determining whether the inclination angle at the next moment is greater than a third threshold, wherein the time difference between the moment of obtaining the next angular velocity and the current moment is less than a first preset time threshold; When the next angular velocity is greater than or equal to the second threshold, and the time difference between the acquisition moment of the next angular velocity and the current moment is greater than or equal to the first preset time threshold, the acquisition of motion data is performed.

3. The method according to claim 1, characterized in that: When the combined acceleration at the current moment is less than the first threshold, the method further includes: Obtaining a next combined acceleration at a next moment, and determining whether the next combined acceleration is greater than a fourth threshold; When the next combined acceleration is greater than the fourth threshold, obtaining a combined angular velocity of the next combined acceleration at a next moment; The determining whether the combined angular velocity at the next moment is less than the second threshold value includes: determining whether the combined angular velocity at the next moment of the next combined acceleration is less than the second threshold value.

4. The method according to claim 3, characterized in that: The method further comprises: When the next combined acceleration is less than or equal to the fourth threshold, the combined acceleration at the next moment of the next combined acceleration is obtained, the combined acceleration at the next moment of the next combined acceleration is used as the next combined acceleration, and the determination of whether the next combined acceleration is greater than the fourth threshold is performed, until the next combined acceleration is greater than the fourth threshold, and the determination of whether the combined angular velocity at the next moment of the next combined acceleration is less than the second threshold is performed, wherein the time difference between the acquisition moment of the next combined acceleration and the current moment is less than the second preset time threshold; When the next combined acceleration is less than or equal to the fourth threshold, and the time difference between the acquisition moment of the next combined acceleration and the current moment is greater than or equal to the second preset time threshold, the motion data is acquired.

5. The method according to claim 1, characterized in that: Calculating the inclination angle according to the motion data includes: Acquire the acceleration parallel to the direction of the lower limb from the three-axis acceleration as the first acceleration; Calculate the square root of the acceleration of the remaining two axes; Calculating a ratio of the first acceleration to the square root; The tangent angle of the ratio is calculated, and the tangent angle is used as the inclination angle.

6. The method according to any one of claims 1 to 5, characterized in that The target time series features include variance features, mean features, skewness features, peak features and interquartile range features. The acquiring of motion data, and calculating the target time series features at the current moment according to the motion data at the current moment, include: Acquire multiple original motion data of various types within a preset time period corresponding to the current moment; Calculate the average value of the plurality of original motion data according to the type to obtain the average feature of each type; Calculate the variance of the plurality of original motion data according to the type to obtain the variance feature of each type; Finding data peaks from the plurality of original motion data corresponding to each type to obtain peak features of each type; The plurality of original motion data corresponding to each type are evenly divided into four parts according to the type from small to large, and the difference between the third part and the first part of each type is calculated to obtain the interquartile range feature of each type; The skewness features of the multiple original motion data of each type are calculated, and the skewness feature calculation formula is: Among them, SK k is the skewness of the original motion data of the kth class, is the i-th original motion data of the k-th category, n is the number of original motion data of each type, is the average value of n original motion data of the kth category, sd k is the standard deviation of the n original motion data of the kth class.

7. The method according to claim 6, characterized in that The motion sensor includes a first motion sensor located at the thigh and a second motion sensor located at the calf, the raw motion data includes a first group of raw motion data collected by the first motion sensor and a second group of raw motion data collected by the second motion sensor, the time series features include a first time series feature corresponding to the first group of raw motion data and a second time series feature corresponding to the second group of raw motion data, and the method further includes: A principal component analysis algorithm is used to perform feature screening on the time series features composed of the first time series features and the second time series features to obtain the target time series features of the motion data.

8. The method according to claim 1, characterized in that The calculation formula of the combined acceleration is: The calculation formula of the angular velocity is: Among them, a x 、a y 、a z are the accelerations of the x, y, and z axes, respectively, and w x 、w y 、w z are the angular velocities of the x, y, and z axes respectively.

9. A device for detecting a human fall, characterized in that: The device comprises: A data acquisition module is used to acquire motion data, wherein the motion data includes three-axis acceleration and three-axis angular velocity, and the motion data is the motion data of the lower limbs of the human body collected by the motion sensor; A data processing module, used for calculating the current moment's resultant acceleration, resultant angular velocity, inclination angle and a plurality of target time series features according to the motion data, wherein the inclination angle is the angle between the lower limb direction of the human body and the direction of gravity; wherein the target time series feature is a feature obtained by screening the time series feature, and the time series feature refers to a feature obtained by extracting the time series information of the motion data; A feature judgment module, used to judge whether the human behavior is abnormal according to the multiple target time series features; a fall judgment module, configured to judge whether the human body is in a fall state according to the combined acceleration, the combined angular velocity and the inclination angle when the behavior of the human body is judged to be abnormal; The determining whether the human behavior is abnormal according to the multiple target time series features comprises: inputting the multiple target time series features into a trained behavior detection model to obtain corresponding detection results, wherein the detection results are abnormal or normal; The motion data includes motion data at multiple moments, and judging whether the human body is in a falling state according to the combined acceleration, the combined angular velocity, and the inclination angle includes: Determine whether the combined acceleration at the current moment is less than a first threshold; When the resultant acceleration at the current moment is less than the first threshold, determining whether the next resultant angular velocity at the next moment is less than the second threshold; When the next angular velocity is less than the second threshold, determining whether the inclination angle at the next moment is greater than a third threshold; When the inclination angle is greater than a third threshold, it is determined that the human body is in a falling state.

10. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.