A method and device for identifying falls
By obtaining the position change information and tilt angle of the elderly's key body nodes from video data, fall events are accurately identified, solving the problems of high false alarm rate and inconvenient wearing in the existing technology, and achieving higher accuracy and comfort. .
Patent Information
- Application Number
- CN202011605384.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-30
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2040-12-30
Smart Images

Figure CN112749642B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of image processing technology, and in particular to a method and device for identifying a fall. Background Art
[0002] The elderly are at a higher risk of falling due to factors such as decreased physical function and impaired cognitive ability. Falls can cause injuries to the elderly, including fractures, soft tissue injuries, strokes, and even life-threatening injuries. The World Health Organization has corresponding statistical reports on falls among the elderly, and various nursing homes have also included fall prevention in key monitoring items. It can be seen that paying attention to falls among the elderly and reducing the harm caused by falls to the elderly has attracted widespread attention from the society. In the related technology, there are products based on gyroscopes and accelerometers to detect falls of the elderly, but in actual use, it is found that the false alarm rate is very high. When people sit down, bend over, squat, swing their arms quickly, etc., they are often falsely reported as "falling". And wearing gyroscopes and accelerometers on the human body will bring inconvenience to people's daily life. Summary of the invention
[0003] In order to overcome the problems existing in the related art, the present disclosure provides a method and device for identifying a fall.
[0004] According to a first aspect of an embodiment of the present disclosure, a method for identifying a fall is provided, comprising:
[0005] Acquire position change information of multiple key body nodes of the target object moving within a preset time period from the video data;
[0006] Determining the number of position changes and change directions of the plurality of key body nodes according to the position change information;
[0007] Whether the target object falls is identified according to the number of position changes and the direction of change.
[0008] In a possible implementation, the step of obtaining position change information of a plurality of key body nodes of the target object moving within a preset time period from the video data includes:
[0009] At the start time of the preset time period, determining whether all of the first key body nodes of the target object are in contact with the ground, wherein if all of the first key body nodes are in contact with the ground, determining that the target object has fallen;
[0010] In a case where the plurality of first key body nodes are not all in contact with the ground, position change information of the plurality of key body nodes of the target object moving within a preset time period is obtained from the video data.
[0011] In a possible implementation, the change direction includes a tilt angle of the target object, and identifying whether the target object has fallen according to the number of position changes and the change direction includes:
[0012] Whether the target object falls is identified according to the number of position changes and the tilt angle.
[0013] In a possible implementation, the tilt angle is set to be obtained in the following manner, including:
[0014] Obtaining positions of two preset body key nodes of the target object at the end of the preset time period;
[0015] The angle between the line connecting the two positions and the vertical direction is taken as the inclination angle of the target object.
[0016] In a possible implementation, determining the number of position changes and change directions of the plurality of key body nodes according to the position change information includes:
[0017] Obtaining positions of the plurality of key body nodes in two adjacent frames of images;
[0018] The number of times that the position changes in the same direction as that of the previous frame image and the number of times that the position changes in a different direction in the next frame image are recorded respectively.
[0019] In a possible implementation, the identifying whether the target object falls is performed based on the number of position changes and the tilt angle, wherein, when the tilt angle is greater than a preset angle, the condition set as the target object falling includes at least one of the following:
[0020] The number of times the neck moves in the same direction is greater than a first preset threshold, the number of times the hip moves in the same direction is greater than a second preset threshold, the number of times the knee moves in the same direction is greater than a third preset threshold, the number of times the ankle moves in the same direction is less than a fourth preset threshold, and the number of times the neck moves in different directions is less than a fifth threshold.
[0021] In a possible implementation, the identifying whether the target object falls is performed according to the number of position changes and the tilt angle, wherein, when the tilt angle is less than or equal to a preset angle, the condition set as the target object falling includes:
[0022] Within the preset time period, multiple first key body nodes of the target object are all in contact with the ground.
[0023] In a possible implementation, the identifying whether the target object falls down according to the number of position changes and the direction of change, wherein the condition set to indicate that the target object has not fallen down includes at least one of the following: including:
[0024] The number of times the neck moves in different directions is greater than a sixth preset threshold, and the number of times the hip moves in different directions is greater than a seventh preset threshold.
[0025] In a possible implementation, before acquiring the position change information of multiple key body nodes of the target object within a preset time period from the video data, the method further includes:
[0026] Obtaining positions of multiple key body nodes of the target object in at least one pair of adjacent two-frame images;
[0027] In the case where the position changes in the next frame image in the same direction as that in the previous frame image, position change information of multiple key body nodes of the target object moving within a preset time period is obtained from the video data.
[0028] In a possible implementation, at the start time of the preset time period, determining whether all of the plurality of first body key nodes of the target object are in contact with the ground, further comprising:
[0029] Acquire, at preset intervals, from the video data, position information of preset key body nodes of the target object within a preset time period;
[0030] The ground area in the video data is updated according to the position information.
[0031] In a possible implementation manner, updating the ground area in the video data according to the position information includes:
[0032] From the position information, converting a plurality of position pixels into unit blocks according to a preset rule;
[0033] The ground area in the video data is represented in the form of unit blocks.
[0034] In a possible implementation, the determining whether all of the plurality of first body key nodes of the target object are in contact with the ground includes:
[0035] Converting the position coordinates of the plurality of first body key nodes into unit blocks;
[0036] When the unit block matches the unit block of the ground area successfully, all of the first body key nodes of the target object are in contact with the ground.
[0037] In a possible implementation manner, after identifying whether the target object has fallen according to the number of position changes and the change direction, the method further includes:
[0038] When it is determined that the target object has fallen, an image blurring process is performed on the target object in the video data, and the processed video data and the fall information are sent out.
[0039] In a possible implementation, the step of obtaining position change information of a plurality of key body nodes of the target object moving within a preset time period from the video data includes:
[0040] In the case that the target object is located within a preset range of the camera shooting the video data, position change information of a plurality of key body nodes of the target object moving within a preset time period is obtained from the video data.
[0041] In a possible implementation, the step of obtaining position change information of a plurality of key body nodes of the target object moving within a preset time period from the video data includes:
[0042] Obtaining video data about a target object;
[0043] Feature extraction is performed on the video data to obtain position information of multiple key body nodes of the target object.
[0044] In a possible implementation, the method further includes: installing a camera for capturing the video data at a height of 0.8-2.3 m from the ground.
[0045] According to a second aspect of an embodiment of the present disclosure, there is provided a device for identifying a fall, comprising:
[0046] processor;
[0047] a memory for storing processor-executable instructions;
[0048] The processor is configured to execute the method described in any embodiment of the present disclosure.
[0049] According to a third aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided. When instructions in the storage medium are executed by a processor, the processor is enabled to execute a method according to any embodiment of the present disclosure.
[0050] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: In the embodiments of the present disclosure, considering the fall of the target object, the position changes of the key nodes of the body will show a certain regularity, for example, multiple key nodes of the body move down rapidly within a period of time. Therefore, by recording the number of position changes and the direction of change of multiple key nodes of the body, when the number of changes and the direction of change meet the preset requirements, for example, the number of changes of the key nodes of the body in the same direction is greater than or less than the preset value, and the number of changes of the body nodes in different directions is greater than or less than the preset value, it can be determined that the target object is in a falling state. The embodiments of the present disclosure utilize the change information of the key nodes of the body to determine whether the target object has fallen. Compared with the traditional detection of human falls based on gyroscopes and acceleration sensors, it has higher accuracy and does not require the human body to wear related sensors, thereby improving the comfort of the user.
[0051] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0053] Figure 1 The figure is a flow chart of a method for identifying a fall according to an exemplary embodiment.
[0054] Figure 2 It is a schematic diagram showing a method for calculating a tilt angle according to an exemplary embodiment.
[0055] Figure 3 The diagram is a schematic diagram showing a ground area in a video image according to an exemplary embodiment.
[0056] Figure 4 The diagram is a schematic diagram showing a human body falling on a ground area in a video image according to an exemplary embodiment.
[0057] Figure 5 It is a schematic diagram showing how to represent a video image using unit blocks according to an exemplary embodiment.
[0058] Figure 6 is a schematic diagram showing the blurring of a human body according to an exemplary embodiment.
[0059] Figure 7 is a schematic diagram of numbering key nodes of a body according to an exemplary embodiment.
[0060] Figure 8 The figure is a flow chart of a method for identifying a fall according to an exemplary embodiment.
[0061] Fig. 9 The invention is a block diagram of a device for identifying a fall according to an exemplary embodiment.
[0062] Fig.10 The invention is a block diagram of a device for identifying a fall according to an exemplary embodiment. DETAILED DESCRIPTION
[0063] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0064] In order to facilitate those skilled in the art to understand the technical solution provided by the embodiments of the present disclosure, the technical environment in which the technical solution is implemented is described below. Figure 8 FIG. 1 is a flow chart showing a method for identifying a fall according to an exemplary embodiment. Figure 8 As shown. In the initial state, the system does not process the monitored part of the target object in the video image. If the coordinate changes of the monitored parts of the human body posture are the same, the monitoring start state is started. Correspondingly, it will simultaneously determine whether all the monitored parts of the target object are in contact with the ground. In the monitoring state, if the change direction and number of changes of the monitored parts meet the preset conditions, the fall practice decision state is entered. By the human body inclination angle and the change direction and number of changes of the monitored parts meet the preset conditions, it is determined that a fall event has occurred and the fall event processing state is entered. In the fall event processing state, an alarm is sent to relevant personnel for the fall event. If it is determined that no fall event has occurred, the initial state is entered. During this process, the monitoring time can be set. If the monitoring timeout or the monitoring conditions are abnormal, the initial state is entered.
[0065] The following is combined with Figure 1 The method for identifying falls described in the present disclosure is described in detail. Figure 1 1 is a method flow chart of an embodiment of the method for identifying falls provided by the present disclosure. Although the present disclosure provides the method operation steps as shown in the following embodiments or drawings, more or fewer operation steps may be included in the method based on routine or no creative labor. In the steps that do not logically have a necessary causal relationship, the execution order of these steps is not limited to the execution order provided in the embodiments of the present disclosure.
[0066] Specifically, the method for identifying a fall provided by the present disclosure is implemented as follows: Figure 1As shown, the method can be applied to a terminal or a server, including:
[0067] Step S101, obtaining position change information of multiple key body nodes of a target object moving within a preset time period from video data;
[0068] Step S102, determining the number of position changes and change directions of the plurality of key body nodes according to the position change information;
[0069] Step S103: Identify whether the target object has fallen down according to the number of position changes and the direction of change.
[0070] In the embodiment of the present disclosure, the multiple key body nodes can be pre-set from the key human body nodes. In one example, the multiple key body nodes can include: neck, mid-hip, right knee, right ankle, left knee, left ankle. In another example, Table 1 shows the correspondence between the key human body nodes and the names of human body parts. Figure 7 is a schematic diagram of the numbering of key nodes of the body according to an exemplary embodiment. Figure 7 In this example, the key nodes of the human body include 25, and a part of them are selected as the input basis for identifying the fall method. The target object described in the embodiment of the present disclosure may include a human body or an animal. When the target object includes an animal, the key nodes of the body will also change accordingly, which will not be expanded here.
[0071] In the embodiment of the present disclosure, the position change information may include the change in the position of the key body node in the image data of the next frame obtained within the preset time period of the video data compared with the position of the key body node in the previous frame or the current frame. The position change information may include the position change of two adjacent frames, and may also include the position change of the previous frame and the next frame with a preset number of frames, which is not limited by the present disclosure.
[0072] Table 1 Correspondence between key node numbers and human body part names
[0073]
[0074] In the disclosed embodiment, the position change information of multiple key body nodes of the target object moving within a preset period of time obtained from the video data may include extracting features in the image to determine the key body nodes of the target object by image processing. Among them, the method of image feature extraction may include: scale-invariant feature transform (SIFT), directional gradient histogram (HOG) and accelerated robust features (SURF), etc. It should be noted that the preset image feature extraction method is not limited to the above examples, for example, the feature extraction method of the local binary pattern (LBP), the technical personnel in the relevant field may also make other changes under the inspiration of the technical essence of this application, but as long as the functions and effects realized are the same or similar to the present application, they should be included in the protection scope of this application. In an example, it is also possible to quickly obtain the position change information of multiple key body nodes of the target object moving within a preset period of time based on the open source posture recognition algorithm openpose.
[0075] In the disclosed embodiment, based on the position change information, the number of position changes and the direction of change of multiple key body nodes within the preset time period are recorded. In one example, the number of changes in the position of the human neck in a preset change direction can be counted, and the number of position changes of the human neck in different change directions can also be counted. The number of position changes in different change directions can include that the position change direction in two adjacent frames is different from the position change direction in the previous two adjacent frames. For example, the order in which the images appear is: 1st frame, 2nd frame, 3rd frame, 4th frame, and 5th frame. In the 2nd frame, the position of the neck is moved up compared to the 1st frame, and in the 3rd frame, the position of the neck is lowered compared to the 2nd frame. In the 4th frame, the position of the neck is moved up compared to the 3rd frame, and in the 5th frame, the position of the neck is lowered compared to the 4th frame. Then the number of changes in different directions of the key node neck of the human body during this period is 4 times. It should be noted that the determination of the number of position changes and the direction of change of the multiple key body nodes is not limited to the above-mentioned example of the neck. For example, the change of the knee beyond a preset direction can also be used as the number of changes and the direction of change. Technical personnel in the relevant field may make other changes inspired by the technical essence of the present application. However, as long as the functions and effects achieved are the same or similar to those of the present application, they should be covered within the scope of protection of the present application.
[0076] In the disclosed embodiment, considering the fall of the target object, the position changes of the key nodes of the body will show a certain regularity, for example, multiple key nodes of the body move down rapidly within a period of time. Therefore, by recording the number of position changes and the direction of change of multiple key nodes of the body, when the number of changes and the direction of change meet the preset requirements, for example, the number of changes of the key nodes of the body in the same direction is greater than or less than the preset value, and the number of changes of the body nodes in different directions is greater than or less than the preset value, it can be determined that the target object is in a falling state. The disclosed embodiment utilizes the change information of the key nodes of the body to determine whether the target object has fallen. Compared with the traditional detection of human falls based on gyroscopes and acceleration sensors, it has higher accuracy and does not require the human body to wear related sensors, thereby improving the comfort of the user.
[0077] In a possible implementation, the step S101 of acquiring position change information of multiple key body nodes of the target object moving within a preset time period from the video data includes:
[0078] Step S104, at the start time of the preset time period, determining whether all of the first key body nodes of the target object are in contact with the ground, wherein if all of the first key body nodes are in contact with the ground, it is determined that the target object has fallen;
[0079] Step S105, when the plurality of first key body nodes are not all in contact with the ground, obtaining position change information of the plurality of key body nodes of the target object moving within a preset time period from the video data.
[0080] In the disclosed embodiment, before obtaining the position change information of the multiple key body nodes of the target object moving within a preset time period from the video data, it is also possible to judge whether the target object has fallen by judging whether all the multiple first key body nodes of the target object are in contact with the ground. In one example, the multiple first key body nodes may be the same as the multiple key body nodes, or may be different from the multiple key body nodes, and both may belong to the same human body key nodes. For example, the first key body nodes may include: neck, left ear, right ear, middle hip, left hip, right hip, knee, ankle, etc. In another example, considering the different falling postures of the human body, the left side or the right side may be fallen. The multiple first key body nodes may include neck, middle hip, right knee and right ankle; the multiple first body nodes may also include neck, middle hip, left knee and left ankle.
[0081] In the disclosed embodiment, before obtaining the position change information of the multiple key body nodes of the target object within a preset period of time from the video data, it is also possible to determine whether the target object has fallen by determining whether all the multiple first key body nodes of the target object are in contact with the ground. This is conducive to quickly determining whether the target object has fallen.
[0082] In a possible implementation, the change direction includes a tilt angle of the target object, and step 102, identifying whether the target object has fallen according to the number of position changes and the change direction, includes:
[0083] Step S106: Identify whether the target object has fallen according to the number of position changes and the tilt angle.
[0084] In the embodiments of the present disclosure, in order to more accurately identify the occurrence of a fall event, the tilt angle of the target object may also be considered. The tilt angle indicates the degree of tilt of the target object relative to a reference object, and the reference object may include an upright state of the target object, static furniture, a building, etc. In one example, the larger the tilt angle of the target object, the more likely it is that a fall will occur. Therefore, on the basis of the above embodiments, adding the judgment of the tilt angle of the target object is conducive to more accurate identification of a fall event.
[0085] In a possible implementation, the tilt angle is set to be obtained in the following manner, including:
[0086] Step S107, obtaining the positions of two preset body key nodes of the target object at the end of the preset time period;
[0087] Step S108: taking the angle between the line connecting the two positions and the vertical direction as the inclination angle of the target object.
[0088] In the disclosed embodiment, the preset key body nodes may have many positions within the preset time period, and the number of position changes and the direction of changes of the key body nodes within the preset time period are combined, so the acquisition time of the tilt angle is determined as the end time of the preset time period. In the disclosed embodiment, the preset key body nodes may include the mid-hip key node, a key node on the human spine, such as the neck, etc. Figure 2 FIG. 1 is a schematic diagram showing a method for calculating a tilt angle according to an exemplary embodiment. Figure 2 As shown, in the video image 201, the human body 200 falls down, and the tilt angle is defined as the tilt angle A of the human body neck and mid-hip connection line relative to the vertical B , assuming that the coordinates of the human neck (X neck , Y neck ), the coordinate of the mid-hip (X hip , Yhip ), vertical reference point (X hip , Y neck ), the inclination angle A B It can be calculated by formula (1):
[0089] A B =acos(((S A ) 2 +(S C ) 2 –(S B ) 2 )) / (2*S A *S C ))*180 / π (1)
[0090] Among them, S A Indicates angle A A The opposite side, S C Indicates angle A C The opposite side, S B Indicates angle A B The opposite side.
[0091] In a possible implementation, the step S102, determining the number of position changes and the change directions of the plurality of key body nodes according to the position change information, includes:
[0092] Step S109, obtaining the positions of the plurality of key body nodes in two adjacent frames of images;
[0093] Step S110 , recording the number of times the position changes in the same direction as the previous frame image and the number of times the position changes in a different direction in the next frame image.
[0094] In the disclosed embodiment, the two adjacent frames of images are included in the video data. The same change direction indicates that the two changes of the key node are in the same direction, for example, the first change is toward the positive direction of the X-axis, and the second change is also toward the positive direction of the X-axis. The different change directions indicate that the two changes of the key node are in different directions, for example, the first change is toward the positive direction of the Y-axis, and the second change is toward the negative direction of the Y-axis. In one example, the length direction of the image can be used as the horizontal coordinate, and the width direction of the image can be used as the vertical coordinate. The position of the key node of the body can be represented by the pixel coordinates where it is located. In one example, 5 frames of images are acquired within a preset time period: the coordinates of the ankle position of the first frame image are (35,20), the coordinates of the ankle position of the second frame image are (40,20), the coordinates of the ankle position of the third frame image are (45,20), the coordinates of the ankle position of the fourth frame image are (50,20), and the coordinates of the ankle position of the fifth frame image are (55,20). Then the image change direction of the ankle position in the next frame image compared with the previous frame image is always in the positive X direction, the Y direction does not change, and the number of times the X direction changes in the same direction is 4. In another example, 6 frames of images are acquired within a preset period of time: the coordinates of the neck position in the first frame image are (650,750), the coordinates of the neck position in the second frame image are (645,710), the coordinates of the neck position in the third frame image are (650,700), the coordinates of the neck position in the fourth frame image are (655,690), the neck position in the fifth frame image is (660,680), and the neck position in the sixth frame image is (670,690). Then the image change direction of the neck position in the next frame image compared with the previous frame image is X negative, Y negative 1 time, X positive, Y negative 1 time, X positive, Y negative 1 time, X positive, Y negative 1 time, X positive, Y negative 1 time, X positive, Y positive 1 time. In the preset time period, the target object changes in the same direction in the X direction 4 times and changes in different directions 1 time; the target object changes in the same direction in the Y direction 4 times and changes in different directions 1 time.
[0095] In a possible implementation, in step S106, according to the number of position changes and the tilt angle, identifying whether the target object has fallen, wherein, when the tilt angle is greater than a preset angle, the condition set as the target object falling includes at least one of the following:
[0096] The number of times the neck moves in the same direction is greater than a first preset threshold, the number of times the hip moves in the same direction is greater than a second preset threshold, the number of times the knee moves in the same direction is greater than a third preset threshold, the number of times the ankle moves in the same direction is less than a fourth preset threshold, and the number of times the neck moves in different directions is less than a fifth threshold.
[0097] In the embodiment of the present disclosure, the setting values of the first preset threshold to the fifth preset threshold may be the same or different. The preset angle may include a human body tilt angle threshold A shaking , which is defined as when the human body tilt angle is less than the threshold A shaking When the human body is tilted at an angle greater than the threshold A, the human body posture is normal. In this case, whether the human body has fallen is determined by detecting whether the human body is in full contact with the ground. shaking When the condition set as the target object falling down may include at least one of the following:
[0098] D SAME_neck >D SAME_threshold (2)
[0099] D SAME_hip >D SAME_threshold (3)
[0100] D SAME_knee >D SAME_threshold (4)
[0101] D SAME_ankle <D SAME_ankleThreshold (5)
[0102] D DIFF_neck <D DIFF_threshold (6)
[0103] Among them, D SAME_head , D SAME_hip , D SAME_knee , D SAME_ankle are the number of times the Y coordinates of the neck, mid-hip, knee, and ankle change in the same direction, D SAME_threshold is the preset threshold for the number of times the Y coordinates of the neck, mid-hip, and knee change in the same direction, D SAME_ankleThreshold is the preset threshold for the number of times the ankle Y coordinate changes in the same direction, D DIFF_neck is the number of times the Y coordinate of the neck changes in different directions within the preset period; D DIFF_threshold Preset thresholds for the number of times the Y coordinates of the neck, mid-hip, and knee change in different directions.
[0104] In the disclosed embodiment, the neck, mid-hip, knee, and ankle are used as key nodes of the body, and the number of changes in the Y coordinates within a preset period of time is counted. As the human body falls, each key node moves toward the ground, so the number of changes in the Y coordinates of each key node can be used as a condition for determining whether a fall has occurred.
[0105] In a possible implementation, in step S106, according to the number of position changes and the tilt angle, identifying whether the target object has fallen, wherein when the tilt angle is less than or equal to a preset angle, the condition set as the target object falling includes:
[0106] Within the preset time period, multiple first key body nodes of the target object are all in contact with the ground.
[0107] In the embodiment of the present disclosure, the definition of the first key body node is the same as that in the above embodiment, and will not be repeated here. When the tilt angle is less than or equal to the preset angle, it indicates that the body posture is normal, and whether the target object falls is determined by whether the multiple first key body nodes of the target object are in full contact with the ground within a preset time period. Corresponding to whether the multiple first key body nodes are in full contact with the ground at the starting moment of the preset time period in the above embodiment, the embodiment of the present disclosure makes a timely judgment on whether the multiple first key body nodes are in full contact with the ground within the preset time period, thereby strengthening the monitoring of fall events.
[0108] In one possible implementation, step S103 identifies whether the target object has fallen based on the number of position changes and the direction of change, wherein the condition set to indicate that the target object has not fallen includes at least one of the following: the number of different neck movement directions is greater than a sixth preset threshold, and the number of different hip movement directions is greater than a seventh preset threshold.
[0109] In one example, the condition that the target object does not fall is expressed as:
[0110] D DIFF_neck >D DIFF_threshold (7)
[0111] D DIFF_hip >D DIFF_threshold (8)
[0112] Among them, D DIFF_neck and D DIFF_hip are the number of times the Y coordinates of the neck and mid-hip change in different directions, D DIFF_threshold Preset thresholds for the number of times the neck, mid-hip, and Y coordinates change in different directions.
[0113] In the embodiment of the present disclosure, when the above-mentioned conditions for falling have not been met, by setting the condition that the target object has not fallen, it is possible to predict in advance whether the target object has fallen within the preset time period. In the embodiment of the present disclosure, the sixth preset threshold and the seventh preset threshold can be set to be the same or different. It should be noted that the setting method of the condition that the target object has not fallen is not limited to the above example. The number of changes of the knee in different directions is greater than the preset threshold. Technical personnel in the relevant field may make other changes under the inspiration of the technical essence of this application, but as long as the functions and effects achieved are the same or similar to those of the present application, they should be included in the protection scope of this application.
[0114] In a possible implementation, before obtaining position change information of multiple key body nodes of the target object moving within a preset time period from the video data in step S101, the method further includes:
[0115] Step S111, obtaining positions of multiple key body nodes of the target object in at least one pair of adjacent two-frame images;
[0116] Step S112, when the position changes in the next frame image in the same direction as that in the previous frame image, obtain position change information of multiple key body nodes of the target object moving within a preset time period from the video data.
[0117] In the disclosed embodiment, before obtaining the position change information of the movement of multiple key body nodes of the target object within a preset time period from the video data, the positions of the multiple key body nodes of the target object can be monitored first. If the position changes in the same direction in the next frame image as in the previous frame image, it indicates that the target object may fall, and therefore, the method for identifying falls in the above embodiment is initiated. In one example, the same change direction of multiple key body nodes in a pair of adjacent frame images can be used as a starting condition, and the same change direction of multiple key body nodes in multiple pairs of consecutive adjacent frame images can also be used as a starting condition.
[0118] In one possible implementation, Figure 3 is a schematic diagram showing a ground area in a video image according to an exemplary embodiment. Figure 4 is a schematic diagram showing a human body falling on the ground area in a video image according to an exemplary embodiment, with reference to Figure 3 and Figure 4 As shown, in the step S104, before determining whether all the first body key nodes of the target object are in contact with the ground at the start time of the preset time period, the method further includes:
[0119] Step S113, obtaining position information of preset key body nodes of the target object within a preset time period from the video data at preset intervals;
[0120] Step S114: updating the ground area in the video data according to the position information.
[0121] In the embodiment of the present disclosure, in order to distinguish the ground from furniture, etc., so as to avoid the target object lying on the bed or sofa being mistakenly regarded as falling, a ground area is set in the video image. Figure 3 In the video image 201, the dark area represents the ground area 302. Figure 4 In the video image 201, the target object 200 falls on the ground area 302. In one example, in order to avoid the mismatch between the previously learned ground area and the video image due to the movement of objects in the shooting scene, the ground area in the video data is updated at intervals of a preset period.
[0122] In the disclosed embodiment, the preset key body nodes may include a left big toe, a left little toe, a left heel, a right big toe, a right little toe, a right heel, etc. According to the position information of the preset key body nodes walking within a certain period of time, the area containing the coordinate positions of the key body nodes may be used as the ground area according to the position information.
[0123] In one possible implementation, Figure 5 FIG. 1 is a schematic diagram showing a video image represented by unit blocks according to an exemplary embodiment. Figure 3 and Figure 5 As shown, Figure 5 The video image 201 is represented as a unit block. Figure 3 The ground area 302 represented as a unit block is displayed. The step S114, updating the ground area in the video data according to the position information, includes:
[0124] Step S115, converting a plurality of position pixel points from the position information into unit blocks according to a preset rule;
[0125] Step S116: representing the ground area in the video data in the form of unit blocks.
[0126] In the embodiment of the present disclosure, in order to reduce the amount of data processing, multiple position pixels are converted into unit blocks according to a preset rule, and all pixels in the unit macroblock use the same macroblock identifier. In one example, the preset rule may include formula (9):
[0127] M id =(X / M size )+((Y / Msize )*(P width / M size )) (9)
[0128] Among them, M id is the unit block identifier, X, Y are the horizontal and vertical coordinates of the preset key body nodes in the image. size is the macroblock size. In one example, M size Can be set to 16 pixels. width is the image width, for example, for a 1920x1080 image, P width For a 1280x720 image, P width is 1280.
[0129] In a possible implementation, in the above embodiment, it is determined whether all of the first key body nodes of the target object are in contact with the ground, wherein the manner of setting the plurality of first key body nodes of the target object to be in contact with the ground includes:
[0130] Step S117, converting the position coordinates of the plurality of first body key nodes into unit blocks;
[0131] Step S118, when the unit block matches the unit block of the ground area successfully, all of the first body key nodes of the target object are in contact with the ground.
[0132] In the disclosed embodiment, the definition of the first body key node is the same as that of the above embodiment, and will not be repeated here. In one example, the position coordinates of multiple first body key nodes can be converted into unit block identifiers by formula (9), and the unit block identifier corresponding to the position coordinates of the first body key node can be matched with the unit block identifier of the ground area stored in advance. If the match is successful, it means that the first body key node is in contact with the ground. According to the above method, the other first body key nodes are judged in turn.
[0133] In one possible implementation, Figure 6 is a schematic diagram showing a human body blur according to an exemplary embodiment. Figure 6 As shown, in step 103, after identifying whether the target object has fallen according to the number of position changes and the direction of change, the method further includes:
[0134] Step S119, when it is determined that the target object has fallen, blurring the image of the target object in the video data, and sending the processed video data and fall information.
[0135] In the embodiment of the present disclosure, the image blurring process is performed on the target object in the video data, and the image blurring method includes but is not limited to Gaussian blurring, mean blurring and median blurring. Figure 6 As shown, based on the rectangular boundary of the target object 200, the range of 100 pixels is expanded to the surroundings to ensure that the target object is fully blurred, thereby obtaining a blurred area 601. In one example, the coordinates of the four vertices of the blurred rectangular frame can be determined using formulas (10), (11), (12), and (13).
[0136]
[0137]
[0138]
[0139]
[0140] Among them, C max is the maximum row length of the image. For a 1920x1080 image, C max For 1920, R max is the maximum column depth of the image. For a 1920x1080 image, R max is 1080.
[0141] In the disclosed embodiment, the blurred video data and the fall information are sent out, which can protect the privacy of the target object. After the fall event occurs, the method will save the private video with the blurred human figure for tracing. At the same time, the warning information will be notified to the emergency contact.
[0142] In a possible implementation, the step S101 of acquiring position change information of multiple key body nodes of the target object moving within a preset time period from the video data includes:
[0143] Step S120, when the target object is located within a preset range of the camera shooting the video data, position change information of multiple key body nodes of the target object moving within a preset time period is obtained from the video data.
[0144] In the embodiment of the present disclosure, considering that the proportion of the ground area in the image is too large, when the target object is standing, from the perspective of the video image, the target object may also be in full contact with the ground area, resulting in false detection of a fall. Therefore, an infrared sensor, a lidar sensor, an ultrasonic sensor, etc. are installed at the camera that shoots the video data, so that the fall of the target object is judged only when the target object is within the preset range of the camera that shoots the video data, which can increase the proportion of the target object in the video image.
[0145] In a possible implementation, the step S101 of acquiring position change information of multiple key body nodes of the target object moving within a preset time period from the video data includes:
[0146] Step S121, obtaining video data about the target object;
[0147] Step S122: extracting features from the video data to obtain position information of multiple key body nodes of the target object.
[0148] In the disclosed embodiment, the method of performing feature extraction on the video data to obtain the position information of multiple key body nodes of the target object has been described in the above embodiment and will not be repeated here.
[0149] In a possible implementation, a camera for capturing the video data is installed at a height of 0.8-2.3 m from the ground.
[0150] In the embodiment of the present disclosure, if the camera that shoots the video data is installed at a height greater than a preset height, it is easy to present a bird's-eye view in the video image. If the entire human body is on the road surface, it is easy to cause a false detection of a fall. Therefore, installing the camera that shoots the video data at a height of 0.8-2.3m from the ground can present a better ratio effect between the target object and the ground.
[0151] Fig. 9 1 is a block diagram of a device 900 for identifying a fall according to an exemplary embodiment. For example, the device 900 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0152] Reference Fig. 9 , the device 900 may include one or more of the following components: a processing component 902 , a memory 904 , a power component 906 , a multimedia component 908 , an audio component 910 , an input / output (I / O) interface 912 , a sensor component 914 , and a communication component 916 .
[0153] The processing component 902 generally controls the overall operation of the device 900, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 902 may include one or more processors 920 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 902 may include one or more modules to facilitate the interaction between the processing component 902 and other components. For example, the processing component 902 may include a multimedia module to facilitate the interaction between the multimedia component 908 and the processing component 902.
[0154] The memory 904 is configured to store various types of data to support operations on the device 900. Examples of such data include instructions for any application or method operating on the device 900, contact data, phone book data, messages, pictures, videos, etc. The memory 904 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0155] The power supply component 906 provides power to the various components of the device 900. The power supply component 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 900.
[0156] The multimedia component 908 includes a screen that provides an output interface between the device 900 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front camera and / or a rear camera. When the device 900 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0157] The audio component 910 is configured to output and / or input audio signals. For example, the audio component 910 includes a microphone (MIC), and when the device 900 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 904 or sent via the communication component 916. In some embodiments, the audio component 910 also includes a speaker for outputting audio signals.
[0158] I / O interface 912 provides an interface between processing component 902 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0159] The sensor assembly 914 includes one or more sensors for providing various aspects of status assessment for the device 900. For example, the sensor assembly 914 can detect the open / closed state of the device 900, the relative positioning of components, such as the display and keypad of the device 900, and the sensor assembly 914 can also detect the position change of the device 900 or a component of the device 900, the presence or absence of user contact with the device 900, the orientation or acceleration / deceleration of the device 900, and the temperature change of the device 900. The sensor assembly 914 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 914 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0160] The communication component 916 is configured to facilitate wired or wireless communication between the device 900 and other devices. The device 900 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0161] In an exemplary embodiment, the apparatus 900 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above method.
[0162] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 904 including instructions, and the instructions can be executed by the processor 920 of the device 900 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0163] Fig.10 1 is a block diagram of a device 1000 for identifying a fall according to an exemplary embodiment. For example, the device 1900 may be provided as a server. Fig.10 , the apparatus 1000 includes a processing component 1022, which further includes one or more processors, and a memory resource represented by a memory 1032 for storing instructions, such as an application, that can be executed by the processing component 1022. The application stored in the memory 1032 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 1022 is configured to execute instructions to perform the above method.
[0164] The device 1000 may also include a power supply component 1026 configured to perform power management of the device 1000, a wired or wireless network interface 1050 configured to connect the device 1000 to a network, and an input / output (I / O) interface 1058. The device 1000 may operate based on an operating system stored in the memory 1032, such as Windows Server™, MacOS X™, Unix™, Linux™, FreeBSD™, or the like.
[0165] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 1032 including instructions, and the instructions can be executed by the processing component 1022 of the device 1000 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0166] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0167] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A method for identifying a fall, characterized in that: include: Acquire position change information of multiple key body nodes of the target object moving within a preset time period from the video data; Determining the number of position changes and change directions of the plurality of key body nodes according to the position change information; identifying whether the target object has fallen according to the number of position changes and the direction of change; Wherein, determining the number of position changes and the direction of change of the multiple key body nodes according to the position change information includes: obtaining the positions of the multiple key body nodes in two adjacent frames of images; and recording the number of times the position changes in the same direction and the number of times the position changes in different directions in the next frame of image compared with the previous frame of image; Wherein, the change direction includes the tilt angle of the target object, and the identifying whether the target object falls according to the number of position changes and the change direction includes: identifying whether the target object falls according to the number of position changes and the tilt angle; identifying whether the target object falls according to the number of position changes and the tilt angle, wherein, when the tilt angle is greater than a preset angle, the condition set as the fall of the target object includes at least one of the following: the number of times the neck moves in the same direction is greater than a first preset threshold, the number of times the hip moves in the same direction is greater than a second preset threshold, the number of times the knee moves in the same direction is greater than a third preset threshold, the number of times the ankle moves in the same direction is less than a fourth preset threshold, and the number of times the neck moves in different directions is less than a fifth threshold; Wherein, the identification of whether the target object has fallen is performed based on the number of position changes and the direction of change, wherein the condition set to indicate that the target object has not fallen includes at least one of the following: the number of different neck movement directions is greater than a sixth preset threshold, and the number of different hip movement directions is greater than a seventh preset threshold.
2. The method according to claim 1, characterized in that The step of obtaining position change information of multiple key body nodes of the target object moving within a preset time period from the video data includes: At the start time of the preset time period, determining whether all of the first key body nodes of the target object are in contact with the ground, wherein if all of the first key body nodes are in contact with the ground, determining that the target object has fallen; In a case where the plurality of first key body nodes are not all in contact with the ground, position change information of the plurality of key body nodes of the target object moving within a preset time period is obtained from the video data.
3. The method according to claim 1, characterized in that The tilt angle is set to be obtained in the following manner, including: Obtaining positions of two preset body key nodes of the target object at the end of the preset time period; The angle between the line connecting the two positions and the vertical direction is taken as the inclination angle of the target object.
4. The method according to claim 1, characterized in that The identifying whether the target object falls down according to the number of position changes and the tilt angle, wherein, when the tilt angle is less than or equal to a preset angle, the condition set as the target object falling down includes: Within the preset time period, multiple first key body nodes of the target object are all in contact with the ground.
5. The method according to claim 1, characterized in that Before obtaining the position change information of multiple key body nodes of the target object moving within a preset time period from the video data, the method further includes: Obtaining positions of multiple key body nodes of the target object in at least one pair of adjacent two-frame images; In the case where the position changes in the next frame image in the same direction as that in the previous frame image, position change information of multiple key body nodes of the target object moving within a preset time period is obtained from the video data.
6. The method according to claim 2, characterized in that At the start time of the preset time period, determining whether all of the plurality of first body key nodes of the target object are in contact with the ground, the method further includes: Acquire, at preset intervals, from the video data, position information of preset key body nodes of the target object within a preset time period; The ground area in the video data is updated according to the position information.
7. The method according to claim 6, characterized in that The updating of the ground area in the video data according to the position information includes: From the position information, converting a plurality of position pixel points into unit blocks according to a preset rule; The ground area in the video data is represented in the form of unit blocks.
8. The method according to claim 7, characterized in that The method of determining whether all of the first key body nodes of the target object are in contact with the ground includes: Converting the position coordinates of the plurality of first body key nodes into unit blocks; When the unit block matches the unit block of the ground area successfully, all of the first key body nodes of the target object are in contact with the ground.
9. The method according to claim 1, characterized in that: After identifying whether the target object has fallen according to the number of position changes and the direction of change, the method further includes: When it is determined that the target object has fallen, an image blurring process is performed on the target object in the video data, and the processed video data and the fall information are sent out.
10. The method according to claim 1, characterized in that The step of obtaining position change information of multiple key body nodes of the target object moving within a preset time period from the video data includes: In the case that the target object is located within a preset range of the camera shooting the video data, position change information of a plurality of key body nodes of the target object moving within a preset time period is obtained from the video data.
11. The method according to claim 1, characterized in that: The step of obtaining position change information of multiple key body nodes of the target object moving within a preset time period from the video data includes: Obtaining video data about a target object; Feature extraction is performed on the video data to obtain position information of multiple key body nodes of the target object.
12. The method according to claim 1, characterized in that Also includes: The camera that captures the video data is installed at a height of 0.8-2.3 m from the ground.
13. A device for identifying falls, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the method according to any one of claims 1 to 12.
14. A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor, enables the processor to perform the method according to any one of claims 1 to 12.
Citation Information
Patent Citations
Fall detection method based on video
CN107220604A
Service robot based on posture recognition
CN108527381A
Pedestrian falling recognition method based on skeleton detection
CN109919132A
Body fall smart control system and method therefor
EP3418991A1
Vision based fall detection system using computer vision and single board computer for elderly person monitoring
IN201721045437A
