Learning device, abnormal behavior determination device, method, and program

The learning device uses language models to generate and compare sentence vectors from action labels in video data to accurately determine if human behavior deviates from the expected sequence, addressing the challenge of identifying abnormal behavior in procedural tasks.

JP7575759B2Active Publication Date: 2024-10-30NIPPON TELEGRAPH & TELEPHONE CORP +1

Patent Information

Application Number
JP2021116487
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-07-14
Publication Date
2024-10-30
Estimated Expiration
2041-07-14

AI Technical Summary

Technical Problem

Conventional methods for detecting abnormal behavior in videos fail to accurately distinguish between actions within a procedure, making it difficult to identify deviations from the correct order of actions, particularly in tasks like using a stepladder where the timing of actions can indicate danger.

Method used

A learning device and method that utilizes a language model to generate sentence vectors from action labels in video data, comparing these vectors to stored procedural sentence vectors to determine if human behavior deviates from the expected sequence.

Benefits of technology

Enables accurate detection of abnormal behavior by comparing generated sentence vectors with procedural sentence vectors, effectively identifying deviations from the expected sequence of actions in a procedure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007575759000001
    Figure 0007575759000001
  • Figure 0007575759000002
    Figure 0007575759000002
  • Figure 0007575759000003
    Figure 0007575759000003
Patent Text Reader

Abstract

To assess an abnormal behavior with good accuracy that does not conform to procedures.SOLUTION: A procedural sentence database 24 stores a plurality of procedural sentences for each of a series of procedure that represent at least one action included in the procedure, or a vector that represents each of the plurality of procedural sentences. A label detection unit 28 detects an action label related to a human action from video data or audio data for training that represents the actions included in the procedure. A model learning unit 30 learns a language model that generates a sentence or a sentence vector from the action label, so as to generate the procedural sentences preliminarily determined for the video data or audio data for learning, or the sentence vectors that represent the procedural sentences.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The disclosed technology relates to a learning device, an abnormal behavior determination device, a method, and a program. [Background technology]

[0002] In recent years, with the spread of high-definition cameras, there is an increasing need for technology to analyze human behavior using video and audio captured by cameras. For example, detecting criminal behavior using surveillance cameras and dangerous behavior at construction sites. To discover these behaviors, it is necessary to observe a large amount of video and audio. Furthermore, it is necessary for someone who understands the definition of abnormal behavior to observe the behavior in the video and detect abnormal behavior. However, since manual detection requires time and human costs, a method of detecting abnormal behavior by building an algorithm to automatically detect abnormal behavior is considered.

[0003] In recent years, a technology for detecting abnormal behavior using a neural network has been proposed (Non-Patent Document 1). The method in Non-Patent Document 1 detects abnormal behavior with high accuracy by clustering videos. [Prior art documents] [Non-patent literature]

[0004] [Non-Patent Document 1] Zaheer MZ, Mahmood A., Astrid M., Lee SI. CLAWS: Clustering Assisted Weakly Supervised Learning with Normalcy Suppression for Anomalous Event Detection. ECCV 2020. Summary of the Invention [Problem to be solved by the invention]

[0005] In the conventional method for detecting abnormal behaviors shown in a video shown in Non-Patent Document 1, steps and actions are not clearly distinguished. Therefore, for example, in a series of steps including (step 1) setting up a stepladder placed on the floor, (step 2) fastening a safety belt, and (step 3) climbing the stepladder, there are many actions in each step, and it is difficult to determine whether the order of the actions included in the steps is correct. Specifically, (step 1) includes many actions such as bending the knees to grab the stepladder, lifting the stepladder and fixing it. Similarly, the step of (step 2) fastening the safety belt and climbing the stepladder includes a series of actions such as holding the safety belt and fixing it to the human body. (step 3) includes many actions such as walking toward the stepladder, putting a foot on the step, and climbing up the stepladder with the hands. In this way, it is necessary to group actions to some extent as one step and check whether the order of the actions included in the step is correct, but current abnormal behavior detection methods are centered on detecting abnormalities in individual actions, and no consideration has been given to abnormality determination as to whether multiple actions differ from the grouped steps. For this reason, it is difficult to determine abnormal behavior from the video, such as fastening the safety belt after climbing the ladder, which is dangerous and differs from the correct procedure.

[0006] The disclosed technology has been made in consideration of the above points, and aims to provide a learning device, abnormal behavior determination device, method, and program that can accurately determine abnormal behavior that deviates from procedures. [Means for solving the problem]

[0007] A first aspect of the present disclosure is a learning device including: a procedural statement database that stores, for each of a series of procedures, a plurality of procedural statements representing at least one action included in the procedure, or a sentence vector representing each of the plurality of procedural statements; a label detection unit that detects an action label related to a human action from learning video data or audio data representing the action included in the procedure; and a model learning unit that learns a language model that generates sentences or sentence vectors from the action labels so as to generate the procedural statement or the sentence vector representing the procedural statement that is predetermined for the learning video data or audio data.

[0008] A second aspect of the present disclosure is an abnormal behavior determination device that includes: a procedural statement database that stores, for each of a series of procedures, a plurality of procedural statements that represent at least one behavior included in the procedure, or a sentence vector that represents each of the plurality of procedural statements; a generation unit that generates sentences or sentence vectors using a pre-trained language model that generates sentences or sentence vectors from behavior labels related to human behavior detected from video data or audio data that represents human behavior; a similarity calculation unit that calculates a similarity between the generated sentences or sentence vectors and the procedural statements stored in the procedural statement database, or the sentence vectors representing the procedural statements; and an abnormality determination unit that determines whether the human behavior is abnormal based on the similarity calculated by the similarity calculation unit.

[0009] A third aspect of the present disclosure is a learning method, in which a learning device includes a procedural statement database that stores, for each of a series of procedures, a plurality of procedural statements representing at least one action included in the procedure, or a sentence vector representing each of the plurality of procedural statements, detects an action label related to a human action from training video data or audio data representing the actions included in the procedure, and learns a language model that generates sentences or sentence vectors from the action labels so as to generate the procedural statement or the sentence vector representing the procedural statement that is predetermined for the training video data or audio data.

[0010] A fourth aspect of the present disclosure is an abnormal behavior determination method, in which an abnormal behavior determination device includes a procedural statement database that stores, for each of a series of procedures, a plurality of procedural statements representing at least one behavior included in the procedure, or a sentence vector representing each of the plurality of procedural statements, generates sentences or sentence vectors using a pre-trained language model that generates sentences or sentence vectors from behavior labels related to human behavior detected from video data or audio data representing human behavior, calculates a similarity between the generated sentences or sentence vectors and the procedural statements or sentence vectors representing the procedural statements stored in the procedural statement database, and determines whether the human behavior is abnormal based on the calculated similarity.

[0011] A fifth aspect of the present disclosure is a program for causing a computer to function as the learning device of the first aspect or the abnormal behavior determination device of the second aspect. Effect of the Invention

[0012] According to the disclosed technology, abnormal behavior that deviates from procedures can be determined with high accuracy. [Brief description of the drawings]

[0013] [Figure 1] FIG. 2 is a schematic block diagram of an example of a computer that functions as the learning device and the abnormal behavior determination device according to the first and second embodiments. [Diagram 2] FIG. 1 is a block diagram showing a configuration of a learning device according to a first embodiment. [Diagram 3] 1 is a block diagram showing a configuration of an abnormal behavior determination device according to a first embodiment and a second embodiment. [Figure 4] 5 is a flowchart showing a sentence vector generation processing routine of the learning device of the first embodiment. [Diagram 5] 4 is a flowchart showing a learning process routine of the learning device of the first embodiment. [Figure 6] 5 is a flowchart showing the flow of processing for updating a language model of the learning device of the first embodiment. [Figure 7] 5 is a flowchart showing an abnormal behavior determination processing routine of the abnormal behavior determination device of the first embodiment. [Figure 8] 5 is a flowchart showing a process flow for generating a sentence vector in the abnormal behavior determination device of the first embodiment. [Figure 9] 5 is a flowchart showing a flow of a process for determining abnormal behavior by the abnormal behavior determination device of the first embodiment. [Figure 10] 10 is a flowchart showing a learning process routine of the learning device of the second embodiment. [Figure 11] 13 is a flowchart showing the flow of processing for updating a language model in the learning device of the second embodiment. [Figure 12] 13 is a flowchart showing an abnormal behavior determination process routine of the abnormal behavior determination device of the second embodiment. [Figure 13] 10 is a flowchart showing a process flow for generating a sentence in the abnormal behavior determination device of the second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0014] Hereinafter, an example of an embodiment of the disclosed technology will be described with reference to the drawings. In each drawing, the same or equivalent components and parts are given the same reference numerals. In addition, the dimensional ratios of the drawings are exaggerated for the convenience of explanation and may differ from the actual ratios.

[0015] [First embodiment] <Outline of this embodiment> In this embodiment, a sentence vector of a group of behavior labels extracted from video and audio is generated as an input. For example, a sentence vector of a group of behavior labels is generated as an input of a group of human-object-interaction labels (HOI labels), which are combinations of human labels, object labels, and labels of actions of people with respect to objects, extracted from video. Then, the sentence vectors are input to calculate the similarity between the sentence vectors and the sentence vector of a procedure sentence to be compared, and the similarity between the sentence vectors is input to determine whether the behavior is abnormal and different from the procedure.

[0016] Here, the sentence vector of a procedure sentence is a sentence vector of a procedure sentence that represents each of a series of procedures, and one procedure includes at least one action.

[0017] <Configuration of the learning device according to this embodiment> FIG. 1 is a block diagram showing the hardware configuration of a learning device 10 of this embodiment.

[0018] 1, the learning device 10 has a CPU (Central Processing Unit) 11, a ROM (Read Only Memory) 12, a RAM (Random Access Memory) 13, a storage 14, an input unit 15, a display unit 16, and a communication interface (I / F) 17. Each component is connected to each other via a bus 19 so as to be able to communicate with each other.

[0019] The CPU 11 is a central processing unit, and executes various programs and controls each part. That is, the CPU 11 reads a program from the ROM 12 or the storage 14, and executes the program using the RAM 13 as a working area. The CPU 11 controls each of the above components and performs various arithmetic processing according to the program stored in the ROM 12 or the storage 14. In this embodiment, the ROM 12 or the storage 14 stores a learning program for learning a language model that is a neural network. The learning program may be one program, or may be a group of programs composed of multiple programs or modules.

[0020] The ROM 12 stores various programs and various data. The RAM 13 temporarily stores programs or data as a working area. The storage 14 is configured with an HDD (Hard Disk Drive) or an SSD (Solid State Drive) and stores various programs including an operating system and various data.

[0021] The input unit 15 includes a pointing device such as a mouse, and a keyboard, and is used to perform various input operations.

[0022] The input unit 15 receives learning video data as an input. Specifically, the input unit 15 receives learning video data representing actions included in a procedure represented by a procedural statement in a work manual. The learning video data is provided with information (e.g., an ID) indicating which procedural statement in the work manual the learning video data corresponds to.

[0023] The display unit 16 is, for example, a liquid crystal display, and displays various information. The display unit 16 may function as the input unit 15 by adopting a touch panel system.

[0024] The communication interface 17 is an interface for communicating with other devices, and uses standards such as Ethernet (registered trademark), FDDI, and Wi-Fi (registered trademark).

[0025] Next, a description will be given of the functional configuration of the learning device 10. FIG 2 is a block diagram showing an example of the functional configuration of the learning device 10.

[0026] As shown in FIG. 2, the learning device 10 functionally comprises a work manual database (DB) 20, a sentence vector generation unit 22, a procedure sentence database (DB) 24, a learning database (DB) 26, a label detection unit 28, and a model learning unit 30.

[0027] A plurality of procedure statements included in a work manual in which a series of procedures are described is stored in the work manual database 20. Here, the procedure statements are stored in the work manual database 20 as text data.

[0028] The sentence vector generation unit 22 extracts each procedural statement from the operation manual database 20, and generates a sentence vector representing the procedural statement by using the pre-trained model.

[0029] Specifically, the sentence vector generation unit 22 prepares a language model such as BERT (Bidirectional Encoder Representations from Transformers) trained on a large amount of text as a trained model in advance, and generates sentence vectors representing procedural statements using the language model. This language model is not trained beyond the pre-training, and is used only to generate sentence vectors representing procedural statements. The sentence vector generation unit 22 stores the generated sentence vectors in the procedural statement database 24.

[0030] The procedural statement database 24 stores the sentence vectors generated by the sentence vector generating unit 22 for each of a plurality of procedural statements included in the work manual.

[0031] Here, it is assumed that the sentence vectors are stored in the procedural sentence database 24 in a form that matches the granularity of sentence vectors generated by a language model, which will be described later.

[0032] The learning database 26 stores a plurality of pieces of learning video data that have been input. The learning video data may be input for each video, for each divided video segment, or for each video frame. Here, a video segment is a unit obtained by dividing a video into a group of multiple frames, and one segment is defined as, for example, 32 frames.

[0033] The label detection unit 28 detects an action label related to a human action from each of a plurality of pieces of training video data stored in the training database 26. Specifically, the label detection unit 28 extracts training video data from the training database 26, and outputs an action label group which is a group of action labels detected within a certain time period, which is the length of the video data. One example of an action label group is an HOI label group. The HOI label group is a collection of HOI labels detected within a certain time period.

[0034] For example, if a person is a person, a ladder is a ladder, and climbing is a climb,<person,ladder,climb> The HOI label is detected as an action label. The presence or absence of an object label changes depending on whether the verb in the action label included in the HOI label is intransitive or transitive. In the above example, the action label is a transitive verb, but it may be an intransitive verb.

[0035] The model learning unit 30 learns a language model that generates a sentence vector from an action label so as to generate a sentence vector representing a predetermined procedural sentence for the learning video data.

[0036] Specifically, the model learning unit 30 receives a group of action labels detected from the video data for training by the label detection unit 28. The model learning unit 30 also extracts, from the procedural statement database 24, a procedural statement vector of a procedural statement that is a correct answer associated with the video data for training. The model learning unit 30 generates a statement vector from the group of action labels detected from the video data for training, using a language model to be learned. The model learning unit 30 compares and evaluates the procedural statement vector of the procedural statement that is a correct answer with the generated statement vector, updates the language model so that the procedural statement vector of the procedural statement that is a correct answer matches the generated statement vector, and outputs the language model. Here, the language model is a neural network model or the like.

[0037] For example, a language model that has been self-supervised learning with a large amount of text is used as a base model for the language model to be trained. A representative model is BERT in Non-Patent Document 2. For BERT, the action labels are sorted in the order of <person label, action label, object label> and input. In other words, the order takes into account the subject-predicate-object relationship. In the above example,<person climb ladder> Also, if the step "fasten the safety belt" occurs before the step "a person climbs the ladder," the same applies.<person tighten safety belt> If we can detect the action label, BERT has the following:<person tighten safety belt person climb ladder> By inputting the above, one sentence vector can be obtained.<person tighten safety belt > and<person climb ladder> Alternatively, you can split the input into separate sentences. Specifically, you can input the HOI labels with a separator that the BERT model can recognize between them. This allows you to generate sentence vectors that take multiple steps into account.

[0038] [Non-Patent Document 2] Jacob Devlin, Ming-Wei Chang, Kenton Lee, Kristina Toutanova. BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. NAACL2019.

[0039] <Configuration of the abnormal behavior determination device according to the first embodiment> FIG. 1 is a block diagram showing a hardware configuration of the abnormal behavior determination device 50 of the first embodiment.

[0040] As shown in FIG. 1, the abnormal behavior determination device 50 has the same configuration as the learning device 10, and the ROM 12 or the storage 14 stores an abnormal behavior determination program for determining abnormal behavior.

[0041] The input unit 15 receives as input a group of action labels detected from video data representing human actions. Specifically, the input unit 15 receives as input a group of action labels, which are a group of HOI labels detected within a certain period of time, which is the length of the video data.

[0042] Next, a description will be given of the functional configuration of the abnormal behavior determination device 50. FIG.

[0043] The abnormal behavior determining device 50 functionally comprises a procedural statement database (DB) 60, a generating unit 62, a similarity calculating unit 64, and an abnormality determining unit 66, as shown in FIG.

[0044] The procedural statement database 60, like the procedural statement database 24, stores sentence vectors generated by the sentence vector generating unit 22 for each of a plurality of procedural statements included in the work manual.

[0045] The generation unit 62 generates a sentence vector based on the input action label group, using a language model trained in advance by the learning device 10.

[0046] The similarity calculation unit 64 calculates the similarity between the statement vector generated by the generation unit 62 and a statement vector representing a procedural statement stored in the procedural statement database 60 .

[0047] The abnormality determination unit 66 determines whether or not the person's behavior is abnormal, that is, different from the procedure, based on the similarity calculated by the similarity calculation unit 64. For example, the abnormality determination unit 66 compares the calculated similarity with a predetermined threshold value to determine whether or not the person's behavior is abnormal, and outputs a label having a value of 1 or 0. Here, if it is abnormal, the label is 1, and if it is normal, the label is 0.

[0048] <Function of the learning device according to the first embodiment> Next, the operation of the learning device 10 according to the first embodiment will be described.

[0049] 4 is a flowchart showing the flow of sentence vector generation processing by the learning device 10. The sentence vector generation processing is performed by the CPU 11 reading a learning program from the ROM 12 or storage 14, expanding it into the RAM 13, and executing it.

[0050] In step S100, the CPU 11 functions as the sentence vector generating unit 22 and extracts procedural sentences one by one from the operation manual database 20, and uses them as input.

[0051] In step S102, the CPU 11, functioning as the sentence vector generation unit 22, inputs procedural statements one by one into the pre-trained model to generate sentence vectors representing the procedural statements. Here, the pre-trained model is a model that has been pre-trained using only a large amount of general text using a language model such as BERT.

[0052] In step S104, the CPU 1 stores the statement vector generated for each of the procedural statements in the procedural statement database 24.

[0053] 5 is a flowchart showing the flow of the learning process by learning device 10. The learning process is performed by CPU 11 reading out a learning program from ROM 12 or storage 14, expanding it into RAM 13, and executing it. In addition, multiple pieces of video data for learning are input to learning device 10 and stored in learning database 26.

[0054] In step S110, the CPU 11, functioning as the label detection unit 28, retrieves a plurality of pieces of learning video data from the learning database 26, and uses each of the pieces as input.

[0055] In step S112, the CPU 11, functioning as the label detection unit 28, detects an action label group from each of the multiple pieces of learning video data.

[0056] In step S114, the CPU 11 functions as the model learning unit 30 to obtain a group of action labels detected from each of the multiple learning video data, and sets them as an input.

[0057] In step S116, the CPU 11, functioning as the model learning unit 30, extracts from the procedural statement database 24 a procedural statement vector of a correct procedural statement associated with each of the multiple learning video data. The CPU 11 generates a statement vector from a group of action labels detected from each of the multiple learning video data, using a language model to be learned. The CPU 11 compares and evaluates the procedural statement vector of the correct procedural statement with the generated statement vector, and updates the language model so that the procedural statement vector of the correct procedural statement matches the generated statement vector.

[0058] In step S118, the CPU 11 outputs the updated language model as the model learning unit 30. Here, the label detection unit 28 may detect the action label using a method capable of detecting the HOI label from the video data such as that described in Non-Patent Document 3. The unit of output may be any, such as a video frame or a video segment.

[0059] [Non-Patent Document 3] Georgia Gkioxari, Ross Girshick, Piotr Dollar, Kaiming He. Detecting and Recognizing Human-Object Interactions. CVPR2018.

[0060] FIG. 6 shows the detailed operations in the processes in steps S114 and S116.

[0061] In step S120, the CPU 11 functions as the model learning unit 30 to obtain a group of action labels detected from each of the multiple learning video data, and sets them as an input.

[0062] In step S122, the CPU 11, functioning as the model learning unit 30, rearranges the action labels in the action label group in the order of <person label, action label, object label>.

[0063] In step S124, the CPU 11, as the model learning unit 30, judges whether the activity label group is longer than the upper limit of the input length of the language model to be learned. If the activity label group is longer than the upper limit of the input length of the language model to be learned, the process proceeds to step S126. On the other hand, if the activity label group is equal to or shorter than the upper limit of the input length of the language model to be learned, the process proceeds to step S128.

[0064] In step S126, the CPU 11, as the model learning unit 30, tally up the frequency of occurrence of each behavior label in the behavior label group, sorts the behavior labels in order of frequency of occurrence, extracts the top N behavior labels so that they fit within the upper input length limit of the language model to be learned, deletes behavior labels other than the extracted behavior labels, and creates a new behavior label group.

[0065] In step S128, the CPU 11, functioning as the model learning unit 30, inputs the rearranged group of action labels to the language model to be learned, and generates a sentence vector.

[0066] In step S130, the CPU 11, as the model learning unit 30, calculates a loss using an evaluation function between the generated sentence vector and the sentence vector of the correct procedural sentence linked to the learning video data obtained from the procedural sentence database 24.

[0067] Here, the evaluation function is expressed by a distance function, and the square of the Euclidean distance, the Contrastive Loss of Non-Patent Document 4, etc. can be used. The distance function is not limited to these, and other distance functions may be used as long as they can express distance and are differentiable, in other words, as long as the gradient required for backpropagation in deep learning can be calculated.

[0068] [Non-patent document 4] Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, Ross Girshick. Momentum Contrast for Unsupervised Visual Representation Learning. CVPR2020.

[0069] In step S132, the CPU 11, functioning as the model learning unit 30, calculates a gradient from the obtained loss and updates the parameters of the language model by backpropagation.

[0070] In step S134, the CPU 11, functioning as the model learning unit 30, outputs the updated language model.

[0071] <Function of the Abnormal Behavior Determination Device According to the First Embodiment> Next, the operation of the abnormal behavior determination device 50 according to the first embodiment will be described.

[0072] 7 is a flowchart showing the flow of abnormal behavior determination processing by the abnormal behavior determination device 50. The CPU 11 reads out an abnormal behavior determination program from the ROM 12 or storage 14, deploys it in the RAM 13, and executes it to perform the abnormal behavior determination processing. In addition, a group of behavior labels detected from video data representing human behavior are input to the abnormal behavior determination device 50. Here, it is assumed that the group of behavior labels has been detected by a method such as that shown in Non-Patent Document 3.

[0073] In step S140, the CPU 11 inputs the input behavior label group to the generating unit 62.

[0074] In step S142, the CPU 11, functioning as the generation unit 62, generates sentence vectors of an action label group.

[0075] In step S144, the CPU 11 inputs the sentence vector of the action label group to the similarity calculation unit 64.

[0076] In step S 146 , the CPU 11 extracts the sentence vectors representing the procedural statements from the procedural statement database 60 , and inputs them to the similarity calculation unit 64 .

[0077] Here, the order of procedures may be taken into consideration when extracting the sentence vectors of procedural statements from the procedural statement database 60. For example, the ID or the like of the sentence vector of a procedural statement determined to have the highest similarity to the action label group of the previous video segment may be stored, and sentence vectors representing T procedural statements before and after the procedure of the procedural statement may be extracted. This makes it possible to reduce the amount of calculation of the similarity with the sentence vectors of procedural statements.

[0078] In step S148, the CPU 11 functions as the similarity calculation unit 64 to calculate the similarity between each of the sentence vectors representing the extracted procedural sentences and the sentence vectors of the action label group. For example, the CPU 11 calculates cosine similarity as an index of similarity. Note that the index of similarity does not have to be cosine similarity, but may be any index that allows comparison of similarity between vectors.

[0079] In step S150, the CPU 11 functioning as the similarity calculation unit 64 outputs the calculated similarity to the abnormality determination unit 66.

[0080] In step S152, the CPU 11, functioning as the abnormality determination unit 66, compares the similarity with a threshold value, determines whether the human behavior is abnormal as it differs from the procedure, outputs a label indicating the determination result, and ends the abnormal behavior determination process.

[0081] Detailed operations in the above steps S140 and S142 are shown in Fig. 8. The operations shown in Fig. 8 are repeatedly performed for the action label group for each video segment. Note that the segment length of the video segment depends on the application.

[0082] In step S160, the CPU 11 inputs the behavior label group to the generation unit 62.

[0083] In step S162, the CPU 11, as the generation unit 62, rearranges each action label in the action label group in the order of <person label, action label, object label>. For example, if there are two person labels in the action label group of one video segment, they are arranged as <person label 1, action label 1, object label 1, person label 2, action label 2, object label 2>. Regarding combinations of actions and objects, possible combinations of action labels and object labels are stored in advance as a table, and the action label is determined by referring to the table. Other factors such as video features may also be taken into consideration.

[0084] The rearranged action label group is input to a trained language model such as BERT to obtain a sentence vector. In this embodiment, the action label group is input by concatenating it in the form of <action label 1> <action label 2> ... within the range of a sequence length (512 words) that falls within the upper limit of the input length of BERT. Then, in step S164, the CPU 11 as the generation unit 62 determines whether the action label group is longer than the upper limit of the input length of the trained language model. If the action label group is longer than the upper limit of the input length of the trained language model, the process proceeds to step S166. On the other hand, if the action label group is equal to or smaller than the upper limit of the input length of the trained language model, the process proceeds to step S168.

[0085] In step S166, the CPU 11, as the generation unit 62, tallies the frequency of occurrence of each behavior label in the behavior label group, arranges the behavior labels in order of frequency of occurrence, extracts the top N behavior labels so that they fit within the upper input length limit of the trained language model, deletes behavior labels other than the extracted behavior labels, and creates a new behavior label group.

[0086] In step S168, the CPU 11, functioning as the generation unit 62, inputs the rearranged action label group to the trained language model, and generates a sentence vector.

[0087] In step S170, the CPU 11 functioning as the generation unit 62 outputs the obtained sentence vector.

[0088] There are two methods for determining abnormal behavior in the above-mentioned steps S150 and S152. In one method, if the similarity between the procedural statement and the sentence vector is low for all the extracted procedural statements, the behavior is determined to be abnormal because it does not correspond to any procedural statement.

[0089] The other method takes into consideration the order of steps. FIG. 9 shows detailed operations in the processes of steps S150 and S152 when the order of steps is taken into consideration.

[0090] In step S180, the CPU 11 inputs the top M calculated similarities to the abnormality determination unit 66 in descending order of similarity.

[0091] In step S182, the CPU 11, as the abnormality judgment unit 66, judges whether the input behavior label group is for a video segment extracted from the beginning of the video (hereinafter referred to as a leading segment). If the input behavior label group is for the leading segment of the video, the process proceeds to step S188. On the other hand, if the input behavior label group is not for the leading segment of the video, the process proceeds to step S184.

[0092] In step S184, the CPU 11, functioning as the abnormality determination unit 66, determines whether or not there is a similarity among the M input similarities that is compared with the same sentence vector as the sentence vector of the procedural statement that had the highest similarity in the previous video segment. If there is a similarity among the M input similarities that is compared with the same sentence vector as the sentence vector of the procedural statement that had the highest similarity in the previous video segment, the process proceeds to step S186. On the other hand, if there is no similarity among the M input similarities that is compared with the same sentence vector as the sentence vector of the procedural statement that had the highest similarity in the previous video segment, the process proceeds to step S188.

[0093] In step S186, the CPU 11, as the abnormality determination unit 66, determines whether or not the similarity obtained by comparing the sentence vector of the procedural sentence with the highest similarity in the previous video segment among the M similarities inputted is higher than the same similarity in the previous video segment. If the similarity obtained by comparing the sentence vector of the procedural sentence with the highest similarity in the previous video segment among the M similarities inputted is higher than the same similarity in the previous video segment, the process proceeds to step S192. On the other hand, if the similarity obtained by comparing the sentence vector of the procedural sentence with the highest similarity in the previous video segment among the M similarities inputted is lower than the same similarity in the previous video segment, the process proceeds to step S188.

[0094] In step S188, it is determined whether the highest similarity among the input M similarities is lower than the threshold. If the highest similarity among the input M similarities is lower than the threshold, the process proceeds to step S190. On the other hand, if the highest similarity among the input M similarities is equal to or greater than the threshold, the process proceeds to step S192.

[0095] In step S190, the CPU 11 functions as the abnormality determination unit 66 to output a label indicating that the person's behavior is abnormal. In step S192, the CPU 11 functions as the abnormality determination unit 66 to output a label indicating that the person's behavior is normal.

[0096] As described above, the learning device according to the first embodiment detects action labels related to human actions from learning video data that represent actions included in a procedure, and learns a language model that generates a sentence vector from the action label so as to generate a sentence vector that represents a predetermined procedure sentence for the learning video data. This makes it possible to learn a language model for accurately determining abnormal actions that are different from the procedure.

[0097] Moreover, the abnormal behavior determination device according to the first embodiment generates a sentence vector using a pre-trained language model that generates a sentence vector from a behavior label based on a behavior label related to a human behavior detected from video data representing the human behavior, calculates a similarity between the generated sentence vector and a sentence vector representing a procedural statement stored in a procedural statement database, and determines whether or not the human behavior is abnormal based on the calculated similarity. This makes it possible to accurately determine abnormal behavior that differs from the procedure in a task with a procedure captured on video.

[0098] [Second embodiment] Next, a second embodiment will be described. Note that parts having the same configuration as the first embodiment will be given the same reference numerals and the description will be omitted.

[0099] The second embodiment differs from the first embodiment in that, instead of using the similarity of sentence vectors, procedural sentences are generated from a group of behavior labels, the similarity of the procedural sentences is calculated, and it is determined whether a person's behavior is abnormal and differs from the procedure.

[0100] <Outline of the second embodiment> In the second embodiment, a sentence is generated using a group of behavior labels as input, the generated sentence and a procedural sentence are used as input to calculate a similarity, and the calculated similarity is used as an input to determine whether a person's behavior is abnormal.

[0101] <Configuration of the learning device according to the second embodiment> The learning device of the second embodiment is similar to the learning device 10 of the first embodiment, except that the sentence vector generation unit 22 is not required, and therefore the same reference numerals are used and the description thereof is omitted.

[0102] The procedural statement database 24 of the learning device 10 of the second embodiment stores each of a plurality of procedural statements included in a work manual.

[0103] The model learning unit 30 learns a language model that generates sentences from action labels so as to generate predetermined procedural sentences for video data for learning.

[0104] Specifically, the model learning unit 30 receives a group of action labels detected from the video data for learning from the label detection unit 28. The model learning unit 30 also extracts a procedural statement that is a correct answer associated with the video data for learning from the procedural statement database 24. The model learning unit 30 generates a sentence from the group of action labels detected from the video data for learning using a language model to be learned. For example, the generated sentence is expressed by the occurrence probability of each word. The model learning unit 30 compares and evaluates the procedural statement that is a correct answer with the generated sentence, updates the language model so that the procedural statement that is a correct answer matches the generated sentence, and outputs the language model. Here, the language model is an Encoder-Decoder type neural network model used in translation, etc., as in Non-Patent Document 5.

[0105] [Non-Patent Document 5] Jinhua Zhu and Yingce Xia and Lijun Wu and Di He and Tao Qin and Wengang Zhou and Houqiang Li and Tieyan Liu. Incorporating BERT into Neural Machine Translation. ICLR2020.

[0106] <Configuration of abnormal behavior determination device according to the second embodiment> The abnormal behavior determination device of the second embodiment is similar to the abnormal behavior determination device 50 of the above-described first embodiment, so the same reference numerals are used and the description thereof will be omitted.

[0107] The procedural statement database 60, like the procedural statement database 24, stores each of a plurality of procedural statements included in the work manual.

[0108] The generation unit 62 generates a sentence based on the input group of action labels, using a language model previously trained by the learning device 10.

[0109] The similarity calculation unit 64 calculates the similarity between the sentence generated by the generation unit 62 and the procedural sentence stored in the procedural sentence database 60 .

[0110] The abnormality determination unit 66 determines, based on the similarity calculated by the similarity calculation unit 64, whether or not the person's behavior is abnormal as being different from the procedure.

[0111] <Function of the learning device according to the second embodiment> Next, the operation of the learning device 10 according to the second embodiment will be described. Note that the same processes as those in the first embodiment are denoted by the same reference numerals and detailed description thereof will be omitted.

[0112] 10 is a flowchart showing the flow of the learning process by learning device 10. The learning process is performed by CPU 11 reading out a learning program from ROM 12 or storage 14, expanding it into RAM 13, and executing it. In addition, multiple pieces of video data for learning are input to learning device 10 and stored in learning database 26.

[0113] In step S110, the CPU 11, functioning as the label detection unit 28, retrieves a plurality of pieces of learning video data from the learning database 26, and uses each of the pieces as input.

[0114] In step S112, the CPU 11, functioning as the label detection unit 28, detects an action label group from each of the multiple pieces of learning video data.

[0115] In step S114, the CPU 11 functions as the model learning unit 30 to obtain a group of action labels detected from each of the multiple learning video data, and sets them as an input.

[0116] In step S200, the CPU 11, functioning as the model learning unit 30, extracts a procedural sentence that is a correct answer associated with each of the multiple pieces of learning video data from the procedural sentence database 24. The CPU 11 generates a sentence from a group of action labels detected from each of the multiple pieces of learning video data, using a language model to be learned. The CPU 11 compares and evaluates the procedural sentence that is a correct answer with the generated sentence, and updates the language model so that the procedural sentence that is a correct answer matches the generated sentence.

[0117] In step S118, the CPU 11 functioning as the model learning unit 30 outputs the updated language model.

[0118] FIG. 11 shows the detailed operations in the processes of steps S114 and S200.

[0119] In step S120, the CPU 11 functions as the model learning unit 30 to obtain a group of action labels detected from each of the multiple learning video data, and sets them as an input.

[0120] In step S122, the CPU 11, functioning as the model learning unit 30, rearranges the action labels in the action label group in the order of <person label, action label, object label>.

[0121] In step S124, the CPU 11, as the model learning unit 30, judges whether the activity label group is longer than the upper limit of the input length of the language model to be learned. If the activity label group is longer than the upper limit of the input length of the language model to be learned, the process proceeds to step S126. On the other hand, if the activity label group is equal to or shorter than the upper limit of the input length of the language model to be learned, the process proceeds to step S210.

[0122] In step S126, the CPU 11, as the model learning unit 30, tally up the frequency of occurrence of each behavior label in the behavior label group, sorts the behavior labels in order of frequency of occurrence, extracts the top N behavior labels so that they fit within the upper input length limit of the language model to be learned, deletes behavior labels other than the extracted behavior labels, and creates a new behavior label group.

[0123] In step S210, the CPU 11, functioning as the model learning unit 30, inputs the rearranged group of action labels to a language model to be learned, and generates sentences.

[0124] In step S212, the CPU 11, as the model learning unit 30, calculates a loss by an evaluation function between the generated sentence and the correct procedural sentence linked to the learning video data acquired from the procedural sentence database 24. Specifically, the loss is calculated by an evaluation function that evaluates the degree of difference between the occurrence probability of each word expressed by the generated sentence and each word of the correct procedural sentence. For example, the loss is calculated by the evaluation function so that the closer the occurrence probability of each word in the correct procedural sentence is to 1, the lower the loss, and the closer the occurrence probability of each word not included in the correct procedural sentence is to 0, the lower the loss.

[0125] In step S132, the CPU 11, functioning as the model learning unit 30, calculates a gradient from the obtained loss and updates the parameters of the language model by backpropagation.

[0126] In step S134, the CPU 11, functioning as the model learning unit 30, outputs the updated language model.

[0127] <Function of the abnormal behavior determination device according to the second embodiment> Next, the operation of the abnormal behavior determination device 50 according to the second embodiment will be described.

[0128] 12 is a flowchart showing the flow of abnormal behavior determination processing by the abnormal behavior determination device 50. The abnormal behavior determination processing is performed by the CPU 11 reading out the abnormal behavior determination program from the ROM 12 or the storage 14, expanding it into the RAM 13, and executing it. In addition, a group of behavior labels detected from video data representing human behavior are input to the abnormal behavior determination device 50. Here, it is assumed that the group of behavior labels has been detected by a method such as that shown in Non-Patent Document 3.

[0129] In step S220, the CPU 11 inputs the input action label group to the generation unit 62. Then, the CPU 11, functioning as the generation unit 62, generates a sentence from the action label group.

[0130] In step S222, the CPU 11 inputs the generated sentence to the similarity calculation unit 64.

[0131] In step S224, the CPU 11 retrieves each procedural statement from the procedural statement database 60 and inputs it to the similarity calculation unit 64. Here, when retrieving the procedural statements from the procedural statement database 60, the order of the steps may be taken into consideration. For example, the ID or the like of the procedural statement determined to have the highest similarity to the action label group of the previous video segment may be stored, and T procedural statements before and after the step of the procedural statement may be retrieved. This can reduce the amount of calculation of the similarity with the procedural statements.

[0132] In step S226, the CPU 11, functioning as the similarity calculation unit 64, calculates the similarity between each of the extracted procedural statements and the generated sentence. Note that as an index of similarity, BLEU in Non-Patent Document 6 or ROUGE in Non-Patent Document 7, which are used in machine translation, may be used, or other indices capable of measuring the similarity between sentences may be used.

[0133] [Non-Patent Document 6] Kishore Papineni, Salim Roukos, Todd Ward, and WeiJing Zhu. BLEU: a method for automatic evaluation of machine translation. ACL2002.

[0134] [Non-Patent Document 7] Lin, Chin-Yew. ROUGE: A Package for Automatic Evaluation of summaries. ACL Workshop: Text Summarization Braches Out 2004.

[0135] In step S150, the CPU 11 functioning as the similarity calculation unit 64 outputs the calculated similarity to the abnormality determination unit 66.

[0136] In step S152, the CPU 11, functioning as the abnormality determination unit 66, compares the similarity with a threshold value, determines whether the human behavior is abnormal as it differs from the procedure, outputs a label indicating the determination result, and ends the abnormal behavior determination process.

[0137] Detailed operations in the process of step S200 above are shown in Fig. 13. The operations shown in Fig. 13 are repeatedly performed for the action label group for each video segment. Note that the segment length of the video segment depends on the application.

[0138] In step S160, the CPU 11 inputs the behavior label group to the generation unit 62.

[0139] In step S162, the CPU 11, functioning as the generating unit 62, rearranges the action labels in the action label group in the order of <person label, action label, object label>.

[0140] In step S164, the CPU 11, as the generating unit 62, judges whether the action label group is longer than the upper limit of the input length of the trained language model. If the action label group is longer than the upper limit of the input length of the trained language model, proceed to step S166. On the other hand, if the action label group is equal to or shorter than the upper limit of the input length of the trained language model, proceed to step S230.

[0141] In step S166, the CPU 11, as the generation unit 62, tallies the frequency of occurrence of each behavior label in the behavior label group, arranges the behavior labels in order of frequency of occurrence, extracts the top N behavior labels so that they fit within the upper input length limit of the trained language model, deletes behavior labels other than the extracted behavior labels, and creates a new behavior label group.

[0142] In step S230, the CPU 11, functioning as the generation unit 62, inputs the rearranged group of action labels to the trained language model to generate a sentence.

[0143] In step S232, the CPU 11 functioning as the generation unit 62 outputs the obtained sentence.

[0144] As described above, the learning device according to the second embodiment detects action labels related to human actions from learning video data that represents actions included in a procedure, and learns a language model that generates sentences from the action labels so as to generate predetermined procedural sentences for the learning video data. This makes it possible to learn a language model for accurately determining abnormal actions that are different from procedures.

[0145] The abnormal behavior determination device according to the second embodiment generates sentences using a pre-trained language model that generates sentences from behavior labels related to human behavior detected from video data representing human behavior, calculates the similarity between the generated sentences and procedural statements stored in a procedural statement database, and determines whether the human behavior is abnormal or not based on the calculated similarity. This makes it possible to accurately determine abnormal behavior that differs from the procedures in a task with procedures captured on video.

[0146] <Modification> The present invention is not limited to the above-described embodiment, and various modifications and applications are possible without departing from the spirit and scope of the present invention.

[0147] For example, an action label may be detected from audio data instead of video data. In this case, a combination of an action label and a person label detected from audio data may be used as an action label. Also, an action label may be detected from a combination of video data and audio data. In this case, a combination of an action label and a person label detected from audio data and an object label detected from video data may be used as an action label.

[0148] Further, although the learning device and the abnormal behavior determination device are configured as separate devices in the above embodiment, the present invention is not limited to this, and the learning device and the abnormal behavior determination device may be configured as a single device.

[0149] In addition, various processes executed by the CPU by reading the software (program) in each of the above embodiments may be executed by various processors other than the CPU. Examples of the processor in this case include a dedicated electric circuit that is a processor having a circuit configuration designed exclusively for executing a specific process, such as a GPU (Graphics Processing Unit), a PLD (Programmable Logic Device) whose circuit configuration can be changed after manufacture, such as an FPGA (Field-Programmable Gate Array), and an ASIC (Application Specific Integrated Circuit). The learning process and the abnormal behavior determination process may be executed by one of these various processors, or may be executed by a combination of two or more processors of the same or different types (for example, a plurality of FPGAs, and a combination of a CPU and an FPGA). The hardware structure of these various processors is, more specifically, an electric circuit that combines circuit elements such as semiconductor elements.

[0150] In addition, in each of the above embodiments, the learning program and the abnormal behavior determination program are described as being stored (installed) in advance in the storage 14, but the present invention is not limited to this. The programs may be provided in a form stored in a non-transitory storage medium such as a CD-ROM (Compact Disk Read Only Memory), a DVD-ROM (Digital Versatile Disk Read Only Memory), or a USB (Universal Serial Bus) memory. The programs may also be downloaded from an external device via a network.

[0151] The following supplementary notes are further disclosed regarding the above embodiment.

[0152] (Additional note 1) A learning device including a procedural statement database storing a plurality of procedural statements each representing at least one action included in a series of procedures, or a sentence vector each representing the plurality of procedural statements, Memory, at least one processor coupled to the memory; Including, The processor, Detecting an action label related to a human action from learning video data or audio data representing the action included in the procedure; A language model is trained to generate a sentence or a sentence vector from the action label so as to generate the predetermined procedural sentence or a sentence vector representing the procedural sentence for the learning video data or audio data. A learning device configured as follows.

[0153] (Additional note 2) A non-transitory storage medium storing a program executable by a computer to execute a learning process, the non-transitory storage medium including a procedural statement database storing, for each of a series of procedures, a plurality of procedural statements representing at least one action included in the procedure, or a sentence vector representing each of the plurality of procedural statements, The learning process includes: Detecting an action label related to a human action from learning video data or audio data representing the action included in the procedure; A language model is trained to generate a sentence or a sentence vector from the action label so as to generate the predetermined procedural sentence or a sentence vector representing the procedural sentence for the learning video data or audio data. Non-transitory storage medium.

[0154] (Additional note 3) An abnormal behavior determination device including a procedural statement database storing a plurality of procedural statements each representing at least one behavior included in a series of procedures, or a sentence vector each representing the plurality of procedural statements, Memory, at least one processor coupled to the memory; Including, The processor, generating a sentence or a sentence vector from an action label relating to a human action detected from video data or audio data representing the human action, using a pre-trained language model that generates the sentence or the sentence vector from the action label; Calculating a similarity between the generated sentence or sentence vector and the procedural sentence or a sentence vector representing the procedural sentence stored in the procedural sentence database; Based on the calculated similarity, it is determined whether the behavior of the person is abnormal. The abnormal behavior determination device is configured as follows.

[0155] (Additional note 4) A non-transitory storage medium storing a program executable by a computer to execute an abnormal behavior determination process, the program including a procedural statement database storing, for each of a series of procedures, a plurality of procedural statements representing at least one behavior included in the procedure, or a sentence vector representing each of the plurality of procedural statements, The abnormal behavior determination process includes: generating a sentence or a sentence vector from an action label relating to a human action detected from video data or audio data representing the human action, using a pre-trained language model that generates the sentence or the sentence vector from the action label; Calculating a similarity between the generated sentence or sentence vector and the procedural sentence or a sentence vector representing the procedural sentence stored in the procedural sentence database; Based on the calculated similarity, it is determined whether the behavior of the person is abnormal. Non-transitory storage medium. [Explanation of symbols]

[0156] 10 Learning Device 11 CPU 14. Storage 20 Operation Manual Database 22 Sentence Vector Generation Unit 24 Procedural Database 26 Learning Database 28 Label detection unit 30 Model Learning Department 50 Abnormal behavior determination device 60 Procedural Database 62 Generation part 64 Similarity calculation unit 66 Abnormality determination section

Claims

1. a procedural statement database that stores, for each of a series of procedures, a plurality of procedural statements that represent at least one action included in the procedure, or a statement vector that represents each of the plurality of procedural statements; a label detection unit that detects an action label related to a human action from learning video data or audio data representing the action included in the procedure; a model learning unit that learns a language model that generates a sentence or a sentence vector from the action label so as to match the procedural sentence or the sentence vector representing the procedural sentence that is a correct answer associated with the learning video data or audio data; A learning device comprising:

2. The learning device according to claim 1 , wherein the sentence vector representing the procedural sentence predetermined for the learning video data or audio data is generated using a pre-trained model that generates sentence vectors.

3. 3. The learning device according to claim 1 or 2, wherein, when an action label group consisting of a plurality of action labels is detected by the label detection unit, the model learning unit learns the language model so that the sentence or sentence vector generated by the language model from the concatenation of the action label group matches the procedural sentence or the sentence vector representing the procedural sentence that is a correct answer associated with the learning video data or audio data.

4. The learning device of claim 3, wherein the model learning unit learns the language model so that, when the group of action labels is detected by the label detection unit and the concatenation of the group of action labels exceeds an upper input length limit of the language model, the sentence or sentence vector generated by the language model from the concatenation of the action labels extracted so that the input length is equal to or less than the upper input length limit of the language model matches the procedural sentence that is the correct answer associated with the learning video data or audio data, or the sentence vector representing the procedural sentence.

5. a procedural statement database that stores, for each of a series of procedures, a plurality of procedural statements that represent at least one action included in the procedure, or a statement vector that represents each of the plurality of procedural statements; Based on an action label relating to a human action detected from video data or audio data representing a human action, A generation unit that generates the sentence or the sentence vector using a pre-trained language model that generates the sentence or the sentence vector from the action label; a similarity calculation unit that calculates a similarity between the generated sentence or sentence vector and the procedural sentence or a sentence vector representing the procedural sentence stored in the procedural sentence database; an anomaly determination unit that determines whether or not the behavior of the person is abnormal based on the similarity calculated by the similarity calculation unit; An abnormal behavior determination device comprising:

6. A learning device including a procedural statement database storing a plurality of procedural statements each representing at least one action included in a series of procedures, or a sentence vector each representing the plurality of procedural statements, Detecting an action label related to a human action from learning video data or audio data representing the action included in the procedure; A language model is trained to generate a sentence or a sentence vector from the action label so as to match the procedural sentence or the sentence vector representing the procedural sentence that is a correct answer associated with the video data or audio data for learning. How to learn.

7. An abnormal behavior determination device including a procedural statement database storing a plurality of procedural statements each representing at least one behavior included in a series of procedures, or a sentence vector each representing the plurality of procedural statements, generating a sentence or a sentence vector from an action label relating to a human action detected from video data or audio data representing the human action, using a pre-trained language model that generates the sentence or the sentence vector from the action label; Calculating a similarity between the generated sentence or sentence vector and the procedural sentence or a sentence vector representing the procedural sentence stored in the procedural sentence database; Based on the calculated similarity, it is determined whether the behavior of the person is abnormal. Abnormal behavior determination method.

8. A program for causing a computer to function as the learning device according to any one of claims 1 to 4 or the abnormal behavior determination device according to claim 5.

Citation Information

Patent Citations

  • Determining apparatus, determining method, determining program and program parameter

    JP2019204362A

  • Information processor, cell preparation system, computer program, and information processing method

    JP2021153426A

  • Work assistance system and work assistance method

    WO2020235120A1

  • Procedure training device, procedure training program, and procedure training method

    WO2022244215A1

Cited By

  • Qr code-based reading-inducing interactive question card provision system

    KR102926541B1