Multi-person multi-object scene task interaction detection method and system based on guided prompt learning

By constructing a multi-dimensional parallel path and a multi-head cross-attention mechanism to fuse features, the complexity of human interaction detection in multi-person and multi-object scenarios is solved, and high-precision interactive action classification and localization detection is achieved.

CN123181925APending Publication Date: 2026-11-27XI AN JIAOTONG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611411727.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-11
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing methods for detecting human interaction in multi-person and multi-object scenes face challenges such as high-density feature interference, local semantic ambiguity, fine-grained action differences, and insufficient relationship generalization. Furthermore, existing cue-based learning methods fail to fully utilize the synergistic advantages of multimodal and multi-dimensional features.

Method used

A freeze-based CLIP visual encoder is used to extract visual features and four parallel paths are constructed: text guidance, visual guidance, posture guidance, and environment guidance. The visual features of text guidance, visual guidance cue features, posture-enhanced visual representations, and environment-sense-enhanced visual representations are fused through a multi-head cross-attention mechanism to achieve the collaborative fusion of multi-dimensional features.

Benefits of technology

It significantly improves the classification and localization detection accuracy of human interaction actions in dense scenes with many people and objects, alleviates local semantic ambiguity, captures joint-level pose differences, and improves the generalization performance of zero-shot detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123181925A_ABST
    Figure CN123181925A_ABST
Patent Text Reader

Abstract

The application discloses a multi-person multi-object scene task interaction detection method and system based on guided prompt learning, and belongs to the technical field of computer vision and deep learning. The method extracts visual features of an input image based on a frozen contrast language-image pre-training visual encoder, and constructs four parallel paths of text-guided prompts, visual-guided prompts, posture-guided prompts and environment-guided prompts. On the four parallel paths, text-guided visual features, visual-guided prompt features, posture-enhanced visual representations and environment-knowledge-enhanced visual representations are respectively constructed. The four types of features are fused through a multi-head cross-attention mechanism to obtain fused features, and interaction action classification and positioning detection are performed based on the fused features. Through the synergistic complementation of the four dimensions of text, vision, posture and environment, the application effectively solves the problems of high-density feature interference, local semantic ambiguity and fine-grained action difficulty to distinguish in a multi-person multi-object scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of computer vision and deep learning technology, and relates to a method and system for detecting multi-person and multi-object scene task interaction based on guided prompting learning. Background Technology

[0002] Human interaction detection aims to detect the interaction between people and objects in images, outputting a triple <person, action, object>. Human interaction detection is an important research area in computer vision, with wide applications in behavior understanding, video surveillance, robot interaction, and autonomous driving.

[0003] Existing two-stage human interaction detection methods first use an object detector to detect people and objects, and then classify the interaction relationships of the detected human-object pairs; one-stage methods directly predict human interaction triples from the end-to-end in the image. In recent years, detection methods based on the Transformer architecture have made significant progress, but they still face the following technical challenges in multi-person, multi-object scenarios: First, high-density feature interference, where human instances highly overlap and have complex spatial relationships with objects. Features of different human-object pairs intertwine in the feature space, and existing methods rely on local visual feature extraction, making it difficult to accurately extract pure discriminative features of target instances from cluttered feature maps. Second, local semantic ambiguity, where existing methods only focus on the appearance features of local human-object pairs, lacking understanding and reasoning about the semantics of the global scene, and unable to distinguish the semantic differences of the same action in different environments. For example, the action of holding a cup should be drinking water in a meeting environment, but is more likely to be toasting in a party environment. Third, fine-grained action differences, where many interactive actions are visually highly similar, with the main difference being only subtle changes in human posture. Existing methods usually only use the human region features provided by the object detection box, and cannot capture joint-level posture differences. Fourth, insufficient relationship generalization, where the number of interactive action categories in human interaction detection tasks is huge, and the feature quality drops significantly in zero-shot or occluded scenarios, and the zero-shot capability of language models cannot be fully utilized.

[0004] In recent years, visual-language pre-trained models, such as contrastive language-image pre-trained models, have demonstrated powerful visual semantic understanding capabilities, and cue learning methods based on contrastive language-image pre-trained models have achieved excellent performance in multiple visual tasks. However, existing cue learning-based methods for character interaction detection only utilize single-dimensional cue information and fail to fully leverage the synergistic advantages of multimodal and multidimensional features. Summary of the Invention

[0005] The purpose of this invention is to provide a method and system for detecting task interaction in multi-person, multi-object scenarios based on guided prompting learning, so as to solve the above-mentioned problems.

[0006] To achieve the above objectives, the present invention adopts the following technical solution: In a first aspect, the present invention provides a method for detecting task interaction in multi-person, multi-object scenarios based on guided prompting learning, including: Based on the frozen CLIP visual encoder, visual features of the input image are extracted, and four parallel paths are constructed: text guidance cues, visual guidance cues, posture guidance cues, and environment guidance cues. On four parallel paths—text guidance prompts, visual guidance prompts, posture guidance prompts, and environmental guidance prompts—visual features of text guidance, visual guidance prompt features, posture-enhanced visual representations, and environmental common sense-enhanced visual representations are constructed, respectively. The visual features guided by text, visual guidance cues, pose-enhanced visual representations, and environmental common sense-enhanced visual representations are fused through a multi-head cross-attention mechanism to obtain fused features, and interactive action classification and localization detection are performed based on the fused features.

[0007] Furthermore, the construction of visual features for text guidance includes: The action category labels are encoded using the CLIP text encoder to generate action semantic embeddings; By using a cross-attention mechanism, visual features are used as queries, and action semantic embeddings are used as keys and values ​​to calculate the visual features of the text guidance.

[0008] Furthermore, the construction of visual guidance prompt features includes: Insert learnable visual cue tokens into each layer of the Transformer block in the frozen CLIP visual encoder; By using a self-attention mechanism to enable visual cue tokens to interact with image patch tokens, the visual interaction patterns of multi-person and multi-object scenarios are learned, thereby obtaining the visual guidance cue features.

[0009] Furthermore, the construction of the pose-enhanced visual representation includes: The pose estimation model is used to extract key points of the human skeleton and generate a Gaussian heatmap of the key points. The Gaussian heatmap is mapped into an attitude feature vector using a lightweight attitude encoder; The pose enhancement visual representation is calculated using a multi-head cross-attention fusion module, with visual features as the query and the pose feature vector as the key and value.

[0010] Furthermore, the construction of the environmental commonsense-enhanced visual representation includes: The input image is fed into a large visual language model to generate a natural language description that includes scene objects, spatial relationships, and environmental context. The scene description is text-encoded to extract environmental semantic feature vectors; The environmental semantic feature vector is fused with the visual features through a cross-attention mechanism to obtain a visual representation of the environment enhanced with common sense.

[0011] Furthermore, the step of calculating the pose-enhanced visual representation using the multi-head cross-attention fusion module, with the visual features as the query and the pose feature vector as the key and value, includes: Map the pose feature vector to the same dimensional space as the visual feature; A multi-head cross-attention mechanism is adopted, using the visual features as queries and the mapped pose features as keys and values, to calculate pose-guided attention weights; The attention-weighted features are residually connected to the original visual features to obtain the pose-enhanced visual representation.

[0012] Furthermore, the process of fusing data through a multi-head cross-attention mechanism to obtain fused features, and then performing interactive action classification and localization detection based on these fused features, includes: By using learnable modal weights, the visual features of text guidance, visual guidance prompt features, posture-enhanced visual representations, and environmental commonsense-enhanced visual representations are adaptively weighted and summed to obtain a unified query vector. By using a multi-head cross-attention mechanism, the unified query vector is used as the query, and it is interactively fused with the visual features or the output features of the four parallel paths to obtain the fused features. Calculate the cosine similarity between the fused features and the text embeddings of each action category; The interaction action category is determined based on the cosine similarity.

[0013] Secondly, this invention provides a multi-person, multi-object scene task interaction detection system based on guided prompting learning, including: The data acquisition module is used to extract visual features of the input image based on the frozen CLIP visual encoder and construct four parallel paths: text guidance cues, visual guidance cues, posture guidance cues, and environment guidance cues. The multi-path feature construction module constructs visual features for text guidance, visual guidance features, posture-enhanced visual representations, and environmental common sense-enhanced visual representations on four parallel paths: text guidance prompts, visual guidance prompts, posture-enhanced visual representations, and environmental common sense-enhanced visual representations, respectively. The output module is used to fuse the visual features of text guidance, visual guidance prompts, pose-enhanced visual representations, and environmental common sense-enhanced visual representations through a multi-head cross-attention mechanism to obtain fused features, and to perform interactive action classification and localization detection based on the fused features.

[0014] Thirdly, the present invention provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the multi-person, multi-object scene task interaction detection method based on guided prompting learning.

[0015] Fourthly, the present invention provides a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the steps of the multi-person, multi-object scene task interaction detection method based on guided prompting learning.

[0016] Compared with the prior art, the present invention has the following technical effects: This invention extracts visual features from input images using a frozen contrastive language-image pre-trained visual encoder and constructs four parallel paths: text guidance prompts, visual guidance prompts, posture guidance prompts, and environment guidance prompts. It can comprehensively capture human interaction features from four complementary dimensions: semantics, vision, posture, and environment, solving the problem that existing human interaction detection methods can only extract features from a single dimension and cannot cope with complex scenes with multiple people and multiple objects. By generating action semantic embeddings using a contrastive language-image pre-trained text encoder along the text-guided prompt path and injecting visual features through a cross-attention mechanism, the model can be guided to focus on visual regions related to specific action semantics, effectively alleviating local semantic ambiguity. By inserting learnable visual cue tokens along the visual-guided prompt path and using a self-attention mechanism to learn scene-specific visual interaction patterns, the model can capture complex spatial relationships and interaction patterns in multi-person, multi-object scenes. By constructing posture features using human skeletal keypoints along the posture-guided prompt path and aligning and fusing them with visual features through a multi-head cross-attention fusion module, the model can precisely capture joint-level posture differences, significantly improving the accuracy of actions such as pushing, pulling, eating, etc. The system demonstrates strong discriminative ability for fine-grained actions such as drinking; by introducing a large-scale visual language model to generate scene descriptions and extract environmental common-sense features along the environmental guidance path, it endows the model with common-sense reasoning capabilities that exceed the coverage of training data, effectively improving the generalization performance of zero-shot human interaction detection; by adaptively fusing text-guided visual features, visual guidance prompt features, pose-enhanced visual representations, and environmental common-sense-enhanced visual representations through a multi-head cross-attention mechanism, it fully realizes the synergistic complementarity of multi-dimensional features, making the final fused features possess semantic discriminative power, spatial perception, pose sensitivity, and environmental common-sense understanding capabilities, thereby achieving high-precision human interaction action classification and localization detection in densely populated scenes with multiple people and objects. Attached Figure Description

[0017] Figure 1This is a flowchart illustrating the multi-person, multi-object scene task interaction detection method based on guided prompt learning provided in an embodiment of the present invention.

[0018] Figure 2 This is a schematic diagram of the posture guidance prompt path in an embodiment of the present invention.

[0019] Figure 3 This is a schematic diagram of the environment guidance prompt path in an embodiment of the present invention.

[0020] Figure 4 This is a data statistics diagram of a self-built multi-person, multi-object interaction dataset in an embodiment of the present invention.

[0021] Figure 5 These are example images of a self-built multi-person, multi-object interaction dataset in an embodiment of the present invention.

[0022] Figure 6 This is an example diagram of interaction detection in a self-built multi-person, multi-object interaction dataset in an embodiment of the present invention.

[0023] Figure 7 This is a flowchart of the present invention. Detailed Implementation

[0024] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0025] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0026] The present invention will now be described in further detail with reference to the accompanying drawings: Example 1, see Figure 1In one embodiment of the present invention, a method for detecting task interaction in multi-person and multi-object scenes based on guided prompt learning is provided, which is used to accurately detect and identify the interaction relationship between people and objects in complex scenes where multiple people and multiple objects exist at the same time.

[0027] Specifically, the multi-person, multi-object scene task interaction detection method based on guided prompting learning of the present invention includes the following steps: S1: A frozen contrastive language-image pre-trained visual encoder extracts visual features from the input image and constructs four parallel paths: text guidance prompts, visual guidance prompts, pose guidance prompts, and environment guidance prompts.

[0028] The contrastive language-image pre-trained visual encoder is a visual model pre-trained on large-scale image and text data, capable of encoding input images into visual feature representations rich in semantic information. Since this encoder has already learned the correspondence between visual concepts and linguistic semantics during the pre-training stage, its extracted visual features naturally possess the ability to align with text semantics. In this step, the parameters of the contrastive language-image pre-trained visual encoder are completely frozen, meaning they are not updated during the subsequent training and inference processes. This is done to preserve the powerful visual-semantic alignment capability already learned by the pre-trained model, avoiding catastrophic forgetting during fine-tuning on new tasks; it also significantly reduces the number of trainable parameters and computational overhead. The four parallel paths, starting from four dimensions—textual semantic guidance, visual pattern learning, human posture perception, and environmental context understanding—form a three-dimensional representation of the complex visual concept of human interaction, overcoming the limitations of traditional methods that rely on only a single visual feature dimension.

[0029] S2: On the four parallel paths of text guidance prompts, visual guidance prompts, posture guidance prompts and environmental guidance prompts, respectively construct visual features of text guidance, visual guidance prompt features, posture-enhanced visual representations and environmental common sense-enhanced visual representations.

[0030] This step, based on the framework of four parallel paths constructed in S1, specifically implements the feature construction process of each path, enabling each path to generate intermediate feature representations for subsequent fusion from its own responsible dimension.

[0031] Text-guided visual features are obtained by injecting semantic information of action categories into visual features through a specific attention mechanism. Essentially, in the visual feature space, textual semantics are used as query guidance to weight and reorganize visual features, enhancing visual regions related to specific action semantics while suppressing irrelevant background or interference regions. Visual guidance cue features are obtained by inserting learnable cue vectors into each layer of the visual encoder. These cue vectors are progressively optimized during training, ultimately capturing discriminative visual interaction patterns in multi-person, multi-object scenes, such as typical spatial relationships between humans and objects, and mutual occlusion patterns between people. Pose-enhanced visual representations align and fuse the fine-grained pose information carried by key points of the human skeleton with visual features through a specially designed multi-head cross-attention fusion module, enabling the final visual representation to simultaneously include kinematic information at the human joint level and visual appearance information. The visual representation enhanced with environmental common sense utilizes a large-scale visual language model to "describe" the input image, generating a natural language description that includes scene objects, spatial relationships, and environmental background. This description is then encoded as semantic features and fused with visual features, thereby endowing the visual representation with common sense reasoning capabilities that surpass the original image pixels. Through the parallel construction of these four types of intermediate features, this invention achieves feature decoupling and separate enhancement of human interaction behavior across four dimensions: semantic, spatial, gestural, and scene, laying a solid foundation for the subsequent collaborative fusion of multi-dimensional features.

[0032] S3: The visual features of text guidance, visual guidance prompts, posture-enhanced visual representations, and environmental common sense-enhanced visual representations are fused through a multi-head cross-attention mechanism to obtain fused features, and interactive action classification and localization detection are performed based on the fused features.

[0033] Text-guided visual features excel at identifying semantic categories of actions, visual guidance prompts excel at capturing spatial interaction patterns, gesture-enhanced visual representations excel at perceiving subtle differences in human movements, and environmental commonsense-enhanced visual representations excel at providing scene-level contextual information. A multi-head cross-attention mechanism establishes fully connected interaction channels among these four feature types, allowing each feature to "see" information from other dimensions during the fusion process and adjust its own expression accordingly, thus achieving true cross-dimensional feature collaboration. Based on this fused feature, by calculating its similarity to the text embeddings of each preset action category, the final interactive action category can be determined, and simultaneously, the spatial location information of the human body and objects can be regressed or associated, completing the classification and localization detection of interactive actions.

[0034] This invention presents a multi-person, multi-object scene interaction detection method based on guided prompting learning. Through S1, a four-way parallel prompting learning framework is constructed, expanding the complex human interaction detection task from single visual feature extraction to parallel feature extraction across four dimensions: text, vision, posture, and environment. This fundamentally solves the problems of single-dimensionality and insufficient information utilization in traditional methods. Through S2, intermediate features with specific dimension enhancement capabilities are constructed on each parallel path, allowing text semantic guidance, visual pattern learning, posture detail perception, and environmental common sense reasoning to be independently and fully utilized. Through S3, the four heterogeneous and complementary features are collaboratively fused under a multi-head cross-attention mechanism, enabling various features to mutually verify, complement, and correct each other during the interaction process. The resulting fused features far outperform the discrimination ability of single features or simply spliced ​​features, thus achieving accurate and robust human interaction detection in complex scenes with high density and high ambiguity involving multiple people and multiple objects.

[0035] Example 2: A method for detecting human interaction in multi-person, multi-object scenes based on guided prompting learning, comprising the following steps: Step 1: Construct a four-path guidance cue learning framework. Based on the frozen CLIP visual encoder (ViT-L / 14), the input image is encoded into a visual feature representation. Building upon the CLIP visual encoder, four parallel paths are constructed: text guidance cues, visual guidance cues, pose guidance cues, and environment guidance cues. Given an input image I, the feature extraction process of the CLIP visual encoder is represented as follows: , where d is the feature dimension, and in this invention d=768.

[0036] The four suggestion features are adaptively fused into a unified query vector using learnable modality weights:

[0037] The modal weights are normalized using Softmax:

[0038] Where β_i is the learnable modality importance score.

[0039] Step Two: Text-Guided Cue Learning. The CLIP text encoder is used to encode predefined action category labels. Learnable context vectors are designed to construct cue templates "[V]1[V]2...[V]_M[action]", where [V]... i [Action] is a learnable context token, and [action] is the action category label. The text encoding process is as follows: Using a cross-attention mechanism, with visual features as the query and textual semantic embeddings as keys and values, semantically guided visual features are calculated: .

[0040] Step 3: Visual Cue Learning. Learnable visual cue tokens are inserted into the Transformer blocks of each layer of the CLIP visual encoder. These tokens interact with image patch tokens through a self-attention mechanism, learning visual interaction patterns specific to multi-person, multi-object scenes. The process is as follows: , where x_i is the image patch token, p_j is the learnable cue token, K is the number of cue tokens, and l is the Transformer layer index.

[0041] Step 4: Pose-guided cue learning. A pre-trained pose estimation model is used to extract key points from the human skeleton, generating a Gaussian heatmap of 17 key points. This Gaussian heatmap is mapped to a 768-dimensional pose feature vector V_pose using a lightweight pose encoder. A multi-head cross-attention fusion module (MHCA) is employed, using visual features as queries and pose features as keys and values. Pose features are extracted as follows: , Multi-head cross-attention fusion calculation is as follows: ,in h=8 represents the number of attention heads. This is obtained through residual connections: .

[0042] The process of generating the Gaussian heatmap of key points in the human skeleton is as follows:

[0043] Where σ is the standard deviation of the Gaussian kernel, and c_k is the confidence score of the k-th joint. The heatmap is mapped to an attitude feature vector by a lightweight attitude encoder.

[0044] Step 5: Environment-Guided Cue Learning. The input image is fed into a large visual language model (such as LLaVA), which generates a natural language description containing scene objects, spatial relationships, and environmental context using carefully designed cue templates. The generated environment description is... Environmental characteristics are The generated scene description is CLIP-encoded to extract environmental semantic feature vectors. A cross-attention mechanism is then used to fuse these environmental semantic features with visual features, enabling the model to acquire commonsense reasoning capabilities beyond the scope of the training data and effectively improving zero-shot HOI detection performance.

[0045]

[0046] Here, `prompt_template` is the prompt template that guides LVLM in generating a structured context description, and `φ_LVLM` are the frozen LVLM parameters. The context description text is encoded into a feature vector using a CLIP text encoder, and a global context cue vector is obtained through sequence-dimensional average pooling.

[0047]

[0048] Step Six: Multi-path Feature Fusion and HOI Detection. The output features of the four guiding prompts are fused using a multi-head cross-attention mechanism. The fused features are calculated as follows: The final output is the HOI detection result, which is classified using cosine similarity. The training loss uses binary cross-entropy: During training, CLIP parameters are frozen, and only learnable parameters are updated. .

[0049] The specific calculation of cosine similarity is as follows:

[0050]

[0051] The classification loss function uses weighted binary cross-entropy loss:

[0052] The category adaptive weights are:

[0053] It also supports focus loss to target hard-to-distinguish samples:

[0054] The objective function for efficient parameter optimization is:

[0055] Where Φ is the frozen parameter set (including all parameters of LVLM, CLIP, and the pose estimation network), θ is the trainable parameter set, and λ is the regularization coefficient. The number of trainable parameters is controlled to be within 5% of the total number of frozen parameters.

[0056] Example 3, as Figure 1 As shown, the overall architecture of the four-path guidance and prompting learning framework proposed in this invention includes: a frozen CLIP visual encoder, a text guidance and prompting path, a visual guidance and prompting path, a posture guidance and prompting path, an environment guidance and prompting path, and a multi-head cross-attention fusion module.

[0057] In practice, the input image is first processed by the CLIP ViT-L / 14 visual encoder to extract 768-dimensional visual features. The encoder parameters are frozen during training to preserve the rich visual-semantic alignment capabilities acquired during CLIP pre-training.

[0058] The implementation process of the text-guided prompt path is as follows: Define a set of action category labels, and construct a prompt template containing M=16 learnable context vectors for each action category. Feed the prompt templates into the CLIP text encoder to generate action semantic embeddings. Through a multi-head cross-attention mechanism, using visual features as queries and semantic embeddings as keys and values, calculate the visual features of the text guidance.

[0059] The implementation process of the visual guidance and prompting path is as follows: In each Transformer layer of the CLIP visual encoder, K=10 learnable prompt tokens are inserted. These tokens interact with image patch tokens through a self-attention mechanism, learning the visual interaction patterns of multi-person and multi-object scenes layer by layer.

[0060] The implementation process of the attitude guidance prompt path is as follows: Figure 2 As shown: 17 skeletal key points of the human body are extracted using a pre-trained HRNet model to generate a Gaussian heatmap. The Gaussian heatmap is mapped to a 768-dimensional pose feature vector V_pose by a lightweight pose encoder, and then fused with visual features through an 8-head cross-attention fusion module, supplemented by residual connections and layer normalization operations.

[0061] The specific calculation process for multi-head cross-attention is as follows: First, linear transformations are performed on the query, key, and value respectively:

[0062] Calculate the attention weight matrix:

[0063] The output of each attention head is:

[0064] After all headers are concatenated, the output projection matrix is ​​transformed, and the enhanced features are obtained through residual connections and layer normalization.

[0065]

[0066] The implementation process of the environment guidance prompt path is as follows: Figure 3As shown: The input image is fed into the LLaVA model, which generates a scene description using the designed prompt template "Please describe the scene including objects, their spatial relationships, and the environment context." The description text is then CLIP encoded and fused with visual features through a cross-attention mechanism.

[0067] Human-Object Detection Preprocessing: A pre-trained DETR object detector is used to preprocess the input image, detecting all human and object instances and obtaining bounding boxes and category labels. All human-object instances are paired to generate a set of candidate interaction pairs. For each candidate interaction pair, visual features centered on the joint region of the human and object bounding boxes are extracted. These local visual features are then concatenated with global contextual cue features and input into the MHCA fusion module for further processing.

[0068] Dataset Construction: This invention constructed the MPMO (Multi-Person Multi-Object) dataset for experimental verification. For example... Figure 4 and Figure 5 As shown, the MPMO dataset contains 4283 images and 36146 person-object interaction pairs, with an average of 13.3 people, 8.44 objects, and 8.5 interactions per image, significantly higher than the density of existing datasets such as HICO-DET. Figure 6 The image shows an example of interaction detection from the MPMO dataset. Research Content 1: Based on this dataset, we experimentally evaluated a three-way fusion method combining textual guidance prompts, visual guidance prompts, and gestural guidance prompts.

[0069] Experimental Results of Study Content 1: As shown in Table 1, the method of Study Content 1 (fusion of text-guided cues, visual cues, and gesture-guided cues) was compared with representative methods such as HORCNN, iCAN, SGG-Graph, HOI-Trans, PBGH, SICHOI, INP-CC, and EZ-HOI. The method of Study Content 1 achieved 32.69% on Full mAP and 25.12% on Zero-shot mAP, representing improvements of 1.16 and 0.39 percentage points respectively compared to the baseline method EZ-HOI (31.53% and 24.73%).

[0070]

[0071] Table 1 Performance comparison of various methods on the MPMO dataset Ablation Experiments in Research Content 1: As shown in Table 2, ablation experiments were conducted to verify the contributions of each component in the pose guidance cueing section of Research Content 1. The full / zero-shot mAP of the baseline model (EZ-HOI) was 31.53% / 24.73%; when directly stitching pose features, it was 31.88% / 24.77%; when using only position encoding, it was 31.73% / 24.75%; and when using the complete encoder from Research Content 1 to extract the V_pose scheme, it achieved the optimal 32.69% / 25.12%, verifying the effectiveness of the multi-head cross-attention fusion module.

[0072]

[0073] Table 2 Ablation Experiment Results Research Content 1: Training Configuration: Training uses the AdamW optimizer with an initial learning rate of 1×10⁻⁶. -4 Cosine annealing to 1×10 -6 The training was conducted for 100 epochs with a batch size of 16. The first research component involved completely freezing the parameters of the CLIP encoder and pose estimation network, updating only the trainable parameters of the lightweight cue encoding module, the multi-head cross-attention fusion module, and the classification prediction head. The total number of trainable parameters was approximately 15.2M, representing only about 1.3% of the total frozen parameters, and training could be completed on a single NVIDIA RTX 3090 GPU.

[0074] In another embodiment of the present invention, a multi-person, multi-object scene task interaction detection system based on guided prompt learning is provided, which can be used to implement the above-mentioned multi-person, multi-object scene task interaction detection method based on guided prompt learning.

[0075] Specifically, the multi-person, multi-object scene task interaction detection system based on guided prompting learning includes: The data acquisition module is used to extract visual features of the input image based on the frozen contrastive language-image pre-trained visual encoder and construct four parallel paths: text guidance prompts, visual guidance prompts, pose guidance prompts and environment guidance prompts. The multi-path feature construction module is used to construct visual features for text guidance, visual guidance features, visual representations enhanced by posture, and visual representations enhanced by environmental common sense on four parallel paths: text guidance prompts, visual guidance prompts, posture guidance prompts, and environmental guidance prompts. The output module is used to fuse the visual features of text guidance, visual guidance prompts, pose-enhanced visual representations, and environmental common sense-enhanced visual representations through a multi-head cross-attention mechanism to obtain fused features, and to perform interactive action classification and localization detection based on the fused features.

[0076] In another embodiment of the present invention, a computer device is provided, comprising a processor and a memory. The memory stores a computer program, which includes program instructions. The processor executes the program instructions stored in the computer storage medium. The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors, application-specific integrated circuits (ASICs), off-the-shelf programmable gate arrays (FPGAs), other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. It is the computing and control core of the terminal, suitable for implementing one or more instructions, specifically suitable for loading and executing one or more instructions from the computer storage medium to achieve corresponding method flows or corresponding functions. The processor described in this embodiment can be used for the operation of a multi-user, multi-object scene task interaction detection method based on guided learning prompts.

[0077] In another embodiment of the present invention, a storage medium is provided, specifically a computer-readable storage medium, which is a memory device in a computer device for storing programs and data. It is understood that the computer-readable storage medium here can include both the built-in storage medium in the computer device and extended storage media supported by the computer device. The computer-readable storage medium provides storage space that stores the terminal's operating system. Furthermore, the storage space also stores one or more instructions suitable for loading and execution by a processor. These instructions can be one or more computer programs (including program code). It should be noted that the computer-readable storage medium here can be a high-speed RAM memory or an unstable memory, such as at least one disk storage device. The processor can load and execute one or more instructions stored in the computer-readable storage medium to implement the corresponding steps of the multi-user, multi-object scene task interaction detection method based on guided prompting learning in the above embodiments.

[0078] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0079] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0080] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0081] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0082] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that modifications or equivalent substitutions can still be made to the specific implementation of the present invention. Any modifications or equivalent substitutions that do not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A method for detecting task interaction in multi-person, multi-object scenarios based on guided learning prompts, characterized in that, include: Based on the frozen CLIP visual encoder, visual features of the input image are extracted, and four parallel paths are constructed: text guidance cues, visual guidance cues, posture guidance cues, and environment guidance cues. On four parallel paths—text guidance prompts, visual guidance prompts, posture guidance prompts, and environmental guidance prompts—visual features of text guidance, visual guidance prompt features, posture-enhanced visual representations, and environmental common sense-enhanced visual representations are constructed, respectively. The visual features guided by text, visual guidance cues, pose-enhanced visual representations, and environmental common sense-enhanced visual representations are fused through a multi-head cross-attention mechanism to obtain fused features, and interactive action classification and localization detection are performed based on the fused features.

2. The method for detecting multi-person, multi-object scene task interaction based on guided prompting learning according to claim 1, characterized in that, The visual features for constructing text-guided text include: The action category labels are encoded using the CLIP text encoder to generate action semantic embeddings; By using a cross-attention mechanism, visual features are used as queries, and action semantic embeddings are used as keys and values ​​to calculate the visual features of the text guidance.

3. The method for detecting multi-person, multi-object scene task interaction based on guided prompting learning according to claim 1, characterized in that, The construction of visual guidance prompt features includes: Insert learnable visual cue tokens into each layer of the Transformer block in the frozen CLIP visual encoder; By using a self-attention mechanism to enable visual cue tokens to interact with image patch tokens, the visual interaction patterns of multi-person and multi-object scenarios are learned, thereby obtaining the visual guidance cue features.

4. The method for detecting multi-person, multi-object scene task interaction based on guided prompting learning according to claim 1, characterized in that, The construction of the pose-enhanced visual representation includes: The pose estimation model is used to extract key points of the human skeleton and generate a Gaussian heatmap of the key points. The Gaussian heatmap is mapped into an attitude feature vector using a lightweight attitude encoder; The pose enhancement visual representation is calculated using a multi-head cross-attention fusion module, with visual features as the query and the pose feature vector as the key and value.

5. The method for detecting multi-person, multi-object scene task interaction based on guided prompting learning according to claim 1, characterized in that, The constructed environment common sense-enhanced visual representation includes: The input image is fed into a large visual language model to generate a natural language description that includes scene objects, spatial relationships, and environmental context. The scene description is text-encoded to extract environmental semantic feature vectors; The environmental semantic feature vector is fused with the visual features through a cross-attention mechanism to obtain a visual representation of the environment enhanced with common sense.

6. The method for detecting multi-person, multi-object scene task interaction based on guided prompting learning according to claim 5, characterized in that, The step of calculating the pose-enhanced visual representation using the multi-head cross-attention fusion module, with the visual features as the query and the pose feature vector as the key and value, includes: Map the pose feature vector to the same dimensional space as the visual feature; A multi-head cross-attention mechanism is adopted, using the visual features as queries and the mapped pose features as keys and values, to calculate pose-guided attention weights; The attention-weighted features are residually connected to the original visual features to obtain the pose-enhanced visual representation.

7. The method for detecting multi-person, multi-object scene task interaction based on guided prompting learning according to claim 1, characterized in that, The process involves fusing data through a multi-head cross-attention mechanism to obtain fused features, and then performing interactive action classification and localization detection based on these fused features, including: By using learnable modal weights, the visual features of text guidance, visual guidance prompt features, posture-enhanced visual representations, and environmental commonsense-enhanced visual representations are adaptively weighted and summed to obtain a unified query vector. By using a multi-head cross-attention mechanism, the unified query vector is used as the query, and it is interactively fused with the visual features or the output features of the four parallel paths to obtain the fused features. Calculate the cosine similarity between the fused features and the text embeddings of each action category; The interaction action category is determined based on the cosine similarity.

8. A multi-person, multi-object scene task interaction detection system based on guided learning, characterized in that, include: The data acquisition module is used to extract visual features of the input image based on the frozen CLIP visual encoder and construct four parallel paths: text guidance cues, visual guidance cues, posture guidance cues, and environment guidance cues. The multi-path feature construction module constructs visual features for text guidance, visual guidance features, posture-enhanced visual representations, and environmental common sense-enhanced visual representations on four parallel paths: text guidance prompts, visual guidance prompts, posture-enhanced visual representations, and environmental common sense-enhanced visual representations, respectively. The output module is used to fuse the visual features of text guidance, visual guidance prompts, pose-enhanced visual representations, and environmental common sense-enhanced visual representations through a multi-head cross-attention mechanism to obtain fused features, and to perform interactive action classification and localization detection based on the fused features.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the multi-person, multi-object scene task interaction detection method based on guided prompting learning as described in any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the multi-person, multi-object scene task interaction detection method based on guided prompting learning as described in any one of claims 1 to 7.