Method, device, wearable device and storage medium for detecting user falling into water
By using motion sensors and water immersion sensors in wearable devices, combined with acceleration and angular velocity data, it can accurately determine the user's fall or falling state, solving the problem of misjudgment in the existing technology and achieving timely detection and detection of the user's dangerous state. Accurate judgment ensures the safety of users' lives.
Patent Information
- Application Number
- CN202110946687.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-17
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2041-08-17
AI Technical Summary
The existing technology cannot accurately distinguish whether the user has actually fallen into the water, and it is easy to cause drowning accidents due to misjudgment, and cannot judge the falling into the water behavior in a timely manner, affecting the user's life safety.
Wearable devices are equipped with motion sensors, including accelerometers and gyroscopes. By acquiring motion data, extracting characteristics of acceleration and angular velocity, we can determine the user's fall or falling into the water status, and combine it with water immersion sensors and alarm devices to determine the drowning or splashing status. , to achieve accurate dangerous state detection.
Through the comprehensive judgment of acceleration and angular velocity data, the user's fall or falling into the water status is promptly detected to ensure the safety of the user's life. The drowning or splashing status is confirmed through the data of the water immersion sensor to improve the accuracy and timeliness of detection.
Smart Images

Figure CN115880860B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent detection technology, and in particular to a method, device, wearable device and storage medium for detecting a user falling into water. Background Art
[0002] Falling into water without timely rescue is one of the main causes of drowning accidents. Ordinary water detection solutions can only determine whether the detection device has contacted water. For example, if a child places a wearable device in a basin of water, it will cause false detection and make it impossible to distinguish whether the child is really in danger of falling into water. Therefore, it is crucial to reasonably judge the behavior of falling into water to protect the life safety of users. Summary of the invention
[0003] The main purpose of the present invention is to provide a method, device, computer equipment and storage medium for detecting a user falling into water, which can solve the problems in the prior art.
[0004] To achieve the above object, the first aspect of the present invention provides a method for detecting a user falling into water, the method being applied to a wearable device, the wearable device comprising a motion sensor, the motion sensor comprising an accelerometer and a gyroscope, the method comprising:
[0005] Acquire motion data detected by the motion sensor, wherein the motion data includes acceleration data detected by the accelerometer and angular velocity data detected by the gyroscope;
[0006] Extracting features from the acceleration data and the angular velocity data respectively to obtain target motion features, wherein the target motion features include the acceleration vector sum of each axis and the attitude angle of each axis, wherein the axis refers to each coordinate axis included in the user's own coordinate system;
[0007] A first user state is determined according to the target motion feature, where the first user state includes a falling state or a falling-in-water state.
[0008] In a feasible implementation, determining the first user state according to the target motion feature includes:
[0009] If the acceleration vector sum is less than a preset acceleration threshold and lasts for a preset time, and the attitude angles of each axis are less than or equal to a preset attitude angle threshold and last for a preset time, then determining that the first user state is a falling-in-water state;
[0010] If the sum of the acceleration vectors is less than a preset acceleration threshold and does not last for the preset time period, and any of the posture angles of each axis is less than or equal to a preset posture angle threshold and lasts for a preset time period, then it is determined that the first user state is a fall state, and the posture angles include a pitch angle, a yaw angle, and a roll angle.
[0011] In a feasible implementation, extracting features from the acceleration data and the angular velocity data to obtain target motion features includes:
[0012] Obtain the peak point of acceleration in each coordinate axis and the peak point of angular velocity in each axis;
[0013] Using the peak points of the accelerations in the axes of the coordinates and a preset combined acceleration algorithm, the acceleration vector sums in the axes of the coordinates are obtained;
[0014] The attitude angle of each axis is obtained by using the peak point of the angular velocity of each axis and a preset attitude angle algorithm.
[0015] The wearable device further includes a water immersion sensor, and the determining of the first user state according to the target motion feature further includes:
[0016] When the first user state is a water-falling state, acquiring water immersion data collected by the water immersion sensor, the water immersion data including water immersion depth and water immersion time;
[0017] If the immersion depth is greater than or equal to the preset safety water depth, and the immersion time exceeds the preset water contact time, then the second user state is determined to be a drowning state;
[0018] If the immersion depth is greater than or equal to the preset safety water depth and the immersion time does not exceed the preset water contact time, or if the immersion depth is less than the preset safety water depth and the immersion time exceeds the preset water contact time, the second user state is determined to be the water playing state.
[0019] In a feasible implementation, the wearable device further includes an alarm device, and the determining of the first user state according to the target motion characteristic further includes:
[0020] If the first user status is a water-falling status, the alarm device is controlled to give an alarm and water-falling information is sent to a preset terminal, wherein the water-falling information includes the water-falling location and the water-falling duration;
[0021] If the first user state is a fall state, the alarm device is controlled to warn, and the fall information is sent to a preset terminal, wherein the fall information includes the fall location and the fall time.
[0022] In a feasible implementation, the wearable device further includes a light shielding sensing device, and the acquiring of the motion data detected by the motion sensor further includes:
[0023] Obtaining the sensing capacitance detected by the shading sensing device;
[0024] Determining whether the user is wearing the wearable device correctly according to the sensing capacitance and a preset wearing threshold;
[0025] If the sensing capacitance is equal to the preset wearing threshold, it is determined that the user is wearing the wearable device correctly, and the step of obtaining the motion data detected by the motion sensor is continued;
[0026] If the sensing capacitance is greater than or less than a preset wearing threshold, it is determined that the user wears the wearable device incorrectly, and the user is prompted to wear the wearable device correctly.
[0027] To achieve the above object, the second aspect of the present invention provides a device for detecting a user falling into water, the device is applied to the wearable device, the wearable device includes a motion sensor, the motion sensor includes an accelerometer and a gyroscope, and the device includes:
[0028] A data acquisition module: used to acquire motion data detected by the motion sensor, wherein the motion data includes acceleration data detected by the accelerometer and angular velocity data detected by the gyroscope;
[0029] Feature extraction module: used to extract features from the acceleration data and angular velocity data to obtain target motion features, wherein the target motion features include the acceleration vector sum of each axis and the attitude angle of each axis, wherein the axis refers to each coordinate axis included in the user's own coordinate system;
[0030] State determination module: used to determine the first user state according to the target motion characteristics, the first user state including the falling state and the falling into water state.
[0031] To achieve the above-mentioned purpose, the third aspect of the present invention provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the processor executes the steps shown in the first aspect and any feasible implementation method.
[0032] To achieve the above-mentioned purpose, the fourth aspect of the present invention provides a wearable device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps shown in the first aspect and any feasible implementation method.
[0033] The embodiments of the present invention have the following beneficial effects:
[0034] The embodiment of the present invention discloses a method for detecting a user falling into water. The method is applied to a wearable device, the wearable device includes a motion sensor, the motion sensor includes an accelerometer and a gyroscope, and the method includes: obtaining motion data detected by the motion sensor, the motion data includes acceleration data detected by the accelerometer and angular velocity data detected by the gyroscope; performing feature extraction on the acceleration data and the angular velocity data to obtain target motion features, the target motion features include the acceleration vector sum of each axis and the attitude angle of each axis, the axis refers to each coordinate axis included in the user's own coordinate system; determining a first user state according to the target motion features, the first user state includes a falling state or a falling-in-water state. The user state is comprehensively judged by the acceleration and angular velocity data of the motion sensor, and then the user state is determined to be a falling state or a falling-in-water state. When the user state is in the above-mentioned dangerous state, it can be detected in time to ensure the user's life safety. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] 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, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0036] in:
[0037] Figure 1 Schematic diagram of a flow chart of a method for detecting a user falling into water according to an embodiment of the present invention;
[0038] Figure 2 Another schematic diagram of a flow chart of a method for detecting a user falling into water according to an embodiment of the present invention;
[0039] Figure 3 is a structural block diagram of a device for detecting a user falling into water in an embodiment of the present invention;
[0040] Figure 4 4 is a structural block diagram of a computer device in an embodiment of the present invention. DETAILED DESCRIPTION
[0041] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0042] Figure 1FIG. 1 is a flow chart of a method for detecting a user falling into water in an embodiment. Figure 1 The method for detecting a user falling into water is applied to a wearable device, wherein the wearable device includes a motion sensor, and the method includes the following steps:
[0043] 101. Acquire motion data detected by the motion sensor, where the motion data includes acceleration data detected by the accelerometer and angular velocity data detected by the gyroscope;
[0044] It should be noted that the acquisition method of the motion data detected by the motion sensor is to obtain in real time or when the motion data is abnormal, intercept the motion data segment containing the abnormal motion data, and the abnormal data segment can be the motion data of the user within a preset time. Wherein, the motion data refers to the action data corresponding to the user wearing the wearable device. The motion sensor includes but is not limited to a gyroscope and an accelerometer. The embodiment of the present invention uses a three-axis gyroscope and a three-axis accelerometer integrated as an example of a motion sensor. Further, the motion data includes but is not limited to the three-axis force data detected by the three-axis accelerometer included in the motion sensor, the three-axis torque data, the three-axis acceleration data, and the three-axis angular velocity data detected by the three-axis gyroscope included in the motion sensor. Wherein, the axis refers to each coordinate axis corresponding to the user's own coordinate system, that is, the X-axis, the Y-axis and the Z-axis. By setting the device coordinate system in the three-axis accelerometer and the three-axis gyroscope to correspond to the user's own coordinate system, the motion sensor with an integrated three-axis accelerometer and a three-axis gyroscope can be used to effectively detect the user's behavior to achieve effective conversion judgment.
[0045] 102. Extract features from the acceleration data and the angular velocity data to obtain target motion features, where the target motion features include the acceleration vector sum of each axis and the attitude angle of each axis, where the axis refers to each coordinate axis included in the user's own coordinate system;
[0046] It should be noted that by performing data analysis on the acceleration data and then extracting the target motion features corresponding to the acceleration data, and by performing data analysis on the angular velocity data and then extracting the target motion features corresponding to the angular velocity data, further, the target motion features corresponding to the acceleration data include the acceleration vector sum of each coordinate axis, and the target motion features corresponding to the angular velocity data include the attitude angle of each axis. The attitude angle may refer to the angular relationship between the axis of the user's own coordinate system and the earth. The attitude angle includes the pitch angle, the yaw angle, and the roll angle, wherein the pitch angle is the angle formed by the Y-axis in the human body coordinate system and the horizontal direction, the yaw angle is the angle formed by the X-axis in the human body coordinate system and the horizontal direction, and the yaw angle is the angle formed by the Z-axis in the human body coordinate system and the horizontal direction.
[0047] Among them, the target motion feature can be used to reflect the user's current motion state, including running, walking, standing still, crawling, swimming, etc.
[0048] 103. Determine a first user state according to the target motion characteristics, where the first user state includes a falling state or a falling-into-water state.
[0049] It should be noted that the first user state of the user can be judged through the acceleration vector sum of each coordinate axis and the posture angle of each axis included in the target motion characteristics, and then it can be determined that the user is in a falling state or a falling into water state.
[0050] The embodiment of the present invention discloses a method for detecting a user falling into water. The method is applied to a wearable device, the wearable device includes a motion sensor, the motion sensor includes an accelerometer and a gyroscope, and the method includes: obtaining motion data detected by the motion sensor, the motion data includes acceleration data detected by the accelerometer and angular velocity data detected by the gyroscope; performing feature extraction on the acceleration data and the angular velocity data to obtain target motion features, the target motion features include the acceleration vector sum of each axis and the attitude angle of each axis, the axis refers to each coordinate axis included in the user's own coordinate system; determining a first user state according to the target motion features, the first user state includes a falling state or a falling-in-water state. The user state is comprehensively judged by the acceleration and angular velocity data of the motion sensor, and then the user state is determined to be a falling state or a falling-in-water state. When the user state is in the above-mentioned dangerous state, it can be detected in time to ensure the user's life safety.
[0051] like Figure 2 As shown, in one embodiment, another flow chart of a method for detecting a user falling into water is provided. The method can be applied to wearable devices, and the method for detecting a user falling into water specifically includes the following steps:
[0052] 201. Acquire motion data detected by the motion sensor, wherein the motion data includes acceleration data detected by the accelerometer and angular velocity data detected by the gyroscope;
[0053] It should be noted that Figure 2 The content shown in step 201 in Figure 1 The contents of step 101 are similar, and will not be described here to avoid repetition. For details, please refer to the aforementioned Figure 1 The content of step 101 is shown.
[0054] In a feasible implementation, in order to obtain the user's real motion data, the wearable device may further include a shading sensing device, and the shading sensing device is used to detect whether the user wears the wearable device correctly. Further, before step 201, the following may be included:
[0055] i. Obtaining the sensing capacitance detected by the shading sensing device;
[0056] In a feasible implementation, the wearable device may be a smart watch, and the shading sensing device may be disposed on the back of the dial, wherein the back of the dial refers to the watch surface in contact with the user's arm, and the shading sensing device may further be a capacitive sensor, and the induced capacitance detected by the capacitive sensor is used to detect whether the user is wearing the watch correctly. The induced capacitance is used to reflect the degree of contact between the user and the wearable device, including but not limited to indicating the contact area.
[0057] ii. Determine whether the user is wearing the wearable device correctly based on the sensing capacitance and the preset wearing threshold; wherein step ii includes: if the sensing capacitance is equal to the preset wearing threshold, it is determined that the user is wearing the wearable device correctly, and then continue to execute the step of obtaining the motion data detected by the motion sensor; if the sensing capacitance is greater than or less than the preset wearing threshold, it is determined that the user is wearing the wearable device incorrectly, and then prompt the user to wear the wearable device correctly.
[0058] It should be noted that the sensing capacitance detected by the shading sensing device and the preset wearing threshold are used to determine whether the user is wearing the device correctly, wherein the preset wearing threshold may be the maximum value of the sensing capacitance detectable by the shading sensing device. Therefore, if the sensing capacitance detected by the shading sensing device reaches the maximum value of the sensing capacitance detectable by the shading sensing device, it may indicate that the user is wearing the device correctly; if the sensing capacitance detected by the shading sensing device does not reach the maximum value of the sensing capacitance detectable by the shading sensing device, it may indicate that the user is not wearing the device correctly; in addition, in order to adapt to the different body shapes of each user, the preset wearing threshold may be adaptively set based on the user's physiological parameters, by inputting the user's own physiological parameters, the physiological parameters include but are not limited to height, weight, The user's arm morphology data is comprehensively judged based on the body fat percentage and the three measurements, and then the user's arm morphology data is inferred. The arm morphology data includes but is not limited to the arm circumference and arm width and other structural parameters. The personalized preset wearing threshold is obtained through the arm morphology data of different users, and the preset wearing threshold can also be the sensing capacitance threshold related to the user's arm morphology data. If the sensing capacitance detected by the shading sensing device reaches the sensing capacitance threshold related to the user's arm morphology data, it can be indicated that the user is wearing it correctly; if the sensing capacitance detected by the shading sensing device does not reach the sensing capacitance threshold related to the user's arm morphology data, it can be indicated that the user is not wearing it correctly. Then, when the user is wearing it correctly, the user's motion data can be obtained to realize the real judgment of the user's state. If it is worn incorrectly, that is, it is not worn correctly, the user can be prompted, and the user can be prompted to wear it correctly through voice, flashing, vibration and other prompting means.
[0059] 202. Extract features from the acceleration data and the angular velocity data to obtain target motion features, where the target motion features include the acceleration vector sum of each axis and the attitude angle of each axis, where the axis refers to each coordinate axis included in the user's own coordinate system;
[0060] It should be noted that Figure 2 The content shown in step 202 in Figure 1 The contents of step 102 are similar, and will not be described here to avoid repetition. For details, please refer to the aforementioned Figure 1 The content of step 102 is shown.
[0061] In a feasible implementation, the motion data includes real-time behavior data of the user, and therefore, the motion data detected when a possible falling behavior or falling into water behavior occurs can be extracted to determine the first user state of the user, and then step 202 may include the following steps:
[0062] A. Obtain the peak point of acceleration in each coordinate axis and the peak point of angular velocity in each axis;
[0063] It can be understood that acceleration data includes acceleration, and angular velocity data includes angular velocity. Furthermore, when the user's behavior changes, such as changing from stillness to walking, and changes in gait during walking, it will cause changes in acceleration and angular velocity, and then produce peak points of change. Each peak point can represent the behavioral state of a user.
[0064] B. Utilizing the peak points of the accelerations in each coordinate axis and a preset combined acceleration algorithm, the sum of the acceleration vectors in each coordinate axis is obtained;
[0065] It can be understood that although each peak point can represent a user's behavioral state, any behavior can occur in any direction. Therefore, in order to accurately identify the user's first user state, that is, the falling state or the water state, it is necessary to perform vector summation of the acceleration to obtain the acceleration vector sum that can represent the user's true state.
[0066] Exemplarily, the preset combined acceleration algorithm can be calculated by the following formula:
[0067]
[0068] In the formula, a z represents the acceleration vector and a x Indicates the acceleration corresponding to the X-axis, a y Indicates the acceleration corresponding to the Y axis, a z Indicates the acceleration corresponding to the Z axis.
[0069] Furthermore, no matter the peak point of acceleration in any axis is obtained, the acceleration in other axes corresponding to the peak point at the same detection time is further obtained, and the acceleration vector sum of each axis corresponding to the same detection time is calculated to obtain the acceleration vector sum of each coordinate axis. It can be understood that the axes mentioned in this embodiment are the axes corresponding to each coordinate axis in the human body coordinate system corresponding to the user.
[0070] C. Utilize the peak point of the angular velocity of each axis and the preset attitude angle algorithm to obtain the attitude angle of each axis.
[0071] It is understandable that when the user is in different behavior states, the angle between the user and the horizontal direction is different, wherein the angle between the user and the horizontal direction can be expressed as the attitude angle. Then, by calculating the peak point of the angular velocity, the attitude angles in each axis can be obtained, and the attitude angles include the pitch angle, the yaw angle, and the roll angle, wherein the pitch angle is the angle between the Y axis in the human coordinate system and the horizontal direction, the yaw angle is the angle between the X axis in the human coordinate system and the horizontal direction, and the yaw angle is the angle between the Z axis in the human coordinate system and the horizontal direction.
[0072] Exemplarily, the calculation method of the attitude angle, i.e., the preset attitude angle algorithm, includes but is not limited to the Euler angle method, the quaternion method, the equivalent rotation vector method, the Rodrigues parameter method, the direction cosine matrix method, etc., which are not specifically limited in this example.
[0073] 203. If the acceleration vector sum is less than a preset acceleration threshold and lasts for a preset time, and the attitude angles of each axis are less than or equal to a preset attitude angle threshold and last for a preset time, it is determined that the first user state is a water fall state, and the attitude angles include a pitch angle, a yaw angle, and a roll angle;
[0074] It should be noted that when the user is not in an extraordinary sports behavior, the acceleration changes regularly and the acceleration vector sum is a gravity acceleration. When the user is in an extraordinary sports behavior such as falling or falling into water, the acceleration changes dramatically, and the acceleration vector sum is less than a gravity acceleration due to the external force. Therefore, the change of the acceleration vector sum can reflect the change of the human body's motion state, so the preset acceleration threshold can be a gravity acceleration, and then when the acceleration vector sum of the peak point characterizing the change of the user's behavior state is less than a gravity acceleration, it indicates that the user is in an extraordinary sports behavior such as falling or falling into water. Further, if it is a fall, when the user contacts the falling ground, it will be in a special stable state at this time, and then the acceleration vector sum will be restored to a gravity acceleration. If it is a fall into water, when the user falls into the water, he will be subject to buoyancy at this time, and then the acceleration vector sum will still be less than a gravity acceleration, and cannot be restored to a gravity acceleration. Therefore, the duration of the acceleration vector sum less than a gravity acceleration is used to distinguish extraordinary sports behaviors such as falling or falling into water. When the acceleration vector sum is less than the preset acceleration threshold and lasts for a preset time, it indicates that the first user is in a water state; when the acceleration vector sum is less than the preset acceleration threshold and does not last for a preset time, it indicates that the first user is in a fall state, where the preset time can be 1s, 2s, etc. At the same time, the auxiliary judgment of the posture angle increases the credibility of the judgment result.
[0075] Specifically, the human body posture angle can represent the human body posture. Although the human body posture varies, some conventional posture angles are difficult for users to actively make. For example, the pitch angle is 0° when stationary, and it is difficult for ordinary people to reach below 30° in motion; the yaw angle is 90° when stationary, and it is difficult for ordinary people to reach below 0° in motion; the roll angle is 0° when stationary, and it is difficult for ordinary people to reach below 40°. Furthermore, different preset posture angle thresholds can be set for the posture angles corresponding to each axis, thereby increasing the judgment conditions for the user's first user state, so that the authenticity of the judgment result is increased. Among them, the preset posture angle threshold corresponding to the pitch angle can be 30°; the preset posture angle threshold corresponding to the yaw angle can be 0°; and the preset posture angle threshold corresponding to the roll angle can be 40°. In an optional implementation method, each posture angle corresponds to a preset posture angle threshold of 30°, which is not limited to this example.
[0076] 204. If the acceleration vector sum is less than a preset acceleration threshold and does not last for the preset time period, and any angle of the posture angles of each axis is less than or equal to a preset posture angle threshold and lasts for a preset time period, it is determined that the first user state is a fall state.
[0077] It is understandable that when the user falls to the ground, he or she will eventually come into contact with the ground and remain relatively still.
[0078] In a feasible implementation, the preset acceleration threshold includes an acceleration vector and will first be less than the preset acceleration threshold and then equal to the preset acceleration threshold. Therefore, the less than relationship cannot be maintained for a preset time period. Therefore, at this time, the first user state is a fall state.
[0079] Furthermore, the wearable device also includes an alarm device, then step 203 or step 204, further includes: if the first user status is a falling state, then the alarm device is controlled to warn, and the falling information is sent to a preset terminal, and the falling information includes the falling location and the falling duration; if the first user status is a falling state, then the alarm device is controlled to warn, and the falling information is sent to the preset terminal, and the falling information includes the falling location and the falling time.
[0080] It should be noted that the falling position and the falling position can be obtained through the global positioning system (GPS), and the falling duration can be measured by taking the time when the rebound force is generated when entering the water as the starting point of the falling duration, and the subsequent duration can be measured. The falling moment can be obtained by the acceleration vector and the time when it returns to a gravity acceleration.
[0081] In a feasible implementation, the wearable device further includes a water immersion sensor, then step 203 or step 204 further includes:
[0082] a. When the first user state is a water-falling state, acquiring water immersion data collected by the water immersion sensor, the water immersion data including water immersion depth and water immersion time;
[0083] The water immersion sensor can detect whether there is water in the environment and obtain the immersion depth. The immersion time can also be obtained by recording the time of the first contact with water.
[0084] b. If the immersion depth is greater than or equal to the preset safety water depth, and the immersion time exceeds the preset water contact time, determining that the second user state is a drowning state;
[0085] c. If the immersion depth is greater than or equal to the preset safety water depth and the immersion time does not exceed the preset water contact time, or if the immersion depth is less than the preset safety water depth and the immersion time exceeds the preset water contact time, the second user state is determined to be the water playing state.
[0086] It is understandable that each time the water immersion sensor re-contacts water, it will re-record the water depth and water contact time. Therefore, if the user is swimming or playing in the water, the water immersion sensor installed on the wearable device will no longer be in contact with the water due to the change in the action state. Therefore, the recording state of the recorded time is intermittent. In the drowning state, the water immersion sensor installed on the wearable device continues to contact the water. Therefore, the recording state of the recorded time is continuous, and the user's second state can be judged as playing in the water or drowning by the immersion time and immersion depth.
[0087] Further, after determining the second user status of the user, the first user status can be updated and the updated first user status, i.e., the second user status, can be sent to a preset terminal, and when the second user status is a drowning state, corresponding drowning information can be sent to the preset terminal. The drowning information is used to indicate that the user is drowning, and can include the drowning location and drowning time.
[0088] The embodiment of the present invention discloses a method for detecting a user falling into water. The method is applied to a wearable device, and the wearable device includes a motion sensor, a water immersion sensor, and an alarm device. The method includes: obtaining motion data detected by the motion sensor, and the motion data includes acceleration data and angular velocity data; extracting features from the acceleration data and the angular velocity data to obtain target motion features, and the target motion features include the acceleration vector sum of each coordinate axis and the attitude angle of each axis; determining a first user state according to the target motion features, and the first user state includes a fall state and a fall state. The user state is comprehensively judged by the acceleration and angular velocity data of the motion sensor, and then the first user state is determined to be a fall state or a fall state. When the first user state appears in the above dangerous state, it can be detected in time to ensure the user's life safety. And further judgment is made by the water immersion data of the water immersion sensor to improve the authenticity of the user state detection. A warning is issued by the warning device to ensure the user's life safety.
[0089] See also Figure 3 , Figure 3 This is a structural block diagram of a device for detecting a user falling into water in an embodiment of the present invention. The device is applied to the wearable device. The wearable device includes a motion sensor. The motion sensor includes an accelerometer and a gyroscope. The device includes:
[0090] Data acquisition module 301: used to acquire motion data detected by the motion sensor, wherein the motion data includes acceleration data detected by the accelerometer and angular velocity data detected by the gyroscope;
[0091] Feature extraction module 302: used to extract features from the acceleration data and angular velocity data to obtain target motion features, wherein the target motion features include the acceleration vector sum of each axis and the posture angle of each axis, wherein the axis refers to each coordinate axis included in the user's own coordinate system;
[0092] The state determination module 303 is used to determine the first user state according to the target motion characteristics, and the first user state includes a falling state and a falling into water state.
[0093] It should be noted that Figure 3 The functions of each module in the device shown are Figure 1 The contents of the steps in the method are similar, and are not described here to avoid repetition. For details, please refer to the aforementioned Figure 1 The content of the steps in the method.
[0094] The embodiment of the present invention discloses a device for detecting a user falling into water. The device is applied to a wearable device. The wearable device includes a motion sensor, and the motion sensor includes an accelerometer and a gyroscope. The device includes: a data acquisition module: used to acquire motion data detected by the motion sensor, and the motion data includes acceleration data detected by the accelerometer and angular velocity data detected by the gyroscope; a feature extraction module: used to extract features from the acceleration data and angular velocity data to obtain target motion features, and the target motion features include the acceleration vector sum of each axis and the attitude angle of each axis, and the axis refers to each coordinate axis included in the user's own coordinate system; a state determination module: used to determine a first user state according to the target motion features, and the first user state includes a falling state and a falling state. The user state is comprehensively judged by the acceleration and angular velocity data of the motion sensor, and then the user state is determined to be a falling state or a falling state. When the user state is in the above-mentioned dangerous state, it can be detected in time to ensure the user's life safety.
[0095] Figure 4 FIG. 1 shows an internal structure diagram of a computer device in an embodiment. The computer device may be a terminal or a server. Figure 4 As shown, the computer device includes a processor, a memory and a network interface connected via a system bus. 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. When the computer program is executed by the processor, the processor may implement each step in the above method embodiment. The internal memory may also store a computer program. When the computer program is executed by the processor, the processor may implement each step in the above method embodiment. Those skilled in the art will understand that Figure 4The 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.
[0096] In one embodiment, a computer device is provided, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the following steps: Figure 1 or Figure 2 Any of the steps of the method shown.
[0097] In one embodiment, a computer-readable storage medium is provided, which stores a computer program. When the computer program is executed by a processor, the processor performs the following steps: Figure 1 or Figure 2 Any of the steps of the method shown.
[0098] 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).
[0099] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0100] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for detecting a user falling into water, characterized in that: The method is applied to a wearable device, the wearable device includes a motion sensor, the motion sensor includes an accelerometer and a gyroscope, and the method includes: Acquire motion data detected by the motion sensor, wherein the motion data includes acceleration data detected by the accelerometer and angular velocity data detected by the gyroscope; Extracting features from the acceleration data and the angular velocity data to obtain target motion features, wherein the target motion features include the acceleration vector sum of each axis and the attitude angle of each axis, where the axis refers to each coordinate axis included in the user's own coordinate system; Determine a first user state according to the target motion feature, where the first user state includes a falling state or a falling-in-water state; Wherein, determining the first user state according to the target motion feature includes: If the acceleration vector sum is less than a preset acceleration threshold value and lasts for a preset time period, and the attitude angles of each axis are less than or equal to a preset attitude angle threshold value and last for a preset time period, it is determined that the first user state is a falling water state, and the attitude angles include a pitch angle, a yaw angle, and a roll angle; If the acceleration vector sum is less than a preset acceleration threshold and does not last for the preset time period, and any angle of the posture angles of each axis is less than or equal to a preset posture angle threshold and lasts for a preset time period, then the first user state is determined to be a fall state; The acceleration vector sum is obtained by a preset combined acceleration algorithm, and the preset combined acceleration algorithm is as follows: In the formula, represents the acceleration vector and, It represents the acceleration corresponding to the X-axis direction. Indicates the acceleration corresponding to the Y axis, Indicates the acceleration corresponding to the Z axis.
2. The method according to claim 1, characterized in that: The extracting features of the acceleration data and the angular velocity data to obtain target motion features includes: Obtain the peak point of acceleration in each coordinate axis and the peak point of angular velocity in each axis; Using the peak points of the accelerations in the axes of the coordinates and a preset combined acceleration algorithm, the acceleration vector sums in the axes of the coordinates are obtained; The attitude angle of each axis is obtained by using the peak point of the angular velocity of each axis and a preset attitude angle algorithm.
3. The method according to claim 1, characterized in that: The wearable device further includes a water immersion sensor, and the determining of the first user state according to the target motion feature further includes: When the first user state is a water-falling state, acquiring water immersion data collected by the water immersion sensor, the water immersion data including water immersion depth and water immersion time; If the immersion depth is greater than or equal to the preset safety water depth, and the immersion time exceeds the preset water contact time, then the second user state is determined to be a drowning state; If the immersion depth is greater than or equal to the preset safety water depth and the immersion time does not exceed the preset water contact time, or if the immersion depth is less than the preset safety water depth and the immersion time exceeds the preset water contact time, the second user state is determined to be the water playing state.
4. The method according to claim 1, characterized in that: The wearable device further includes an alarm device, and the first user state is determined according to the target motion characteristics, and then further includes: If the first user status is a water-falling status, the alarm device is controlled to give an alarm and water-falling information is sent to a preset terminal, wherein the water-falling information includes the water-falling location and the water-falling duration; If the first user state is a fall state, the alarm device is controlled to warn, and the fall information is sent to a preset terminal, wherein the fall information includes the fall location and the fall time.
5. The method according to claim 1, characterized in that: The wearable device further includes a shading sensing device, and the acquiring of the motion data detected by the motion sensor further includes: Obtaining the sensing capacitance detected by the shading sensing device; Determining whether the user is wearing the wearable device correctly according to the sensing capacitance and a preset wearing threshold; If the sensing capacitance is equal to the preset wearing threshold, it is determined that the user is wearing the wearable device correctly, and the step of obtaining the motion data detected by the motion sensor is continued; If the sensing capacitance is greater than or less than a preset wearing threshold, it is determined that the user wears the wearable device incorrectly, and the user is prompted to wear the wearable device correctly.
6. A device for detecting a user falling into water, characterized in that: The device is applied to a wearable device, the wearable device includes a motion sensor, the motion sensor includes an accelerometer and a gyroscope, and the device includes: A data acquisition module: used to acquire motion data detected by the motion sensor, wherein the motion data includes acceleration data detected by the accelerometer and angular velocity data detected by the gyroscope; Feature extraction module: used to extract features from the acceleration data and angular velocity data to obtain target motion features, wherein the target motion features include the acceleration vector sum of each axis and the attitude angle of each axis, wherein the axis refers to each coordinate axis included in the user's own coordinate system; A state determination module: used to determine a first user state according to the target motion characteristics, wherein the first user state includes a falling state and a falling into water state; Wherein, the state determination module is specifically used to determine that the first user state is a falling state if the sum of the acceleration vectors is less than a preset acceleration threshold and lasts for a preset time, and the attitude angles of each axis are less than or equal to a preset attitude angle threshold and last for a preset time, and the attitude angles include a pitch angle, a yaw angle, and a roll angle; if the sum of the acceleration vectors is less than a preset acceleration threshold and does not last for the preset time, and any angle of the attitude angles of each axis is less than or equal to a preset attitude angle threshold and lasts for a preset time, then the first user state is determined to be a falling state; The acceleration vector sum is obtained by a preset combined acceleration algorithm, and the preset combined acceleration algorithm is as follows: In the formula, represents the acceleration vector and, It represents the acceleration corresponding to the X-axis direction. Indicates the acceleration corresponding to the Y axis, Indicates the acceleration corresponding to the Z axis.
7. A wearable device, comprising a memory and a processor, characterized in that: The memory stores a computer program, and when the computer program is executed by the processor, the processor is caused to perform the steps of the method according to any one of claims 1 to 5.
8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the processor is caused to perform the steps of the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Fall detection wrist watch and fall detection method
CN104055518A
Falling-into-water personnel positioning and vital sign detecting system
CN109903858A
Fall detection method and device and computer readable storage medium
CN111839527A
Drowning detection device and method for fusion detection of swimming strokes
CN115382192A
Fall sensing device worn in manner of being hooked on physical body, method thereof, integrated fall accident managing system and fall accident managing method using same
KR1020140100076A
