Abnormal behavior alarm method and device
By acquiring and analyzing behavioral videos of medical staff and generating action indicator sequences, it solves the problem of unwashed behavior that cannot be accurately monitored and alarmed in the existing technology, and achieves accurate identification and alarming of abnormal behaviors.
Patent Information
- Application Number
- CN202110800059.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-13
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2041-07-13
AI Technical Summary
During the hospital care process, it is difficult to accurately monitor whether medical staff wash their hands according to the rules with existing technology, resulting in the inability to identify and alarm abnormal behaviors, such as failure to complete the handwashing action.
By obtaining the target behavior video, determine the target person's identification, sampling window and recognition frequency, generate a behavior array sequence, and input it into a predetermined classification model to automatically generate a sequence of action indicators to determine whether there is abnormal behavior of not washing hands, and Issue an alarm prompt.
It improves the accuracy of alarming for abnormal behavior, can automatically predict abnormal behavior of not washing hands, and improves the effect of identification and alarm.
Smart Images

Figure CN113569671B
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to the field of computer technology, and in particular to an abnormal behavior alarm method and device. Background Art
[0002] In the process of hospital care, in order to prevent cross infection, the hospital has clear rules requiring medical staff to wash their hands between caring for different patients. In the past, these rules could only be checked through training and manual spot checks to check whether medical staff followed the rules. In most cases, there is no reasonable technical means to monitor whether medical staff wash their hands. Even through technologies such as near-field communication, medical staff can use sensors to determine whether medical staff have approached the sink, but it is impossible to determine whether medical staff wash their hands according to the rules and whether they comply with the seven-step hand washing method. Monitoring the quality and quantity of hand washing has always been a big problem.
[0003] First, the traditional judgment method determines whether the medical staff has washed their hands based on whether they are close to the sink. It is unable to truly determine whether the medical staff has completed the hand washing action as required, resulting in some abnormal behaviors of just approaching but not washing hands being unable to be identified, and an alarm cannot be issued for abnormal behaviors.
[0004] Second, the hand washing action is identified and judged based on the person's posture. Since there are many key points on the human body and the clarity of the video shooting is also affected by many factors such as lighting and environmental layout, there is often a problem of low recognition accuracy, which makes it impossible to accurately warn of abnormal behavior. Summary of the invention
[0005] The content of this disclosure is used to introduce concepts in a brief form, and these concepts will be described in detail in the specific implementation section below. The content of this disclosure is not intended to identify the key features or essential features of the technical solution for which protection is sought, nor is it intended to limit the scope of the technical solution for which protection is sought. Some embodiments of the present disclosure propose abnormal behavior alarm methods and devices to solve one or more of the technical problems mentioned in the above background technology section.
[0006] In a first aspect, some embodiments of the present disclosure provide an abnormal behavior alarm method, the method comprising: acquiring a target behavior video; determining a target person identification based on the target behavior video; determining a sampling window and a recognition frequency; determining a behavior array sequence based on the target behavior video, the recognition frequency and the sampling window; inputting the behavior array sequence into a predetermined classification model to obtain an action indicator sequence; determining an abnormal indicator based on the action indicator sequence; in response to the abnormal indicator meeting a preset condition, sending the target person identification to a target device, wherein the target device issues an alarm prompt information, and the alarm prompt information characterizes the abnormal behavior of the person corresponding to the target person identification.
[0007] In a second aspect, some embodiments of the present disclosure provide an abnormal behavior alarm device, the device comprising: a detection unit, configured to detect whether an operation authorization signal is received from a target terminal device, wherein the operation authorization signal is a signal generated by a user performing a target operation on a target control; a receiving unit, configured to obtain a target user identifier and a target search keyword in response to detecting the operation authorization signal; a first determination unit, configured to determine an initial information sequence based on the target user identifier, the target search keyword and a predetermined set of segmented data pairs; a second determination unit, configured to determine a target information sequence based on the target user identifier, a predetermined set of target click information array sequence and the initial information sequence; a control unit, configured to push the target information sequence to the target terminal device, and control the target terminal device to perform an alarm prompt operation.
[0008] The above-mentioned embodiments of the present disclosure have the following beneficial effects: the abnormal behavior alarm method of some embodiments of the present disclosure can automatically generate an action indicator sequence using the target behavior video, can alarm abnormal behavior according to preset conditions, and improve the accuracy of abnormal behavior alarm. Specifically, the inventor found that the problem that the abnormal behavior of not washing hands cannot be accurately alarmed is that the traditional judgment method judges whether to wash hands based on whether the medical staff is close to the sink, and cannot really judge whether the medical staff has completed the hand washing action as required, resulting in some abnormal behaviors that are just close but not washed. It is impossible to identify and alarm abnormal behaviors. Based on this, first, some embodiments of the present disclosure obtain the target behavior video. Specifically, the target behavior video can be a video shot within a period of time after the medical staff enters the room. Secondly, based on the target behavior video, the target person identification is determined. Specifically, face recognition can be performed based on the face shot in the target behavior video, and the identity of the person can be judged by comparing with the face image in the preset face library, and the target person identification is determined. Thirdly, the sampling window and recognition frequency are determined. Then, based on the target behavior video, the recognition frequency and the sampling window, the behavior array sequence is determined. Specifically, the target behavior video can be subjected to posture recognition to obtain the behavior array sequence of the medical staff. Then, the behavior array sequence is input into a predetermined classification model to obtain an action indicator sequence. The action indicators in the action indicator sequence can characterize the action category information after classification processing. Finally, according to the action indicator sequence, the abnormal index is determined. According to the comparison between the abnormal index and the preset conditions, it is judged whether the abnormal behavior of not washing hands occurs, and an alarm prompt is issued for the abnormal behavior. After the method performs posture recognition processing on the target behavior video, it uses a predetermined classification model to perform category recognition of the target behavior to automatically predict the abnormal behavior of not washing hands, and can perform abnormal recognition according to the behavior, thereby improving the recognition accuracy and the effect of the abnormal alarm. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0010] Figure 1 is an architectural diagram of an exemplary system in which some embodiments of the present disclosure may be applied;
[0011] Figure 2 is a flow chart of some embodiments of the abnormal behavior alarm method according to the present disclosure;
[0012] Figure 3 This is an exemplary authorization prompt box;
[0013] Figure 4 is a flow chart of one embodiment of a training step for training a classification model according to the present disclosure;
[0014] Figure 5 is a flow chart of some embodiments of the abnormal behavior alarm device according to the present disclosure;
[0015] Figure 6 It is a structural diagram of a terminal device suitable for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION
[0016] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0017] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.
[0018] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0019] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0020] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0021] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.
[0022] Figure 1 An exemplary system architecture 100 is shown to which an embodiment of the abnormal behavior alarm method disclosed herein can be applied.
[0023] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0024] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications, such as information processing applications, information generation applications, data analysis applications, etc., can be installed on terminal devices 101, 102, 103.
[0025] Terminal devices 101, 102, 103 can be hardware or software. When terminal devices 101, 102, 103 are hardware, they can be various terminal devices with display screens, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, etc. When terminal devices 101, 102, 103 are software, they can be installed in the terminal devices listed above. They can be implemented as multiple software or software modules (for example, to provide target behavior video input, etc.), or they can be implemented as a single software or software module. No specific limitation is made here.
[0026] The server 105 may be a server that provides various services, such as a server that stores the target behavior video input by the terminal devices 101, 102, and 103. The server may process the received target behavior video and feed back the processing result (such as an abnormality index) to the terminal device.
[0027] It should be noted that the abnormal behavior alarm method provided in the embodiment of the present disclosure can be executed by the server 105 or by a terminal device.
[0028] It should be pointed out that the server 105 can also directly store the target behavior video locally, and the server 105 can directly extract the local target behavior video and obtain abnormal indicators after processing. At this time, the exemplary system architecture 100 may not include the terminal devices 101, 102, 103 and the network 104.
[0029] It should also be noted that abnormal behavior alarm applications may also be installed in the terminal devices 101, 102, 103, and in this case, the processing method may also be executed by the terminal devices 101, 102, 103. In this case, the exemplary system architecture 100 may also not include the server 105 and the network 104.
[0030] It should be noted that the server 105 can be hardware or software. When the server 105 is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or it can be implemented as a single server. When the server is software, it can be implemented as multiple software or software modules (for example, for providing abnormal behavior alarm services), or it can be implemented as a single software or software module. No specific limitation is made here.
[0031] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0032] Continue to refer Figure 2 , shows a process 200 of some embodiments of the abnormal behavior alarm method according to the present disclosure. The abnormal behavior alarm method comprises the following steps:
[0033] Step 201, obtaining a target behavior video.
[0034] In some embodiments, the execution subject of the abnormal behavior alarm method (for example Figure 1 The server shown in the figure detects whether an operation authorization signal is received from the target device. The operation authorization signal is a signal generated by the user performing an operation on the target control. The above-mentioned target device may be a terminal device logged in with the corresponding account of the above-mentioned user. The above-mentioned terminal device may be a "mobile phone" or a "computer". The above-mentioned target control may be included in an authorization prompt box. The target control is displayed in the authorization prompt box, and the authorization prompt box is displayed on the target device. In response to detecting the operation authorization signal, the target behavior video is obtained.
[0035] As an example, the authorization prompt box above can be as follows Figure 3As shown. The authorization prompt box may include: a prompt information display part 301 and a control 302. The prompt information display part 301 may be used to display prompt information. The prompt information may be "whether to allow acquisition of the target behavior video". The control 302 may be a "confirm button" or a "cancel button".
[0036] In some embodiments, the execution subject of the abnormal behavior alarm method obtains the target behavior video in response to detecting the operation authorization signal. The target behavior video includes a first number of frames of target behavior images. Specifically, the target behavior video can be captured by a camera and an embedded device. The camera and the embedded device can be deployed at the pool location of a hospital ward. The target behavior video can be a video showing the action information of the medical staff after entering the ward.
[0037] Step 202, determining the target person identification based on the target behavior video.
[0038] In some embodiments, the execution subject of the abnormal behavior alarm method (for example Figure 1 The server shown in the figure) determines the target person identification based on the target behavior video. Specifically, face recognition can be performed according to the target behavior image to determine the target person identification. Specifically, a face database of a hospital can be predetermined, wherein the face images in the face database are front and side face images of hospital medical staff. Face recognition technology can be used to identify the face in the target behavior image. In response to finding the face of the medical staff in the predetermined hospital face database, the identification of the found medical staff is determined as the target person identification. Face recognition technology refers to the use of computer technology for analysis and comparison to identify faces. Face recognition technology belongs to biometric identification technology, which distinguishes individual organisms by the biological characteristics of the organism (generally referring to humans) itself. Face recognition technology is based on human facial features. For the input face image or video stream, it is first determined whether there is a face. If there is a face, the position, size and position information of each face's main facial organs are further given. Based on this information, the identity features contained in each face are further extracted, and compared with the known faces, so as to identify the identity of each face. Specifically, the feature vector method can be used for face recognition, or the face pattern template method can be used for face recognition.
[0039] Step 203, determining the sampling window and the recognition frequency.
[0040] In some embodiments, the above-mentioned execution subject determines the sampling window and the recognition frequency. Specifically, the recognition frequency can represent the number of times the target behavior image in the target behavior video is recognized per second. Specifically, the recognition frequency can be 5Hz, which means five times per second. The sampling window can be used to represent a sliding window for recognizing the target behavior image in the target behavior video. Specifically, the sampling window can be 3 seconds, sampling the target behavior image within 3 seconds.
[0041] Step 204, determining a behavior array sequence based on the target behavior video, the recognition frequency and the sampling window.
[0042] In some embodiments, the execution subject determines the behavior array sequence based on the target behavior video, the recognition frequency and the sampling window. Optionally, for each frame of the target behavior image in the target behavior video, the key point coordinate array sequence of the target behavior image is determined to obtain a set of key point coordinate array sequences. Among them, the key point coordinate array sequence includes a second number of key point coordinate arrays, and the key point coordinate array represents the three-dimensional video coordinates of the key point. For each frame of the target behavior image in the target behavior video, a key point sequence in the target behavior image is determined using a predetermined posture recognition model. Among them, the key point sequence includes a hand key point sequence, a limb key point sequence and a trunk key point sequence. Specifically, the posture recognition model refers to a model for computer recognition of human body posture. The predetermined posture recognition model can be a three-dimensional body posture generated by using the input target behavior video. Specifically, there are 54 key points in the fingers and wrists of a person. The sequence of 54 key points can be determined as a key point sequence. For each key point in the key point sequence, the key point coordinate array of the key point is determined to obtain the key point coordinate array sequence of the target behavior image. Specifically, the coordinates of the key points of the fingers and wrist can be [[x0,y0,z0],[x1,y1,z1]...[x 53 ,y 53 ,z 53 ]]. Where x, y, and z represent three-dimensional coordinates, 0, 1, and 53 represent key point counts, respectively. [x0, y0, z0] represents the first key point coordinate array of the target behavior image, [x1, y1, z1] represents the second key point coordinate array of the target behavior image, and [x 53 ,y 53 ,z 53 ] represents the 54th key point coordinate array of the target behavior image.
[0043] According to the key point coordinate array sequence set, the recognition frequency and the sampling window, the extended key point coordinate array sequence is determined. The extended key point coordinate array sequence includes a third number of extended key point coordinate arrays, and the third number is the product of the recognition frequency and the sampling window. The extended key point coordinate array in the extended key point coordinate array sequence represents the three-dimensional video coordinates of the extended key point. The extended key point coordinate array sequence is determined as a behavior array sequence, wherein the behavior array is an extended key point coordinate array. Specifically, for each frame of the target behavior image in the target behavior video, sampling is performed according to the recognition frequency and the sampling window, and the key point coordinate array sequence of the target behavior image is determined to be a data sequence of size 3x5x54x3 to obtain a key point coordinate array sequence set. Specifically, the data in the coordinate array in the key point coordinate array sequence have been normalized to values in the range of [0,1], which can represent the relative values of the fingers and wrists of the human body relative to the entire picture, thereby reducing the problem of needing to readjust the model parameters due to inconsistent camera resolution.
[0044] The optional content in the above steps 203-204, namely, "the technical method of generating a behavior array sequence after performing posture recognition of key parts of the human body according to the target behavior video" is an inventive point of an embodiment of the present disclosure, which solves the technical problem 2 mentioned in the background technology, "the recognition and judgment of hand washing actions according to the posture of a person, due to the large number of key points in the human body, the clarity of the video shooting is also affected by various factors such as lighting and environmental layout, and there is often a problem of low recognition accuracy, which leads to the inability to accurately warn of abnormal behavior." The factors that lead to poor accuracy of abnormal behavior warning are often as follows: the posture recognition of the complete human body in the video to generate the behavior array sequence is greatly affected by the external environment and has low accuracy. If the above factors are solved, the effect of improving the accuracy of the output alarm can be achieved. In order to achieve this effect, the present disclosure performs posture recognition on key parts of the human body, and generates a behavior array sequence by sampling multiple times through a sampling window and a recognition frequency. First, the sampling window and the recognition frequency are determined as sampling indicators. Then, the posture recognition of key parts of the target behavior image in the target behavior video is performed. Specifically, the key point sequence includes a hand key point sequence, a limb key point sequence, and a trunk key point sequence. Finally, the target behavior image is extracted according to the sampling window and recognition frequency to generate a behavior array sequence for subsequent behavior category recognition. This method takes into account the posture recognition of key parts of the human body, increases the sampling frequency, and reduces the influence of external factors, thereby helping to improve the accuracy of subsequent abnormal behavior recognition alarms, thereby solving technical problem 2.
[0045] Step 205: input the behavior array sequence into a predetermined classification model to obtain an action indication sequence.
[0046] In some embodiments, the execution subject inputs the behavior array sequence into a predetermined classification model to obtain an action indication sequence. Specifically, the predetermined classification model may be a convolutional neural network, the predetermined classification model may also be a long short-term memory artificial neural network, or the predetermined classification model may also be a multi-layer perceptron. Specifically, before inputting the behavior array sequence into the predetermined classification model, the pre-trained classification model may be fine-tuned using a historical database to update various parameters in the predetermined classification model. Specifically, the historical database may be composed of historical data collected from a selected target hospital.
[0047] Specifically, the action indicator sequence includes a third number of action indicators. The third number is the product of the recognition frequency and the sampling window. The value range of the action indicator is [0,1], "1" represents the hand washing behavior, and "0" represents the unwashed hand washing behavior. Specifically, for each behavior array in the behavior array sequence, after the behavior array is input into a predetermined classification model, the category of the behavior array is generated to obtain a category sequence. Specifically, the value range of the category is [0,1,2,3,4,5,6,7]. Among them, "0" represents the unwashed hand washing behavior, "1" represents the first step of hand washing behavior, "2" represents the second step of hand washing behavior, "3" represents the third step of hand washing behavior, "4" represents the fourth step of hand washing behavior, "5" represents the fifth step of hand washing behavior, "6" represents the sixth step of hand washing behavior, and "7" represents the seventh step of hand washing behavior. Specifically, "1", "2", "3", "4", "5", "6", and "7" can respectively represent the steps in the seven-step hand washing method. The seven-step hand washing method refers to washing the palms, washing the back of the fingers, washing the palm side of the fingers, washing the back of the fingers, washing the thumbs, washing the fingertips, washing the wrists and arms. The seven-step hand washing method is a standardized and hygienic hand washing method. Among them, "0" represents the behavior of not washing hands, "1" represents the behavior of washing the palms, "2" represents the behavior of washing the back of the fingers, "3" represents the behavior of washing the palm side of the fingers, "4" represents the behavior of washing the back of the fingers, "5" represents the behavior of washing the thumbs, "6" represents the behavior of washing the fingertips, and "7" represents the behavior of washing wrists and arms. Specifically, for each behavior array in the behavior array sequence, in response to the category of the behavior array being "0", the action indication corresponding to the behavior array is generated as "0". In response to the category of the behavior array being "1", the action indication corresponding to the behavior array is generated as "1". In response to the category of the behavior array being "2", the action indication corresponding to the behavior array is generated as "1". In response to the category of the behavior array being "3", the action indication corresponding to the behavior array is generated as "1". In response to the category of the behavior array being "4", the action indication corresponding to the behavior array is generated to be "1". In response to the category of the behavior array being "5", the action indication corresponding to the behavior array is generated to be "1". In response to the category of the behavior array being "6", the action indication corresponding to the behavior array is generated to be "1". In response to the category of the behavior array being "7", the action indication corresponding to the behavior array is generated to be "1".
[0048] Step 206, determining an abnormality indicator according to the action indication sequence.
[0049] In some embodiments, the execution subject determines an abnormality indicator based on an action indicator sequence. In response to finding "1" in the action sequence, the abnormality indicator is determined to be "1". Specifically, in response to finding "1" in the action sequence, it indicates that hand washing behavior appears in the target behavior video. In response to not finding "1" in the action sequence, the abnormality indicator is determined to be "0". Specifically, in response to not finding "1" in the action sequence, it indicates that hand washing behavior does not appear in the target behavior video.
[0050] Step 207: In response to the abnormal indicator meeting the preset condition, the target person identification is sent to the target device.
[0051] In some embodiments, the execution subject sends the target person identification to the target device in response to the abnormal indicator meeting the preset condition. The target device issues an alarm prompt message, and the alarm prompt message indicates that the person behavior corresponding to the target person identification is abnormal. Specifically, the preset condition may be an incomplete hand washing action. In response to an incomplete hand washing action, the target person identification is sent to the target device.
[0052] Figure 2 An embodiment provided has the following beneficial effects: obtaining a target behavior video; determining a target person identification based on the target behavior video; determining a sampling window and a recognition frequency; determining a behavior array sequence based on the target behavior video, the recognition frequency and the sampling window; inputting the behavior array sequence into a predetermined classification model to obtain an action indication sequence; determining an abnormality index based on the action indication sequence; in response to the abnormality index meeting a preset condition, sending the target person identification to a target device, wherein the target device issues an alarm prompt message, and the alarm prompt message indicates that the person behavior corresponding to the target person identification is abnormal. This implementation method uses the target behavior video to automatically generate an action indication sequence, and can alarm abnormal behaviors according to preset conditions, thereby improving the accuracy of abnormal behavior alarms.
[0053] Continue to refer Figure 4 , shows a process 400 of an embodiment of a training step of a predetermined classification model according to the present disclosure. The training step may include the following steps:
[0054] Step 401: Obtain a sample set.
[0055] In some embodiments, the execution subject of the training step can be the same as the execution subject of the abnormal behavior alarm method (for example Figure 1The server shown in the figure) is the same or different. If they are the same, the execution subject of the training step can store the model structure information of the trained classification model and the parameter values of the model parameters locally after the classification model is trained. If they are different, the execution subject of the training step can send the model structure information of the trained classification model and the parameter values of the model parameters to the execution subject of the abnormal behavior alarm method after the classification model is trained.
[0056] In some embodiments, the execution subject of the training step can obtain the sample set locally or remotely from other terminal devices connected to the execution subject network. The samples in the sample set include a sample behavior array sequence and a sample category corresponding to the sample behavior array sequence.
[0057] Optionally, the value range of the sample category is [0,1,2,3,4,5,6,7]. Among them, "0" represents the behavior of not washing hands, "1" represents the first step of washing hands, "2" represents the second step of washing hands, "3" represents the third step of washing hands, "4" represents the fourth step of washing hands, "5" represents the fifth step of washing hands, "6" represents the sixth step of washing hands, and "7" represents the seventh step of washing hands. Specifically, "1", "2", "3", "4", "5", "6", and "7" can represent the steps in the seven-step hand washing method respectively. The seven-step hand washing method refers to washing the palm of the hand, washing the back of the hand between the fingers, washing the palm of the hand between the fingers, washing the back of the finger, washing the thumb, washing the fingertips, washing the wrist and the arm. The seven-step hand washing method is a standardized and hygienic hand washing method. Among them, "0" represents the behavior of not washing hands, "1" represents the behavior of washing the palm of the hand, "2" represents the behavior of washing the back of the hand, "3" represents the behavior of washing the palm of the hand, "4" represents the behavior of washing the back of the finger, "5" represents the behavior of washing the thumb, "6" represents the behavior of washing the fingertips, and "7" represents the behavior of washing the wrist and the arm.
[0058] Step 402: determine the model structure of the initial classification model and initialize the model parameters of the initial classification model.
[0059] In some embodiments, the execution subject of the training step may first determine the model structure of the initial classification model. Specifically, the initial classification model may be a convolutional neural network, a long short-term memory artificial neural network, or a multi-layer perceptron.
[0060] Then, the execution subject of the training step can initialize the model parameters of the initial classification model. In practice, the various model parameters of the initial classification model (for example, weight parameters and bias parameters) can be initialized with some different small random numbers. "Small random numbers" are used to ensure that the model will not enter a saturated state due to excessive weights, thereby causing training failure, and "different" is used to ensure that the model can learn normally.
[0061] Step 403, using a machine learning method, taking the sample behavior array sequence included in the samples in the sample set as the input of the initial classification model, taking the category of the pre-obtained samples corresponding to the input sample behavior array sequence as the expected output of the initial classification model, and training to obtain the classification model.
[0062] In some embodiments, the executor of the training step can utilize a machine learning method to use the sample behavior array sequence included in the samples in the sample set as the input of the initial classification model, and use the category of the pre-obtained samples corresponding to the input sample behavior array sequence as the expected output of the initial classification model to train the classification model.
[0063] Specifically, the sample behavior array sequence of the selected sample is input into the initial classification model to obtain the category of the selected sample. The category of the selected sample is compared with the corresponding sample category. According to the comparison result, it is determined whether the initial classification model reaches a preset optimization target. Specifically, the optimization target may be less than a predetermined threshold, and the optimization target may also be to reach a predetermined number of iterations. In response to determining that the initial classification model reaches the optimization target, the initial classification model is used as a predetermined classification model.
[0064] In response to determining that the initial classification model has not been trained, relevant parameters in the initial classification model are adjusted, and samples are reselected from the sample set, and the adjusted initial classification model is used as the initial classification model to perform the training step again.
[0065] Figure 4 An embodiment provided has the following beneficial effects: by pre-generating a classification model, the target behavior video can be processed using automatic recognition technology to automatically obtain the behavior category information of medical staff, thereby assisting in subsequent abnormal behavior identification and early warning, and improving the level of early warning.
[0066] Further references Figure 5 As an implementation of the above methods in the above figures, the present disclosure provides some embodiments of an abnormal behavior alarm device. These device embodiments are similar to Figure 2 Corresponding to the above method embodiments, the device can be specifically applied to various terminal devices.
[0067] like Figure 5As shown, in some embodiments, the abnormal behavior alarm device 500 includes: an acquisition unit 501, a first determination unit 502, a second determination unit 503, a third determination unit 504, a generation unit 505, a fourth determination unit 506 and a control unit 507. Among them, the acquisition unit 501 is configured to acquire a target behavior video, wherein the target behavior video includes a first number of frames of target behavior images. The first determination unit 502 is configured to determine the target person identification based on the target behavior video. The second determination unit 503 is configured to determine the sampling window and the recognition frequency. The third determination unit 504 is configured to determine the behavior array sequence based on the target behavior video, the recognition frequency and the sampling window. The generation unit 505 is configured to input the behavior array sequence into a predetermined classification model to obtain an action indicator sequence. The fourth determination unit 506 is configured to determine the abnormal index according to the action indicator sequence. The control unit 507 is configured to send the target person identification to the target device in response to the abnormal indicator meeting the preset condition, wherein the target device issues an alarm prompt information, and the alarm prompt information indicates that the person behavior corresponding to the target person identification is abnormal.
[0068] It is understood that the units described in the device 500 are similar to those described in the reference Figure 2 Therefore, the operations, features and beneficial effects described above for the method are also applicable to the device 500 and the units included therein, and will not be described in detail here.
[0069] Reference below Figure 6 , which shows a schematic diagram of the structure of a computer system 600 of a terminal device suitable for implementing an embodiment of the present disclosure. Figure 6 The terminal device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0070] like Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 602 or the program loaded from the storage part 606 to the random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, the ROM 602 and the RAM 603 are connected to each other through a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0071] The following components are connected to the I / O interface 605: a storage section 606 including a hard disk, etc.; and a communication section 607 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 607 performs communication processing via a network such as the Internet. A drive 608 is also connected to the I / O interface 605 as needed. A removable medium 609, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 608 as needed, so that a computer program read therefrom is installed into the storage section 606 as needed.
[0072] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 607, and / or installed from the removable medium 609. When the computer program is executed by the central processing unit (CPU) 601, the above functions defined in the method of the present disclosure are executed. It should be noted that the computer-readable medium described in the present disclosure can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection with one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device, or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction execution system, device, or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0073] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as C or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0074] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0075] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present disclosure is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above invention concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other.
Claims
1. An abnormal behavior alarm method, comprising: Acquire a target behavior video, wherein the target behavior video includes a first number of frames of target behavior images; Determine the target person identification based on the target behavior video; Determine a sampling window and a recognition frequency, wherein the sampling window is used to represent a sliding window for identifying a target behavior image in a target behavior video, and the recognition frequency represents the number of times the target behavior image in the target behavior video is recognized per second; Determine a behavior array sequence based on the target behavior video, the recognition frequency and the sampling window; Inputting the behavior array sequence into a predetermined classification model to obtain an action indication sequence; Determining abnormal indicators according to the action indication sequence; In response to the abnormal indicator meeting the preset condition, the target person identification is sent to the target device, wherein the target device issues an alarm prompt information, and the alarm prompt information indicates that the person behavior corresponding to the target person identification is abnormal; Wherein, determining the behavior array sequence based on the target behavior video, the recognition frequency and the sampling window includes: For each frame of the target behavior image in the target behavior video, determine the key point coordinate array sequence of the target behavior image to obtain a key point coordinate array sequence set, wherein the key point coordinate array sequence includes a second number of key point coordinate arrays, and the key point coordinate array represents the three-dimensional video coordinates of the key points, wherein determining the key point coordinate array sequence of the target behavior image includes: using a predetermined posture recognition model to determine the key point sequence in the target behavior image, wherein the key point sequence includes a hand key point sequence, a limb key point sequence and a torso key point sequence, and the data in the coordinate arrays in the key point coordinate array sequence have all been normalized to values within the range of [0,1], representing the relative values of the fingers and wrists of the human body relative to the entire screen; For each key point in the key point sequence, determining a key point coordinate array of the key point to obtain a key point coordinate array sequence of the target behavior image; Determine an extended key point coordinate array sequence according to the key point coordinate array sequence set, the recognition frequency and the sampling window, wherein the extended key point coordinate array sequence includes a third number of extended key point coordinate arrays, the third number being the product of the recognition frequency and the sampling window, and the extended key point coordinate arrays in the extended key point coordinate array sequence represent the three-dimensional video coordinates of the extended key points; The extended key point coordinate array sequence is determined as the behavior array sequence, wherein the behavior array is the extended key point coordinate array.
2. The method according to claim 1, wherein: The predetermined classification model is obtained by the following steps: Determining a model structure of an initial classification model and initializing model parameters of the initial classification model; Acquire a sample set, wherein the samples in the sample set include a sample behavior array sequence and a sample category corresponding to the sample behavior array sequence; Select samples from the sample set and perform the following training steps: Input the sample behavior array sequence of the selected sample into the initial classification model to obtain the category of the sample; Comparing the category of the selected sample with the corresponding sample category; Determine whether the initial classification model is trained according to the comparison result; In response to determining that the initial classification model training is completed, the initial classification model is determined to be a predetermined classification model.
3. The method according to claim 2, wherein: The method further comprises: In response to determining that the initial classification model has not been trained, relevant parameters in the initial classification model are adjusted, and samples are reselected from the sample set, and the adjusted initial classification model is used as the initial classification model to continue executing the training step.
4. The method according to claim 3, wherein: The value range of the sample category is [0,1,2,3,4,5,6,7], where "0" represents the behavior of not washing hands, "1" represents the first step of washing hands, "2" represents the second step of washing hands, "3" represents the third step of washing hands, "4" represents the fourth step of washing hands, "5" represents the fifth step of washing hands, "6" represents the sixth step of washing hands, and "7" represents the seventh step of washing hands.
5. The method according to claim 4, wherein: The action indicator sequence includes a third number of action indicators, and the value range of the action indicator is [0, 1], "1" represents the behavior of washing hands, and "0" represents the behavior of not washing hands.
6. The method according to claim 5, wherein: Determining the abnormality indicator according to the action indication sequence includes: In response to finding "1" in the action sequence, the abnormality indicator is determined to be "1".
7. The method according to claim 6, wherein: Determining the abnormality indicator according to the action sequence includes: In response to not finding "1" in the action sequence, the abnormality indicator is determined to be "0".
8. An abnormal behavior alarm device, comprising: An acquisition unit is configured to acquire a target behavior video, wherein the target behavior video includes a first number of frames of target behavior images; A first determining unit is configured to determine a target person identification based on the target behavior video; A second determination unit is configured to determine a sampling window and a recognition frequency, wherein the sampling window is used to represent a sliding window for identifying a target behavior image in a target behavior video, and the recognition frequency represents the number of times the target behavior image in the target behavior video is recognized per second; A third determining unit is configured to determine a behavior array sequence based on the target behavior video, the recognition frequency and the sampling window; A generating unit configured to input the behavior array sequence into a predetermined classification model to obtain an action indication sequence; a fourth determining unit, configured to determine an abnormality indicator according to the action indication sequence; A control unit is configured to send the target person identification to a target device in response to the abnormal indicator meeting a preset condition, wherein the target device issues an alarm prompt message, wherein the alarm prompt message indicates that the person behavior corresponding to the target person identification is abnormal; Wherein, determining the behavior array sequence based on the target behavior video, the recognition frequency and the sampling window includes: For each frame of the target behavior image in the target behavior video, determine the key point coordinate array sequence of the target behavior image to obtain a key point coordinate array sequence set, wherein the key point coordinate array sequence includes a second number of key point coordinate arrays, and the key point coordinate array represents the three-dimensional video coordinates of the key points, wherein determining the key point coordinate array sequence of the target behavior image includes: using a predetermined posture recognition model to determine the key point sequence in the target behavior image, wherein the key point sequence includes a hand key point sequence, a limb key point sequence and a torso key point sequence, and the data in the coordinate arrays in the key point coordinate array sequence have all been normalized to values within the range of [0,1], representing the relative values of the fingers and wrists of the human body relative to the entire screen; For each key point in the key point sequence, determining a key point coordinate array of the key point to obtain a key point coordinate array sequence of the target behavior image; Determine an extended key point coordinate array sequence according to the key point coordinate array sequence set, the recognition frequency and the sampling window, wherein the extended key point coordinate array sequence includes a third number of extended key point coordinate arrays, the third number being the product of the recognition frequency and the sampling window, and the extended key point coordinate arrays in the extended key point coordinate array sequence represent the three-dimensional video coordinates of the extended key points; The extended key point coordinate array sequence is determined as the behavior array sequence, wherein the behavior array is the extended key point coordinate array.
Citation Information
Patent Citations
Acceleration sensor-based human body falling down identification method
CN108109336A
Human motion recognition method and device
CN108985259A
An abnormal state detection method for a person needing special nursing based on human body key points
CN109558865A
An unmanned intelligent monitoring system
CN109684972A
High-risk area protection management and control method and system and storage medium
CN112507830A
