Behavior improvement guidance generation device, method, and program

The system addresses the challenge of generating instructional text for correcting deviant behaviors by extracting and fusing video and manual information to enhance LLM performance in recognizing and improving action alignment with manuals, particularly in dangerous tasks.

WO2026244645A1PCT designated stage Publication Date: 2026-11-26NT T INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2025/018110
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-05-19
Publication Date
2026-11-26

AI Technical Summary

Technical Problem

Existing action recognition technologies struggle to generate instructional text for improving deviant behaviors to align with manuals due to insufficient data differentiation between normal and deviant actions, especially in dangerous tasks, limiting the effectiveness of large language models (LLMs) and large visual language models (LVLMs).

Method used

A system comprising an overall video feature extraction unit, foreground video feature extraction unit, fused video feature generation unit, video text feature generation unit, and text generation unit, which extracts and fuses video and manual information to generate instructional text for correcting deviant behaviors using an LLM.

Benefits of technology

Enhances the generation of accurate instructional text by focusing on behavior differences, clarifying normal and deviant actions, and improving behavior alignment with manuals, even in dangerous tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2025018110_26112026_PF_FP_ABST
    Figure JP2025018110_26112026_PF_FP_ABST
Patent Text Reader

Abstract

According to one embodiment of the present invention, a behavior improvement guidance generation device extracts an overall video feature amount from a video obtained by imaging a person carrying out a behavior. This behavior improvement guidance generation device generates, on the basis of a video and a manual that describes a normal behavior in which an object is used, a foreground video in which a background is hidden while allowing the object and a person from the video to remain, and extracts a foreground video feature amount from the foreground video. The behavior improvement guidance generation device generates a fused video feature amount by fusing the entire video feature amount and the foreground video feature amount. The behavior improvement guidance generation device generates a video text feature amount by fusing the manual, a text prompt for instructing the output of guidance text for improving the behavior of the person to the normal behavior, and the fused video feature amount. The behavior improvement guidance generation device inputs the video text feature amount, the manual, and the text prompt to an LLM and generates the guidance text.
Need to check novelty before this filing date? Find Prior Art

Description

Behavior Improvement Instruction Generation Device, Method, and Program

[0001] One aspect of the present invention relates to a behavior improvement instruction generation device, method, and program.

[0002] In recent years, there has been a demand for supporting workers' acquisition of work skills at various sites such as factories through ICT technology. Support through ICT technology requires the system to perform two tasks: (1) confirm that each action included in the worker's work aligns with the manual, and (2) generate instructional text for improving behavior when the worker's action deviates from the manual.

[0003] As a technology related to (1) above, for example, an action recognition technology that recognizes a person's behavior from media data such as video is known. Various methods for action recognition technology have been proposed in the fields of machine learning and computer vision. In recent years, methods have been proposed that not only recognize actions but also determine whether an action is normal or deviant (for example, see Non-Patent Document 1). However, merely determining whether an action is normal or deviant allows the confirmation of (1) above to be performed, but cannot generate the instructional text of (2) above.

[0004] As a technology related to (2) above, the natural language generation capability of large language models (LLMs) has attracted attention. Also, as an application of large language models (LLMs), technology for large visual language models (LVLMs) has been proposed, which receives media data such as moving images as input and generates text related to the media data (for example, see Non-Patent Document 2).

[0005] However, normal actions that align with the manual and actions that deviate from the manual have little difference as media data, and many deviant actions are dangerous tasks, making it difficult to collect sufficient data. For this reason, there is a concern that sufficient performance cannot be obtained even if learning and evaluation are performed using LVLM technology.

[0006] Rohith Peddi, Shivvrat Arya, Bharath Challa, Likhitha Pallapothula, Akshay Vyas, Bhavya Gouripeddi, Qifan Zhang, Jikai Wang, Vasundhara Komaragiri, Eric Ragan, Nicholas Ruozzi, Yu Xiang, Vibhav Gogate. CaptainCook4D: A Dataset for Understanding Errors in Procedural Activities. in Proceedings of the 38th Annual Conference on Neural Information Processing Systems (NeurIPS), 2024. Wenliang Dai, Junnan Li, DONGXU LI, Anthony Tiong, Junqi Zhao, Weisheng Wang, Boyang Li, Pascale N Fung, Steven C. Hoi. InstructBLIP: Towards General-purpose Vision-Language Models with Instruction Tuning. in Proceedings of the 37th Annual Conference on Neural Information Processing Systems (NeurIPS), 2023.

[0007] This invention was made in view of the above circumstances and provides a technology that enables the generation of instructional texts to improve behaviors that deviate from the manual back to normal behavior.

[0008] To solve the above problems, one embodiment of the behavior improvement guidance generation device according to this invention comprises an overall video feature extraction unit, a foreground video feature extraction unit, a fused video feature generation unit, a video text feature generation unit, and a text generation unit. The overall video feature extraction unit extracts overall video features from video footage of a person performing an action. The foreground video feature extraction unit generates a foreground video from the video footage, hiding the background while leaving the object and the person, based on a manual describing normal behavior using an object and the video footage, and extracts foreground video features from the foreground video footage. The fused video feature generation unit fuses the overall video features and the foreground video features to generate fused video features. The video text feature generation unit fuses the manual, a text prompt instructing the output of guidance text to improve the person's behavior to the normal behavior, and the fused video features to generate video text features. The text generation unit inputs the video text features, the manual, and the text prompts into an LLM (Large-Scale Language Model) to generate the instructional text.

[0009] According to one aspect of this invention, not only are overall video features extracted, but foreground video features are also extracted from the video and manual. By inputting video text features based on each of these features into the text generation unit, it becomes easier to focus on information related to behavior, the difference between normal and deviant behavior becomes clearer, and instructional text is generated to improve deviant behavior from the manual back to normal behavior.

[0010] In other words, according to one aspect of this invention, it is possible to generate instructional text for correcting behavior that deviates from the manual into normal behavior.

[0011] Figure 1 is a block diagram showing an example configuration of the behavior improvement guidance generation device according to the first embodiment. Figure 2 is a flowchart illustrating an example of operation in the first embodiment. Figure 3 is a flowchart illustrating an example of operation in step S10 of Figure 2. Figure 4 is a flowchart illustrating an example of operation in step S20 of Figure 2. Figure 5 is a flowchart illustrating an example of operation in step S30 of Figure 2. Figure 6 is a flowchart illustrating an example of operation in step S40 of Figure 2. Figure 7 is a flowchart illustrating an example of operation in step S50 of Figure 2. Figure 8 is a block diagram showing a modified example of the behavior improvement guidance generation device according to the first embodiment. Figure 9 is a flowchart illustrating the operation in the modified example of the first embodiment. Figure 10 is a block diagram showing an example configuration of a pseudo-behavior improvement guidance text generation device related to the first embodiment and its modified example. Figure 11 is a flowchart illustrating an example of operation of the pseudo-behavior improvement guidance text generation unit in Figure 10. Figure 12 is a block diagram showing an example configuration of the behavior improvement guidance generation device according to the second embodiment. Figure 13 is a flowchart illustrating an example of operation in the second embodiment. Figure 14 is a flowchart illustrating an example of the operation of step S80 in Figure 13. Figure 15 is a flowchart illustrating an example of the operation of step S30x in Figure 13. Figure 16 is a block diagram showing a modified example of the behavior improvement guidance generation device according to the second embodiment. Figure 17 is a block diagram showing another modified example of the behavior improvement guidance generation device according to the second embodiment. Figure 18 is a block diagram showing an example of the hardware configuration of the behavior improvement guidance generation device according to the first and second embodiments and each modified example. Figure 19 is a block diagram showing an example of the hardware configuration of the pseudo-behavior improvement guidance text generation device of Figure 10.

[0012] Embodiments relating to this invention will be described below with reference to the drawings. The technical scope of this invention is not limited to the descriptions of configurations, numerical values, processing flows, and functional elements disclosed in each embodiment, but encompasses any configurations, numerical values, processing flows, and functional elements. For example, each part constituting each device is an example of a component shown by dividing each device into functional units. The components of each device are not limited to the following examples, and various forms are conceivable. For example, each part constituting each device may be further divided, or one or more parts may be integrated. Furthermore, each of the image recognition model, object detection model, large-scale visual language model (LVLM), and large-scale language model (LLM) exemplified in each embodiment may be replaced with any image recognition model, any object detection model, any large-scale visual language model (LVLM), and any large-scale language model (LLM). Moreover, each device and each part can be combined as appropriate within a consistent range.

[0013] <First Embodiment> Figure 1 is a block diagram showing an example configuration of the Behavior Improvement Guidance Generation Device A1. The Behavior Improvement Guidance Generation Device A1 is a device that outputs guidance text in accordance with the instructions, in response to inputs of video footage of a person's behavior, a manual describing normal behavior, and a text prompt that instructs the output of guidance text (advice) to improve the person's behavior. This Behavior Improvement Guidance Generation Device A1 consists of, for example, a personal computer. However, the Behavior Improvement Guidance Generation Device A1 may also be configured as a server computer installed on the Web or in the cloud.

[0014] Specifically, the behavior improvement guidance generation device A1 comprises an overall video feature extraction unit B1, a foreground video feature extraction unit B2, a fused video feature generation unit B3, a video text feature generation unit B4, and a text generation unit B5.

[0015] Here, the overall video feature extraction unit B1 extracts overall video features from video footage of a person performing an action. The video is video data (moving image data) relating to the actions of a person that is the subject of learning or inference. The video data may be first-person perspective video or third-person perspective video. The video data may include, for example, RGB data of an RGB color model. The actions represented by the video are either normal actions described in the manual or actions that deviate from these normal actions. Deviant actions include, in contrast to normal actions using an object, incorrect actions using the correct object, actions using the wrong object, or actions that do not use an object. Actions may be replaced with tasks. Persons may be replaced with workers. The video may be acquired from an external storage device, or it may be acquired via a network from another terminal device, a server computer on the Web, or the cloud. Alternatively, video may be read from memory (not shown) that has been stored in advance.

[0016] The overall video features are the video features of the captured video (the entire video without trimming), and are, for example, represented by a vector of video data. More specifically, the video features may be those of a video recognition model such as SlowFast or Video Swin Transformer, which generates feature vectors based on video, and these feature vectors may be considered as the overall video features. Alternatively, the video features may be a vector obtained by concatenating image vectors acquired from each frame of video data using a method such as Vision Transformer, or the average vector of such image vectors. The overall video feature extraction unit B1 outputs the extracted overall video features.

[0017] The foreground image feature extraction unit B2 generates a foreground image from the video, hiding the background while retaining the object and person, based on a manual describing normal behavior using an object and the video itself. It then extracts foreground image features from this foreground image. For example, the foreground image feature extraction unit B2 may detect objects and people from the video, retain the object that matches the noun of the object described in the manual, and the detected person, and generate a foreground image by setting the RGB values ​​of the background pixels, which are different from the matching object and the detected person, to a constant value. For object detection, object detection models such as YOLOX (You Only Look Once X) and Faster-RCNN (Region-based CNN) can be used as appropriate. Foreground image features are the video features of the foreground image generated from the captured video, and are, for example, represented by vectors. The method for extracting video features is as described above. The manual may be obtained from an external storage device, or from another terminal device, a server computer on the web, or the cloud via a network. Alternatively, video footage may be read from memory (not shown) that has been stored in advance.

[0018] The fused video feature generation unit B3 generates fused video features by fusing the overall video features and the foreground video features. The fusing process may be, for example, a concatenation process, or a process that generates a new feature vector using a DNN model.

[0019] The video-text feature generation unit B4 generates video-text features by fusing a manual, text prompts that instruct the output of instructional text to improve a person's behavior to normal behavior, and fused video features. The text prompts may be input from an input interface (not shown) in response to user operation, or they may be obtained from other terminal devices via the network.

[0020] The text generation unit B5 inputs video text features, manuals, and text prompts into an LLM (Large-Scale Language Model) to generate instructional text. The instructional text is text that describes guidance (advice) to improve a person's behavior to normal behavior.

[0021] Next, the operation of the behavioral improvement guidance generation device A1, configured as described above, will be explained using the flowcharts in Figures 2 to 7. The following explanation will be divided into steps S10, S20, S30, S40, and S50, which correspond to the processing of each part, as shown in Figure 2.

[0022] (Step S10) Step S10 is a process of extracting overall features from the video, and includes steps S11 to S13.

[0023] (Step S11) As shown in Figure 3, the overall video feature extraction unit B1 acquires video footage of a person performing an action from outside the behavior improvement guidance generation device A1. The video footage shows, for example, a person performing the action of "Cut the English muffin into two pieces with hand" in the field of cooking. Note that the manual described later describes the normal action of cutting with a knife, so the person's actions in the video deviate from the normal action described in the manual.

[0024] (Step S12) The overall video feature extraction unit B1 extracts overall video features from the acquired video (video of a person acting). Any process that can extract overall video features from the video can be used for the process in step S12. For example, the overall video feature extraction unit B1 may use a method in which the feature vectors of a video recognition model that generates feature vectors based on the video are considered as overall video features.

[0025] (Step S13) The overall video feature extraction unit B1 outputs the extracted overall video feature quantities to the fused video feature generation unit B3. This completes step S10, which includes steps S11 to S13.

[0026] (Step S20) Step S20 is a process of extracting foreground features from the video, and includes steps S21 to S25. Step S20 may be executed before step S10.

[0027] (Step S21) The foreground video feature extraction unit B2 acquires video from outside the behavior improvement guidance generation device A1. The video is the same as the video acquired in step S11, and is video of a person performing an action. Step S21 may be made common with step S11.

[0028] (Step S22) The foreground image feature extraction unit B2 obtains a manual from outside the behavior improvement guidance generation device A1 that describes normal behavior using an object. The manual describes an object and a behavior according to the domain (field, definition) of the work. For example, in the case of the cooking domain, the manual is text that describes normal cooking behavior using cooking tools, such as "Cut the English muffin into two pieces with a knife." The manual is not limited to showing a single behavior, but may also show multiple behaviors in chronological order.

[0029] (Step S23) The foreground image feature extraction unit B2 creates a foreground image from the video with the background information blacked out, based on the manual. For example, the foreground image feature extraction unit B2 may generate a foreground image from the video that hides the background while retaining the object and person, based on the manual and the video. Furthermore, the process in step S23 can be any process that can create a foreground image from the video and the manual. For example, a process can be used in which all RGB values ​​of object regions detected by an object detection model such as YOLOX, except for the region of the object that matches the noun in the manual, are set to 0. In this case, the foreground image feature extraction unit B2 detects objects and people from the video, retains the object that matches the noun of the object described in the manual and the detected person, and generates a foreground image by setting the RGB values ​​of the background pixels that are different from the matching object and the detected person to a constant value. Furthermore, this is not the only possible method; for example, it is also possible to input a frame image and a manual into GroundingDINO, generate a masked frame image, and concatenate it to treat it as the foreground image.

[0030] (Step S24) The foreground video feature extraction unit B2 extracts foreground video features from the created foreground video. Step S24 can use any process that can extract foreground video features from the foreground video. For example, the foreground video feature extraction unit B2 may use a method in which the feature vector of an image recognition model that generates a feature vector based on the foreground video is considered as the foreground video features.

[0031] (Step S25) The foreground image feature extraction unit B2 outputs the extracted foreground image features to the fused image feature generation unit B3. This completes step S20, which includes steps S21 to S25.

[0032] (Step S30) Step S30 is a process that generates fused video features and includes steps S31 to S34.

[0033] (Step S31) The fused video feature generation unit B3 obtains the overall video feature quantity from the overall video feature extraction unit B1.

[0034] (Step S32) The fused video feature generation unit B3 acquires foreground video features from the foreground video feature extraction unit B2. Note that the foreground video features and overall video features may be acquired in any order, or they may be acquired in parallel.

[0035] (Step S33) The fused video feature generation unit B3 generates fused video features by fusing the acquired overall video features and foreground video features. Any process can be used for the process in step S33, as long as it can generate fused video features from overall video features and foreground video features. For example, as a process to generate fused video features, a process that combines overall video features and foreground video features and considers them as fused video features can be used. When combining, the foreground video features may be concatenated to the overall video features, or the overall video features may be concatenated to the foreground video features. Furthermore, it is not limited to this, and for example, a process that generates a feature vector of a new dimension using a DNN model such as a multilayer perceptron (MLP) or an attention mechanism and considers it as fused video features may also be used.

[0036] (Step S34) The fused video feature generation unit B3 outputs the generated fused video feature quantities to the video text feature generation unit B4. This completes step S30, which includes steps S31 to S34.

[0037] (Step S40) Step S40 is a process that generates video text features and includes steps S41 to S44.

[0038] (Step S41) The video-text feature generation unit B4 acquires fused video features from the fused video feature generation unit B3.

[0039] (Step S42) The video text feature generation unit B4 obtains a manual and a text prompt from outside the behavior improvement guidance generation device A1. A text prompt is an instruction sentence that instructs the output of guidance text (advice) to improve a person's behavior to normal behavior, such as "Please give advice on how to improve the behavior in the video to normal behavior."

[0040] (Step S43) The video-text feature generation unit B4 generates video-text features by fusing the acquired fused video features with the manual and text prompts. Any process can be used for step S43, as long as it can generate video-text features by fusing the fused video features with the manual and text prompts. For example, a process that considers the intermediate representation obtained through the Q-former (Query Transformer) and linear layer in the InstructBLIP model described in Non-Patent Literature 2 as video-text features may be used. This intermediate representation is the output of the linear layer and the input of the LLM, and represents visual features. The InstructBLIP model includes an image encoder, a Q-former, a linear layer (fully connected layer), and an LLM. The image encoder receives an image as input and outputs image embeddings to the Q-former. The Q-former receives queries, text instructions, and image embeddings as input, generates visual features from these inputs, and supplies these visual features to the LLM via a linear layer. The LLM receives visual features and text instructions as input and generates a response corresponding to the text instructions. In such an InstructBLIP model, the video-text feature generation unit B4 corresponds to the Q-former and the linear layer. Furthermore, the InstructBLIP model is a type of Large-Scale Visual Language Model (LVLM). Therefore, the video-text feature generation unit B4 can also use some configurations of LVLMs other than the InstructBLIP model, as long as it is configured to fuse video features and text data and input them to the LLM. Specifically, for example, the configuration between the image encoder and the LLM can be used as appropriate.

[0041] (Step S44) The video-text feature generation unit B4 outputs the generated video-text feature quantities to the text generation unit B5. This completes step S40, which includes steps S41 to S44.

[0042] (Step S50) Step S50 is a process for generating action improvement guidance text, and includes steps S51 to S54.

[0043] (Step S51) The text generation unit B5 acquires the video text feature amount from the video text feature generation unit B4.

[0044] (Step S52) The text generation unit B5 acquires the manual and text prompt from outside the action improvement guidance generation device A1.

[0045] (Step S53) The text generation unit B5 generates action improvement guidance text from the acquired video text feature amount, manual, and text prompt.

[0046] The action improvement guidance text is, for example, a text that prompts improvement actions such as "Please use a knife to cut the English muffin into two pieces for a cleaner and safer cut." If the manual includes descriptions of multiple actions, the action improvement guidance text prompts improvement actions for each deviating action among the actions in the manual. The process of step S53 can use any process as long as it can generate action improvement guidance text from the video text feature amount, manual, and text prompt. For example, processing by large language models (LLMs) such as llama and vicuna can be used. In this case, the text generation unit B5 inputs the video text feature amount, manual, and text prompt to the LLM (Large Language Model) to generate action improvement guidance text.

[0047] (Step S54) The text generation unit B5 outputs the generated action improvement guidance text to outside the action improvement guidance generation device A1. This completes step S50 including steps S51 to S54. Also, upon completion of step S50, the action improvement guidance generation device A1 ends the operation during generation (inference).

[0048] As described above, according to the first embodiment, the overall video feature extraction unit B1 extracts an overall video feature amount from video captured of a person performing an action. The foreground video feature extraction unit B2 generates, based on a manual describing normal actions using an object and the video, a foreground video from the video in which the object and the person are retained and the background is hidden, and extracts a foreground video feature amount from the foreground video. The fused video feature generation unit B3 fuses the overall video feature amount and the foreground video feature amount to generate a fused video feature amount. The video text feature generation unit B4 fuses the manual, a text prompt instructing output of guidance text for improving the person's action to a normal action, and the fused video feature amount to generate a video text feature amount. The text generation unit B5 inputs the video text feature amount, the manual, and the text prompt to an LLM (Large Language Model) to generate the guidance text.

[0049] In this way, not only the overall video feature amount but also a foreground video feature amount extracted from the video and the manual, and a video text feature amount based on the fused video feature amount obtained by fusing the respective video feature amounts and the manual are input to the text generation unit B5. This makes it easier to focus on information related to the action in the video, clarifies the difference between a normal action and a deviating action, and enables generation of more accurate action improvement guidance text.

[0050] Supplementally, the first embodiment implements a configuration using a foreground video feature amount devised to make it easier for the action improvement guidance generation device A1 as an LVLM that fuses visual features and language features to effectively capture the difference between a normal action and a deviating action. Therefore, with such a configuration, it is possible to generate higher-performance action improvement guidance text based on the LVLM.

[0051] Further, according to the first embodiment, the foreground video feature extraction unit B2 may detect an object and a person from the video, retain, among the detected objects, an object matching a noun of an object described in the manual and the detected person, and generate a foreground video by setting the RGB values of pixels in the background different from the matching object and the detected person to a constant value, respectively. Even with this configuration, the aforementioned operational effects can be obtained similarly.

[0052] <Various Modifications> The following variations are not limited to the first embodiment, but can be applied to any embodiment.

[0053] <First Modification of the First Embodiment> In the first embodiment, the behavior improvement instruction generation device A1 performs operations when generating instruction text, but in addition to this, the behavior improvement instruction generation device A1 may also perform operations when learning.

[0054] Accordingly, as shown in Figure 8, the behavioral improvement guidance generation device A1 further includes a parameter update unit B6 that updates the parameters of the video-text feature generation unit B4 and the text generation unit B5, in addition to the other components. The video-text feature generation unit B4 includes a machine learning model that generates video-text features by fusing the manual, text prompts, and fused video features.

[0055] Here, the parameter update unit B6 performs a first learning process to update the parameters of the machine learning model based on the instructional text generated by the text generation unit B5 and the correct behavior improvement instructional text that shows the correct answers for the instructional text, and a second learning process to update at least the parameters of the LLM among the updated parameters and the parameters of the LLM.

[0056] The other configurations are the same as in the first embodiment.

[0057] Next, the operation of the behavior improvement guidance generation device A1, configured as described above, will be explained using the flowchart in Figure 9. In the following explanation, the steps S10 to S50, which are used to generate the guidance text, will be omitted, and steps S61 to S62, which involve machine learning using the guidance text, will be described.

[0058] (Step S61) The parameter update unit B6 updates the parameters of the video-text feature generation unit B4 in the first learning. Specifically, the parameter update unit B6 performs the first learning to update the parameters of the machine learning model based on the instructional text generated by the text generation unit B5 and the correct behavior improvement instructional text that shows the correct answer to the instructional text. The first learning can be any process that updates the parameters of the video-text feature generation unit B4. For example, if the machine learning model of the video-text feature generation unit B4 includes a Q-former and a linear layer, the process of updating the parameters to minimize the loss function L of the Q-former learning may be executed as shown in the following equation (1). Note that the learning of the Q-former is described in, for example, Reference 1.

[0059] L = L_itc + L_lm + L_itm ... (1) Here, L_itc, L_lm, and L_itm are the image-text contrastive learning loss, language modeling loss, and image-text matching loss, respectively, as defined in the Q-former training.

[0060] (Step S62) The parameter update unit B6 updates the parameters of the video-text feature generation unit B4 and the text generation unit B5 in the second learning. Specifically, the parameter update unit B6 performs a second learning that updates at least the LLM parameters of the text generation unit B5, which are the parameters of the video-text feature generation unit B4 and the LLM parameters of the text generation unit B5 that were updated in step S61. Any process can be used for the second learning, as long as it is a process that updates the parameters of the video-text feature generation unit B4 and the text generation unit B5. For example, a method of updating the parameters of the language model loss may be used. Also, it is not necessary to update all the parameters of the video-text feature generation unit B4 and the text generation unit B5 in step S62; only some parameters may be updated. Upon completion of step S62, the behavior improvement guidance generation device A1 terminates its learning operation.

[0061] According to the first modification described above, a parameter update unit B6 is further included. The video-text feature generation unit B4 includes a machine learning model that generates video-text features by fusing a manual, text prompts, and fused video features. The parameter update unit B6 performs a first learning process to update the parameters of the machine learning model based on the instructional text and the correct answer behavior improvement instructional text that indicates the correct answer to the instructional text, and a second learning process to update at least the parameters of the LLM among the updated parameters and the parameters of the LLM.

[0062] Therefore, in addition to the effects mentioned above, machine learning can be performed on machine learning models and LLMs using instructional texts that show the correct answers for correct behavior improvement.

[0063] <Second Modification of the First Embodiment> The first modification uses a correct behavior improvement instruction text that shows the correct answers in the instruction text, but in addition, the data of the correct behavior improvement instruction text may be expanded. For example, as shown in Figure 10, a pseudo-behavior improvement instruction text generation device A2 may be provided.

[0064] Here, the simulated behavior improvement instruction text generation device A2 is a device for augmenting the data of the correct behavior improvement instruction text used during the first and second learning sessions, for deviant behaviors for which it is difficult to collect data on many variations. This simulated behavior improvement instruction text generation device A2 consists of, for example, a personal computer. Alternatively, the simulated behavior improvement instruction text generation device A2 may be configured as a server computer installed on the web or in the cloud.

[0065] Specifically, the simulated behavior improvement instruction text generation device A2 is equipped with a simulated behavior improvement instruction text generation unit B7.

[0066] The simulated behavior improvement instruction text generation unit B7 generates simulated behavior improvement instruction text based on the manual and video captions. Here, as mentioned above, the manual is text that describes normal behavior using an object. The video captions are text attached to the aforementioned video that describes simulated behavior that simulates the behavior shown in the video, which is a person performing the action. The simulated behavior improvement instruction text is instruction text for improving the simulated behavior described in the video caption to the normal behavior described in the manual. As for the process of generating the text, for example, a text prompt for generating simulated behavior improvement instruction text from the manual and video captions, and processing using a large-scale language model (LLM) such as llama or vicuna may be used.

[0067] Next, the operation of the simulated behavior improvement instruction text generation device A2, configured as described above, will be explained using the flowchart in Figure 11. Steps S71 to S73 below are performed before the learning operations described in the first modified example, because the generated simulated behavior improvement instruction text is used as the correct behavior improvement instruction text for learning.

[0068] (Step S71) The simulated behavior improvement instruction text generation unit B7 obtains a manual from outside the simulated behavior improvement instruction text generation device A2.

[0069] (Step S72) The simulated behavior improvement instruction text generation unit B7 acquires video captions from outside the simulated behavior improvement instruction text generation device A2. Note that the manual and video captions may be acquired in any order, or they may be acquired in parallel.

[0070] (Step S73) The simulated behavior improvement instruction text generation unit B7 generates simulated behavior improvement instruction text from the manual and video captions. Any processing can be used for step S73, such as processing using a large-scale language model (LLM), as long as it generates simulated behavior improvement instruction text from the manual and video captions.

[0071] The simulated behavior improvement instruction text generation unit B7 outputs the generated simulated behavior improvement instruction text to the simulated behavior improvement instruction text generation device A2. This completes step S73, and the simulated behavior improvement instruction text generation device A2 terminates its operation of generating the simulated behavior improvement instruction text.

[0072] According to the second modification described above, the simulated behavior improvement instruction text generation unit B7 obtains a manual describing normal behavior using an object. The simulated behavior improvement instruction text generation unit B7 obtains a video caption describing a simulated behavior that simulates the behavior shown in a video of a person performing the action. Based on the manual and the video caption, the simulated behavior improvement instruction text generation unit B7 generates a simulated behavior improvement instruction text to improve the simulated behavior described in the video caption to the normal behavior described in the manual.

[0073] Therefore, by using a simulated behavior improvement instruction text as a correct behavior improvement instruction text for learning, the data of the correct behavior improvement instruction text can be expanded.

[0074] <Second Embodiment> The second embodiment further uses reference footage of normal behavior to make the differences between the behavior captured in the video and the normal behavior described in the manual clearer.

[0075] Accordingly, as shown in Figure 12, the behavioral improvement guidance generation device A1 further includes a reference video feature extraction unit B8 in addition to the other parts. Furthermore, the fused video feature generation unit B3x connected to the reference video feature extraction unit B8 is represented by adding the subscript x to the aforementioned fused video feature generation unit B3.

[0076] Here, the reference video feature extraction unit B8 extracts reference video features from reference video footage of a person performing normal actions using an object. The actions shown in the reference video are normal actions according to the manual and differ from the deviant actions shown in the aforementioned video. The reference video features are the video features of the reference video, and for example, the video data is represented by vectors. The method for extracting video features is as described above.

[0077] The fused video feature generation unit B3x generates fused video features by fusing the overall video features, foreground video features, and reference video features. For example, the fused video feature generation unit B3x may generate fused video features by combining the overall video features, foreground video features, and reference video features.

[0078] The other configurations are the same as in the first embodiment.

[0079] Next, the operation of the behavior improvement guidance generation device A1 configured as described above will be explained using the flowcharts in Figures 13 to 15. The following explanation will omit the description of steps S10 to S20 and S40 to S50, which are the same as described above, from the steps S10 to S50 shown in Figure 13, and will focus on steps S80 and S30x, which are different from those described above.

[0080] (Step S80) First, steps S10 and S20 are performed in the same manner as described above, but the output destination for the extracted overall video features and foreground video features is the fused video feature generation unit B3x. After steps S10 and S20, step S80 is performed.

[0081] Step S80 is a process of extracting reference video features from the reference video, and includes steps S81 to S83. However, the order in which steps S80, S10, and S20 are executed may be changed, and they should be executed at least before step S30x.

[0082] (Step S81) As shown in Figure 14, the reference video feature extraction unit B8 acquires reference video from outside the behavior improvement guidance generation device A1, which is a video of a person performing normal behavior using an object.

[0083] (Step S82) The reference video feature extraction unit B8 extracts reference video features from the reference video. Any process can be used for step S82, as long as it can extract reference video features from the reference video. For example, the reference video feature extraction unit B8 may use a method in which the feature vector of a video recognition model that generates feature vectors based on the reference video is considered as the reference video features.

[0084] (Step S83) The reference video feature extraction unit B8 outputs the extracted reference video feature quantities to the fused video feature generation unit B3x. This completes step S80, which includes steps S81 to S83.

[0085] (Step S30x) Step S30x is a process that generates fused image features and includes steps S31 to S34. Steps S31, S32, and S34 are the same processes as described above.

[0086] (Steps S31-S32) The fused video feature generation unit B3x obtains overall video feature quantities from the overall video feature extraction unit B1 and foreground video feature quantities from the foreground video feature extraction unit B2.

[0087] (Step S33-1) The fused video feature generation unit B3x acquires reference video features from the reference video feature extraction unit B8.

[0088] (Step S33-2) The fused video feature generation unit B3x generates fused video features by fusing the overall video features, foreground video features, and reference video features. Any process can be used in step S33-2, as long as it can generate fused video features from the overall video features, foreground video features, and reference video features. For example, as a process to generate fused video features, a process can be used that combines the overall video features, foreground video features, and reference video features and considers them as fused video features. Note that any of the six possible orders can be used to combine (concatenate) the three video features. Furthermore, it is not limited to this, and for example, a process can be used that generates a feature vector of a new number of dimensions using a DNN model such as a multilayer perceptron (MLP) or an attention mechanism and considers it as fused video features.

[0089] (Step S34) The fused video feature generation unit B3 outputs the generated fused video feature quantities to the video text feature generation unit B4. This completes step S30x, which includes steps S31 to S34.

[0090] After step ST30x, the processing from step S40 onward is executed in the same manner as described above.

[0091] As described above, according to the second embodiment, the reference video feature extraction unit B8 extracts reference video features from a reference video in which a person is filmed performing a normal action using an object. The fused video feature generation unit B3x fuses the overall video features, foreground video features, and reference video features to generate fused video features.

[0092] In this way, by including not only the manual text but also reference video features extracted from reference videos as information about normal behavior in the fused video features, the differences between the behavior in the input video and normal behavior become clearer, the differences between normal and deviant behavior are emphasized, and it becomes possible to generate more accurate behavior improvement instruction text.

[0093] Furthermore, according to the second embodiment, the fused video feature generation unit B3x may generate fused video features by combining the overall video features, foreground video features, and reference video features. In this case, fused video features can be generated by a simple process of combining each of the features.

[0094] <Various Modifications> <First Modification of the Second Embodiment> In the second embodiment, similar to the first modification of the first embodiment, the behavior improvement guidance generation device A1 may perform operations during learning.

[0095] For example, as shown in Figure 16, the behavioral improvement guidance generation device A1 further includes a parameter update unit B6 that updates the parameters of the video-text feature generation unit B4 and the text generation unit B5, in addition to the other components. The video-text feature generation unit B4 includes a machine learning model that generates video-text features by fusing the manual, text prompts, and fused video features.

[0096] Here, the parameter update unit B6 performs a first learning process to update the parameters of the machine learning model based on the instructional text generated by the text generation unit B5 and the correct behavior improvement instructional text that shows the correct answers for the instructional text, and a second learning process to update at least the parameters of the LLM among the updated parameters and the parameters of the LLM.

[0097] The other configurations are the same as in the second embodiment.

[0098] As described above, even when the second embodiment is combined with the first modified example of the first embodiment mentioned earlier, machine learning can be performed on the machine learning model and LLM using the correct answer behavior improvement instruction text that shows the correct answers in the instruction text, just as described above.

[0099] <Second Modification> In the second embodiment, reference video was acquired from outside the behavior improvement guidance generation device A1 by any method, but the invention is not limited to this, and reference video may also be acquired based on the manual.

[0100] Accordingly, as shown in Figure 17, the behavior improvement guidance generation device A1 is further equipped with an acquisition unit B9 that acquires reference video based on the manual, in addition to the other parts. However, the acquisition unit B9 does not necessarily have to be provided independently of the reference video feature extraction unit B8; it may be provided by the reference video feature extraction unit B8. In any case, the reference video feature extraction unit B8 acquires reference video from outside the behavior improvement guidance generation device A1 via the acquisition unit B9.

[0101] Here, the acquisition unit B9 searches for videos of normal behavior using the contents of the manual as a key, and inputs the acquired video as a reference video into the reference video feature extraction unit B8. The contents of the manual can be appropriately used, for example, the manual name (file name), object name (tool name, equipment name), action name (task name), etc. Although the search destination is shown as a communication network NW outside the behavior improvement guidance generation device A1, it is not limited to this, and may also be the memory (not shown) inside the behavior improvement guidance generation device A1.

[0102] With the above configuration, by searching for videos of normal behavior using the manual as a key, visual reference videos can be obtained and reference video features can be extracted, making it easier to compare with normal behavior, which may be difficult to understand from the manual's language alone. Furthermore, reference videos can be obtained more easily.

[0103] <Third Embodiment> In the third embodiment, the hardware configuration of the behavior improvement guidance generation device A1 according to the first and second embodiments will be described. Figure 18 is a block diagram showing an example of the hardware configuration of the behavior improvement guidance generation device A1 according to the first and second embodiments. For example, the behavior improvement guidance generation device A1 may be a computer comprising a processor 101, a program memory 102, a data memory 103, an input / output interface 104, and a communication interface 105. The processor 101, the program memory 102, the data memory 103, the input / output interface 104, and the communication interface 105 are connected to each other via a bus 106 so that they can communicate with each other.

[0104] The processor 101 is a processor equipped with hardware for controlling the behavior improvement guidance generation device A1. The processor 101 is, for example, a CPU (Central Processing Unit). The processor 101 may be an MPU (Micro Processing Unit), a GPU (Graphical Processing Unit), etc., instead of a CPU. Furthermore, the processor 101 does not need to be composed of a single CPU, etc., but may be composed of multiple CPUs, etc. The processor 101 may execute a program for causing the computer to function as the behavior improvement guidance generation device A1 by reading the program from the program memory 102. By operating according to the program stored in the program memory 102, the processor 101 can operate as the overall video feature extraction unit B1, foreground video feature extraction unit B2, fused video feature generation unit B3, video text feature generation unit B4, and text generation unit B5 in the first embodiment described above. In addition, by operating according to the program stored in the program memory 102, the processor 101 can also operate as the fused video feature generation unit B3x and reference video feature extraction unit B8 in the second embodiment described above. Furthermore, the processor 101 may operate similarly for the parameter update unit B6 of each modified example. The operation of the overall image feature extraction unit B1, foreground image feature extraction unit B2, fused image feature generation units B3, B3x, image text feature generation unit B4, text generation unit B5, reference image feature extraction unit B8, and parameter update unit B6 may be implemented by various other forms, including integrated circuits such as application-specific integrated circuits (ASICs) and field-programmable gate arrays (FPGAs).To elaborate, the functions of the elements disclosed herein may be implemented using circuits or processing circuitry that include general-purpose processors, special-purpose processors, integrated circuits, ASICs, FPGAs, conventional circuits, and / or combinations thereof, which are programmed using one or more programs stored in one or more memories, or otherwise configured to perform the disclosed functions. A processor is considered processing circuitry or circuitry because it includes transistors and other circuits. Processor 101 may be a programmed processor that executes a program stored in program memory 102. In this disclosure, circuits, units, or means are hardware that performs the enumerated functions, or hardware programmed to perform the enumerated functions. Hardware may be any hardware disclosed herein that is programmed or configured to perform the enumerated functions.

[0105] The program memory 102 is a storage medium that stores a program executed by the processor 101. The program memory 102 may be a storage medium such as an HDD (Hard Disk Drive) or an SSD (Solid State Drive). To elaborate, the program memory 102 is a memory that stores a computer program that includes computer instructions. These computer instructions provide logic and routines that enable hardware (e.g., processing circuitry or circuitry) to execute the methods disclosed herein. This computer program can be implemented in commonly known forms such as computer-readable storage medium, computer program product, memory device, recording medium such as CD-ROM or DVD, and / or memory of FPGA or ASIC. The recording medium may also be called a non-transitory computer-readable storage medium.

[0106] The data memory 103 is a storage medium for storing various types of data, such as pre-processing data acquired from outside the device, data being processed, and data output to the outside of the device. Examples of pre-processing data include, as appropriate, video, manuals, text prompts, reference videos, and correct behavior improvement instruction texts. Examples of data being processed include, as appropriate, overall video features, foreground video features, reference video features, fused video features, video-text features, behavior improvement instruction texts, and parameters. Examples of output data include, as appropriate, behavior improvement instruction texts. The data memory includes ROM (Read Only Memory), RAM (Random Access Memory), and storage. The ROM stores various setting values ​​necessary for the operation of the behavior improvement instruction generation device A1. The RAM is used as working memory during processing by the processor 101. The storage can store machine learning models and LLM parameters. The memory area for storing parameters may be provided on an external storage medium such as a USB (Universal Serial Bus) memory, or on a storage device such as a database server located in the cloud.

[0107] The input / output interface 104 is connected to an input device 200 and an output device 300 used by a user, etc., which are attached to the behavior improvement guidance generation device A1. The input device 200 is a device that accepts user operations such as a keyboard, touch panel, touchpad, or mouse. The user's operation of the input device 200 is received by the behavior improvement guidance generation device A1 via the input / output interface 104. The output device 300 is a variety of output devices such as a display device such as a liquid crystal display or an organic EL (Electro Luminescence) display, or an audio output device such as a speaker. Based on the data sent from the input / output interface 104, the output device 300 performs output. The input device 200 and the output device 300 may be built into the behavior improvement guidance generation device A1. Alternatively, input devices and output devices of other information terminals that can communicate with the behavior improvement guidance generation device A1 via a communication network NW may be used as the input device 200 and the output device 300.

[0108] The communication interface 105 includes, for example, one or more wireless or wired communication interface units, enabling the transmission and reception of information with the communication network NW. A wireless interface may be a wireless LAN (Local Area Network), for example. A wired interface may be a wired LAN.

[0109] <Modification> In the modification of the third embodiment, the hardware configuration of the simulated behavior improvement guidance text generation device A2 according to the second modification of the first embodiment will be described. Figure 19 is a block diagram showing an example of the hardware configuration of the simulated behavior improvement guidance text generation device A2 according to the second modification of the first embodiment. For example, the simulated behavior improvement guidance text generation device A2 may be a computer comprising a processor 701, a program memory 702, a data memory 703, an input / output interface 704, and a communication interface 705. The processor 701, the program memory 702, the data memory 703, the input / output interface 704, and the communication interface 705 are connected to each other via a bus 706 so that they can communicate with each other. In addition, the input / output interface 704 is connected to the same input device 200 and output device 300 as described above.

[0110] Here, the processor 701, program memory 702, data memory 703, input / output interface 704, and communication interface 705 are the same hardware as the processor 101, program memory 102, data memory 103, input / output interface 104, and communication interface 105 described above.

[0111] However, unlike the previous description, the program stored in the program memory 702 and executed by the processor 701 is a program that causes the computer to function as a simulated behavior improvement guidance text generation device A2. Accordingly, the processor 701 can operate as the simulated behavior improvement guidance text generation unit B7 described above by operating according to the program stored in the program memory 702. Also, the various types of data stored in the data memory 703 are different from those described above. For example, pre-processing data includes manuals and video captions. Output data includes, for example, simulated behavior improvement guidance texts. In other words, the hardware configuration other than the program and various types of data is the same as in the third embodiment.

[0112] Even with such modifications, the simulated behavior improvement guidance text generation device A2 can be realized as a hardware configuration.

[0113] <Other Embodiments> The functional configuration, processing procedures, and processing content of the behavior improvement guidance generation device A1 can be modified in various ways without departing from the spirit of this invention. For example, the types and algorithms of the aforementioned video recognition model, object detection model, DNN model, machine learning model, and LMM can be modified in various ways. Similarly, the content of the video, reference video, manual, text prompt, behavior improvement guidance text, etc. can also be modified in various ways.

[0114] For example, a manual may not only show a single action, but may also show multiple actions in chronological order. Accordingly, a behavior improvement instruction text may not only show a single corrective action, but may also show multiple corrective actions in chronological order. Furthermore, if the video contains both normal and deviant behaviors, the behavior improvement instruction text may include feedback such as "no problem" for the normal behavior, or it may not include any feedback at all. The method of describing normal behavior can be indicated by text prompts.

[0115] Similarly, the functional configuration, processing procedure, and processing content of the simulated behavioral improvement instruction text generation device A2 can be modified in various ways without departing from the spirit of this invention. For example, the types of LMMs and their algorithms mentioned above can be modified in various ways. Similarly, the contents of manuals, video captions, text prompts, etc., can also be modified in various ways.

[0116] Furthermore, the behavior improvement guidance generation device A1 may also incorporate a simulated behavior improvement guidance text generation device A2. In this case, for example, the program memory 102 in the hardware configuration shown in Figure 18 stores the program for the behavior improvement guidance generation device A1 and the program for the simulated behavior improvement guidance text generation device A2. The processor 101 can operate according to each of the programs stored in the program memory 102.

[0117] Although embodiments of this invention have been described in detail above, the above description is merely illustrative in all respects. It goes without saying that various improvements and modifications can be made without departing from the scope of this invention. In other words, when implementing this invention, specific configurations may be adopted as appropriate depending on the embodiment.

[0118] In short, this invention is not limited to the embodiments described above, and in the implementation stage, the components can be modified and materialized without departing from the gist of the invention. Furthermore, various inventions can be formed by appropriately combining the multiple components disclosed in the embodiments. For example, some components may be deleted from all the components shown in the embodiments. Moreover, components from different embodiments may be appropriately combined.

[0119] (References) (1) Junnan Li, Ramprasaath R. Selvaraju, Akhilesh D. Gotmare, Shafiq Joty, Caiming Xiong, Steven CH Hoi, Align before Fuse: Vision and Language Representation Learning with Momentum Distillation. in Proceedings of the 35th Conference on Neural Information Processing Systems (NeurIPS), 2021.

[0120] A1...Behavioral Improvement Guidance Generation Device A2...Simulated Behavioral Improvement Guidance Text Generation Device B1...Overall Video Feature Extraction Unit B2...Foreground Video Feature Extraction Unit B3, B3x...Fusion Video Feature Generation Unit B4...Video Text Feature Generation Unit B5...Text Generation Unit B6...Parameter Update Unit B7...Simulated Behavioral Improvement Guidance Text Generation Unit B8...Reference Video Feature Extraction Unit B9...Acquisition Unit 101, 701...Processor 102, 702...Program Memory 103, 703...Data Memory 104, 704...Input / Output Interface 105, 705...Communication Interface 200...Input Device 300...Output Device

Claims

1. An action improvement instruction generation device comprising: an overall video feature extraction unit that extracts overall video features from video footage of a person performing an action; a foreground video feature extraction unit that generates a foreground video from the video footage, hiding the background while leaving the object and the person visible, based on a manual describing normal behavior using an object and the video footage, and extracts foreground video features from the foreground video footage; a fused video feature generation unit that generates fused video features by fusing the overall video features and the foreground video features; a video text feature generation unit that generates video text features by fusing the manual, a text prompt that instructs the output of instructional text for improving the person's behavior to the normal behavior, and the fused video features; and a text generation unit that inputs the video text features, the manual, and the text prompt into an LLM (Large-Scale Language Model) to generate the instructional text.

2. The behavior improvement guidance generation device according to claim 1, wherein the foreground image feature extraction unit detects objects and people from the image, retains the objects that match the nouns of the objects described in the manual and the detected people, and generates the foreground image by setting the RGB values ​​of the background pixels that are different from the matching objects and the detected people to a constant value.

3. The behavior improvement guidance generation device according to claim 1, further comprising: a reference video feature extraction unit that extracts reference video features from reference video footage of a person performing normal actions using the object, wherein the fused video feature generation unit generates fused video features by fusing the overall video features, the foreground video features, and the reference video features.

4. The behavioral improvement guidance generation apparatus according to claim 3, wherein the fused video feature generation unit combines the overall video feature quantity, the foreground video feature quantity, and the reference video feature quantity to generate the fused video feature quantity.

5. The behavior improvement guidance generation apparatus according to claim 3, further comprising: an acquisition unit that searches for video of normal behavior using the contents of the manual as a key, and inputs the video obtained as a search result into the reference video feature extraction unit as the reference video.

6. The behavior improvement instruction generation device according to any one of claims 1 to 5, further comprising a parameter update unit, wherein the video text feature generation unit includes a machine learning model that generates video text features by fusing the manual, the text prompt, and the fused video features, and the parameter update unit performs a first learning to update the parameters of the machine learning model based on the instruction text and a correct behavior improvement instruction text indicating the correct answer to the instruction text, and a second learning to update at least the parameters of the LLM among the updated parameters and the parameters of the LLM.

7. A method to be performed by a behavior improvement instruction text generation device, comprising: extracting overall video features from video footage of a person performing an action; generating a foreground video from the video footage, with the background hidden and the object and the person remaining, based on a manual describing normal behavior using an object and the video footage; extracting foreground video features from the foreground video footage; fusing the overall video features and the foreground video features to generate fusing video features; fusing the manual, a text prompt instructing the output of instruction text for improving the person's behavior to the normal behavior, and the fusing video features to generate video text features; and inputting the video text features, the manual, and the text prompt into an LLM (Large-Scale Language Model) to generate the instruction text.

8. A program for causing a computer to function as a behavioral improvement guidance generation device according to any one of claims 1 to 5.