A closed-loop quality control generative data augmentation method for mine conveyor belt foreign matter detection

By employing a closed-loop quality control generative data augmentation method in foreign object detection on mine conveyor belts, problems such as insufficient samples and label drift after generation are solved, improving the quality of generated samples and detection results. This method is suitable for foreign object detection on mine conveyor belts.

CN123181402APending Publication Date: 2026-11-27BEIHANG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Foreign object detection in mine conveyor belts suffers from problems such as insufficient samples, label drift after generation, background destruction, and negative class transfer, which existing diffusion-based image generation methods struggle to effectively address.

Method used

A closed-loop quality control generative data augmentation method is adopted. The target bounding box before generation is used as a spatial anchor point. The local processing area is cropped and scaled to redraw the foreign object area and reconstruct the lighting conditions. Combined with candidate mask scoring and geometric consistency gating, partition quality feedback and category-level sample selection, a data dependency closed loop of generation, verification, screening and training is formed.

Benefits of technology

It increases the relative pixel proportion of small-scale foreign objects in the diffusion model input, maintains consistency between the generated results and the source image, reduces background destruction and negative class transfer, generates higher quality samples, and improves the accuracy and recall of object detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123181402A_ABST
    Figure CN123181402A_ABST
Patent Text Reader

Abstract

The application discloses a closed-loop quality control generative data enhancement method for mine conveyor belt foreign matter detection. The method takes the target bounding box before generation as a spatial anchor point, determines and crops a local processing area according to the target scale, and scales the local processing area to the input size of the diffusion model to improve the relative pixel proportion of the foreign matter. A mask-constrained latent space diffusion model is used to sequentially complete foreign matter area redrawing and low denoising intensity light condition reconstruction. Label refinement and geometric consistency gating are performed according to the intersection over union, area ratio, mask quality and center offset of the candidate mask and the spatial anchor point. The target neighborhood background difference and the target area texture-structure effectiveness are calculated respectively to form a quality-controlled generated sample pool. The sample pool and the selected number are determined according to the foreign matter category evaluation result. The application forms a data-dependent closed loop through local generation, label refinement, quality feedback and sample selection, and can reduce the risks of small-scale target detail loss, label drift, background damage and negative transfer of categories.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the fields of computer vision, industrial image processing and target detection technology, and specifically relates to a closed-loop quality control generative data augmentation method for foreign object detection in mine conveyor belts. Background Technology

[0002] Mine conveyor belts are responsible for the continuous transport of materials such as coal and ore. If metal components, tools, packaging materials, and other debris get mixed into the conveyor belt, it can cause damage, blockages, or equipment downtime. Therefore, using monitoring images to automatically detect foreign objects on the conveyor belt is of practical significance for ensuring the stable operation of the mine transportation system.

[0003] Deep learning-based object detection methods typically require large-scale, well-distributed, and accurately labeled training data. However, foreign objects appear infrequently in mines, image acquisition and manual annotation are costly, and the number of samples varies significantly across different object categories. Furthermore, foreign objects often occupy a small portion of the monitoring footage and are affected by low light, blurriness, coal dust, and complex conveyor belt textures, resulting in a limited number of effective training samples.

[0004] Traditional data augmentation expands the training set through low-level image transformations such as brightness, contrast, color, blur, and noise, which is relatively simple but struggles to generate new object appearances and contextual combinations. Diffusion-based image generation models, on the other hand, can reconstruct local image content based on source images, masks, and textual cues, providing a new technical approach for data augmentation in industrial object detection.

[0005] However, directly applying the diffusion-based image generation method to foreign object detection on mine conveyor belts still presents the following problems: First, the relative pixel proportion of foreign objects in the overall diffusion input image is low, and latent space encoding can easily lead to the loss of contour and texture details; Second, the generation process may change the contour and size of the foreign objects, causing the bounding box labels before generation to no longer align with the generated result; Third, the generation process may destroy the belt background outside the mask, and calculating the overall image difference alone is insufficient to distinguish between the target area that is allowed to change and the background area that should remain stable; Fourth, different foreign object categories have different sensitivities to generation perturbations, and using a uniform sample pool and a uniform selection number may cause negative class transfer.

[0006] The aforementioned problems exhibit a dependency between preceding and following data. The target scale determines the local generation region, the generation result determines the label refinement result, the refinement result in turn determines the quality assessment range of the target and background regions, and the quality assessment result ultimately affects the selection of samples for different categories. Therefore, a generative data augmentation method is needed that unifies scale-aware generation, label refinement, partitioned quality feedback, and category-level sample selection. Summary of the Invention

[0007] In view of this, this invention proposes a closed-loop quality control generative data augmentation method for foreign object detection in mine conveyor belts. This method uses the target bounding box before generation as the spatial anchor point throughout each processing stage. First, it clips the local processing area around the target bounding box and scales the local processing area to the input size of the diffusion model, increasing the relative pixel proportion of the foreign object in the diffusion model input. Then, it performs candidate mask scoring and geometric consistency gating on the generated results. Next, it performs partitioning quality feedback on the target and background areas based on the refinement results. Finally, it selects the sample pool and sample quantity according to the foreign object category, thus forming a data dependency closed loop between generation, verification, screening, and training.

[0008] A generative data augmentation method for closed-loop quality control of foreign object detection in mine conveyor belts includes the following steps:

[0009] Step S1: Obtain the original training set consisting of images of the mine conveyor belt, and construct the generation task based on the foreign object category labels, target bounding box labels and text prompts in the original images;

[0010] Step S2: Determine the local processing region containing the target and its surrounding conveyor belt context based on the scale and position of the target bounding box before generation. Crop and scale the local processing region to the input size of the diffusion model. Construct an extended generation mask within the local processing region. Perform mask-constrained foreign object region redrawing and lighting condition reconstruction in sequence. Smoothly fuse the local generation results into the source image to obtain the generated image.

[0011] Step S3: Use the generated target bounding box as a spatial anchor point to input the cue-based image segmentation model to obtain candidate segmentation masks; select candidate segmentation masks based on the geometric information and mask quality information of the candidate segmentation masks, and update or back up the generated image target detection labels through geometric consistency gating;

[0012] Step S4: Determine the target neighborhood based on the spatial anchor point or the candidate segmentation mask with geometric consistency gating; calculate the background difference outside the target neighborhood and the texture-structure effectiveness within the target area respectively to obtain the quality score of the generated sample and form a quality-controlled generated sample pool;

[0013] Step S5: Group the generated samples according to the foreign object category, determine the generated sample pool and selection quantity for each foreign object category based on the classification evaluation results, and merge the selected generated samples with the original training set to form an enhanced training set.

[0014] Furthermore, the local processing region mentioned in step S2 is a square region centered on the center of the target bounding box before generation, and its size is determined according to the width, height, preset region expansion coefficient, and preset minimum processing size of the target bounding box. When the local processing region exceeds the boundary of the source image, it is translated into the range of the source image while keeping the local processing size unchanged; the cropped local processing region is scaled to the input size of the diffusion model, thereby increasing the pixel ratio of the target relative to the input region.

[0015] Furthermore, the foreign object region redrawing and lighting condition reconstruction described in step S2 adopts a two-stage processing method with a shared latent space diffusion backbone. The first stage redraws the foreign object region under the constraints of foreign object category text prompts and extended generation masks; the second stage constructs lighting conditions based on the brightness, contrast, and main light direction of the background outside the target neighborhood, and reconstructs the lighting conditions based on the results of the first stage with a lower noise reduction intensity.

[0016] Furthermore, in step S3, the intersection-union ratio (IUR) of the candidate segmentation mask's bounding box and spatial anchor point, along with the mask quality information of the candidate segmentation mask, are used as positive evaluation terms. Area ratio deviation and center point offset are used as penalty terms, and the candidate segmentation mask with the highest comprehensive score is selected. The geometric consistency gating determines whether to update the target detection label based on the IUR and area ratio of the candidate bounding box and spatial anchor point.

[0017] Furthermore, the quality-controlled sample pool mentioned in step S4 includes a hard-screened sample pool and a soft-screened sample pool. Hard screening retains generated samples whose background difference is not greater than a preset threshold, whose target region texture-structure validity is not less than a preset threshold, and which pass geometric consistency gating; when the number of hard-screened samples is lower than a preset lower limit, the screening threshold is relaxed to form a soft-screened candidate set, which is filled in according to the quality score of the generated samples from high to low.

[0018] Furthermore, in step S5, candidate enhancement training sets are constructed using different candidate generation sample pools and candidate selection numbers, and the same target detection model and training parameters are used to obtain classification evaluation results. The optimal generation sample pool and selection number are selected for each foreign object category.

[0019] The beneficial effects of this invention are as follows: Addressing the problems of insufficient foreign object samples in mine conveyor belts, post-generation label drift, background destruction, and negative category transfer, this invention proposes a closed-loop quality control generative data augmentation method. First, a local processing area is determined based on the target scale, and the relative pixel proportion of foreign objects in the diffusion model input is increased through cropping and scaling, reducing the risk of detail loss during latent space encoding of small-scale foreign objects. Simultaneously, two-stage diffusion processing is used to redraw the foreign object region and reconstruct lighting conditions. Second, the pre-generation target bounding box is used to uniformly constrain the generation region, segmentation hints, and background exclusion region, ensuring spatial consistency between generation, label refinement, and quality evaluation. Then, multi-factor candidate mask scoring and geometric consistency gating prevent abnormal labels from propagating to subsequent stages. Furthermore, background differences outside the target neighborhood are combined with the texture, edge, and mask morphology information of the target region to reduce the probability of background destruction and noise artifacts entering the training set. Finally, the sample source and selection quantity for different categories are determined based on the classification evaluation results, reducing the negative transfer caused by generation perturbations to different foreign object categories. Attached Figure Description

[0020] Figure 1 This is the overall flowchart of the closed-loop quality control generative data augmentation method of the present invention;

[0021] Figure 2 This is a schematic diagram of the scale-aware local generation, illumination condition reconstruction, and same-size mapping fusion process of the present invention.

[0022] Figure 3 This is a schematic diagram of the candidate mask scoring, label refinement, and geometric consistency gating process of the present invention;

[0023] Figure 4 This is a schematic diagram of the partition quality feedback and category-level sample selection process of the present invention;

[0024] Figure 5 This is a schematic diagram of the two-stage foreign object redrawing and lighting condition reconstruction process based on the latent space diffusion model of the present invention.

[0025] Figure 6 This is a diagram illustrating the dual-stage generation effect of foreign objects in a mine conveyor belt according to the present invention. Figure 6 (a) to Figure 6 (c) The images shown are, in order, the original mine image of the steel pipe foreign object, the result of partial redrawing, and the result of lighting condition reconstruction. Figure 6 (d) to Figure 6 (f) shows the original mine image with the rock foreign object, the result of partial redrawing, and the result of lighting condition reconstruction, in sequence. Detailed Implementation

[0026] To more clearly illustrate the intended objectives, technical means, and effects of the present invention, the embodiments of the present invention will be described in detail below with reference to the accompanying drawings and specific examples.

[0027] It should be noted that, unless otherwise specified, all technical and scientific terms used in this invention have the same common meaning in the technical field to which this invention pertains. Experimental conditions not specifically mentioned in the following embodiments can be achieved using conventional techniques in the field. It should be understood that the described embodiments are only some examples of the present invention, and not all examples. Other embodiments obtained by those skilled in the art based on these embodiments without creative effort are all within the protection scope of this invention.

[0028] Example 1

[0029] To address issues such as insufficient foreign object samples in mine conveyor belts, loss of detail during local generation, label drift after generation, background distortion, and negative class transfer, this invention proposes a closed-loop quality control generative data augmentation method for foreign object detection in mine conveyor belts. The basic process of this method includes task construction, scale-aware two-stage local generation, label refinement and geometric gating, partitioned quality feedback, and class-level sample selection, such as... Figure 1 As shown. The specific steps of this closed-loop quality control generative data augmentation method are as follows:

[0030] Step S1: Obtain the original training set, construct the generation task based on the original image and its object detection label, and record the target bounding box, foreign object category and image label before generation.

[0031] Step S1.1: Represent the original training set as follows:

[0032]

[0033] In the formula, Indicates the first Image of a mine conveyor belt. This represents the corresponding set of target detection labels. This indicates the number of images in the original training set. The set of labels for each image is represented as follows:

[0034]

[0035] In the formula, Representing an image The target quantity, Indicates the first The categories of targets, This represents the corresponding target bounding box. For labels stored in YOLO format, the normalized center coordinates, width, and height are converted into bounding boxes in the source image coordinate system. ,in and These represent the x and y coordinates of the top-left corner of the target bounding box in the source image coordinate system, respectively. and These represent the x and y coordinates of the bottom right corner of the target bounding box in the source image coordinate system, respectively, and record the width of the source image. and height .

[0036] Step S1.2: Construct text prompts based on the foreign object target to be enhanced. The text prompts must contain at least the target semantics of the foreign object to be generated and the semantics of the mine conveyor belt scene, such as "steel pipe foreign object on the mine conveyor belt" or "stone foreign object on the mine conveyor belt." These text prompts are used to constrain the semantic appearance of the generated target and do not limit the fixed category system of the original dataset.

[0037] Step S1.3: Establish a generation task record for each target to be enhanced. The generation task record includes at least the source image path, source label path, foreign object category, and target bounding box before generation. Text prompts Output name and random seed. Generate target bounding box before generation. As a spatial anchor point, it is used in subsequent steps to calculate the local processing area, construct the generated mask, form prompt-style segmentation prompts, match the labels to be updated, and divide the background exclusion area.

[0038] Step S2: Determine the local processing area based on the scale of the target bounding box before generation, crop and scale the local processing area to the input size of the diffusion model, and sequentially complete the redrawing of the foreign object area and the reconstruction of the lighting conditions within the local processing area, and map and fuse the local generation results into the original image coordinate system.

[0039] Step S2.1: Based on the target bounding box before generation Determine the scale-aware local processing area Let the width and height of the target bounding box be respectively... and The relative area of ​​the target bounding box in the source image for:

[0040]

[0041] In the formula, A represents area calculation, and W and H represent the width and height of the source image, respectively. This relative area is used to characterize the pixel proportion of the target in the entire source image.

[0042] Using the center of the target bounding box as the center of the local processing region, the scale-aware local processing region... It is a square, and its side length is... Determine using the following formula:

[0043]

[0044] In the formula, Represents the regional expansion coefficient. This represents the minimum local processing size. In this embodiment... Take 5.0, Use 512 pixels. When the local processing area determined by the target center exceeds the boundary of the source image, maintain the side length. Under unchanged conditions, translate along the horizontal or vertical direction so that it falls completely into the source image.

[0045] Through the aforementioned cropping and scaling, the pixel proportion of the target in the diffusion model input changes from the target's proportion relative to the entire source image to the target's proportion relative to the local processing region. When the area of ​​the local processing region is smaller than the area of ​​the source image, the relative pixel proportion of the target increases. This increase in relative pixel proportion does not involve performing super-resolution reconstruction on the source image, but rather reduces the risk of detail loss during the latent space encoding process of small-scale foreign objects through local cropping and input scale normalization.

[0046] Step S2.2: Generate the target bounding box beforehand. Map to the local coordinate system to construct the initial target mask. and the initial target mask Perform morphological dilation to obtain an expanded generation mask. :

[0047]

[0048] In the formula, This represents a morphological dilation operator with a structuring element size of k. In a preferred embodiment, the mask-constrained diffusion image generation model uses a latent space diffusion model as the diffusion backbone; in specific implementations, an image completion backbone compatible with Stable Diffusion 1.5 can be used as an optional implementation. The first stage encodes local images into the latent space, and foreign object category text prompts are added. and extended generation mask Under the common constraints, the foreign object region is redrawn, and its conditional inverse denoising process is as follows:

[0049]

[0050] In the formula, Indicates the first stage Latent variables obtained after reverse denoising; Indicates the first stage Latent variables before the second inverse denoising; The parameter is The predicted mean of the output of the denoising network; Text indicating the type of foreign object; This indicates the expansion generation of the mask; Indicates the first stage Step noise intensity; This represents random noise that follows a standard normal distribution.

[0051] The first stage ultimately yields the redrawn latent variables. The second stage involves redrawing the latent variables. Alternatively, the latent variables obtained by decoding or re-encoding can be used as the initial content representation, and noise can be added to the content representation according to the preset denoising intensity of the second stage to obtain the initial latent variables of the second stage.

[0052] Step S2.3: Expanding to generate a mask Construct a background ring on the outer side, calculate the mean brightness, standard deviation brightness, and horizontal and vertical principal gradients of the background ring, and obtain the illumination condition vector. :

[0053]

[0054] In the formula, This represents the average brightness of the background ring, used to characterize the overall brightness level of the background outside the target neighborhood; The standard deviation of the brightness of the background ring is used to characterize the background brightness contrast. and These represent the principal gradients of the background ring in the horizontal and vertical directions, respectively, and are used to characterize the changes in local illumination direction and intensity.

[0055] Lighting condition vector Convert to lighting text hints or conditional encoding The results of the first-stage redrawing are input into a shared latent space diffusion backbone, and the second-stage lighting condition reconstruction is performed with a lower denoising intensity than the first stage:

[0056]

[0057] In the formula, Indicates the second stage Latent variables obtained after reverse denoising; Indicates the second stage Latent variables before the second inverse denoising; Text indicating foreign object category and illumination condition coding The combined conditions; This indicates the expansion generation of the mask; Indicates the second stage Step noise intensity, and Less than the noise intensity corresponding to the first stage ; This represents random noise that follows a standard normal distribution. The second stage only updates the extended generation mask and its transition band to ensure that the redrawn object's brightness, contrast, and main light direction remain consistent with the surrounding conveyor belt background while preserving the object's outline and category semantics from the first stage. The two-stage latent space processing procedure is as follows: Figure 5 As shown.

[0058] Step S2.4: Generate a mask for the expansion Gaussian smoothing is performed to obtain local fusion weights. Using the paste-back operator Local fusion weights Local generation results reconstructed under illumination conditions Mapped to the source image coordinate system respectively:

[0059]

[0060] The generated image is obtained by following the formula. :

[0061]

[0062] In the formula, This indicates pixel-wise multiplication. Local processing area. Other mapping fusion weights Zeroing out the corresponding pixels means that the source image is used directly for those pixels. The fusion weights at the edges of the generated mask change continuously to reduce abrupt edges caused by rectangular pasting.

[0063] Step S3: Generate the target bounding box beforehand. As a cue, a cue-based image segmentation model is used to obtain candidate segmentation masks, and the refined target bounding box is determined based on the candidate mask scores and geometric consistency gating.

[0064] Step S3.1: Generate the image and the target bounding box before generation Input-prompt image segmentation model to generate foreground target bounding boxes As a box prompt, the model outputs a set of candidate segmentation masks. Let's define a candidate segmentation mask. The corresponding bounding box is The mask quality information is .in, The suggestive image segmentation model is for the first... The number of candidate segmentation masks output by each generation task.

[0065] Step S3.2: For multiple candidate segmentation masks, jointly calculate the intersection-union ratio (IU) of the candidate bounding boxes and spatial anchor points, the relative area change of the candidate bounding boxes, the candidate mask quality information, and the center point offset. Scoring of candidate segmentation masks for:

[0066]

[0067] In the formula, This represents the intersection-union ratio (IoU) between the candidate bounding box and the original target bounding box. Indicates the area of ​​the bounding box; Represents candidate segmentation mask The corresponding bounding box; This represents the target bounding box before generation; Indicates the confidence level of the candidate mask quality; Indicates the center point of the bounding box; and This indicates the width and height of the target bounding box before generation; to Indicates non-negative weights. Select the candidate segmentation mask with the highest score:

[0068]

[0069] Step S3.3: Based on the optimal candidate number obtained in step S3.2 The candidate segmentation mask with the highest score is denoted as Its corresponding bounding box is denoted as Select candidate segmentation masks Non-zero pixel coordinates are converted into candidate bounding boxes. And calculate its bounding box with the target bounding box before generation. The intersection-union ratio and area ratio. Geometric consistency gating. for:

[0070]

[0071] In the formula, Indicates the first Geometric consistency gating results of each generated sample; This represents an indicator function, which takes the value 1 if the condition within the parentheses is true, and 0 otherwise. Indicates the intersection-union ratio threshold; and These represent the lower and upper limits of the area ratio between the candidate bounding box and the original target bounding box, respectively. In this embodiment, Take 0.10, Take 0.25, Take 4.0. When When = 1, the target detection label is updated using candidate bounding boxes; when When =0, the target bounding box before generation is retained. The same applies when the cue-based image segmentation model fails to output a valid mask, experiences segmentation errors, or has an empty candidate mask. Set to 0.

[0072] Step S3.4: When When =1, search the source labels for targets with the same category as the current target and whose bounding boxes match those of the targets before generation. Replace the label with the one that has the highest intersection-union ratio (IU / UCR) with the candidate bounding box. The coordinates are then renormalized to the target detection label format. Labels for other targets not currently identified are written back as is. The refinement or rollback status, gating reasons, intersection-over-union ratio, area ratio, and the generated bounding boxes and candidate bounding boxes are recorded simultaneously, making the label refinement results traceable.

[0073] Step S4: Calculate the background difference outside the target neighborhood and the texture-structure effectiveness within the target area respectively to form image consistency quality feedback, and construct candidate sample pools with different screening intensities accordingly.

[0074] Step S4.1: Transfer the source image and generating images Scale to a uniform evaluation resolution. Candidate bounding boxes that pass geometric consistency gating. Mapped to this resolution; if the gate fails, the target bounding box before generation is used. The bounding box is expanded outwards to form the target neighborhood, and the pixels outside the target neighborhood constitute the background set. The pixels inside the bounding box constitute the target set. .

[0075] Step S4.2: In the background set Internal computation source image With generated image Average pixel difference In the target set In-process texture contrast Edge response strength and mask morphology effectiveness :

[0076]

[0077]

[0078]

[0079]

[0080] In the formula, This represents the set of background pixels outside the target neighborhood. Represents the set of pixels inside the target bounding box. Represents the source image. Indicates the generation of an image. Indicates pixel position, This indicates a grayscale conversion operation. This represents the standard deviation calculation. Represents the image gradient. This indicates that a candidate segmentation mask has been selected. This represents the bounding box of the selected candidate segmentation mask. The smaller the background difference, the less the generation process disturbs the non-target region; texture contrast, edge response intensity, and mask morphology effectiveness are used to characterize whether the target region has recognizable texture, structural edges, and a reasonable mask morphology.

[0081] Texture contrast Edge response strength and mask morphology effectiveness After normalization and weighting, the texture-structure effectiveness index of the target region is obtained. :

[0082]

[0083] In the formula, This indicates a normalization operation. , and These are non-negative weights that sum to 1, corresponding to texture contrast, edge response intensity, and mask morphology effectiveness, respectively. The generated sample quality score is:

[0084]

[0085] In the formula, This represents the result of geometric consistency gating. This represents the texture-structure validity index of the target region. This represents the background difference index. This quality score gives higher scores to generated samples that have passed geometric gating, have high target region effectiveness, and have minimal background perturbation.

[0086] The quality score of generated samples that fail the geometric consistency gating is set to zero, or the generated sample is marked as a rollback sample.

[0087] Step S4.3: When performing hard screening, retain those that pass the geometric consistency gating and background differences. The difference must not exceed a preset background difference threshold, and the target region's texture-structure validity must be considered. Generate samples with a threshold of at least 100% validity, and establish hard-screen sample pools according to the foreign object category.

[0088] Step S4.4: When the number of samples in the hard-screen sample pool is lower than the preset lower limit for the corresponding foreign object category, relax the background difference threshold and validity threshold to form a soft-screen candidate set. From the soft-screen candidate set, generate samples according to their quality scores. The sample size is filled in from high to low to the preset lower limit, while the number of generated samples for each foreign object category is limited to the corresponding preset upper limit.

[0089] Step S5: Evaluate the candidate sample pool and sample quantity for different foreign object categories, select the sample source and quantity according to the foreign object category, and combine them with the original training set to form an enhanced training set.

[0090] Step S5.1: Establish the directly generated sample pool, the scale-aware generated and label-refined sample pool, the hard-selected sample pool, and the soft-selected sample pool. The candidate generated sample record should include at least the image path, label path, foreign object category, sample pool identifier, and generated sample quality score. And the filtering status.

[0091] Step S5.2: Establish a candidate generation sample pool set and a candidate selection quantity set. For each candidate generation sample pool and candidate selection quantity, construct a candidate enhancement training set, train it using a reference target detection model with the same structure and training parameters, and obtain classification evaluation results on a fixed real evaluation set. A comprehensive evaluation result is formed based on at least two of the following metrics: category precision, category recall, category F1 score, category mAP50, and category mAP50:95. The candidate generation sample pool and candidate selection quantity with the optimal comprehensive evaluation result are determined as the sample source and sample quantity for that foreign object category.

[0092] Step S5.3: Compare the selected generated samples with the original training set. Merge to form an enhanced training set Maintain a one-to-one correspondence between the generated images and their refined or rolled-back label files, and add the foreign object category, sample pool, and sequence number prefix to the generated sample file name to avoid name conflicts with the original samples and support sample source tracing.

[0093] Thus, through task construction, scale-aware two-stage local generation, label refinement and geometric gating, partition quality feedback, and category-level sample selection, a quality-controlled augmented training set is obtained. Generative data augmentation was completed for foreign object detection on mine conveyor belts.

[0094] As described above, the embodiments of the present invention use the pre-generated target bounding box as a spatial anchor point to establish a pre- and post-data dependency relationship between local generation, label refinement, partition quality feedback, and category-level sample selection, and output an enhanced training set that can be used to train the target detection model.

[0095] Example 2

[0096] Experiment setup details

[0097] This embodiment uses only foreign object detection data from a mine conveyor belt to verify the technical effectiveness of the method described in Embodiment 1. The original training set contains 100 real training images and 110 bounding boxes, while the real evaluation set contains 102 images and 117 bounding boxes. In the original training set, 66 bounding boxes have a relative area less than 1%, and in the real evaluation set, 84 bounding boxes have a relative area less than 1%, indicating that this dataset contains a relatively large number of small-scale foreign objects, making it suitable for verifying the applicability of this invention in scenarios with limited sample size and small-scale object detection.

[0098] The selected generated samples are combined with the original training set to form an enhanced training set, and a YOLOv8s pre-trained model is used as the reference object detection model. The input image size is set to... The maximum number of training epochs was set to 100, the batch size to 16, the number of early stopping and patient epochs to 30, the number of data loading threads to 8, and data caching was disabled. A random seed was used in the single comparison experiment. Repeatability experiments were conducted using random seeds. And enable the deterministic training option. All comparison settings use the same model structure, input size, number of training epochs, batch size, early stopping condition, and randomness control parameters.

[0099] This embodiment selects one generation task each for steel pipe foreign objects and stone foreign objects to qualitatively verify the two-stage generation process. The results are as follows: Figure 6 As shown. Figure 6 (a) and Figure 6 (d) is the original mine image. Figure 6 (b) and Figure 6 (e) is the local redrawing result of the latent space diffusion model obtained under the constraints of category text hints and extended generation mask. Figure 6 (c) and Figure 6 (f) shows the illumination condition reconstruction results obtained from the background illumination statistics outside the target neighborhood. Figure 6 As can be seen, the local redrawing results maintain the identifiable structure of the steel pipes and stones, the lighting condition reconstruction changes the brightness, contrast and main light direction of the target area, and preserves the background of the mine conveyor belt outside the target area, providing generated images for subsequent label refinement and partition quality feedback.

[0100] During training, generated samples are added only to the training set. The technical performance is evaluated using a set of real images that were not used for generation enhancement, to avoid generating images being included in both the training and evaluation processes simultaneously. Evaluation metrics include accuracy. Recall rate , , and ,in for:

[0101]

[0102] Module ablation experiment

[0103] To verify the relationship between scale-aware generation, label refinement, partition quality feedback, and soft / hard screening, a control experiment was set up with the same original training set, the same real evaluation set, and the same detection model training parameters. The quantitative comparison results of each control method are shown in Table 1.

[0104] Table 1 Module Ablation Experiment Results

[0105] method Raw-100 0.837 0.768 0.801 0.812 0.498 Directly generate 1:1 0.933 0.738 0.824 0.827 0.505 Scale-aware generation, label-free refining 0.841 0.738 0.786 0.822 0.492 Scale-aware generation + label refinement 0.788 0.778 0.783 0.820 0.509 Direct generation + image consistency feedback 0.856 0.791 0.822 0.835 0.510 Scale-aware generation + tag refinement + hard filtering 0.919 0.763 0.834 0.858 0.530 Scale-aware generation + tag refinement + soft filtering 0.883 0.783 0.830 0.836 0.515

[0106] As shown in Table 1, when only scale-aware generation is used without label refinement, the mAP50:95 is 0.492; after adding label refinement, it increases to 0.509, indicating that updating the labels after generation helps reduce bounding box drift. Hard screening achieves higher precision and average accuracy, but the recall is lower than that of soft screening, indicating that the screening threshold needs to be balanced between sample quality and coverage.

[0107] Multi-random Seed Holistic Detection Experiment

[0108] To verify the stability of the method of the present invention under different random initialization conditions, random seeds were used respectively. , and Repeated training was performed, and the mean and sample standard deviation of the three training results were calculated. The quantitative comparison results are shown in Table 2.

[0109] Table 2 Overall detection results of multiple random seeds

[0110] method #imgpt208# #imgpt209# #imgpt210# #imgpt211# #imgpt212# Raw-100 0.818±0.044 0.789±0.026 0.802±0.011 0.816±0.004 0.500±0.002 Traditional Enhanced 1:1 0.832±0.035 0.774±0.019 0.801±0.006 0.817±0.006 0.505±0.003 Direct generation + image consistency feedback 0.867±0.024 0.760±0.028 0.810±0.018 0.826±0.009 0.505±0.011 Scale-aware generation + tag refinement + soft filtering 0.871±0.013 0.773±0.021 0.819±0.012 0.834±0.012 0.518±0.005 Category level selection 40 / 60 0.907±0.027 0.745±0.032 0.817±0.010 0.852±0.011 0.524±0.004 Category level selection 50 / 50 0.872±0.012 0.748±0.014 0.805±0.009 0.832±0.006 0.519±0.009

[0111] As shown in Table 2, in the Raw-100 sample-constrained setting and multi-random seed experiment, the basic closed-loop method consisting of scale-aware generation, label refinement, and soft screening improves precision, accuracy, and recall by 0.053, 0.017, 0.018, and 0.018% respectively compared to Raw-100. Selecting 40 / 60 at the class level achieves the highest precision and recall, but at the lower end of the range. Therefore, the former is suitable as a balanced approach, while the latter is suitable as a approach prioritizing low false positives and average precision.

[0112] in conclusion

[0113] In summary, this invention proposes a closed-loop quality control generative data augmentation method for foreign object detection on mine conveyor belts. This method increases the relative pixel proportion of foreign objects in the diffusion model input through scale-aware local processing, completes local generation through foreign object region redrawing and reconstruction under low-noise intensity lighting conditions, reduces label drift through multi-factor candidate mask scoring and geometric consistency gating, reduces background damage and low-quality generated samples through partitioned quality feedback and soft / hard screening, and reduces negative migration between different foreign object categories through category-level sample selection. Experimental results on foreign object detection data from mine conveyor belts verify the interaction between the processing modules of this invention and its applicability to sample-constrained detection tasks.

[0114] It will be readily understood by those skilled in the art that the above-mentioned preferred solutions can be freely combined and superimposed without conflict. The above description provides a further detailed explanation of the present invention, but it should not be construed as limiting the specific implementation of the invention to these descriptions. For those skilled in the art, several simple deductions or substitutions can be made without departing from the concept of the present invention, and all such deductions or substitutions should be considered within the scope of protection of the present invention.

Claims

1. A generative data augmentation method for closed-loop quality control of foreign object detection in mine conveyor belts, characterized in that, Includes the following steps: Step S1: Obtain the original training set consisting of images of the mine conveyor belt, wherein the images in the original training set have foreign object category labels and target bounding box labels; The generation task is constructed based on the target bounding box, the foreign object category, and the text prompt information corresponding to the foreign object category; Step S2: For each generation task, determine a scale-aware local processing region containing the target and its surrounding conveyor belt context based on the scale and position of the target bounding box. Crop and scale the local processing region to the input size of the diffusion model, so that the relative pixel ratio of the target in the diffusion model input is higher than the relative pixel ratio of the target in the source image. Construct an extended generation mask within the local processing region. Under the constraints of the extended generation mask and text prompt information, perform foreign object region redrawing and lighting condition reconstruction in sequence to obtain the local generation result. Smoothly fuse the local generation result into the source image to obtain the generated image. Step S3: Use the generated target bounding box as a spatial anchor point to input the prompting image segmentation model to obtain at least one candidate segmentation mask; calculate the candidate mask score based on the intersection-union ratio, area ratio, and center point offset between the bounding box corresponding to the candidate segmentation mask and the spatial anchor point, as well as the mask quality information of the candidate segmentation mask; select the candidate segmentation mask with the highest score and obtain the candidate bounding box. Geometric consistency gating is performed on candidate bounding boxes. When the candidate bounding boxes pass the gating, the target detection labels of the generated image are updated using the candidate bounding boxes. When the candidate bounding boxes fail the gating, the target bounding boxes before generation are retained. Step S4: Determine the target neighborhood based on the spatial anchor point or the candidate segmentation mask with geometric consistency gating; calculate the background difference between the generated image and the source image outside the target neighborhood; calculate the texture-structure effectiveness index of the target region based on at least one of texture contrast, edge response intensity and mask morphology effectiveness within the target region. The quality score of the generated samples is calculated based on the background differences, the texture-structure effectiveness index of the target region, and the geometric consistency gating results, and a quality-controlled sample pool is formed. Step S5: Group the generated samples according to the foreign object category. Based on the pre-obtained classification evaluation results, determine the generated sample pool and selection quantity for each foreign object category. Select the corresponding category of generated samples from the corresponding generated sample pool and combine them with the original training set to form an enhanced training set.

2. The closed-loop quality control generative data augmentation method according to claim 1, characterized in that: The process of determining the scale-aware local processing region in step S2 is as follows: the local processing size is determined based on the width and height of the target bounding box and a preset region expansion coefficient, ensuring that the local processing size is not less than a preset minimum processing size and does not exceed the short side size of the source image; the local processing region is determined with the center of the target bounding box as the center, and when the local processing region exceeds the boundary of the source image, it is translated into the range of the source image; after cropping and enlarging the local processing region, foreign object region redrawing and lighting condition reconstruction are performed, and then the local generation result is scaled back to the size before cropping.

3. The closed-loop quality control generative data augmentation method according to claim 2, characterized in that: The mask-constrained diffusion image generation model in step S2 uses a latent space diffusion model as the diffusion backbone; the target bounding box or initial target mask is mapped to the coordinate system of the local processing area, and the mapped initial target mask is morphologically dilated to obtain an extended generation mask; under the constraints of the extended generation mask and the foreign object category text prompt information, the first stage of diffusion denoising is performed to redraw the foreign object region; the lighting conditions are constructed based on the average brightness, contrast and main illumination gradient of the background outside the target neighborhood; the second stage of diffusion denoising is performed at a denoising intensity lower than that of the first stage to complete the lighting condition reconstruction; the edges of the extended generation mask are smoothed, and the local generation result after the lighting condition reconstruction is mapped to the coordinate system of the source image for pixel-by-pixel fusion.

4. The closed-loop quality control generative data augmentation method according to claim 1, characterized in that: The target detection label update process in step S3 is as follows: using the bounding box of the generated target as the cue box, multiple candidate segmentation masks are obtained using a cue-based image segmentation model; the intersection-union ratio (IU) of the bounding box corresponding to the candidate segmentation mask and the cue box, and the mask quality information of the candidate segmentation mask are used as positive evaluation terms, and the area ratio deviation and center point offset are used as penalty terms; the candidate segmentation mask with the highest comprehensive score is selected; when the IU of the bounding box corresponding to the candidate segmentation mask and the cue box is not less than a preset threshold and the area ratio is within a preset range, the target detection label is updated using the bounding box of the candidate segmentation mask; otherwise, the bounding box of the generated target is retained.

5. The closed-loop quality control generative data augmentation method according to claim 1, characterized in that: The process of obtaining the quality score of the generated sample in step S4 is as follows: the target neighborhood is determined based on the target bounding box before generation or the candidate segmentation mask through geometric consistency gating; the average pixel difference between the generated image and the source image is calculated outside the target neighborhood to characterize the degree of background preservation. Within the target area, obtain the texture-structure effectiveness index based on at least two of texture contrast, edge response intensity, and mask morphology effectiveness; The quality score of the generated samples is obtained based on the average pixel difference, the texture-structure validity index of the target region, and the geometric consistency gating result. The generated samples that fail the geometric consistency gating are removed or marked as backtracking samples.

6. The closed-loop quality control generative data augmentation method according to claim 5, characterized in that: The process of forming the quality-controlled sample pool in step S4 is as follows: retain the generated samples that simultaneously meet the requirements of background difference not exceeding a preset background difference threshold, target region texture-structure validity index not less than a preset validity threshold, and passing geometric consistency gating, and establish a hard-screen sample pool according to the foreign object category; when the number of samples in the hard-screen sample pool is lower than the preset lower limit of the corresponding foreign object category, relax the background difference threshold and validity threshold to form a soft-screen candidate set, fill it up to the preset lower limit according to the quality score of the generated samples from high to low, and limit the number of generated samples of each foreign object category to not exceed the corresponding preset upper limit.

7. The closed-loop quality control generative data augmentation method according to claim 1, characterized in that: The process of determining the generated sample pool and selection quantity for each foreign object category in step S5 is as follows: construct a candidate enhancement training set using different candidate generated sample pools and candidate selection quantities, train the reference target detection model using the candidate enhancement training set, obtain at least two evaluation indicators among precision, recall, F1 score, and mean precision for each foreign object category, and select the generated sample pool and selection quantity that optimizes the evaluation indicators for each foreign object category.