Behavior recognition method, behavior recognition device and recording medium
By drawing and updating motion feature quantities in the feature quantity space, the problem of recognition omissions in the existing technology is solved, the adaptability and accuracy of behavior recognition are improved, and the need for training data preparation is reduced.
Patent Information
- Application Number
- CN202110388562.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-06-23
- Filing Date
- 2021-04-12
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-04-12
AI Technical Summary
It is difficult for existing technology to cover changes in behavior when identifying object behaviors, resulting in the possibility of missing target behaviors when creating rules, making it difficult to improve recognition accuracy without increasing training data.
By extracting the skeleton information in the image frame, calculating the motion feature quantities, and drawing these feature quantities in the feature quantity space, the update mechanism of the mapping area is used to dynamically adjust the rules to identify and correct the missed motion patterns.
It realizes the detection of identification omissions and automatic updating of rules, improves the adaptability to behavioral changes and identification accuracy, and reduces the need for training data preparation.
Smart Images

Figure CN113836990B_ABST
Abstract
Description
Technical Field
[0001] The embodiments discussed herein relate to a behavior recognition method, a behavior recognition device, and a recording medium. Background Art
[0002] There are known techniques for recognizing behavior from images. For example, there is a technique for recognizing a target behavior from the recognition results of basic motions of an image according to a rule defining a combination of basic motions as constituent elements of a complex behavior.
[0003] For example, related technologies are disclosed in Japanese Laid-Open Patent Publication No. 2018-147153 and Japanese Laid-Open Patent Publication No. 2005-202653.
[0004] However, there may be a large amount of variation in the behavior of the identified object. Therefore, using the above techniques, it may be difficult to create rules without missing the identification of the target behavior when creating the rules.
[0005] One aspect of the present embodiment aims to provide a behavior recognition method and a behavior recognition device that can update rules according to operations. Summary of the invention
[0006] According to one aspect of the embodiment, a behavior recognition method includes: extracting skeleton information including multiple joint positions for each frame of an image by a computer; calculating a first set of motion feature quantities based on the skeleton information; calculating a drawing position by drawing the first set of motion feature quantities on a feature quantity space defined by a second set of motion feature quantities, the drawing position being the position where the first set of motion feature quantities are drawn on the feature quantity space, the feature quantity space having multiple mapping areas, and respective ranges corresponding to predetermined higher-level behaviors to be identified are mapped in the multiple mapping areas; and performing an update of the mapping area at the minimum distance from the drawing position based on the drawing position when the degree of deviation between the minimum distance between the drawing position and each of the multiple mapping areas and the other distances meets a predetermined standard.
[0007] According to an aspect of the embodiment, the rules may be updated according to the operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] Figure 1 is a diagram showing an example of a behavior recognition service according to the first embodiment;
[0009] Figure 2 is a diagram showing an example of determination condition data;
[0010] Figure 3 is a diagram showing an example of an image;
[0011] Figure 4is a diagram showing an example of an image;
[0012] Figure 5 is a diagram showing an example of a feature quantity space;
[0013] Figure 6 is a schematic diagram showing an example of a method of updating a second rule;
[0014] Figure 7 is a block diagram showing an example of a functional configuration of a behavior recognition device according to the first embodiment;
[0015] Figure 8 is a diagram showing an example of the second rule;
[0016] Fig. 9 is a diagram showing another example of the second rule;
[0017] Fig.10 is a diagram showing an example of analysis results;
[0018] Fig.11 is a diagram showing an example of analysis results;
[0019] Fig.12 is a flowchart showing the procedure of rule conversion processing according to the first embodiment;
[0020] Fig.13 is a flowchart showing the procedure of the rule update process according to the first embodiment;
[0021] Fig.14 is a diagram showing an example of correction of a recognition result of a higher-level behavior; and
[0022] Fig.15 is a diagram showing an example of a computer hardware configuration. DETAILED DESCRIPTION
[0023] Hereinafter, embodiments of the behavior recognition method and behavior recognition device according to the present disclosure will be described with reference to the accompanying drawings. The present disclosure is not limited to these embodiments. In addition, the embodiments may be appropriately combined with each other within the scope of not causing any inconsistency in the processing content.
[0024] (First Embodiment)
[0025] (Example of behavior recognition service)
[0026] Figure 1 is a diagram showing an example of a behavior recognition service according to the first embodiment. Figure 1The illustrated behavior recognition service 1 provides a service for recognizing the behavior of a subject (e.g., a person) from an image of a camera 2. In such a behavior recognition service 1, only as an example, higher-level behaviors (e.g., work behaviors, suspicious behaviors, and purchase behaviors) complicated by combining multiple movements are recognition targets.
[0027] In addition to the above-mentioned behavior recognition service 1, in order to recognize "higher-level behaviors", a large number of images including higher-level behaviors must be prepared as training data. The preparation of such a large amount of training data may be difficult in practice, or even if a large amount of training data can be prepared, it takes time and effort, making it difficult to introduce a large amount of training data into the field.
[0028] From the aspect of eliminating the need to prepare such a large amount of training data, the above-mentioned behavior recognition service 1 recognizes higher-level behaviors according to rules defining combinations of “basic movements” performed in daily life.
[0029] like Figure 1 As shown, the behavior recognition service 1 may include an object recognition function 3, a basic motion recognition function 4, a higher-level behavior recognition function 5, and the like.
[0030] The object recognition function 3 is a function of recognizing an object from an image captured by the camera 2. The term "object" used here refers to the subject of the image that is the target of behavior recognition, and may include, for example, a person who is the target of behavior recognition. In addition to people, objects may also include things related to behavior recognition, such as tools used by people, and furniture, goods, or equipment placed in an environment. As an example only, the object recognition function 3 recognizes an object for each frame of the image. In addition, the object recognition function 3 extracts skeleton information including the position of each joint by performing a process called skeleton detection or posture detection (posture estimation) on the object.
[0031] Basic motion recognition function 4 is a function for identifying basic motions from the skeleton information of each frame. The term "basic motion" used here may include "whole body behavior" in which motion occurs in the whole body of a person, "partial behavior" in which motion occurs in a part of the human body, etc. Among them, examples of "whole body behavior" may include behaviors such as "walking", "running", "stopping", etc. In addition, examples of "partial behavior" may include behaviors such as "raising the right hand", "looking down", "looking forward", etc. These "whole body behaviors" and "partial behaviors" are "basic motions" performed in daily life, and are simpler behaviors than "higher-level behaviors". Therefore, images of "basic motions" can be easily collected, and "basic motions" can be highly accurately identified by trained models. In addition, "basic motions" may include motions for objects such as "holding an object" and "seeing an object" and motions for locations such as "body parts entering a region of interest in an image, i.e., the so-called ROI (region of interest)".
[0032] The posture feature quantity calculated as the feature quantity representing the posture according to the positional relationship between the joints in the frame unit of the image and its time change information can be used to identify such "basic motion". Hereinafter, "posture feature quantity" and "time change information" are collectively referred to as "motion feature quantity". Here, as an example, the feature quantity is used for the recognition of the basic motion, but the recognition of the basic motion can also be achieved by learning a model of the basic motion according to a machine learning algorithm such as deep learning.
[0033] Figure 2 FIG. 4 is a diagram showing an example of determining condition data. Figure 2 As shown, the determination condition data 4A defines the determination conditions of two types of motion feature quantities (i.e., posture feature quantities and time change information) for each "basic motion ID (identification)" as an example of identification information for identifying basic motions. More specifically, the determination condition data 4A adopts data in which the motion name, motion type and determination condition are associated for each basic motion ID. The term "motion name" used here refers to the name of the basic motion. In addition, the term "motion type" used here refers to the type of classification of basic motions, and here, only as an example, the basic motions are classified according to which of the two types "continuous" and "instantaneous" each motion corresponds to. For example, the motion of the "same" situation represented by "going on ~" and "going on ~" is classified as "continuous". In addition, in the case of "going on ~", the motion representing the end state of the situation, such as the result or completion of the situation, is classified as "instantaneous". Such classification enables the following discrimination of the "instantaneous" basic motion. For example, in the case of identifying the "squatting" state, it is determined whether the posture feature quantity satisfies the determination condition, and in the case of identifying the posture change of "squatting", it can be determined whether the time change information satisfies the determination condition.
[0034] For example, in Figure 2 Among the basic movements shown, whole-body behavior is taken as an example. Basic movements whose movement types are classified as "continuous" among whole-body behaviors include "walking" and "running". For example, the basic movement "walking" is identified based on whether the determination conditions that the positions of the joints of the whole body correspond to the posture "walking" and the moving speed of the positions of the joints of the whole body is 4.0 or less are met. When the moving speeds of the positions of multiple joints are used in this way, statistical values such as the mean, median, and mode values can be used as representative values for comparison with the threshold value. In addition, the basic action "running" is identified based on whether the determination conditions that the positions of the joints of the whole body correspond to the posture "running" and the moving speed of the positions of the joints of the whole body exceed 4.0.
[0035] In addition, basic movements of whole-body behaviors whose movement types are classified as "instantaneous" include "squatting" and "sitting". Taking the basic movement "squatting" as an example, when identifying the state of "squatting", the determination condition on the posture feature quantity is applied. At the same time, when identifying the posture change of "squatting", the determination condition on the time change information is applied. For example, the state of "squatting" is identified based on whether the positions of whole-body joints correspond to the posture of "squatting". At the same time, the posture change of "squatting" is determined based on whether there is a state change of the posture feature quantity of the whole body. That is, the posture change of "squatting" is identified based on whether the positions of whole-body joints change from a state where the positions of whole-body joints do not correspond to the posture of "squatting" to a state where the positions of whole-body joints correspond to the posture of "squatting".
[0036] Next, in Figure 2 In the basic movements shown, "stretching the right hand forward" and "stretching the left hand forward" are included as examples of partial behaviors. Taking the basic action "stretching the right hand forward" as an example, the state of "stretching the right hand forward" is identified based on whether the bending angle of the right elbow exceeds 150 degrees and the relative position of the right wrist is "forward". In addition, the posture change of "stretching the right hand forward" is identified based on whether the state of the bending angle of the right elbow being 150 degrees or less or the state of the relative position of the right wrist not being "forward" changes to the state of the bending angle of the right elbow exceeding 150 degrees or the state of the relative position of the right wrist being "forward".
[0037] In addition, Figure 2Among the basic movements shown, "moving the upper part of the body", "swinging the legs", "looking around", and "wandering" are included as examples of partial behaviors. For example, the basic movement "moving the upper part of the body" is identified based on the threshold determination of the amount of change in the posture of the upper part of the body. In addition, the basic movement "swinging the legs" is identified based on the threshold determination of the amount of change in the posture of the lower part of the body. In addition, the basic movement "looking around" is identified based on the threshold determination of the amount of change in the direction of the head. In addition, the basic movement "wandering" is identified based on the threshold determination of the amount of change in the moving direction.
[0038] The higher-level behavior recognition function 5 is a function of recognizing a higher-level behavior. As an example only, the higher-level behavior recognition function 5 compares the recognition result of the basic movement with the rule 7, and recognizes the target higher-level behavior when the rule 7 is satisfied.
[0039] As an example only, Rule 7 can define a combination of basic movements corresponding to the higher-level behavior to be identified in an IF-THEN format (if-then format). When defining the combination of basic movements in the IF-THEN format, logical operations such as AND, OR, etc. can be used. For example, in the case of describing "if basic movement A & basic movement B then higher-level behavior X", when basic movements A and B are identified at the same time, basic movements A and B are identified as higher-level behavior X. In addition, a chain (that is, a sequence of behaviors) can be used as a combination pattern of basic movements. For example, in the case of describing "if basic movement A→basic movement B then higher-level behavior Y", when basic movement B is identified after basic movement A is identified, these series of behaviors are identified as higher-level behavior Y.
[0040] Here, in the above-mentioned behavior recognition service 1, rule 7 can be set not only by system definition but also by user definition. For example, user U can customize rule 7 by editing rule 7 by user U (e.g., a system engineer of the business side providing behavior recognition service 1 or a customer of behavior recognition service 1).
[0041] (Application example of behavior recognition service)
[0042] Next, an application example of the behavior recognition service 1 according to the embodiment will be described. As an example only, a case where the behavior recognition service 1 according to the embodiment is applied to analysis of four types of work (that is, "sorting work", "collection work", "empty tray installation" and "tray transportation" performed at the premises of a food factory) and presentation of, for example, productivity and work time breakdown will be described.
[0043] Figure 3 is a diagram showing an example of an image. For example only, Figure 3The image 20 shows a situation where the worker W1 performs the "sorting work". Figure 3 In the figure, the ROI set in the A workbench for performing the "classification work" and the ROI set in the A disk for performing the "collection work" and "empty disk installation" are indicated by thick lines. Figure 3 As shown, in the "sorting work", the onions are sorted after removing garbage such as the skin (shell) mixed in the onion on the A workbench where the cut onions are placed. Next, in the "collecting work", the sorted onions are collected in a plastic bag on an empty tray until the measurement value of the weight measuring instrument M1 reaches a predetermined value. Then, in the "empty tray installation", the trays with the collected onions are stacked in the longitudinal direction, and the empty trays with the unfolded plastic bags are reinstalled. Then, in the "tray transport", the trays stacked to a predetermined number of levels are transported to a predetermined collection position.
[0044] (One aspect of the problem)
[0045] As described in the background section, there may be a large amount of variation in the behavior that is the object of recognition. Therefore, it may be difficult to create rules without missing the recognition of the target behavior when creating the rules.
[0046] From the aspect of describing the above problem, an example of recognition omission when “disk transport” is recognized as a target higher-level behavior will be described. Figure 4 is a diagram showing an example of an image. For example only, Figure 4 The image 21 shows a situation where the worker W1 performs "disk transport". Figure 4 In the example, the area where worker W1 is identified as an object, such as a bounding box, is indicated by a thick line. For example, the IF-THEN rule shown in (R1) below can be described as a rule for Figure 4 The image 21 shown in FIG. 2 identifies an example of a rule for a higher level behavior "disk transport".
[0047] Higher level behavior "Pan transport": if basic action "stretch hands forward" & basic movement "walk" then behavior = "Pan transport"... (R1)
[0048] However, according to the above IF-THEN rule, when a disk is transported in a motion pattern such as "elbow bending", "using one hand", or "backward", it may not be recognized as a higher-level behavior "disc transport", and recognition omission occurs. This is because Figure 3The motion pattern shown in the image 21 is also one aspect of "disk transport", not the whole of "disk transport", and there may be many variations in the motion pattern of "disk transport". That is, there may be variations in the motion pattern of "disk transport", such as "not extending the elbow", "not using both hands", and "not moving forward". Since it is difficult to cover all such variations when creating rules, it may be difficult to create rules without missing recognition.
[0049] (One aspect of problem solving)
[0050] Therefore, in the behavior recognition service 1 according to this embodiment, a method is adopted in which (a) recognition omission of a higher-level behavior is detected during operation and (b) a rule for recognizing a movement pattern of the recognition omission as a higher-level behavior is updated.
[0051] Here, the IF-THEN rule given as an example of the rule has an aspect of high readability because it is described by a combination of basic movements, but it has an aspect of being unsuitable for (a) detection of recognition omissions and (b) automation of rule updating.
[0052] That is, as a result of comparing the recognition result of the basic movement with the rule, when a situation that is not recognized as a higher-level behavior due to a narrow margin can be considered as a recognition omission, (a) can achieve the detection of recognition omission, but it may be difficult to evaluate such a situation using the IF-THEN rule. For example, taking the recognition omission of the higher-level behavior "plate transport" as an example, it may be difficult to quantitatively quantify the difference between "stretching both hands" and "stretching only one hand", and the difference varies depending on the higher-level behavior to be recognized. Therefore, it may be unrealistic to achieve the detection of (a) recognition omission under the IF-THEN rule.
[0053] In addition, since the number of rule updating methods for identifying a motion pattern as a higher-level behavior is not limited to one, but there may be many rule updating methods, it may be difficult to appropriately determine (b) the rule updating method. For example, taking the recognition omission of the higher-level behavior "disk transport" as an example, there may be a method for suppressing the recognition omission by updating the rule that takes the logical sum of "stretching both hands" or "stretching one hand." In addition, there may also be a method for suppressing the recognition omission by updating the rule that relaxes the threshold of the determination condition used for "stretching both hands" in identifying basic motions from 150 degrees. Which of the rule updates or two rule updates is appropriate may not be determined solely by Figure 3 The image 21 shown in FIG.
[0054] Taking this into consideration, in the behavior recognition service 1 according to this embodiment, (a) detection of recognition omission and (b) rule updating are implemented in the feature quantity space.
[0055] The above feature quantity space can be created as follows. As an example only, for each higher-level behavior to be identified, a motion feature quantity for identifying each basic motion is extracted from a combination of basic motions corresponding to the higher-level behavior. For example, taking "disc transport" among the four types of higher-level behaviors as an example, as shown in (R1) above, from Figure 2 The determination condition data 4A shown is searched for motion feature quantities for identifying the basic motion "stretching both hands forward" and the basic motion "walking". As a result, two types of motion feature quantities, "minimum value of the bending angle of the left and right elbows" and "moving speed", are extracted. At this time, the motion feature quantity "minimum value of the bending angle of the left and right elbows" can be automatically extracted by the logical operation of "stretching both hands forward" → "right elbow bending angle" & "left elbow bending angle" → "right elbow bending angle" and the minimum value of "left elbow bending angle".
[0056] The motion features extracted in this way for each higher-level behavior to be identified can be used to create a feature space that can represent all of them using vectors, but not all motion features must be used to create the feature space. For example, the motion features that distinguish higher-level behaviors from each other can also be reduced based on a feature selection algorithm represented by a decision tree or linear discriminant analysis.
[0057] In the following description, only as an example, an example will be described in which "moving speed" and "posture change amount of the upper part of the body" are selected as motion feature amounts for distinguishing four types of higher-level behaviors "sorting work", "collecting work", "empty tray installation", "tray transportation" from each other. In addition, hereinafter, among the motion feature amounts for identifying various basic motions, the motion feature amount selected as the motion feature amount for defining the feature amount space may be referred to as a "selected feature amount".
[0058] In the feature quantity space created in this way, for each of the four types of higher-level behaviors, the mapping can observe the range of the higher-level behavior on the predetermined feature quantity space, and the four types of higher-level behaviors are: "sorting work", "collecting work", "empty tray installation" and "tray transportation".
[0059] Here, just as an example, the mapping of the observation range of the higher-level behavior can be automated by using an image in which the higher-level behavior is observed, such as a reference image that is referenced when creating a rule. In this case, the maximum and minimum values of each selected feature quantity calculated in the section in which the higher-level behavior is observed in the reference image are extracted. For example, when the recognition of the higher-level behavior is performed every 10 seconds using the recognition results of the basic movements of the last 10 seconds, the maximum and minimum values of each selected feature quantity calculated in the last 10 seconds from the time of recognizing the higher-level behavior are extracted. For each higher-level behavior, the observation range of the higher-level behavior is mapped onto the feature quantity space with the maximum and minimum values of each selected feature quantity extracted in this way as the boundary.
[0060] In this way, by mapping the observation range of the higher-level behavior onto the feature quantity space, the rule for identifying the higher-level behavior can be converted from a description in the IF-THEN format to a description of the motion feature quantity on the feature quantity space. In the following, the rule defining the combination of basic motions corresponding to the higher-level behavior to be identified in the IF-THEN format is different from the rule defining the mapping area of the observation range of the higher-level behavior on the feature quantity space. From this aspect, the former can be referred to as the "first rule" and the latter can be referred to as the "second rule".
[0061] With such a feature quantity space created, the operation of the behavior recognition service 1 according to the embodiment is started. The behavior recognition service 1 according to the embodiment draws the selected feature quantity among the motion feature quantities calculated when recognizing the basic motion during the operation on the feature quantity space. Then, when the drawing position of the selected feature quantity during the operation is not included in any mapping area of the observation range of the higher-level behavior, the behavior recognition service 1 according to the embodiment calculates the distance between the mapping area and the drawing position for each mapping area.
[0062] Here, the behavior recognition service 1 according to the present embodiment determines whether the degree of deviation of the minimum distance from other distances in the distance calculated for each mapping area meets a predetermined standard. At this time, when the degree of deviation of the minimum distance from other distances meets the predetermined standard, it is clear that the drawing position of the selected feature amount during the operation is close enough to only one mapping area in the mapping area of the observation range of the higher-level behavior and is far enough away from the other mapping areas. Therefore, since the drawing position of the selected feature amount during the operation is likely to be a case of recognition omission that is not recognized as a higher-level behavior due to a small difference, detection of recognition omission can be achieved. In this case, the behavior recognition service 1 according to this embodiment performs an update based on the drawing position to expand the mapping area whose distance from the drawing position is the minimum distance.
[0063] Figure 5 is a diagram showing an example of a feature quantity space. As an example only, Figure 5 A two-dimensional feature quantity space including a selected feature quantity "moving speed" and a selected feature quantity "posture change amount of the upper half of the body" is shown. In addition, Figure 5 Mapping areas W1 to W4 to which observation ranges of four types of higher-level behaviors of “sorting work”, “collecting work”, “empty tray mounting”, and “tray transport” are mapped and drawing positions P1 of selected feature quantities during drawing operations thereon are shown.
[0064] like Figure 5 As shown, when the drawing position P1 of the selected feature amount during the operation is not included in any of the mapping areas W1 to W4 of the observation range of the higher-level behavior, the distance between the drawing position P1 and each of the mapping areas W1 to W4 is calculated. After calculating the four distances in this way, as an example of determining whether the degree of deviation of the minimum distance from the other distances satisfies a predetermined standard, it can be determined according to the following formula (1) whether the ratio of the minimum distance to the sum of the distances is less than a predetermined threshold.
[0065] Minimum distance / Σ distance<Th1……(1)
[0066] Here, as an example of distance only, an example using Manhattan distance will be described. In addition, as an example only, a case where the distance between the drawing position P1 and each of the mapping areas W1 to W4 has the following value will be taken as an example. That is, it is assumed that the distance between the drawing position P1 and the mapping area W1 is "5.2", and the distance between the drawing position P1 and the mapping area W2 is "5.4". In addition, it is assumed that the distance between the drawing position P1 and the mapping area W3 is "0.1", and the distance between the drawing position P1 and the mapping area W4 is "7.3".
[0067] Distance between P1 and W1 = 5.2
[0068] Distance between P1 and W2 = 5.4
[0069] Distance between P1 and W3 = 0.1
[0070] Distance between P1 and W4 = 7.3
[0071] In the above example, the distance "0.1" between the drawing position P1 and the mapping area W3 is the minimum distance. Therefore, when each distance is substituted into the above formula (1), as the calculation result of "0.1 / (5.2+5.4+0.1+7.3)", the ratio of the minimum distance to the sum of distances is calculated to be "0.0056". Then, it is determined whether the ratio "0.0056" of the minimum distance to the sum of distances is less than the predetermined threshold value Th1. For example, when the threshold value Th1 is "0.01", the ratio "0.0056" of the minimum distance to the sum of distances is less than the threshold value Th1 "0.01"
[0072] Based on such a determination result, it turns out that the drawing position P1 of the selected feature amount during the operation is close enough to the mapping area W3 of the observation range of the higher-level behavior "empty disk installation" only, and is far enough away from the other mapping areas W1, W2, and W4. Therefore, it can be recognized that the drawing position P1 of the selected feature amount during the operation may be a case of recognition omission that is not recognized as the higher-level behavior "empty disk installation" due to a small difference. In this case, the behavior recognition service 1 according to this embodiment updates the second rule of extending the mapping area W3 with the minimum distance from the drawing position P1 based on the drawing position P1.
[0073] Figure 6 is a schematic diagram showing an example of a method for updating the second rule. Figure 6 In , the mapping area W3 of the observation range of the higher-level behavior "empty disk installation" is extracted from the four mapping areas mapped on the feature quantity space. Figure 6 In FIG. 1 , the plotting position P1 of the selected feature amount during the operation is indicated by an x mark. In this case, in addition to the mapping area W3 of the observation range of the higher-level behavior “empty disk installation”, the mapping area of the higher-level behavior “empty disk installation” is expanded to Figure 6 The filled area shown. That is, the corresponding triangular area within the Manhattan distance "0.1" from the drawing position P1 of the selected feature quantity during the operation is expanded. Through such expansion, the above (b) rule update is realized.
[0074] As described above, when the drawing position of the motion feature amount during the operation approaches any one of the areas in which the observation range of the higher-level behavior is mapped to the feature amount space, the behavior recognition service 1 according to the embodiment expands the neighboring area based on the drawing position. Therefore, the behavior recognition service 1 according to the present embodiment can update the rule according to the operation.
[0075] (Functional configuration of behavior recognition device)
[0076] Figure 7 : is a block diagram showing an example of the functional configuration of the behavior recognition device 10 according to the first embodiment. Figure 7The behavior recognition device 10 shown in corresponds to an example of a computer (information processing device) that provides the above-mentioned behavior recognition service 1.
[0077] By installing the behavior recognition program that implements the above-mentioned behavior recognition service 1 on any computer, the behavior recognition device 10 can be implemented as a software package or online software. For example, the behavior recognition device 10 can be implemented as a SaaS (Software as a Service) type application to provide the behavior recognition service 1 as a cloud service. Without limitation, the behavior recognition device 10 can be implemented as a server that provides functions corresponding to the local behavior recognition service 1.
[0078] In addition, if Figure 7 As shown, the camera 2 corresponding to the example of the imaging device can be connected to the behavior recognition device 10. The behavior recognition device 10 and the camera 2 can be communicatively connected to each other via an arbitrary network. For example, the network can be any kind of communication network, such as the Internet or a LAN (local area network), regardless of whether it is wired or wireless. In addition, Figure 1 and Figure 7 In the embodiment, for the convenience of description, one camera 2 is connected to one behavior recognition device 10 , but a plurality of cameras 2 may be connected to one behavior recognition device 10 .
[0079] like Figure 7 As shown, the behavior recognition device 10 includes an image acquisition unit 11, an object recognition unit 13, a basic motion recognition unit 14, a rule conversion unit 15, a first rule storage unit 16A, a reference image storage unit 16B, a second rule storage unit 17 and a higher-level behavior recognition unit 18. Figure 7 In addition to the functional units shown, the behavior recognition device 10 may also include various functional units of a known computer, such as functions corresponding to an input / output interface, a communication interface, and the like.
[0080] Figure 7The functional units such as the image acquisition unit 11, the object recognition unit 13, the basic motion recognition unit 14, the rule conversion unit 15, and the higher-level behavior recognition unit 18 shown in the figure are actually implemented by hardware processors such as CPU (central processing unit), MPU (microprocessing unit), etc. That is, the processor reads out programs other than OS (operating system) from a storage device (not shown) such as HDD (hard disk drive), optical disk, SSD (solid state drive), etc., such as such a behavior recognition program that encapsulates the above-mentioned behavior recognition service 1. Then, the processor executes the behavior recognition program to deploy the processing corresponding to the above-mentioned functional units on a memory such as RAM (random access memory). As a result of executing the above-mentioned behavior recognition program in this way, the above-mentioned functional units are actually implemented as processing. Here, CPU and MPU are shown as examples of processors, but the above-mentioned functional units can be implemented by any processor, regardless of general type or special type. In addition, all or some of the above-mentioned functional units can be implemented by hard-wired logic such as ASIC (application-specific integrated circuit), FPGA (field programmable gate array), etc.
[0081] Storage units such as the first rule storage unit 16A, the reference image storage unit 16B, and the second rule storage unit 17 may be implemented as an auxiliary storage device such as an HDD, an optical disk, or an SSD, or may be implemented by allocating a part of a storage area of the auxiliary storage device.
[0082] The image acquisition unit 11 is a processing unit that acquires an image. As an embodiment, the image acquisition unit 11 can acquire an image transmitted from the camera 2 in units of frames. Here, the information source from which the image acquisition unit 11 acquires an image is not limited to the camera 2, but can be any information source. For example, the image acquisition unit 11 can acquire an image from an auxiliary storage device such as a hard disk, an optical disk, etc. for storing an image, or a removable medium such as a memory card, a USB (Universal Serial Bus) memory, etc. for storing an image. In addition, the image acquisition unit 11 can also acquire an image from an external device other than the camera 2 via the network NW.
[0083] The object recognition unit 13 is a processing unit for recognizing an object from an image. The object recognition unit 13 may correspond to an example of an extraction unit. The object recognition unit 13 may correspond to Figure 1 The object recognition function 3 shown in FIG. As an embodiment, the object recognition unit 13 recognizes an object for each frame of the image acquired by the image acquisition unit 11. Such object recognition can be achieved by learning a model of the object according to a machine learning algorithm such as deep learning. Then, the object recognition function 3 extracts skeleton information (e.g., two-dimensional or three-dimensional coordinates) including the position of each joint by performing a process called skeleton detection or posture detection (posture estimation) on the object.
[0084] The basic motion recognition unit 14 is a processing unit for recognizing basic motions from the skeleton information of each frame. Here, the basic motion recognition unit 14 may correspond to Figure 1 The basic motion recognition function 4 shown in the figure may be provided, but not all of the basic motion recognition functions 4 may be provided. That is, in the behavior recognition service 1 according to this embodiment, a higher-level behavior may be recognized based on a mapping area on a feature quantity space defined in a second rule, rather than recognizing a higher-level behavior based on a rule of an IF-THEN format defined in a first rule. According to this aspect, the basic motion recognition unit 14 may calculate a motion feature quantity for each frame of an image acquired by the image acquisition unit 11. The basic motion recognition unit 14 may correspond to an example of a calculation unit.
[0085] As an embodiment, the basic motion recognition unit 14 can calculate the posture feature quantity as one of the above motion feature quantities based on the position of each joint in the most recent frame of the image acquired by the image acquisition unit 11. In addition, the basic motion recognition unit 14 calculates the time change information based on the time series data of the posture feature quantity obtained by tracing back a predetermined number of frames or a predetermined period from the most recent frame. At this time, just as an example, the basic motion recognition unit 14 can calculate the time change information related to Figure 2 The motion feature quantities related to all the basic motions shown in the determination condition data 2A are calculated, but it is not necessary to calculate the motion feature quantities related to all the basic motions. For example, the basic motion recognition unit 14 can calculate the characteristic motion quantity by reducing the motion feature quantities related to the basic motions used to recognize the higher-level behavior defined in the first rule or the selected feature quantities used when defining the feature quantity space in the second rule.
[0086] The rule conversion unit 15 is a processing unit that converts the first rule into the second rule. As an example only, the rule conversion of the rule conversion unit 15 may be performed before the operation of the behavior recognition service 1 according to this embodiment starts, but may also be performed after the operation starts. Figure 7 As shown, the rule conversion unit 15 has a selection unit 15A and a mapping unit 15B.
[0087] The selection unit 15A is a processing unit that selects a motion feature quantity (that is, the selected feature quantity mentioned above) for defining a feature quantity space. As an embodiment, the selection unit 15A refers to a first rule stored in the first rule storage unit 16A. The first rule storage unit 16A stores a first rule that defines a combination of basic motions corresponding to a higher-level behavior to be identified in an IF-THEN format, for example Figure 1By referring to such a first rule storage unit 16A, the selection unit 15A extracts the motion feature amount for identifying each basic motion from the combination of basic motions corresponding to the higher-level behavior for each higher-level behavior to be identified. For example, taking "disc transport" among the four types of higher-level behaviors as an example, as shown in (R1) above, from Figure 2 The motion feature quantities for identifying the basic motion "stretching both hands forward" and the basic motion "walking" are searched in the determination condition data 4A shown. Thus, the two motion feature quantities of "minimum value of the bending angles of the left and right elbows" and "moving speed" are extracted. At this time, the motion feature quantity "minimum value of the bending angles of the left and right elbows" is automatically extracted by the logical operation of the minimum value of "stretching both hands forward" → "right elbow bending angle" & "left elbow bending angle" → "right elbow bending angle" and "left elbow bending angle".
[0088] All motion feature quantities extracted for each higher-level behavior to be recognized in this way can be used to define a feature quantity space, but all types of motion feature quantities are not necessarily used to create the feature quantity space, but all types of motion feature quantities can be reduced to a part.
[0089] As an example only, the selection unit 15A selects a motion feature quantity that can distinguish higher-level behaviors from each other from the motion feature quantity extracted for each higher-level behavior to be identified according to a feature quantity selection algorithm represented by a decision tree analysis or a linear discriminant analysis. For example, in the case of a decision tree analysis, a reference image stored in the reference image storage unit 16B is used. Reference images in which higher-level behaviors are observed are stored in the reference image storage unit 16B for each higher-level behavior to be identified. By using the reference image prepared in this manner for each higher-level behavior to be identified as a root node, and repeatedly selecting the characteristics and thresholds of the motion feature quantity that divides the nodes, a decision tree is generated that classifies the reference image as a label for a higher-level behavior. The motion feature quantity of the feature selected by dividing the nodes in the branches of the decision tree can be used as the selected feature quantity.
[0090] The mapping unit 15B is a processing unit that maps a range in which a higher-level behavior can be observed for each higher-level behavior to be identified onto a feature amount space defined by the selected feature amount selected by the selection unit 15A.
[0091] Here, just as an example, the mapping of the observation range of the higher-level behavior can be automated by using a reference image stored in the reference image storage unit 16B. In such a reference image, the maximum and minimum values of each selected feature quantity calculated in the portion where the higher-level behavior is observed are extracted. For example, when the recognition of the higher-level behavior is performed every 10 seconds using the recognition results of the basic movements of the last 10 seconds, the maximum and minimum values of each selected feature quantity calculated in the last 10 seconds from the time of recognizing the higher-level behavior are extracted. For each higher-level behavior, the observation range of the higher-level behavior is mapped onto the feature quantity space with the maximum and minimum values of each selected feature quantity extracted in this way as the boundary.
[0092] As a result, a first rule defining a combination of basic movements corresponding to the higher-level behavior to be identified in an IF-THEN format can be converted into a second rule defining an observation range of the higher-level behavior to a mapping area on the feature quantity space. In this way, the mapping area that maps the observation range of the higher-level behavior to the feature quantity space for each higher-level behavior is stored as a second rule in the second rule storage unit 17. For example, the second rule can be defined by the coordinates of the vertices that form the boundary line of the mapping area for each mapping area.
[0093] Figure 8 is a diagram showing an example of the second rule. Figure 8 Mapping areas W1 to W4 in which observation ranges corresponding to four types of higher-level behaviors are defined on a two-dimensional feature quantity space including the selected features “moving speed” and “posture change of the upper part of the body” are shown as examples of the second rule: “sorting work”, “collecting work”, “empty tray installation”, and “tray transportation”. In addition, Figure 8 An example of defining the second rule by enumerating the coordinates of vertices in mapping areas W1 to W4 corresponding to observation ranges of four types of higher-level behaviors counterclockwise starting from the lower left vertex is shown.
[0094] like Figure 8As shown, the mapping area W1 of the higher-level behavior "classification work" is defined by the lower left vertex (0.2, 0), the lower right vertex (1, 0), the upper right vertex (1, 0.05) and the upper left vertex (0.2, 0.05). The mapping area W2 of the higher-level behavior "collection work" is defined by the lower left vertex (2, 7), the lower right vertex (2.8, 7), the upper right vertex (2.8, 8.2) and the upper left vertex (2, 8.2). The mapping area W3 of the higher-level behavior "empty disk installation" is defined by the lower left vertex (1.1, 4.2), the lower right vertex (1.8, 4.2), the upper right vertex (1.8, 5.2) and the upper left vertex (1.1, 5.2). The mapping area W4 of the higher-level behavior "disc transport" is defined by the lower left vertex (0.01, 0.81), the lower right vertex (0.3, 0.81), the upper right vertex (0.3, 1.1), and the upper left vertex (0.01, 1.1).
[0095] Figure 8 The example in which the feature space is two-dimensional is shown as an example only, but it is not limited to this. The dimension of the feature space can be arbitrary. For example, when the feature space is three-dimensional or more, the boundary surface of the mapping area can be defined by a polygon. This makes it possible to represent any sub-area in the n-dimensional feature space as a polygon.
[0096] In addition, here, an example of mapping the observation range of the higher-level behavior using the reference image has been described, but it is not limited to this, and the mapping of the observation range of the higher-level behavior can be performed by the user setting. In this case, as a guide for the user setting, it is also possible to Figure 2 The determination condition data 4A is searched for and displayed with respect to the determination condition such as a threshold value related to the selected feature amount among the motion feature amounts for identifying the basic motion defined in the rule corresponding to the higher-level behavior for each higher-level behavior to be identified.
[0097] The higher-level behavior recognition unit 18 is a processing unit that recognizes higher-level behaviors. Figure 7 As shown, the higher-level behavior recognition unit 18 further includes a rule comparison unit 18A, a rule updating unit 18B and a recognition result output unit 18C.
[0098] The rule comparison unit 18A is a processing unit that compares the selected feature amount calculated by the basic motion recognition unit 14 with the second rule stored in the second rule storage unit 17. As an embodiment, the rule comparison unit 18A determines whether the drawing position of the selected feature amount calculated by the basic motion recognition unit 14 is included in any mapping area stored in the second rule storage unit 17 as the second rule. Hereinafter, from the aspect of comparison with the second rule that can be defined before the start of the operation, the selected feature amount calculated by the basic motion recognition unit 14 may be referred to as "the selected feature amount during the operation". At this time, when the drawing position of the selected feature amount during the operation is included in any mapping area, it is found that there is no recognition omission. At the same time, when the drawing position of the selected feature amount during the operation is not included in any mapping area, there is room for recognition omission.
[0099] The rule updating unit 18B is a processing unit that updates the second rule stored in the second rule storage unit 17. As an embodiment, when the drawing position of the selected feature amount during operation is not included in any mapping area, the rule updating unit 18B calculates the distance between the mapping area and the drawing position for each mapping area. After calculating the four distances in this way, as an example of determining whether the degree of deviation of the minimum distance from the other distances satisfies a predetermined standard, it can be determined according to the above formula (1) whether the ratio of the minimum distance to the sum of the distances is less than a predetermined threshold value.
[0100] Here, when the degree of deviation of the minimum distance from other distances satisfies a predetermined criterion, it is clear that the drawing position of the selected feature quantity during operation is close enough to only one of the mapping areas of the observation range of the higher-level behavior, and is far enough away from the other mapping areas. In this case, since the drawing position of the selected feature quantity during operation is likely to be a case where it is not recognized as a recognition omission of the higher-level behavior due to a small difference, it is identified as a recognition omission. At the same time, when the degree of deviation of the minimum distance from other distances does not satisfy the predetermined criterion, it is clear that the drawing position of the selected feature during operation is not close enough to only one of the mapping areas of the observation range of the higher-level behavior. In this case, it can be recognized that the motion pattern does not correspond to any higher-level behavior and is not a recognition omission.
[0101] Here, when the ratio of the minimum distance and the sum of the distances between the drawing position and each mapping area is smaller than the threshold, the rule updating unit 18B performs updating of extending the mapping area whose distance from the drawing position is the minimum distance based on the drawing position.
[0102] Fig. 9 is a diagram showing another example of the second rule. Fig. 9 It shows that Figure 8The higher level behavior among the mapping areas W1 to W4 defined in the second rule shown is executed for the mapping area W3 of the observation range of "empty disk installation" Figure 6 An example of the expansion shown. Figure 6 As shown, when the corresponding triangle area within the Manhattan distance "0.1" from the drawing position P1 of the selected feature amount during the operation is expanded, Figure 8 The second rule shown is updated to Fig. 9 More specifically, Figure 6 The coordinates of each vertex corresponding to the triangular area shown are added to the mapping area W3 of the higher-level behavior "empty disk installation". Fig. 9 As indicated by the shading in , the coordinates of the triangle vertices (1.5, 4.2), (1.6, 4.1) and (1.7, 4.2) are added to the vertices of the mapping area W3 that defines the higher-level behavior "empty disk installation".
[0103] As a result, it is possible to achieve an expansion including not only the expansion of the motion pattern corresponding to the drawing position P1 (1.6, 4.1) of the selected feature quantity during the operation, but also the expansion including the change of the motion pattern in the new mapping area closer to the mapping area W3 than the drawing position P1. In addition, when the Manhattan distance is used for rule updating, since the boundary surface of the area where the mapping area is extended not only in the two-dimensional feature quantity space but also in the three-dimensional or more dimensional feature quantity space can be defined by a polygon, the scalability of the description of the second rule can be enhanced.
[0104] The recognition result output unit 18C is a processing unit that outputs the recognition result of the higher-level behavior. As one aspect, when the drawing position of the selected feature quantity during the operation is included in any mapping area, the recognition result output unit 18C outputs the mark of the higher-level behavior corresponding to the mapping area including the drawing position as the recognition result. As another aspect, when the ratio of the minimum distance and the sum of the distances between the drawing position and each mapping area is equal to or greater than the above-mentioned threshold value, the recognition result output unit 18C does not output the mark of any higher-level behavior. As another aspect, when the ratio of the minimum distance and the sum of the distances between the drawing position and each mapping area is less than the above-mentioned threshold value, the recognition result output unit 18C outputs the mark of the higher-level behavior corresponding to the mapping area whose distance from the drawing position is the minimum distance as the recognition result.
[0105] The above recognition results of higher-level behaviors can be output to any output destination. The "output destination" referred to here can be any hardware or software. For example, the recognition results of higher-level behaviors can be output to a service or function that performs any back-end processing (for example, analysis and processing of work efficiency) based on the recognition results of higher-level behaviors. In addition, the recognition results of higher-level behaviors can also be notified to the display device, sound output device, information processing device, mobile terminal device, etc. set by the user U of the behavior recognition service 1. The notification form can be any form such as Web, email, etc.
[0106] (Example of recognition results using higher level behavior)
[0107] Will refer to Fig.10 and Fig.11 Describes examples of recognition results that utilize higher-level behaviors. Fig.10 and Fig.11 is a diagram showing an example of the analysis result. Fig.10 and Fig.11 The analysis results represent the recognition results of four types of higher-level behaviors, namely "sorting work", "collecting work", "empty tray installation" and "tray transportation", performed by each of six workers "ID0001" to "ID0006" at the site of the food factory. Fig.10 The results of analyzing the productivity, such as the number of disks processed per unit time, are shown as an example of the analysis of the recognition results using these four types of higher-level behaviors. Fig.11 The result of analyzing the decomposition of the working time corresponding to each higher-level behavior is shown as an example of the analysis using the recognition results of these four types of higher-level behaviors.
[0108] Fig.10 and Fig.11 The analysis results represented in can be output to any terminal device set by user U of the behavior recognition service 1. For example, a finding that the productivity of workers ID0003 and ID0004 in charge of workstation B is high can be presented, which is caused by the low ratio of tray transport work and collection work. At the same time, a finding that the ratio of empty tray installation is also high can be presented, which is the result of a large amount of sorting work. In addition, the difference in productivity between workers ID0005 and ID0006 in charge of workstation C is due to the efficiency of the collection work, and worker ID0005 spends longer time on the collection work than other workers, which may suggest that there may be some waste during this work. Based on Fig.10 and Fig.11 The analysis results represented in can present findings that help improve productivity to the user U of the behavior recognition service 1 and other relevant parties.
[0109] (Processing Flow)
[0110] Next, the processing flow of the behavior recognition device 10 according to this embodiment will be described. Here, (1) the rule conversion process performed by the behavior recognition device 10 will be described, and then (2) the rule update process will be described.
[0111] (1) Rule conversion processing
[0112] Fig.12 is a flowchart showing the process of rule conversion processing according to the first embodiment. As an example only, this processing can be performed at any time before the operation of the behavior recognition service 1 according to this embodiment starts, for example, after saving the first rule and the reference image, but it can also be performed after the operation starts.
[0113] like Fig.12 As shown, the selection unit 15A refers to the first rule stored in the first rule storage unit 16A to extract, for each higher-level behavior to be identified, a motion feature amount for identifying each basic motion from a combination of basic motions corresponding to the higher-level behavior (step S101).
[0114] Subsequently, the selection unit 15A selects a motion feature amount capable of distinguishing higher-level behaviors from each other among the motion feature amounts extracted for each higher-level behavior to be identified in step S101 according to a feature amount selection algorithm represented by decision tree analysis or linear discriminant analysis (step S102 ).
[0115] Then, the mapping unit 15B extracts, for each higher-level behavior, the maximum value and the minimum value of each selected feature amount observed in the portion of the reference image stored in the reference image storage unit 16B where the higher-level behavior is identified (step S103 ).
[0116] Then, the mapping unit 15B maps the observation range of the higher-level behavior with the maximum value and minimum value of each selected feature amount extracted in step S103 as boundaries onto the feature amount space defined by the selected feature amounts obtained in step S102 for each higher-level behavior (step S104).
[0117] Then, the mapping unit 15B stores the mapping area that maps the observation range of the higher-level behavior to the feature amount space in the second rule storage unit 17 as the second rule for each higher-level behavior (step S105 ), and ends the processing.
[0118] (2) Rule update processing
[0119] Fig.13FIG. 1 is a flowchart showing the procedure of the rule update process according to the first embodiment. The process may be repeatedly executed at a predetermined cycle (for example, every 10 seconds) during operation. Fig.13 As shown, the image acquisition unit 11 acquires an image frame from the camera 2 or the like (step S301). Then, the object recognition unit 13 extracts skeleton information including the position of each joint by detecting the skeleton of the object recognized from the image acquired in step S301 (step S302).
[0120] Subsequently, the basic action recognition unit 14 calculates the selected feature quantity by calculating the posture feature quantity based on the position of each joint in the most recent frame acquired in step S301 and simultaneously calculating the time change information based on the time series data of the posture feature quantity obtained by tracing back a predetermined period (e.g., 10 seconds) from the most recent frame to calculate the selected feature quantity (step S303).
[0121] Then, the rule collation unit 18A determines whether the drawing position of the selected feature amount calculated in step S303 is included in any mapping area stored in the second rule storage unit 17 as the second rule (step S304 ).
[0122] Here, when the drawing position of the selected feature amount during the determination operation is not included in any mapping area (No in step S304), the rule updating unit 18B performs the following processing. That is, the rule updating unit 18B determines whether the ratio of the minimum distance and the sum of the distances between the drawing position and each mapping area is less than a predetermined threshold value (step S305).
[0123] At this time, when it is determined that the ratio of the minimum distance and the sum of the distances between the drawing position and each mapping area is less than the threshold value (Yes in step S305), the rule updating unit 18B performs an update of expanding the mapping area whose distance from the drawing position is the minimum distance based on the drawing position (step S306). In this case, the recognition result output unit 18C outputs a mark of a higher-level behavior corresponding to the mapping area whose distance from the drawing position is the minimum distance as the recognition result (step S307), and ends the processing.
[0124] Meanwhile, when it is determined that the ratio of the minimum distance and the sum of the distances between the drawing position and each mapping area is not less than the threshold value (No in step S305 ), no mark of any higher-level behavior is output, and the process ends.
[0125] In addition, when it is determined that the drawing position of the selected feature amount during the operation is included in any mapping area (yes in step S304), the recognition result output unit 18C outputs a mark of a higher-level behavior corresponding to the mapping area including the drawing position as a result recognition (step S307), and the processing ends.
[0126] (Effect)
[0127] As described above, when the drawing position of the motion feature amount during the operation is close to any one of the observation ranges of the higher-level behavior mapped to the feature amount space, the behavior recognition device 10 according to this embodiment expands the nearby area based on the drawing position. Therefore, according to the action recognition device 10 of this embodiment, it is possible to update the rule according to the operation.
[0128] (Second Embodiment)
[0129] Although the embodiments of the device according to the present disclosure have been described, the present disclosure can be implemented in various different forms other than the above-described embodiments. Therefore, another embodiment included in the present disclosure will be described below.
[0130] (Stabilizer Processing)
[0131] The recognition result of the higher-level behavior may include a mark "no output" that does not correspond to any higher-level behavior. For example, the behavior recognition device 10 may also have a correction unit, which corrects the above mark "no output" according to the following rules. For example, the correction unit compares the marks of the timing outputs before and after the mark "no output". As a result, when the marks of the timings before and after are the same, it is likely that the higher-level behavior that is the same as the marks of the timings before and after is performed at the same timing corresponding to the mark "no output". In this case, the correction unit corrects the mark "no output" to the same mark as the marks of the timing outputs before and after. In addition, in the case where the marks of the timings before and after are different, it is likely to be the moment of switching work. In this case, the correction unit corrects the mark "no output" to a special mark containing a predetermined proportion of the marks of the timing outputs before and after.
[0132] Fig.14 is a diagram showing a correction example of the recognition result of a higher-level behavior. Fig.14 The recognition result of the higher-level behavior at each time elapsed from the arbitrary start time to the time when the recognition result of the higher-level behavior is obtained is shown. In addition, Fig.14 An example of the recognition result when a higher-level behavior is recognized every 10 seconds based on the selected feature amount calculated from the image of the most recent 10 seconds is shown. Fig.14 An example is shown in which the first character of a character string indicating a mark of a higher-level behavior is described as an example of a recognition result of the higher-level behavior. For example, "classification" refers to classification work, "collection" refers to collection work, "empty tray" refers to empty tray installation, and "transportation" refers to transportation work.
[0133] like Fig.14As shown, the recognition result of the higher-level behavior includes three marks "No output" at 60 seconds, 170 seconds, and 250 seconds. For example, when correcting the 60-second mark, the 50-second mark "Sort" is compared with the 70-second mark "Sort". In this case, since the two marks are the same, the 60-second mark is corrected from "No output" to "Sort". When correcting the 170-second mark, the 160-second mark "Sort" is compared with the 180-second mark "Col". In this case, the two marks are different. Therefore, the 170-second mark is corrected from "No output" to a special mark "Sort / Col" that evenly includes the 160-second mark "Sort" and the 180-second mark "Col". In addition, when correcting the 250-second mark, the 240-second mark "Tran" is compared with the 260-second mark "Tran". In this case, since the two marks are the same, the 250-second mark is corrected from "No output" to "Tran". By such correction, it is possible to suppress the reduction in accuracy of various analysis processes, such as Fig.10 The productivity analysis shown and Fig.11 Work breakdown analysis shown.
[0134] In addition to being able to evenly set the ratio of the marks of the timing output before and after, the ratio can also be determined based on the drawing position of the selected feature quantity calculated at the timing of the output mark "no output" and the distance to the mapping area corresponding to the timing marks before and after. In this case, as the distance becomes smaller, the ratio is set higher, and as the distance becomes larger, the ratio is set lower. For example, a case will be described in which the ratio between the first distance to the mapping area corresponding to the first mark of the timing output before the mark "no output" and the second distance to the mapping area corresponding to the second mark of the timing output after the mark "no output" is 4:1 as an example. In this case, by exchanging the ratio between the first distance and the second distance, the ratio of the first mark can be set to "0.2" and the ratio of the second mark can be set to "0.8".
[0135] (Distribution and Integration)
[0136] In addition, each component of each device shown in the figure does not necessarily need to be physically configured as shown. That is, the specific form of distribution or integration of each component is not limited to those shown, and all or some of the components can be configured to be functionally or physically distributed or integrated in any unit according to, for example, various loads or usage conditions. For example, the image acquisition unit 11, the object recognition unit 13, the basic motion recognition unit 14, the rule conversion unit 15 or the higher-level behavior recognition unit 18 can be connected via a network as an external device of the behavior recognition device 10. In addition, other separate devices can include the image acquisition unit 11, the object recognition unit 13, the basic motion recognition unit 14, the rule conversion unit 15 and the higher-level behavior recognition unit 18, which are networked to cooperate with each other to realize the function of the above behavior recognition device 10. In addition, other separate devices can include all or some of the first rules, reference images and second rules stored in the first rule storage unit 16A, the reference image storage unit 16B and the second rule storage unit 17, which are networked to cooperate with each other to realize the function of the above behavior recognition device 10.
[0137] (Behavior Recognition Program)
[0138] In addition, the various processes described in the above embodiments can be implemented by executing a prepared program on a computer such as a personal computer or a workstation. Fig.15 An example of a computer that executes a behavior recognition program having the same functions as those of the first and second embodiments is described.
[0139] Fig.15 is a diagram showing an example of a computer hardware configuration. Fig.15 As shown, the computer (information processing apparatus) 100 includes an operation unit 110a, a speaker 110b, a camera 110c, a display 120, and a communication unit 130. In addition, the computer 100 has a CPU 150, a ROM 160, a HDD 170, and a RAM 180. These components 110 to 180 are interconnected via a bus 140.
[0140] like Fig.15 As shown, the HDD 170 stores a behavior recognition program 170a to exhibit the same functions as the image acquisition unit 11, the object recognition unit 13, the basic motion recognition unit 14, the rule conversion unit 15, and the higher-level behavior recognition unit 18 shown in the first embodiment. The behavior recognition program 170a can be used with Figure 7The constituent elements of the image acquisition unit 11, the object recognition unit 13, the basic motion recognition unit 14, the rule conversion unit 15, and the higher-level behavior recognition unit 18 are similarly integrated or separated. That is, not all the data shown in the first embodiment can be stored in the HDD 170, and the data used for processing can be stored in the HDD 170.
[0141] In such an environment, the CPU 150 reads the behavior recognition program 170a from the HDD 170 and deploys the behavior recognition program 170a on the RAM 180. As a result, the behavior recognition program 170a is used as Fig.15 The behavior recognition processing 180a shown in FIG. The behavior recognition processing 180a deploys various data read from the HDD 170 in an area allocated to the behavior recognition processing 180a in the storage area of the RAM 180, and performs various processes using the deployed various data. For example, as an example of the processing performed by the behavior recognition processing 180a, Fig.12 and Fig.13 In addition, in the CPU 150, not all the processing units shown in the first embodiment need to be operated, and a processing unit corresponding to the processing to be executed may be actually implemented.
[0142] In addition, the behavior recognition program 170a may not necessarily be stored in the HDD 170 or the ROM 160 from the beginning. For example, the behavior recognition program 170a is stored in a "portable physical medium" such as a floppy disk (FD), a CD-ROM, a DVD disk, a magneto-optical disk, an IC card, etc. inserted into the computer 100. Then, the computer 100 can obtain and execute the behavior recognition program 170a from these portable physical media. In addition, the behavior recognition program 170a may be stored in another computer or server device connected to the computer 100 via a public line, the Internet, a LAN, a WAN, etc., and the computer 100 can obtain and execute the behavior recognition program 170a therefrom.
Claims
1. A behavior recognition method, comprising: A computer extracts skeleton information including multiple joint positions for each frame of the image; Calculating a first set of motion feature quantities according to the skeleton information; calculating a drawing position by drawing the first group of motion feature quantities on a feature quantity space defined by a second group of motion feature quantities, the drawing position being a position where the first group of motion feature quantities are drawn on the feature quantity space, the feature quantity space having a plurality of mapping areas in which respective ranges corresponding to predetermined higher-level behaviors to be identified are mapped; as well as When the minimum distance among the distances between the drawing position and each of the plurality of mapping areas deviates from the other distances to a certain extent, based on the drawing position, an update is performed to extend the mapping area at the minimum distance from the drawing position, wherein the second group of motion feature quantities is selected from a third group of motion feature quantities, the third group of motion feature quantities being extracted from respective combinations of basic motions corresponding to the predetermined higher-level behavior, and Therein, respective ranges in which the predetermined higher-level behavior is observed are mapped onto a feature quantity space defined by the second set of motion feature quantities.
2. The behavior recognition method according to claim 1, wherein: The motion feature quantities capable of distinguishing the predetermined higher-level behavior are selected from the third group of motion feature quantities as the second group of motion feature quantities according to a predetermined feature quantity selection algorithm.
3. The behavior recognition method according to claim 1, wherein: The respective ranges are set based on the maximum value and the minimum value of the second group of motion feature quantities obtained in a portion of a predetermined reference image where the predetermined higher-level behavior is observed on the feature quantity space.
4. The behavior recognition method according to claim 1, wherein: Each mapping area is defined by the coordinates of the vertices forming the boundary line of each mapping area.
5. The behavior recognition method according to claim 4, wherein: The performing includes expanding a region defined by coordinates of vertices located at the minimum distance in Manhattan distance from the drawing location.
6. A non-transitory computer-readable recording medium storing a program for causing a computer to execute a process, the process comprising: Extracting skeleton information including multiple joint positions for each frame of the image; Calculate a first group of motion feature quantities according to the skeleton information; calculating a drawing position by drawing the first group of motion feature quantities on a feature quantity space defined by a second group of motion feature quantities, the drawing position being a position where the first group of motion feature quantities are drawn on the feature quantity space, the feature quantity space having a plurality of mapping areas in which respective ranges corresponding to predetermined higher-level behaviors to be identified are mapped; as well as When the minimum distance among the distances between the drawing position and each of the plurality of mapping areas deviates from the other distances to a certain extent, based on the drawing position, an update is performed to extend the mapping area at the minimum distance from the drawing position, wherein the second group of motion feature quantities is selected from a third group of motion feature quantities, the third group of motion feature quantities being extracted from respective combinations of basic motions corresponding to the predetermined higher-level behavior, and Therein, respective ranges in which the predetermined higher-level behavior is observed are mapped onto a feature quantity space defined by the second set of motion feature quantities.
7. A behavior recognition device, comprising: An object recognition unit extracts skeleton information including multiple joint positions for each frame of the image; Basic motion recognition unit, which Calculating a first set of motion feature quantities according to the skeleton information, and calculating a drawing position by drawing the first group of motion feature quantities on a feature quantity space defined by a second group of motion feature quantities, the drawing position being a position where the first group of motion feature quantities are drawn on the feature quantity space, the feature quantity space having a plurality of mapping areas in which respective ranges corresponding to predetermined higher-level behaviors to be identified are mapped; as well as a rule updating unit configured to perform an update of extending a mapping area at a minimum distance from the drawing position based on the drawing position when a minimum distance among distances between the drawing position and each of the plurality of mapping areas deviates from other distances to a degree that satisfies a predetermined standard, wherein the second group of motion feature quantities is selected from a third group of motion feature quantities, the third group of motion feature quantities being extracted from respective combinations of basic motions corresponding to the predetermined higher-level behavior, and Therein, respective ranges in which the predetermined higher-level behavior is observed are mapped onto a feature quantity space defined by the second set of motion feature quantities.
