Portable weapon simulation system and method based on YOLO and VLM
By combining YOLO and VLM simulation methods with Bayesian optimization, improved YOLO detection, and visual large language model, we have achieved individualized training difficulty adjustment and real-time situational awareness for portable weapon simulation systems. This solves the problem that the training difficulty in existing systems cannot match the shooter's ability, and improves training effectiveness and safety.
Patent Information
- Application Number
- CN202611674931.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-28
- Publication Date
- 2026-11-27
AI Technical Summary
Existing portable weapon simulation training systems lack the integration and utilization of multi-dimensional data on the shooter's operation process, and cannot dynamically adjust the training difficulty to match individual skill levels, resulting in poor training effectiveness.
A simulation method based on YOLO and VLM is adopted. Individualized training difficulty parameters are generated through Bayesian optimization algorithm, and real-time target detection is performed by combining an improved YOLO detection model. A visual large language model is used for situational reasoning, outputting recommended operation data, performing multi-dimensional evaluation and comprehensive scoring, and updating historical operation profiles to optimize the training strategy.
It enables a comprehensive assessment of shooters' abilities and personalized adjustments to training difficulty, improving the relevance and efficiency of training, ensuring that training difficulty matches shooters' abilities, and enhancing training effectiveness and safety.
Smart Images

Figure CN123179133A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of simulation training technology, and in particular to a portable weapon simulation system and method based on YOLO and VLM. Background Technology
[0002] Portable air defense missiles and anti-tank weapons are core equipment in individual and squad-level offensive and defensive operations. The ability of their gunners to quickly acquire targets, maintain stable tracking, and fire accurately directly impacts battlefield survivability and combat effectiveness. To reduce the cost of live-fire training and improve training safety and frequency, simulation training systems have become an important support means for training portable weapon gunners.
[0003] Existing simulation training systems typically construct the training environment using pre-set scenario scripts. This means that operators manually set the target type, motion trajectory, speed parameters, and interference patterns beforehand. During training, pre-recorded videos are played or semi-physical simulation devices are driven to run according to a fixed script. After training, evaluations are given based on simple result judgment rules such as whether a launch or a hit occurs.
[0004] However, this approach lacks an effective mechanism for integrating and utilizing the multi-dimensional process data generated during training. It is difficult to extract the strengths and weaknesses of the shooter's specific abilities during operation, and therefore cannot dynamically adjust the training difficulty to match individual skill levels based on the shooter's ability differences. Summary of the Invention
[0005] Therefore, the purpose of this invention is to provide a portable weapon simulation system and method based on YOLO and VLM, aiming to solve the problem in the prior art of lacking a portable weapon simulation method based on YOLO and VLM that can comprehensively evaluate shooters and adjust training difficulty accordingly.
[0006] A portable weapon simulation method based on YOLO and VLM according to an embodiment of the present invention, the method comprising: Based on the historical operational profiles of the trained shooters, the optimal combination of difficulty parameters is solved within a preset training difficulty parameter space using a Bayesian optimization algorithm to generate the current round of training subject configuration and execution. Based on video data during training, a structured detection result containing target category and motion state is determined by improving the YOLO detection model. The structured detection result and training data are then input into a visual big language model for situational reasoning, and the result containing recommended operation data is output. The shooter's actual operation data is compared with the recommended operation data to conduct a multi-dimensional evaluation and determine a comprehensive score. The historical operation profile is then updated based on the comprehensive score for the next round of simulation training.
[0007] Furthermore, the steps for generating and implementing this round of training subject configurations include: Load the historical operational profile of the trained shooter, which includes at least one of the following: historical training rounds, comprehensive scores for each round, acquisition time distribution, tracking accuracy curve, false alarm rate statistics, shooting timing error distribution, and trend changes of the most recent preset rounds; Using the historical operation profile as the prior input of the Gaussian process of the Bayesian optimization algorithm, and taking the expected error rate of the shooter falling into the preset optimal training range as the optimization objective, the optimal combination of difficulty parameters is iteratively searched within the preset training difficulty parameter space. The optimal combination of difficulty parameters obtained from the search is instantiated into a structured training subject configuration, which includes at least target type, target motion parameters and interference pattern; The training subject configuration is then sent to the simulator for execution.
[0008] Furthermore, the improved YOLO detection model includes a backbone network containing a VoVGSCSP module, a Neck network embedding an MCA module, and a bounding box regression module using the MPDIoU loss function. The steps for determining the structured detection results include: The video frames of the video data are input into the improved YOLO detection model to extract features from the video frames through the VoVGSCSP module, resulting in multi-level feature maps; The multi-scale channel response aggregation of the multi-level feature map is performed by the MCA module to obtain fused features; The bounding box regression module performs target localization and bounding box regression based on the fused features, determines each detection box and its confidence level, and judges the confidence level. When the confidence level is lower than a preset threshold, a multi-level back-off detection mechanism is triggered until a valid detection result is generated. Trajectory association and state estimation are performed on the detection results of consecutive frames to extract the target's category attributes and motion feature parameters, forming structured detection results.
[0009] Furthermore, the step of inputting the structured detection results and training process data into the visual large language model for situational reasoning, and outputting the reasoning results containing recommendation operation data, includes: The structured detection results collected during the current training round are combined with the training process data to form multimodal input data, which includes at least video situation snapshots, shooter operation logs, and equipment status data. Based on the target category and motion feature parameters in the structured detection results, semantic retrieval is performed in a preset knowledge base to obtain knowledge fragments related to the current situation as contextual information; The multimodal input data and the knowledge fragments are combined and then input into the visual big language model, so that the visual big language model performs situational reasoning on the input data and outputs a reasoning result including threat level, recommended firing timing, tactical reasoning chain and response strategy. The recommended action data includes at least the recommended firing timing.
[0010] Further steps in determining the comprehensive score include: After the current training round ends, the recommended shooting timing and the data of each time node recorded during the training process are obtained. The data of each time node includes at least the time when the target appears, the time when the shooter completes the first stable tracking, the time when the shooter actually fires, the shooter's aiming trajectory, and the target type corresponding to each locking operation. The recommended firing timing is compared with the shooter's actual firing time, and the firing timing error is calculated. The target acquisition time is calculated by comparing the time when the target appears with the time when the shooter completes the first stable tracking. The deviation between the shooter's aiming trajectory and the target's actual position in the structured detection results is calculated to obtain the tracking accuracy; The false alarm rate is calculated by comparing the number of times non-threat targets are locked in each locking operation with the total number of locking operations. The shooting timing error, target acquisition time, tracking accuracy, and false alarm rate are normalized and then weighted and summed according to preset weights to obtain a comprehensive score.
[0011] Furthermore, the multi-level fallback detection mechanism includes: If the highest confidence score of all detection boxes in the current frame is lower than the preset threshold, then a detection model with a larger number of parameters under the same architecture is called to perform supplementary detection on the current frame; If the confidence level is still lower than the preset threshold after the supplementary inspection, the current frame will be divided into overlapping sub-images for separate inspection and the inspection results will be merged. If no valid detection is generated after merging detection, the Kalman filter is invoked to perform kinematic prediction based on the established target trajectory to predict the position and maintain the target track without interruption until normal detection resumes in the next frame.
[0012] Furthermore, after the step of outputting the inference results containing the recommended operation data, the following steps are also included: The reasoning results are subjected to hard constraint verification by the rule engine. The hard constraints include at least weapon range constraints, firing range constraints, and minimum safe distance constraints. Fields that violate the hard constraints are forcibly corrected. The model self-evaluation confidence score attached to the reasoning result is filtered by a threshold. When the confidence score is lower than the preset threshold, it is marked as pending review and pushed to the coach terminal. The training mode is set to require coach review. In approval mode, all inference results must be confirmed by the coach. In automatic mode, only results with high threat level and confidence level below the preset high threshold must be confirmed by the coach.
[0013] Another object of the present invention is to provide a portable weapon simulation system based on YOLO and VLM, for implementing the aforementioned portable weapon simulation method based on YOLO and VLM, the system comprising: The training subject configuration module is used to solve the optimal combination of difficulty parameters in the preset training difficulty parameter space based on the historical operation profile of the trained shooter, using a Bayesian optimization algorithm, in order to generate the training subject configuration for this round and execute it. The inference module is used to determine the structured detection results containing target category and motion state based on the video data during the training process by improving the YOLO detection model. The structured detection results and training process data are input into the visual big language model for situational inference, and the inference results containing recommended operation data are output. The scoring module is used to compare the shooter's actual operation data with the recommended operation data to conduct a multi-dimensional evaluation and determine a comprehensive score, so as to update the historical operation profile based on the comprehensive score for the next round of simulation training.
[0014] Another objective of this invention is to provide a storage medium storing a computer program that, when executed by a processor, implements the steps of the aforementioned portable weapon simulation method based on YOLO and VLM.
[0015] Another objective of this invention is to provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the steps of the aforementioned portable weapon simulation method based on YOLO and VLM.
[0016] This invention uses the historical operational profile of the trained shooter as input to a Bayesian optimization algorithm. Within a preset training difficulty parameter space, it solves for the optimal combination of difficulty parameters to generate the training subjects for the current round. This allows the training difficulty to be dynamically adjusted individually based on the trainee's historical performance, avoiding the mismatch between traditional fixed-difficulty training and the trainee's abilities. An improved YOLO detection model is used to perform real-time target detection on the training process video data, obtaining structured detection results including target category and motion state. These structured detection results, along with the training process data, are input into a visual large language model for situational reasoning, outputting inference results containing recommended operational data. This achieves automated perception and understanding of the real-time situation of the training scenario. By comparing and evaluating the shooter's actual operational data with the aforementioned recommended operational data in multiple dimensions to determine a comprehensive score, and updating the historical operational profile based on this comprehensive score for the next round of training, the training system can continuously optimize subsequent training strategies based on the trainee's real-time performance. Therefore, this invention solves the problem in the prior art of lacking a portable weapon simulation method based on YOLO and VLM that comprehensively evaluates shooters and adjusts training difficulty accordingly. Attached Figure Description
[0017] Figure 1 This is a flowchart of a portable weapon simulation method based on YOLO and VLM in the first embodiment of the present invention; Figure 2 This is a schematic diagram of the structure of the portable weapon simulation system based on YOLO and VLM in the second embodiment of the present invention; Figure 3 This is a schematic diagram of the structure of the electronic device in the third embodiment of the present invention; Figure 4 This is an architecture diagram of the backbone network and feature fusion network of the improved YOLO detection model in the first embodiment of the present invention; Figure 5 This is an architecture diagram of the detection head, training loss, and output of the improved YOLO detection model in the first embodiment of the present invention. Figure 6 This is a schematic diagram of the MCA multi-scale channel attention module of the improved YOLO detection model in the first embodiment of the present invention; Figure 7 This is an architecture diagram corresponding to the multimodal input assembly and retrieval enhancement of the visual large language model in the first embodiment of the present invention; Figure 8 This is an architecture diagram corresponding to the situational reasoning and incremental fine-tuning of the visual large language model in the first embodiment of the present invention.
[0018] The following detailed description, in conjunction with the accompanying drawings, will further illustrate the present invention. Detailed Implementation
[0019] To facilitate understanding of the present invention, a more complete description will be given below with reference to the accompanying drawings. Several embodiments of the invention are illustrated in the drawings. However, the invention can be implemented in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
[0020] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. The term "and / or" as used herein includes any and all combinations of one or more of the associated listed items.
[0021] Example 1 Please see Figure 1 The figure shows a portable weapon simulation method based on YOLO and VLM in the first embodiment of the present invention. The method specifically includes steps S01-S03.
[0022] S01, based on the historical operation profile of the trained shooter, uses a Bayesian optimization algorithm to solve for the optimal combination of difficulty parameters in the preset training difficulty parameter space, so as to generate the configuration of the training subjects for this round and execute them.
[0023] In practice, by using the historical operational profiles of the trainees as prior inputs to the Bayesian optimization algorithm and iteratively searching for the optimal combination of difficulty parameters within a preset training difficulty parameter space, the generated training subjects can be dynamically and individually adapted based on the trainees' historical performance. This avoids the problem of fixed-difficulty training not matching the actual abilities of the shooters, thereby improving the relevance and efficiency of the training.
[0024] Specifically, the historical operational profile of the trained shooter is loaded, which includes at least one of the following: historical training rounds, comprehensive scores for each round, acquisition time distribution, tracking accuracy curve, false alarm rate statistics, shooting timing error distribution, and recent preset round trend changes. Using the historical operational profile as the Gaussian process prior input to the Bayesian optimization algorithm, and with the shooter's expected error rate falling within a preset optimal training range as the optimization objective, the algorithm iteratively searches for the optimal combination of difficulty parameters within a preset training difficulty parameter space. The optimal combination of difficulty parameters obtained is instantiated into a structured training subject configuration, which includes at least target type, target motion parameters, and interference patterns. The training subject configuration is then sent to the simulator for execution.
[0025] In practice, by constructing a Gaussian process prior distribution based on historical operation profiles and taking the expected error rate of the shooter falling into the preset optimal training range as the optimization goal, the system can automatically weigh the combined effect of various difficulty parameters in the multi-dimensional parameter space, so that the generated structured training subject configuration can both pose a moderate challenge to the shooter and not excessively exceed their ability boundaries, thereby achieving precise individualized matching of training difficulty.
[0026] S02, based on the video data during the training process, the YOLO detection model is improved to determine the structured detection results containing the target category and motion state. The structured detection results and the training process data are input into the visual big language model for situational reasoning, and the reasoning results containing recommended operation data are output.
[0027] As an example, and not a limitation, in some optional embodiments, after system startup, video streams of the shooter's field of vision and surrounding environment are simultaneously acquired via three high-definition cameras. The camera built into the eyepiece serves as the main path, acquiring video at a full frame rate of 1920×1080 resolution and 60fps (frames per second). The shoulder-mounted camera and the tripod camera serve as auxiliary paths, acquiring video at a frame-by-frame rate of 15fps. The timestamp synchronization accuracy of the three video streams is better than 1 millisecond. Since a single computing device cannot process three video streams simultaneously at 60fps, the system adopts a time-sharing polling and batch inference strategy. The main video stream is fed into the improved YOLO detection model at full frame rate for real-time inference, while the auxiliary video stream is supplemented for detection by frame-by-frame extraction. This satisfies the throughput requirements of real-time detection of the main path and supplementary detection of the auxiliary path on a single device.
[0028] Specifically, the improved YOLO detection model includes a backbone network containing a VoVGSCSP (Generalized Spatial Cross-Stage Partial Network) module, a Neck (feature fusion network) network embedding an MCA (Multi-scale Channel Attention) module, and an MPDIoU (Minimum Point Distance based Intersectionover Union) loss. The bounding box regression module of the loss function includes the following steps for determining the structured detection result: inputting video frames of the video data into the improved YOLO detection model to extract features from the video frames using the VoVGSCSP module to obtain multi-level feature maps; performing multi-scale channel response aggregation on the multi-level feature maps using the MCA module to obtain fused features; performing target localization and bounding box regression based on the fused features using the bounding box regression module to determine each detection box and its confidence level, and judging the confidence level; when the confidence level is lower than a preset threshold, triggering a multi-level backtracking detection mechanism until a valid detection result is generated; performing trajectory association and state estimation on the detection results of consecutive frames, extracting the target's category attributes and motion feature parameters to form a structured detection result.
[0029] For specific implementation details, please refer to [link / reference]. Figure 4 , Figure 4 This is an architecture diagram of the backbone network and feature fusion network of the improved YOLO detection model in this embodiment. The input video frame (1920×1080) is first processed by a basic convolutional module (3×3 convolution, ×2) to extract shallow features. Then, the VoVGSCSP module and the SCDown downsampling module (×2) are stacked alternately to extract multi-level feature maps. At the backbone end, the VoVGSCSP module and the PSA (Partial Self-Attention) attention module enhance global context awareness and output three-level features: P3, P4, and P5. The Neck (feature fusion network) part concatenates and fuses the same-level feature maps of the backbone network with the upsampled deep feature maps. Then, the features are reconstructed by the VoVGSCSP module and the MCA module performs multi-scale channel response aggregation, outputting three-scale feature layers: N3, N4, and N5, which serve as inputs for the small, medium, and large target detection branches, respectively. Among them, the VoVGSCSP module is used to enhance gradient flow and feature reuse while maintaining lightweight design, and the MCA module is used to enhance the multi-scale channel response of small military targets and long-range targets.
[0030] For further details, please refer to Figure 5 , Figure 5 This diagram illustrates the architecture of the improved YOLO detection model in this embodiment, including the detection head, training loss, and output. The N3, N4, and N5 feature layers are input to the corresponding v10Detect detection branches. These branches employ an NMS-free (Non-Maximum Suppression free) end-to-end detection paradigm, generating end-to-end detection outputs through a one-to-one allocation. The outputs include a structured target state vector containing category, bounding box, confidence score, and motion vector. During training, the P5 branch merges with the C2fCIB (Compact Inverted Bottleneck) output. All detection branches share the same training loss. Bounding box regression uses MPDIoU loss (replacing CIoU loss) to improve localization accuracy, while classification uses BCE (Binary Cross Entropy) loss to improve category recognition accuracy. The dashed paths in the diagram represent bypass paths enabled only during training and skipped during inference, ensuring real-time end-to-end inference.
[0031] In addition, please see Figure 6 , Figure 6 This is a schematic diagram of the MCA module of the improved YOLO detection model in this embodiment. The input feature map (H×W×C) first enters three parallel convolutional branches (1×1 Conv, 3×3 Conv with dilation=1, and 3×3 Conv with dilation=2) to obtain multi-scale features and concatenate them, then fuse them through 1×1 convolution. The fused features enter the channel attention branch, where global average pooling (GAP) and global max pooling (GMP) are performed in parallel. Channel weights are learned through a shared MLP (Multi-Layer Perceptron), and channel recalibration is performed after passing through a Sigmoid activation function to enhance the channel response of small military targets. On the other hand, the residual of the original input feature map is added to the output to ensure gradient propagation and feature reuse.
[0032] In practical implementation, the improved detection model significantly improves the detection accuracy and positioning precision of military targets while maintaining real-time inference speed. This is achieved by enhancing gradient flow and feature reuse with the VoVGSCSP module, strengthening multi-scale channel response aggregation for small and distant targets with the MCA module, and optimizing bounding box regression accuracy with the MPDIoU loss function. The output of structured detection results provides standardized target state input for subsequent situational inference, while trajectory association and state estimation ensure the continuity and stability of target motion parameters.
[0033] Furthermore, the structured detection results collected during the current training round are combined with the training process data to form multimodal input data. The training process data includes at least video situation snapshots, shooter operation logs, and equipment status data. Based on the target category and motion feature parameters in the structured detection results, semantic retrieval is performed in a preset knowledge base to obtain knowledge fragments related to the current situation as contextual information. The multimodal input data and the knowledge fragments are then combined and input into a visual large language model, so that the visual large language model performs situational reasoning on the input data and outputs a reasoning result including threat level, recommended firing timing, tactical reasoning chain, and response strategy. The recommended operation data includes at least the recommended firing timing.
[0034] In practice, by combining structured detection results with video situation snapshots, shooter operation logs, and equipment status data into multimodal inputs, and by introducing a retrieval enhancement generation mechanism to inject domain tactical knowledge fragments as context, the visual big language model can perform deep situational reasoning in specific weapon training contexts. This elevates pure visual perception into interpretable tactical suggestions that include threat levels and recommended firing times, providing shooters with reasonable and comprehensive evaluation criteria for real-time operations.
[0035] For more details, please see Figure 7 , Figure 7This is the architecture diagram corresponding to the multimodal input assembly and retrieval enhancement of the visual big language model in this embodiment. The trained video frames are input into the visual encoder ViT (VisionTransformer) to extract visual features, which are then projected into visual tokens by the visual projector MLP. YOLO structured detection results and task instructions (Prompts) are input into the Prompt template assembly module. Simultaneously, based on the YOLO structured detection results, semantic retrieval is performed in the RAG (Retrieval-Augmented Generation) knowledge base. A Top-k (k=3) retrieval is performed using the FAISS (Vector Similarity Retrieval Index) vector index to obtain tactical knowledge fragments related to the current situation. These fragments, along with the task instructions (Prompt), are then assembled into text tokens using the Prompt template. The visual tokens and text tokens are combined and input into the visual big language model, enabling the model to perform situational reasoning by incorporating domain tactical knowledge.
[0036] For further details, please refer to Figure 8 , Figure 8 This is the architecture diagram corresponding to the situational reasoning and incremental fine-tuning of the visual large language model in this embodiment. Visual tokens and text tokens are input into the large language model backbone, which consists of multiple layers of Transformers (layers 1 to 3), for reasoning. Each Transformer layer remains frozen (without updating parameters). Domain knowledge is learned in a way that minimizes the number of trainable parameters by injecting a LoRA (Low-Rank Adaptation) adapter (rank=16, alpha=32) through a side path. The model outputs situational understanding results including threat level, recommended firing timing (recommended firing window), tactical reasoning chain, and response strategy, and generates personalized training comments for the trainee shooter. During the training phase, when the coach corrects the label to the trigger condition (P≥0.5 or N≥5 rounds), incremental fine-tuning is performed on the LoRA adapter, and the correction information is fed back to the inference process through the dashed loop, realizing the continuous evolution of the visual large language model's capabilities.
[0037] In addition, the multi-level backtracking detection mechanism includes: if the highest confidence of all detection boxes in the current frame is lower than a preset threshold, then a detection model with a larger number of parameters under the same architecture is called to perform supplementary detection on the current frame; if the confidence is still lower than the preset threshold after supplementary detection, then the current frame is divided into overlapping sub-images for separate detection and the detection results are merged; if no effective detection is generated after merging detection, then a Kalman filter is called to perform kinematic prediction based on the established target motion trajectory to predict the position and maintain the target trajectory without interruption until normal detection resumes in the next frame.
[0038] In practical implementation, when the detection confidence of the current frame is lower than the preset threshold, the system sequentially calls a model with a larger number of parameters of the same architecture for supplementary detection, performs slicing of video frames to assist in reasoning, and calls a Kalman filter for kinematic prediction. Through a progressive detection strategy, a balance is achieved between computational overhead and detection robustness, effectively addressing the problem of missed detection caused by target occlusion, long-distance small targets, and low signal-to-noise ratio in complex battlefield environments, and ensuring the continuity of target tracks.
[0039] Furthermore, after the step of outputting the inference results containing recommended operation data, the process further includes: performing hard constraint verification on the inference results through a rule engine, wherein the hard constraints include at least weapon range constraints, firing range constraints, and minimum safe distance constraints, and forcibly correcting fields that violate the hard constraints; performing threshold filtering on the model self-evaluation confidence level attached to the inference results, marking it as pending review and pushing it to the instructor's terminal when the confidence level is lower than a preset threshold; and performing instructor review according to the training mode settings, wherein in approval mode all inference results must be confirmed by the instructor, and in automatic mode only results with high threat level and confidence level lower than a preset high threshold must be confirmed by the instructor.
[0040] In practice, the rule engine performs mandatory verification of hard constraints such as weapon range, firing arc and minimum safe distance, threshold filtering of model self-evaluation confidence, and coach review based on training mode. This constrains the reasoning results of the visual big language model from three aspects: physical safety boundary, output reliability and human decision-making power, preventing model illusion or reasoning bias from causing erroneous tactical suggestions to directly enter the training execution stage.
[0041] S03, compare the shooter's actual operation data with the recommended operation data to conduct a multi-dimensional evaluation to determine a comprehensive score, and update the historical operation profile based on the comprehensive score for the next round of simulation training.
[0042] Specifically, after the current training round ends, the recommended firing timing and data recorded at each time point during the training process are acquired. Each time point data includes at least the target appearance time, the time the shooter completes the first stable tracking, the shooter's actual firing time, the shooter's aiming trajectory, and the target type corresponding to each lock-on operation. The recommended firing timing is compared with the shooter's actual firing time to calculate the firing timing error. The target appearance time is compared with the time the shooter completes the first stable tracking to calculate the target acquisition time. The deviation between the shooter's aiming trajectory and the target's true position in the structured detection results is calculated to obtain the tracking accuracy. The ratio of the number of locks on non-threat targets to the total number of locks in each lock-on operation is calculated to obtain the false alarm rate. The firing timing error, target acquisition time, tracking accuracy, and false alarm rate are normalized and then weighted and summed according to preset weights to obtain a comprehensive score.
[0043] In practice, by normalizing multiple indicators such as shooting timing error, target acquisition time, tracking accuracy, and false alarm rate, and then weighting and summing them according to preset weights to obtain a comprehensive score, the system can uniformly quantify the operational performance of different dimensions and scales. This provides a standardized basis for objective comparison and profile updating of shooters' abilities, thereby enabling multi-dimensional and comprehensive quantification of the shooter's operational quality and replacing the traditional binary result judgment.
[0044] In addition, after obtaining the comprehensive score, the system performs an evaluation result determination: if the comprehensive score is greater than or equal to the preset pass threshold, the training round is deemed passed; if the comprehensive score is lower than the preset pass threshold, it is deemed failed and a retraining mechanism is triggered. The system automatically reduces the difficulty of the current training subject by one level. In the air defense scenario, the target distance and speed are reduced by a preset value; in the anti-tank scenario, the target distance and terrain complexity are reduced by one level. After parameter adjustment, the system clamps the training subject to the boundary of the preset training difficulty parameter space and re-executes the training round. The retraining mechanism can be executed a maximum of a preset number of times. If the comprehensive score is still lower than the preset pass threshold after the preset number of retraining attempts, it is marked as requiring manual intervention and the instructor is notified.
[0045] In practice, when the overall score is lower than the preset pass threshold, the system automatically reduces the difficulty of the current training subject by one level and re-executes the subject in this round. By dynamically adjusting the difficulty, the shooter is always kept within the training range that is within their ability, thus maintaining the effectiveness and enthusiasm of the training. The preset limit on the number of make-up training sessions and the manual intervention mark prevent infinite loop make-up training.
[0046] Specifically, after the completion of this round of training evaluation, the system will assemble the comprehensive score, quantitative evaluation indicators of each dimension, parameters of this round of training subjects and the shooter's operation timeline into a structured report framework, and input the key data of this round of training into the visual big language model to generate personalized text comments and improvement suggestions for the trainee shooter. Subsequently, a formatted training report will be generated and automatically archived into the shooter's personal training file, and pushed to the coach's terminal for review.
[0047] In practice, by inputting structured assessment data into a visual big language model to generate personalized text comments, the system overlays targeted comments that mimic the tone of a senior coach on top of objective quantitative indicators. This allows shooters to clearly identify their weaknesses and areas for improvement, while coaches can grasp the trainees' detailed performance without having to manually write comments, significantly improving the efficiency and relevance of training management.
[0048] In addition, the system continuously collects multi-dimensional data generated during training to drive model self-evolution. Specifically, this includes three parallel feedback channels: the first channel is the incremental fine-tuning channel for the detection model. When the accumulated detection box annotation data reaches the first preset threshold or a preset number of training rounds are completed, incremental fine-tuning is performed on the trained model weights with a learning rate that decays to a preset proportion of the initial value. The second channel is the incremental fine-tuning channel for the visual large language model. When the accumulated situational inference correction labels reach the second preset threshold or a preset number of training rounds are completed, LoRA (Low-Rank Adaptation) lightweight incremental fine-tuning is performed. The third channel is the Bayesian prior update channel. After each round of training, the paired data points of the difficulty parameter and the shooter error rate are added to the observation set to update the Gaussian process prior distribution. Each model update saves a version snapshot. If the performance of the model on the validation set drops by more than a preset proportion after the update, it is automatically rolled back to the previous version to ensure that the system capability monotonically increases.
[0049] In practice, by performing incremental fine-tuning of the detection model, LoRA lightweight incremental fine-tuning of the visual large language model, and Bayesian prior distribution updates in parallel, the system can use the data experience accumulated during training to drive the co-evolution of perception, understanding, and decision-making capabilities. Meanwhile, the version snapshot and automatic rollback mechanism ensure that model updates do not lead to system performance degradation, thereby achieving continuous optimization of training results and improvement of system capabilities.
[0050] Furthermore, it should be noted that the technical solution of the present invention is weapon type independent. The core algorithm framework of the system can be adapted to different types of portable weapon training scenarios by changing configurable components. The configurable components include at least: the detection category of the target detection model, the domain knowledge document of the preset knowledge base, the prompt word template of the visual large language model, the adjustment dimension of the preset training difficulty parameter space, and the index weight of multi-dimensional evaluation. Under the same core algorithm framework, the detection category can be configured as an air target and the knowledge base can be switched to air defense tactical regulations to adapt to the portable air defense missile training scenario, or the detection category can be configured as a ground armored target and the knowledge base can be switched to anti-tank tactical regulations to adapt to the portable anti-tank weapon training scenario.
[0051] In summary, this invention uses the historical operational profile of the trained shooter as input to a Bayesian optimization algorithm to solve for the optimal combination of difficulty parameters within a preset training difficulty parameter space, generating the training subjects for the current round. This allows the training difficulty to be dynamically adjusted individually based on the trainee's historical performance, avoiding the problem of mismatch between traditional fixed-difficulty training and the trainee's ability. By employing an improved YOLO detection model to perform real-time target detection on the training process video data, a structured detection result containing target category and motion state is obtained. This structured detection result, along with the training process data, is input into a visual large language model for situational reasoning, outputting a reasoning result containing recommended operational data. This achieves automated perception and understanding of the real-time situation of the training scenario. By comparing and evaluating the shooter's actual operational data with the aforementioned recommended operational data in multiple dimensions to determine a comprehensive score, and updating the historical operational profile based on this comprehensive score for the next round of training, the training system can continuously optimize subsequent training strategies based on the trainee's real-time performance. Therefore, this invention solves the problem in the prior art of lacking a portable weapon simulation method based on YOLO and VLM that comprehensively evaluates shooters and adjusts training difficulty accordingly.
[0052] Example 2 Please see Figure 2 The diagram shows a structural block diagram of a portable weapon simulation system based on YOLO and VLM proposed in the second embodiment of the present invention. This portable weapon simulation system 200 based on YOLO and VLM includes: a training subject configuration module 21, a reasoning module 22, and a scoring module 23, wherein: The training subject configuration module 21 is used to solve the optimal combination of difficulty parameters in the preset training difficulty parameter space based on the historical operation profile of the trained shooter, using a Bayesian optimization algorithm, to generate the training subject configuration for this round and send it out for execution. Inference module 22 is used to determine the structured detection results containing target category and motion state based on the video data during the training process by improving the YOLO detection model, input the structured detection results and training process data into the visual big language model for situational reasoning, and output the reasoning results containing recommended operation data. The scoring module 23 is used to compare the shooter's actual operation data with the recommended operation data to perform multi-dimensional evaluation and determine a comprehensive score, so as to update the historical operation profile based on the comprehensive score for the next round of training.
[0053] Example 3 In another aspect, the present invention also proposes an electronic device, please refer to [link to relevant documentation]. Figure 3The diagram shows an electronic device according to the third embodiment of the present invention, including a memory 20, a processor 10, and a computer program 30 stored in the memory and executable on the processor. When the processor 10 executes the computer program 30, it implements a portable weapon simulation method based on YOLO and VLM as described above.
[0054] In some embodiments, the processor 10 may be a central processing unit (CPU), controller, microcontroller, microprocessor or other data processing chip, used to run program code stored in memory 20 or process data, such as executing access restriction programs.
[0055] The memory 20 includes at least one type of readable storage medium, such as flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 20 can be an internal storage unit of an electronic device, such as the hard disk of the electronic device. In other embodiments, the memory 20 can also be an external storage device of the electronic device, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc. Furthermore, the memory 20 can include both internal and external storage units of the electronic device. The memory 20 can be used not only to store application software and various types of data of the electronic device, but also to temporarily store data that has been output or will be output.
[0056] It should be pointed out that, Figure 3 The structure shown does not constitute a limitation on the electronic device. In other embodiments, the electronic device may include fewer or more components than shown, or combine certain components, or have different component arrangements.
[0057] This invention also proposes a computer-readable storage medium storing a computer program that, when executed by a processor, implements the portable weapon simulation method based on YOLO and VLM as described above.
[0058] Those skilled in the art will understand that the logic and / or steps represented in the flowcharts or otherwise described herein, for example, can be considered as a ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can mean any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device.
[0059] More specific examples of computer-readable media (a non-exhaustive list) include: electrical connections (electronic devices) having one or more wires, portable computer disk drives (magnetic devices), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Furthermore, computer-readable media can even be paper or other suitable media on which the program can be printed, because the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in computer memory.
[0060] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0061] In the description of this specification, references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0062] The above embodiments merely illustrate several implementation methods of the present invention, and their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of the present invention. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these all fall within the protection scope of the present invention. Therefore, the protection scope of this patent should be determined by the appended claims.
Claims
1. A portable weapon simulation method based on YOLO and VLM, characterized in that, The method includes: Based on the historical operational profiles of the trained shooters, the optimal combination of difficulty parameters is solved within a preset training difficulty parameter space using a Bayesian optimization algorithm to generate the current round of training subject configuration and execution. Based on video data during training, a structured detection result containing target category and motion state is determined by improving the YOLO detection model. The structured detection result and training data are then input into a visual big language model for situational reasoning, and the result containing recommended operation data is output. The shooter's actual operation data is compared with the recommended operation data to conduct a multi-dimensional evaluation and determine a comprehensive score. The historical operation profile is then updated based on the comprehensive score for the next round of simulation training.
2. The portable weapon simulation method based on YOLO and VLM according to claim 1, characterized in that, The steps for generating and implementing this round of training subject configurations include: Load the historical operational profile of the trained shooter, which includes at least one of the following: historical training rounds, comprehensive scores for each round, acquisition time distribution, tracking accuracy curve, false alarm rate statistics, shooting timing error distribution, and trend changes of the most recent preset rounds; Using the historical operation profile as the prior input of the Gaussian process of the Bayesian optimization algorithm, and taking the expected error rate of the shooter falling into the preset optimal training range as the optimization objective, the optimal combination of difficulty parameters is iteratively searched within the preset training difficulty parameter space. The optimal combination of difficulty parameters obtained from the search is instantiated into a structured training subject configuration, which includes at least target type, target motion parameters and interference pattern; The training subject configuration is then sent to the simulator for execution.
3. The portable weapon simulation method based on YOLO and VLM according to claim 2, characterized in that, The improved YOLO detection model includes a backbone network containing a VoVGSCSP module, a Neck network embedding an MCA module, and a bounding box regression module using the MPDIoU loss function. The steps for determining the structured detection results include: The video frames of the video data are input into the improved YOLO detection model to extract features from the video frames through the VoVGSCSP module, resulting in multi-level feature maps; The multi-scale channel response aggregation of the multi-level feature map is performed by the MCA module to obtain fused features; The bounding box regression module performs target localization and bounding box regression based on the fused features, determines each detection box and its confidence level, and judges the confidence level. When the confidence level is lower than a preset threshold, a multi-level backtracking detection mechanism is triggered until a valid detection result is generated. Trajectory association and state estimation are performed on the detection results of consecutive frames to extract the target's category attributes and motion feature parameters, forming structured detection results.
4. The portable weapon simulation method based on YOLO and VLM according to claim 3, characterized in that, The steps of inputting the structured detection results and training process data into the visual large language model for situational reasoning, and outputting the reasoning results containing recommendation operation data, include: The structured detection results collected during the current training round are combined with the training process data to form multimodal input data, which includes at least video situation snapshots, shooter operation logs, and equipment status data. Based on the target category and motion feature parameters in the structured detection results, semantic retrieval is performed in a preset knowledge base to obtain knowledge fragments related to the current situation as contextual information; The multimodal input data and the knowledge fragments are combined and then input into the visual big language model, so that the visual big language model performs situational reasoning on the input data and outputs a reasoning result including threat level, recommended firing timing, tactical reasoning chain and response strategy. The recommended action data includes at least the recommended firing timing.
5. A portable weapon simulation method based on YOLO and VLM according to claim 4, characterized in that, The steps for determining the overall score include: After the current training round ends, obtain the recommended shooting opportunity, as well as the target appearance time, the time when the shooter completes the first stable tracking, the actual shooting time, the shooter's aiming trajectory, and the target type corresponding to each locking operation recorded during the training process; The recommended firing timing is compared with the shooter's actual firing time, and the firing timing error is calculated. The target acquisition time is calculated by comparing the time when the target appears with the time when the shooter completes the first stable tracking. The deviation between the shooter's aiming trajectory and the target's actual position in the structured detection results is calculated to obtain the tracking accuracy; The false alarm rate is calculated by comparing the number of times non-threat targets are locked in each locking operation with the total number of locking operations. The shooting timing error, target acquisition time, tracking accuracy, and false alarm rate are normalized and then weighted and summed according to preset weights to obtain a comprehensive score.
6. The portable weapon simulation method based on YOLO and VLM according to claim 5, characterized in that, The multi-level rollback detection mechanism includes: If the highest confidence score of all detection boxes in the current frame is lower than the preset threshold, then a detection model with a larger number of parameters under the same architecture is called to perform supplementary detection on the current frame; If the confidence level is still lower than the preset threshold after the supplementary inspection, the current frame will be divided into overlapping sub-images for separate inspection and the inspection results will be merged. If no valid detection is generated after merging detection, the Kalman filter is invoked to perform kinematic prediction based on the established target trajectory to predict the position and maintain the target track without interruption until normal detection resumes in the next frame.
7. A portable weapon simulation method based on YOLO and VLM according to claim 6, characterized in that, After the step of outputting the inference results containing the recommended operation data, the following steps are also included: The reasoning results are subjected to hard constraint verification by the rule engine. The hard constraints include at least weapon range constraints, firing range constraints, and minimum safe distance constraints. Fields that violate the hard constraints are forcibly corrected. The model self-evaluation confidence score attached to the reasoning result is filtered by a threshold. When the confidence score is lower than the preset threshold, it is marked as pending review and pushed to the coach terminal. The training mode is set to require coach review. In approval mode, all inference results must be confirmed by the coach. In automatic mode, only results with high threat level and confidence level below the preset high threshold must be confirmed by the coach.
8. A portable weapon simulation system based on YOLO and VLM, characterized in that, The system for implementing the portable weapon simulation method based on YOLO and VLM as described in any one of claims 1 to 7, the system comprising: The training subject configuration module is used to solve the optimal combination of difficulty parameters in the preset training difficulty parameter space based on the historical operation profile of the trained shooter, using a Bayesian optimization algorithm, in order to generate the training subject configuration for this round and execute it. The inference module is used to determine the structured detection results containing target category and motion state based on the video data during the training process by improving the YOLO detection model. The structured detection results and training process data are input into the visual big language model for situational inference, and the inference results containing recommended operation data are output. The scoring module is used to compare the shooter's actual operation data with the recommended operation data to conduct a multi-dimensional evaluation and determine a comprehensive score, so as to update the historical operation profile based on the comprehensive score for the next round of simulation training.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the steps of a portable weapon simulation method based on YOLO and VLM as described in any one of claims 1 to 7.
10. An electronic device, characterized in that, It includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement a portable weapon simulation method based on YOLO and VLM as described in any one of claims 1 to 7.
