Method, device, processor, water heater and monitoring system for identifying posture
Radar equipment and multiple classification models are used to analyze user data in the bathroom to identify whether the user is in a fall state, and provide timely warnings in combination with the alarm device, which solves the problem that it is difficult to detect falls in time for users living alone at home and improves safety. .
Patent Information
- Application Number
- CN202011290096.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-17
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2040-11-17
AI Technical Summary
It is difficult for users living alone, especially the elderly and pregnant women, to detect and warn in time when an accident occurs at home, resulting in delayed rescue. Existing technology cannot effectively monitor falls in the bathroom.
User data is collected through radar equipment, and multiple classification models are used to analyze the data, including the first classification model and the second classification model, which respectively extract the three-dimensional coordinate position, speed and acceleration, and calculate the posture threshold to determine whether the user is in a fall state. Combined with alarm devices to provide timely warning.
It improves the accuracy of identifying the user's fall status, reduces the risk of untimely rescue due to a fall for users living alone, and achieves effective protection for the elderly, children and pregnant women.
Smart Images

Figure CN112698288B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method, device, processor, water heater and monitoring system for identifying posture. Background Art
[0002] With the development of society, the number of people living alone has increased dramatically. However, when an accident occurs to a single user, rescue is often delayed due to untimely discovery, which increases the risk of living alone. In addition, due to the increasingly serious aging population, the number of elderly people living alone is also increasing. However, due to physical reasons, the elderly often have more accidents when living alone. In addition to the elderly, pregnant women are also those who need special protection. Due to their limited mobility, pregnant women also need timely rescue if they fall.
[0003] Normally, due to the user's sensitivity to the privacy of the home environment, traditional cameras are usually not installed in the bathroom to avoid exposing the user's privacy. In this case, it is often impossible to detect and warn in time when an accident occurs in the bathroom. Summary of the invention
[0004] The purpose of the embodiments of the present invention is to provide a method, device, processor, water heater and bathroom monitoring system for identifying postures, which can effectively identify whether a user is in a falling state.
[0005] In order to achieve the above object, the present invention provides a method for recognizing gestures in a first aspect, comprising:
[0006] respectively selecting a first quantity of first target data and a second quantity of second target data from radar data associated with the user;
[0007] inputting the first target data and the second target data into the first classification model and the second classification model respectively;
[0008] Obtain a first posture recognition result output by the first classification model and a second posture recognition result output by the second classification model;
[0009] When both the first posture recognition result and the second posture recognition result are falling postures, it is determined that the user is in the falling posture.
[0010] In an embodiment of the present invention, the first number is smaller than the second number.
[0011] In an embodiment of the present invention, the method further comprises:
[0012] Before inputting the first target data and the second target data into the first classification model and the second classification model respectively, correcting the first target data and the second target data;
[0013] Performing filtering processing on the corrected first target data and the second target data;
[0014] Selecting data within a first preset sequence number interval from the first target data after filtering and inputting them into a first classification model;
[0015] Data within a second preset sequence number interval is selected from the second target data after filtering and input into the second classification model.
[0016] In an embodiment of the present invention, correcting the first target data and the second target data includes:
[0017] Get the installation angle of the radar device relative to the horizontal plane;
[0018] Determine the correction angle according to the installation angle;
[0019] The coordinates corresponding to the first target data and the second target data are rotated according to the correction angle to obtain the corrected first target data and the second target data.
[0020] In an embodiment of the present invention, obtaining a first gesture recognition result output by a first classification model includes:
[0021] The three-dimensional coordinate position and the speed in the three-dimensional direction of each frame of data in the first target data are extracted by the first classification model, wherein the three-dimensional coordinate position includes the horizontal axis coordinate position, the vertical axis coordinate position and the longitudinal axis coordinate position, and the speed in the three-dimensional direction includes the horizontal axis speed, the vertical axis speed and the longitudinal axis speed;
[0022] The synthesis speed of each frame of data in the two-dimensional plane formed by the horizontal axis and the vertical axis is determined by the horizontal axis speed and the vertical axis speed;
[0023] Determine the acceleration in the three-dimensional direction according to the velocity in the three-dimensional direction, where the acceleration in the three-dimensional direction includes the horizontal axis acceleration, the vertical axis acceleration and the longitudinal axis acceleration;
[0024] The three-dimensional coordinate position, the speed in the three-dimensional direction, the acceleration in the three-dimensional direction and the composite speed are combined into a first multi-dimensional vector array;
[0025] Determine a corresponding first posture threshold according to the first multidimensional vector array, the first preset coefficient, the first preset function and the first preset offset;
[0026] A first gesture recognition result is determined according to a first gesture threshold.
[0027] In an embodiment of the present invention, determining the first gesture recognition result according to the first gesture threshold includes:
[0028] When the first posture threshold is greater than the first preset threshold, determining that the first posture recognition result is a falling posture;
[0029] When the first posture threshold is less than or equal to the first preset threshold, the first posture recognition result is determined to be a normal posture.
[0030] In an embodiment of the present invention, obtaining a second gesture recognition result output by the second classification model includes:
[0031] The three-dimensional coordinate position and the speed in the three-dimensional direction of each frame of the second target data are extracted by the second classification model, wherein the three-dimensional coordinate position includes the horizontal axis coordinate position, the vertical axis coordinate position and the longitudinal axis coordinate position, and the speed in the three-dimensional direction includes the horizontal axis speed, the vertical axis speed and the longitudinal axis speed;
[0032] The synthesis speed of each frame of data in the two-dimensional plane formed by the horizontal axis and the vertical axis is determined by the horizontal axis speed and the vertical axis speed;
[0033] Determine the acceleration in the three-dimensional direction according to the velocity in the three-dimensional direction, where the acceleration in the three-dimensional direction includes the horizontal axis acceleration, the vertical axis acceleration and the longitudinal axis acceleration;
[0034] The three-dimensional coordinate position, the speed in the three-dimensional direction, the acceleration in the three-dimensional direction and the resultant speed are combined into a second multi-dimensional vector array;
[0035] Determine a corresponding second posture threshold according to the second multidimensional vector array, the second preset coefficient, the second preset function and the second preset offset;
[0036] A second gesture recognition result is determined according to a second gesture threshold.
[0037] In an embodiment of the present invention, determining the second gesture recognition result according to the second gesture threshold includes:
[0038] When the second posture threshold is greater than the second preset threshold, determining that the second posture recognition result is a falling posture;
[0039] When the second posture threshold is less than or equal to the second preset threshold, the second posture recognition result is determined to be a normal posture.
[0040] In an embodiment of the present invention, the first preset threshold is greater than the second preset threshold.
[0041] In an embodiment of the present invention, determining the acceleration in the three-dimensional direction according to the velocity in the three-dimensional direction includes:
[0042] The horizontal axis acceleration, vertical axis acceleration and longitudinal axis acceleration of the current frame are determined according to the speed of the three-dimensional direction of the previous frame data and the speed of the three-dimensional direction of the current frame data.
[0043] In an embodiment of the present invention, the first classification model is obtained by training with a fall dataset, and the second classification model is obtained by training with a fall dataset, a squat dataset, a bending dataset, and a sitting dataset.
[0044] A second aspect of the present invention provides a device for recognizing a gesture, comprising:
[0045] A radar device for collecting radar data associated with a user;
[0046] processor.
[0047] A third aspect of the present invention provides a processor configured to execute the above-mentioned method for recognizing gestures.
[0048] A fourth aspect of the present invention provides a water heater, comprising the device for identifying posture as described above.
[0049] A fifth aspect of the present invention provides a bathroom monitoring system, comprising:
[0050] means for recognizing gestures;
[0051] The alarm device is used to activate the alarm after determining that the user is in a falling posture.
[0052] A sixth aspect of the present invention provides a machine-readable storage medium having instructions stored thereon, which, when executed by a processor, configure the processor to execute the above-mentioned method for recognizing gestures.
[0053] Through the above-mentioned method, device, processor, water heater and bathroom monitoring system for identifying posture, a first number of first target data and a second number of second target data can be selected from the radar data associated with the user, and the first target data and the second target data can be input into the first classification model and the second classification model respectively. When the first posture recognition result output by the first classification model and the second posture recognition result output by the second classification model are both falling postures, it can be determined that the user is in a falling posture. This method analyzes and predicts the user's radar data through multiple classification models, effectively improving the accuracy of identifying whether the user is in a falling state, and at the same time, it can also timely detect whether the user is in a falling state, effectively reducing the occurrence of dangerous situations where the elderly, children, pregnant women or users alone at home accidentally fall and rescue is not timely.
[0054] Other features and advantages of the embodiments of the present invention will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present invention, but do not constitute a limitation on the embodiments of the present invention. In the accompanying drawings:
[0056] Figure 1 A schematic diagram of a flow chart of a method for recognizing gestures according to an embodiment of the present invention is shown;
[0057] Figure 2 A schematic diagram schematically shows a flow chart of steps for obtaining a first gesture recognition result output by a first classification model according to an embodiment of the present invention;
[0058] Figure 3 A schematic diagram schematically shows a flow chart of steps for obtaining a second gesture recognition result output by a second classification model according to an embodiment of the present invention;
[0059] Figure 4 A schematic diagram of a flow chart of steps before step 102 according to an embodiment of the present invention is shown;
[0060] Figure 5 A schematic diagram of the process of step 401 according to an embodiment of the present invention is shown;
[0061] Figure 6 A structural block diagram of a device for recognizing gestures according to an embodiment of the present invention is schematically shown;
[0062] Figure 7 A structural block diagram of a device for recognizing gestures according to another embodiment of the present invention is schematically shown;
[0063] Figure 8 Schematically shows a structural block diagram of a water heater according to an embodiment of the present invention;
[0064] Fig. 9 A structural block diagram of a bathroom monitoring system 900 according to an embodiment of the present invention is schematically shown;
[0065] Fig.10 The internal structure of a computer device according to an embodiment of the present invention is schematically shown. DETAILED DESCRIPTION
[0066] The specific implementation of the embodiment of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the embodiment of the present invention, and is not used to limit the embodiment of the present invention.
[0067] Figure 1 The flowchart of the method for recognizing gestures according to an embodiment of the present invention is schematically shown. Figure 1As shown, in one embodiment of the present invention, a method for identifying gestures is provided, comprising the following steps:
[0068] Step 101 : Selecting a first quantity of first target data and a second quantity of second target data from radar data associated with a user.
[0069] Step 102: input the first target data and the second target data into the first classification model and the second classification model respectively.
[0070] Step 103: Obtain a first posture recognition result output by the first classification model and a second posture recognition result output by the second classification model.
[0071] Step 104 , when the first posture recognition result and the second posture recognition result are both falling postures, it is determined that the user is in a falling posture.
[0072] In order to identify whether the user has fallen, radar data of the user can be collected by installing radar equipment, and the radar data can be analyzed and determined through the classification model. In order to overcome the problem that a single classification model easily determines a quick squat as a fall, two classification models can be used to judge the user's posture at the same time.
[0073] In one embodiment, the first classification model is trained using a fall dataset, and the second classification model is trained using a fall dataset, a squat dataset, a bend dataset, and a sit dataset.
[0074] By training the two models separately with different training data, the error rate of the two models in identifying falls can be reduced, thereby improving the overall accuracy of identifying whether the user has fallen.
[0075] Specifically, the server can obtain a first quantity of first target data and a second quantity of second target data from multiple radar data associated with the user, and input the first target data into the first classification model and the second target data into the second classification model. The first quantity is less than the second quantity. The first posture recognition result corresponding to the first target data can be determined by the first classification model, and the second posture recognition result corresponding to the second target data can be determined by the second classification model. When both the first posture recognition result and the second posture recognition result are falling postures, it can be determined that the user is in a falling posture. The classification model can be an SVM model, which can also be called a support vector machine (SVM). Its basic model is a linear classifier with the largest interval defined in the feature space, which is different from the perceptron because of the largest interval; SVM also includes kernel skills, which makes it a substantially nonlinear classifier. The learning strategy of SVM is to maximize the interval, which can be formalized as a problem of solving a convex quadratic programming, which is also equivalent to the minimization problem of the regularized hinge loss function.
[0076] In one embodiment, Figure 2 As shown, obtaining the first posture recognition result output by the first classification model includes:
[0077] Step 201 , extracting the three-dimensional coordinate position and the speed in the three-dimensional direction of each frame of data in the first target data through a first classification model.
[0078] Step 202, determining the synthesis speed of each frame of data in the two-dimensional plane formed by the horizontal axis and the vertical axis through the horizontal axis speed and the vertical axis speed.
[0079] Step 203, determining the acceleration in the three-dimensional direction according to the velocity in the three-dimensional direction, where the acceleration in the three-dimensional direction includes the horizontal axis acceleration, the vertical axis acceleration and the longitudinal axis acceleration.
[0080] Step 204, the three-dimensional coordinate position, the velocity in the three-dimensional direction, the acceleration in the three-dimensional direction and the synthetic velocity are combined into a first multi-dimensional vector array.
[0081] Step 205 , determining a corresponding first posture threshold according to the first multidimensional vector array, the first preset coefficient, the first preset function, and the first preset offset.
[0082] Step 206: Determine a first posture recognition result according to a first posture threshold.
[0083] Among them, the three-dimensional coordinate position includes the horizontal axis coordinate position, the vertical axis coordinate position and the longitudinal axis coordinate position, that is, the three-dimensional coordinate position refers to the coordinate value of the x, y, and z axes of each frame data, and the speed in the three-dimensional direction includes the horizontal axis speed, the vertical axis speed and the longitudinal axis speed, that is, the speed in the x, y, and z axes. The three-dimensional coordinate position and the speed in the three-dimensional direction of each frame data in the first target data can be extracted through the first classification model, and the horizontal axis speed and the vertical axis speed are synthesized to determine the synthetic speed of each frame data in the two-dimensional plane formed by the horizontal axis and the vertical axis, that is, the synthetic speed in the x, y axis direction. At the same time, the acceleration in the three-dimensional direction can be determined according to the speed in the three-dimensional direction, and the acceleration in the three-dimensional direction includes the horizontal axis acceleration, the vertical axis acceleration and the longitudinal axis acceleration, that is, the acceleration in the x, y, and z axes can be determined according to the speed in the x, y, and z axes.
[0084] In one embodiment, determining the acceleration in the three-dimensional direction based on the speed in the three-dimensional direction includes: determining the horizontal axis acceleration, vertical axis acceleration and longitudinal axis acceleration of the current frame based on the speed in the three-dimensional direction of the previous frame data and the speed in the three-dimensional direction of the current frame data.
[0085] When determining the acceleration in three-dimensional directions, the acceleration in the x, y, z directions of the current frame can be determined based on the difference between the speed in the x, y, z directions of the previous frame data and the speed in the x, y, z directions of the current frame. Afterwards, the three-dimensional coordinate position, the speed in the three-dimensional direction, the acceleration in the three-dimensional direction and the composite speed can be combined into a first multidimensional vector array. It can be understood that the first multidimensional vector array contains a ten-dimensional feature vector. The corresponding first posture threshold can be determined based on the first multidimensional vector array, the first preset coefficient, the first preset function and the first preset offset. For example, the first multidimensional vector array is set to x, the first preset coefficient is set to w, the first preset function is set to T, the first preset offset is set to b, and the posture threshold is set to y. Then the posture threshold Thus, the first posture threshold can be calculated according to this formula, and the first posture recognition result can be determined according to the first posture threshold. Among them, the first multidimensional vector array, the first preset coefficient, the first preset function and the first preset offset can all be customized and adjusted by the technician according to the actual situation.
[0086] In one embodiment, determining the first posture recognition result according to the first posture threshold includes: when the first posture threshold is greater than the first preset threshold, determining the first posture recognition result as a falling posture; when the first posture threshold is less than or equal to the first preset threshold, determining the first posture recognition result as a normal posture.
[0087] When determining the first posture recognition result according to the first posture threshold, the first posture threshold can be compared with a pre-set first preset threshold. When the first posture threshold is greater than the first preset threshold, the first posture recognition result can be determined to be a falling posture; when the first posture threshold is less than or equal to the first preset threshold, the first posture recognition result can be determined to be a normal posture.
[0088] In one embodiment, Figure 3 As shown, obtaining the second posture recognition result output by the second classification model includes:
[0089] Step 301, extracting the three-dimensional coordinate position and the speed in the three-dimensional direction of each frame of data in the second target data through the second classification model.
[0090] Step 302, determining the synthesis speed of each frame of data in the two-dimensional plane formed by the horizontal axis and the vertical axis through the horizontal axis speed and the vertical axis speed.
[0091] Step 303, determining the acceleration in the three-dimensional direction according to the velocity in the three-dimensional direction, where the acceleration in the three-dimensional direction includes the horizontal axis acceleration, the vertical axis acceleration and the longitudinal axis acceleration.
[0092] Step 304, the three-dimensional coordinate position, the velocity in the three-dimensional direction, the acceleration in the three-dimensional direction and the composite velocity are combined into a second multi-dimensional vector array.
[0093] Step 305 , determining a corresponding second posture threshold according to the second multidimensional vector array, the second preset coefficient, the second preset function and the second preset offset.
[0094] Step 306: Determine a second posture recognition result according to a second posture threshold.
[0095] When the second target data is analyzed by the second classification model to obtain the second gesture recognition result, the process is the same as above. Figure 2 The process of analyzing the first target data by the first classification model to obtain the first posture recognition result is consistent. No further details are given here. Among them, the second preset coefficient, the second preset function, and the second preset offset may be the same as the first preset coefficient, the first preset function, and the first preset offset, or may be different, which may be determined according to actual conditions.
[0096] In one embodiment, determining the second posture recognition result according to the second posture threshold includes: when the second posture threshold is greater than the second preset threshold, determining the second posture recognition result as a falling posture; when the second posture threshold is less than or equal to the second preset threshold, determining the second posture recognition result as a normal posture.
[0097] Similarly, when determining the second posture recognition result according to the second posture threshold, the second posture threshold can be compared with the pre-set second preset threshold. When the second posture threshold is greater than the second preset threshold, the second posture recognition result can be determined to be a falling posture; when the second posture threshold is less than or equal to the second preset threshold, the second posture recognition result can be determined to be a normal posture. Among them, the first preset threshold is greater than the second preset threshold. Normally, the first posture threshold can be set to 0, but in order to reduce the false alarm rate, the value of the first preset threshold can be increased. For example, the first preset threshold can be set to 0.6, that is, when the first posture threshold is greater than 0.6, the first posture recognition result can be determined to be a fall; when the second posture threshold is less than or equal to 0.6, the first posture recognition result can be determined to be normal. Since the first number of first target data used by the first classification model is less than the second number of second target data of the second classification model, correspondingly, the first preset threshold is greater than the second preset threshold. For example, the second preset threshold may be set to 0.3, that is, when the second posture threshold is greater than 0.3, the second posture recognition result may be determined to be a fall; and when the second posture threshold is less than or equal to 0.3, the second posture recognition result may be determined to be normal.
[0098] In one embodiment, Figure 4 As shown, before step 102, the following steps are also included:
[0099] Step 401, calibrating the first target data and the second target data.
[0100] Before the first target data and the second target data are respectively input into the first classification model and the second classification model, the target data need to be corrected.
[0101] In one embodiment, Figure 5 As shown, step 401 includes:
[0102] Step 501: Obtain the installation angle of the radar device relative to the horizontal plane.
[0103] Step 502, determining a correction angle according to the installation angle.
[0104] Step 503: Rotate the coordinates corresponding to the first target data and the second target data according to the correction angle to obtain the corrected first target data and the second target data.
[0105] First, the installation angle of the radar device relative to the horizontal plane can be obtained, and the correction angle of the first target data and the second target data can be determined according to the installation angle. For example, when the installation angle of the radar device relative to the horizontal plane is 35 degrees, it can be determined that the correction angle of the first target data and the second target data is 35 degrees. Therefore, the coordinates corresponding to the first target data and the second target data can be rotated. Specifically, the horizontal coordinates of the first target data and the second target data can be rotated to perform coordinate system correction, so that the corrected first target data and the second target data can be obtained.
[0106] Among them, the radar device can be a millimeter-wave radar device. Since the above-mentioned method for identifying posture can be used in the bathroom to detect whether the user has an accidental fall during the bath, and the millimeter-wave radar has a strong ability to penetrate obstacles such as plastic, ceramic, glass, shower curtains and detect at a long distance, it can adapt well to a variety of spatial patterns, thereby achieving more accurate fall identification and warning.
[0107] Step 402: filter the corrected first target data and second target data.
[0108] Step 403, selecting data within a first preset sequence number interval from the first target data after filtering and inputting it into a first classification model.
[0109] Step 404, selecting data within a second preset sequence number interval from the second target data after filtering and inputting it into a second classification model.
[0110] After correction, the corrected first target data and the second target data can be filtered. Specifically, the target data can be subjected to median filtering. Then, data within a first preset serial number interval can be selected from the filtered first target data and input into the first classification model; data within a second preset serial number interval can be selected from the filtered second target data and input into the second classification model.
[0111] For example, the first number is 20 frames of historical radar data, the second number is 24 frames of radar data, the first preset sequence number interval is 3 to 18, and the second preset sequence number interval is 3 to 22. That is, after data correction and filtering, radar data with sequence numbers 3 to 18 can be selected from the first number of 20 frames of radar data and input into the first classification model, and radar data with sequence numbers 3 to 22 can be selected from the second number of 24 frames of radar data and input into the second classification model, so that the radar data with sequence numbers 3 to 18 can be analyzed by the first classification model to obtain the first posture recognition result, and the radar data with sequence numbers 3 to 22 can be analyzed by the second classification model to obtain the second posture recognition result.
[0112] In one embodiment, the above method for identifying postures can be applied in a bathroom to identify a fall of a user who is taking a bath or using a bathroom. When it is determined that the user is in a fall posture, an alarm mode can be activated.
[0113] Among them, starting the alarm mode includes: triggering a voice alarm inquiry; after obtaining the user's feedback information confirming the alarm, calling the communication number pre-bound to the user; the feedback information confirming the alarm includes at least one of voice feedback information and feedback information triggering the alarm device.
[0114] If it is determined that the user is in a falling posture, a voice alarm inquiry can be triggered. For example, the smart assistant asks the user: "We have detected that you have fallen. Do you want to initiate an alarm?" Upon receiving feedback from the user confirming the alarm, a communication number pre-bound to the user can be called.
[0115] For example, the user can confirm the alarm by answering "yes" by voice, or by triggering the alarm button on the alarm device to confirm the alarm. When the user confirms that the alarm is needed, the communication number that the user has pre-alarmed can be called. For example, user A has pre-bound the mobile phone number of family member B. After user A confirms that the alarm is needed, the server can call family member B's mobile phone number based on the feedback information of the user confirming the alarm.
[0116] In one embodiment, the risk level of falling can also be determined according to the user's falling situation. For example, it can be divided into three levels: high, medium, and low. The specific classification method can be customized according to the actual situation. For example, when the user is a young or middle-aged person, the risk level of the user falling can be low; when the user is a pregnant woman or an elderly person, the risk level of the user falling can be high; when the user is a child, the risk level of the user falling can be medium. The risk level can also be determined according to the user's physical condition. For example, if the user has a physical disability, the risk level of the user falling is high, and so on. In this way, the health management function of the smart bathroom can be realized.
[0117] Through the above-mentioned method for identifying posture, a first number of first target data and a second number of second target data can be selected from the radar data associated with the user, and the first target data and the second target data can be input into the first classification model and the second classification model respectively. When the first posture recognition result output by the first classification model and the second posture recognition result output by the second classification model are both falling postures, it can be determined that the user is in a falling posture. This method analyzes and predicts the user's radar data through multiple classification models, effectively improving the accuracy of identifying whether the user is in a falling state, and can also promptly detect whether the user is in a falling state, effectively reducing the occurrence of dangerous situations in which the elderly, children, pregnant women or users alone at home accidentally fall and rescue is not timely.
[0118] In one embodiment, Figure 6 As shown, a device 600 for recognizing gestures is provided, comprising:
[0119] The radar data acquisition module 601 is used to respectively select a first quantity of first target data and a second quantity of second target data from radar data associated with the user.
[0120] The model analysis module 602 is used to input the first target data and the second target data into the first classification model and the second classification model respectively; and obtain the first posture recognition result output by the first classification model and the second posture recognition result output by the second classification model.
[0121] The posture confirmation module 603 is used to determine that the user is in a falling posture when the first posture recognition result and the second posture recognition result are both falling postures.
[0122] In one embodiment, the above-mentioned device 600 for recognizing posture also includes a data preprocessing module (not shown in the figure), which is used to correct the first target data and the second target data; filter the corrected first target data and the second target data; the above-mentioned model analysis module 602 is also used to select data within a first preset serial number interval from the first target data after filtering and input it into the first classification model; select data within a second preset serial number interval from the second target data after filtering and input it into the second classification model.
[0123] In one embodiment, the data preprocessing module is also used to obtain the installation angle of the radar device relative to the horizontal plane; determine the correction angle based on the installation angle; and rotate the coordinates corresponding to the first target data and the second target data according to the correction angle to obtain the corrected first target data and the second target data.
[0124] In one embodiment, the model analysis module 602 is also used to extract the three-dimensional coordinate position and the three-dimensional speed of each frame data in the first target data through the first classification model, wherein the three-dimensional coordinate position includes the horizontal axis coordinate position, the vertical axis coordinate position and the longitudinal axis coordinate position, and the speed in the three-dimensional direction includes the horizontal axis speed, the vertical axis speed and the longitudinal axis speed; determine the composite speed of each frame data in the two-dimensional plane formed by the horizontal axis and the vertical axis through the horizontal axis speed and the vertical axis speed; determine the acceleration in the three-dimensional direction according to the speed in the three-dimensional direction, and the acceleration in the three-dimensional direction includes the horizontal axis acceleration, the vertical axis acceleration and the longitudinal axis acceleration; form the three-dimensional coordinate position, the speed in the three-dimensional direction, the acceleration in the three-dimensional direction and the composite speed into a first multidimensional vector array; determine the corresponding first posture threshold according to the first multidimensional vector array, the first preset coefficient, the first preset function and the first preset offset; determine the first posture recognition result according to the first posture threshold.
[0125] In one embodiment, the posture confirmation module 603 is also used to determine that the first posture recognition result is a falling posture when the first posture threshold is greater than the first preset threshold; and to determine that the first posture recognition result is a normal posture when the first posture threshold is less than or equal to the first preset threshold.
[0126] In one embodiment, the model analysis module 602 is also used to extract the three-dimensional coordinate position and the three-dimensional speed of each frame data in the second target data through the second classification model, wherein the three-dimensional coordinate position includes the horizontal axis coordinate position, the vertical axis coordinate position and the longitudinal axis coordinate position, and the speed in the three-dimensional direction includes the horizontal axis speed, the vertical axis speed and the longitudinal axis speed; determine the composite speed of each frame data in the two-dimensional plane formed by the horizontal axis and the vertical axis through the horizontal axis speed and the vertical axis speed; determine the acceleration in the three-dimensional direction according to the speed in the three-dimensional direction, and the acceleration in the three-dimensional direction includes the horizontal axis acceleration, the vertical axis acceleration and the longitudinal axis acceleration; form the three-dimensional coordinate position, the speed in the three-dimensional direction, the acceleration in the three-dimensional direction and the composite speed into a second multidimensional vector array; determine the corresponding second posture threshold according to the second multidimensional vector array, the second preset coefficient, the second preset function and the second preset offset; determine the second posture recognition result according to the second posture threshold.
[0127] In one embodiment, the posture confirmation module 603 is also used to determine that the second posture recognition result is a falling posture when the second posture threshold is greater than the second preset threshold; and to determine that the second posture recognition result is a normal posture when the second posture threshold is less than or equal to the second preset threshold.
[0128] In one embodiment, the first amount is less than the second amount.
[0129] In one embodiment, the first preset threshold is greater than the second preset threshold.
[0130] In one embodiment, the model analysis module 602 is further used to determine the horizontal axis acceleration, vertical axis acceleration and longitudinal axis acceleration of the current frame according to the three-dimensional velocity of the previous frame data and the three-dimensional velocity of the current frame data.
[0131] In one embodiment, the apparatus 600 for recognizing posture further includes a training module (not shown in the figure) for training a first classification model using a fall dataset, and training a second classification model using a fall dataset, a squat dataset, a bend dataset, and a sit dataset.
[0132] The device for recognizing posture includes a processor and a memory. The above-mentioned radar data acquisition module 601, model analysis module 602 and posture confirmation module 603 are all stored in the memory as program units, and the processor executes the above-mentioned program modules stored in the memory to implement corresponding functions.
[0133] An embodiment of the present invention provides a processor, and the processor is used to run a program, wherein the method for recognizing gestures is executed when the program is run.
[0134] In one embodiment, Figure 7 As shown, a device 700 for recognizing gestures is also provided, comprising:
[0135] Radar device 701 is used to collect radar data associated with the user.
[0136] The processor 702 is configured to execute the above method for recognizing gestures.
[0137] In one embodiment, Figure 8 As shown, a water heater 800 is provided, comprising the above-mentioned device 700 for recognizing gestures.
[0138] In one embodiment, Fig. 9 As shown, a bathroom monitoring system 900 is provided, comprising:
[0139] Means for recognizing gestures 700;
[0140] The alarm device 901 is used to activate an alarm after determining that the user is in a falling posture.
[0141] The processor includes a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set, and the user's posture recognition can be achieved by adjusting the kernel parameters.
[0142] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0143] An embodiment of the present invention provides a storage medium on which a program is stored. When the program is executed by a processor, the method for recognizing gestures is implemented.
[0144] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig.10 As shown. The computer device includes a processor A01, a network interface A02, a memory (not shown in the figure) and a database (not shown in the figure) connected through a system bus. Among them, the processor A01 of the computer device is used to provide computing and control capabilities. The memory of the computer device includes an internal memory A03 and a non-volatile storage medium A04. The non-volatile storage medium A04 stores an operating system B01, a computer program B02 and a database (not shown in the figure). The internal memory A03 provides an environment for the operation of the operating system B01 and the computer program B02 in the non-volatile storage medium A04. The database of the computer device is used to store the user's radar data. The network interface A02 of the computer device is used to communicate with an external terminal through a network connection. When the computer program B02 is executed by the processor A01, a method for recognizing gestures is implemented.
[0145] Those skilled in the art will understand that Fig.10 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.
[0146] An embodiment of the present invention provides a device, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, the method for recognizing gestures is implemented.
[0147] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program initialized with the above method steps for recognizing gestures.
[0148] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0149] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0150] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0151] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0152] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0153] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0154] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0155] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity 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, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0156] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A method for recognizing gestures, characterized in that: Applied to the bathroom scene, the method includes: Selecting a first quantity of first target data and a second quantity of second target data from radar data associated with the user, respectively; the first quantity is smaller than the second quantity; Inputting the first target data and the second target data into a first classification model and a second classification model respectively, wherein the first classification model and the second classification model are support vector machines; Extracting the three-dimensional coordinate position and the speed in the three-dimensional direction of each frame of data in the first target data by using the first classification model, wherein the three-dimensional coordinate position includes a horizontal axis coordinate position, a vertical axis coordinate position and a longitudinal axis coordinate position, and the speed in the three-dimensional direction includes a horizontal axis speed, a vertical axis speed and a longitudinal axis speed; Determine the synthesis speed of each frame of data in the two-dimensional plane formed by the horizontal axis and the vertical axis through the horizontal axis speed and the vertical axis speed; Determining the acceleration in the three-dimensional direction according to the velocity in the three-dimensional direction, wherein the acceleration in the three-dimensional direction includes a horizontal axis acceleration, a vertical axis acceleration and a longitudinal axis acceleration; Combining the three-dimensional coordinate position, the speed in the three-dimensional direction, the acceleration in the three-dimensional direction and the synthetic speed into a first multi-dimensional vector array; and Extracting the three-dimensional coordinate position and the speed in the three-dimensional direction of each frame of data in the second target data by the second classification model, wherein the three-dimensional coordinate position includes a horizontal axis coordinate position, a vertical axis coordinate position and a longitudinal axis coordinate position, and the speed in the three-dimensional direction includes a horizontal axis speed, a vertical axis speed and a longitudinal axis speed; Determine the synthesis speed of each frame of data in the two-dimensional plane formed by the horizontal axis and the vertical axis through the horizontal axis speed and the vertical axis speed; Determining the acceleration in the three-dimensional direction according to the velocity in the three-dimensional direction, wherein the acceleration in the three-dimensional direction includes a horizontal axis acceleration, a vertical axis acceleration and a longitudinal axis acceleration; The three-dimensional coordinate position, the speed in the three-dimensional direction, the acceleration in the three-dimensional direction and the synthetic speed are combined into a second multi-dimensional vector array; determining a corresponding first posture threshold according to the first multidimensional vector array, the first preset coefficient, the first preset function, and the first preset offset, and determining that the first posture recognition result is a falling posture when the first posture threshold is greater than the first preset threshold; Determine a corresponding second posture threshold according to the second multidimensional vector array, the second preset coefficient, the second preset function and the second preset offset, and determine that the second posture recognition result is a falling posture when the second posture threshold is greater than the second preset threshold; and the first preset threshold is greater than the second preset threshold; When both the first posture recognition result and the second posture recognition result are falling postures, determining that the user is in a falling posture; The first classification model is obtained by training with a fall data set, and the second classification model is obtained by training with a fall data set, a squat data set, a bending data set, and a sitting data set.
2. The method according to claim 1, characterized in that The method further comprises: Before inputting the first target data and the second target data into the first classification model and the second classification model respectively, correcting the first target data and the second target data; Performing filtering processing on the corrected first target data and the second target data; Selecting data within a first preset sequence number interval from the first target data after filtering and inputting them into the first classification model; Data within a second preset sequence number interval is selected from the second target data after filtering and input into the second classification model.
3. The method according to claim 2, characterized in that The correcting the first target data and the second target data comprises: Get the installation angle of the radar device relative to the horizontal plane; determining a correction angle according to the installation angle; The coordinates corresponding to the first target data and the second target data are rotated according to the correction angle to obtain the corrected first target data and the second target data.
4. The method according to claim 1, characterized in that: Determining the acceleration in the three-dimensional direction according to the velocity in the three-dimensional direction comprises: The horizontal axis acceleration, vertical axis acceleration and longitudinal axis acceleration of the current frame are determined according to the speed of the three-dimensional direction of the previous frame data and the speed of the three-dimensional direction of the current frame data.
5. The method according to claim 1, characterized in that The method further comprises: When the first posture threshold is less than or equal to the first preset threshold, it is determined that the first posture recognition result is a normal posture.
6. The method according to claim 1, characterized in that The method further comprises: When the second posture threshold is less than or equal to the second preset threshold, it is determined that the second posture recognition result is a normal posture.
7. A processor, characterized in that: The method is configured to execute the method for recognizing gesture according to any one of claims 1 to 6.
8. A device for recognizing gestures, characterized in that: The device comprises: A radar device for collecting radar data associated with a user; A processor according to claim 7.
9. A water heater, characterized in that: The device for recognizing gestures according to claim 8 is included.
10. A bathroom monitoring system, characterized in that: include: The device for recognizing gestures according to claim 8; The alarm device is used to activate the alarm after determining that the user is in a falling posture.
