Safety rope visible use state recognition method based on topology-scene constraint forest
By using a safety rope visible usage status recognition method based on topology-scene constrained forest, multiple safety rope support regions are generated by using multiple sets of fusion coefficients and support thresholds. Combined with two-layer topological features and expert models, the misjudgment problem of safety ropes in complex backgrounds at construction sites is solved, the recognition accuracy is improved and the workload of manual verification is reduced.
Patent Information
- Application Number
- CN202611628209.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-21
- Publication Date
- 2026-11-20
AI Technical Summary
Existing visual inspection technology for construction safety ropes has a high rate of misjudgment of shape in complex construction backgrounds, fails to fully consider the influence of surrounding scene structures, lacks a graded screening mechanism, and results in a large workload for manual review.
A method for identifying the visible usage status of safety ropes based on topology-scene-constrained forests is adopted. Multiple safety rope support regions are generated by multiple sets of fusion coefficients and support thresholds. A two-layer topological feature system of anchoring curve descriptors and topological envelope descriptors is combined and input into the rope and scene expert models for probabilistic fusion. The false safety rate is used as a hard constraint for screening.
It improved the accuracy of safety rope status identification, reduced the risk of misjudgment, reduced the workload of manual verification, and improved the screening efficiency and traceability of results at the construction site.
Smart Images

Figure CN123142176A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of intelligent analysis technology for construction safety images, and in particular to a method for recognizing the visible usage status of safety ropes based on topology-scene-constrained forests. Background Technology
[0002] Existing visual inspection technology for construction safety ropes uses images from the construction site as the basis for processing. It identifies the presence, location, and shape of targets such as workers, safety ropes, hooks, and anchor points through target detection, semantic segmentation, and other means, or directly detects the closed state of the hooks and the connection relationship with the anchor points, thereby determining the compliance of the use of safety ropes.
[0003] Existing technologies generally use a single threshold to segment the probability map of safety ropes and generate a single curved path. Fluctuations in the segmentation confidence of slender, deformable ropes can easily lead to the disappearance of distal segments and the breakage of local connectivity, resulting in the loss of morphological change information under multiple confidence levels. Extracting geometric features based solely on a single path cannot quantify the topological fluctuations caused by segmentation uncertainty, limiting the dimension of rope morphology representation. The discrimination process often relies solely on the rope's own morphological features, failing to fully consider the constraints of surrounding scene structures such as railings and scaffolding on the rope's morphology, leading to a high rate of morphological misjudgment in complex construction contexts. Classification decisions are primarily guided by overall recognition accuracy, without setting hard constraints on the risk of "misjudging a dangerous state as safe," resulting in screening loopholes. Furthermore, the review results lack a tiered screening mechanism, leading to a significant workload for manual review. Summary of the Invention
[0004] The purpose of this invention is to provide a method for recognizing the visible usage status of safety ropes in a topology-scene-constrained forest, thereby solving the aforementioned technical problems.
[0005] To achieve the above objectives, this invention provides a method for recognizing the visible usage status of safety ropes based on topology-scene constrained forests, comprising the following steps: S1. Based on the construction images, the worker-safety rope observation is obtained by extracting the worker bounding box, safety rope mask probability map, safety rope centerline probability map, and local images of the worker. S2. Based on the worker frame, by establishing a local coordinate system for the worker and aligning the two types of probability maps, we obtain probabilistic evidence under a unified coordinate system. S3. Based on multiple fusion coefficients and multiple support thresholds, multiple safety rope support regions are obtained by weighted fusion and thresholding of the two types of probability maps. S4. Based on each safety rope support area, the skeletonized components corresponding to the target worker are obtained by combining distance and length indicators for screening. S5. Based on the selected skeleton connectivity components, multiple worker root topological hypotheses are obtained by determining the root point and recovering the ordered path to the visible far end. S6. Based on multiple worker root topology assumptions, by extracting curve features and summarizing statistics, a topology descriptor containing anchor curve descriptors and topology envelope descriptors is obtained. S7. Based on local images of workers, scene descriptors are obtained by extracting color, brightness, edge and gradient features; S8. Based on the topology descriptor and the scene descriptor, the fusion discrimination result is obtained by inputting the dual expert models respectively and fusing the probabilities under the error safety rate constraint. S9. Based on the fusion discrimination result, a secondary judgment is made through the one-way release rule to obtain the identification result that includes the external constraint state or the verification result.
[0006] Preferably, in S3, based on the safety rope mask probability and the centerline probability, a fusion support score is calculated by weighting the scores according to the fusion coefficients and compared with a threshold to obtain the safety rope support region pixels; the formula is: ; in, Worker-Safety Rope Observation Index For pixel position, To integrate support scores, The fusion coefficient is... For the safety rope mask probability, The probability of the safety rope centerline.
[0007] Preferably, in S3, based on two sets of fusion coefficients of 0.65 and 0.85 and four sets of support thresholds of 0.12, 0.18, 0.24 and 0.30, eight safety rope support areas are obtained by combining and traversing fusion and thresholding.
[0008] Preferably, in S4, the selected skeleton connected component is obtained by calculating the minimum value of the component selection value based on the distance from the skeleton connected component to the center of the worker box and the number of skeleton pixels; The calculation formula is: ; in, For the selected skeleton connected components, The squared distance of the nearest pixel from the connected component to the center of the worker's box is given. For the first The center of the worker frame corresponding to each observation. For component length weighting, This represents the number of skeleton pixels of the connected components.
[0009] Preferably, in S5, based on the skeleton root point closest to the center of the worker frame, the farthest point is obtained by breadth-first traversal of the eight neighborhoods and the parent node chain is backtracked to obtain the ordered curve of the worker root.
[0010] Preferably, based on the worker's root ordered curve, a curve descriptor is obtained by resampling to a predetermined number of ordered points and calculating geometric features; the geometric features include at least one of endpoint displacement, path length, tortuosity, and curvature.
[0011] Preferably, in S6, the curve descriptor based on multiple topological assumptions is used to obtain the topological envelope descriptor by calculating the quintiles of each dimension and concatenating the vectors.
[0012] Preferably, in S6, based on the single ordered curve decoded with a preset fusion coefficient of 0.80 and a preset support threshold of 0.20, the anchor curve descriptor is obtained by extracting features.
[0013] Preferably, in S8, based on the candidate fusion weights and discrimination thresholds of the training partitions, the optimal fusion parameters are obtained by screening strategies with false safety rates not exceeding the upper limit and selecting the best one.
[0014] Preferably, in S9, based on the release ranking score observed by the verification results, low-risk samples are selected according to the release ratio determined by training to obtain the observation set of release under external constraint state.
[0015] Therefore, the above-mentioned method for recognizing the visible usage status of safety ropes based on topology-scene-constrained forests has the following beneficial effects: 1. Multiple safety rope support regions are generated by combining multiple sets of fusion coefficients and support thresholds, which correspond to multiple worker root topological hypotheses. The uncertainty of upstream probability segmentation is transformed into multiple candidate topological forms, avoiding information loss such as missing rope ends and broken connections that are easily caused by traditional single threshold segmentation. The morphological changes and connectivity of the slender safety rope under different confidence levels are preserved.
[0016] 2. Construct a two-layer topological feature system that combines anchor curve descriptors and topological envelope descriptors. It provides representative morphological features with a single ordered curve under the benchmark parameters, and forms envelope features through quantile statistics of multiple topological assumptions. It quantifies the topological fluctuation range under different thresholds, transforms the segmentation confidence difference into computable structured information, and can quantify the topological fluctuation range caused by the segmentation confidence difference, thus enriching the representation dimension of rope topological uncertainty.
[0017] 3. Separately model the rope topological evidence and the worker's local scene evidence, input them into the corresponding expert models, and then perform probability fusion. This method relies on the rope's own topological shape to determine the suspension attribute, and combines the surrounding scene structure to help interpret the rope's constraint relationship. The combination of the two types of evidence can reduce the misjudgment bias of single shape judgment in complex construction backgrounds and improve the overall accuracy of state recognition.
[0018] 4. The fusion strategy uses the false safety rate as a hard constraint to limit the risk of misjudging the free suspension or unattached state as an external constraint from the decision-making source. Then, the review results are graded and screened through a one-way release rule, releasing only the sample with the lowest risk as an external constraint state. This reduces the workload of manual review while ensuring the safety of screening.
[0019] The technical solution of the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. Attached Figure Description
[0020] Figure 1 A flowchart of the visible usage status recognition method for safety ropes based on topology-scene constrained forests provided by this invention; Figure 2 The diagram shows a topology-scene-constrained forest structure based on the visible state recognition method of the safety rope using the topology-scene-constrained forest provided by this invention. Detailed Implementation
[0021] To make the objectives, technical solutions, and advantages disclosed in the embodiments of the present invention clearer, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the embodiments of the present invention and are not intended to limit the embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of this application. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout.
[0022] It should be noted that the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion, such as a process, method, system, product, or server that includes a series of steps or units, not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such process, method, product, or device.
[0023] The following is in conjunction with the appendix Figures 1-2 The embodiments of the present invention will be described in detail below.
[0024] Current visual inspection methods for construction safety ropes generally use a single threshold to segment the rope probability map and generate a single discrimination path. This method judges the usage status based solely on the rope's morphological characteristics, without considering the misjudgment of dangerous conditions as safety as a core constraint. Fluctuations in the segmentation confidence of slender, deformable ropes can easily lead to missing segments at the far end and broken connectivity relationships. This makes it impossible to retain topological change information under multiple confidence levels, resulting in a high rate of morphological misjudgment in complex construction contexts. Furthermore, the review results lack a graded screening mechanism, making it impossible to achieve a balance between the accuracy of safety screening and the efficiency of manual review.
[0025] Based on the above analysis, the specific implementation details are as follows: This embodiment describes a safety rope visible usage status recognition process based on a topology-scene constrained forest. It uses a single set of worker-safety rope observations in a construction site RGB image as the processing object. The specific implementation process for each step is as follows: S1. Based on the construction images, extract the worker bounding box, safety rope mask probability map, and safety rope centerline probability map of the target worker through the target detection and semantic segmentation model. At the same time, crop the image area corresponding to the worker bounding box to obtain the local image of the worker, and summarize them to form the worker-safety rope observation.
[0026] S2. Based on the worker frame, establish a local coordinate system for the worker with the center of the worker frame as the origin. Map and align the probability map of the safety rope mask and the probability map of the safety rope centerline to this local coordinate system to obtain probabilistic evidence under the unified coordinate system. The center of the worker frame is used for subsequent skeleton connectivity component screening and root point positioning. The width and height of the worker frame are used for subsequent normalization of geometric quantities such as curve length and displacement.
[0027] S3. Based on multiple fusion coefficients and multiple support thresholds, the two types of probability maps are weighted and fused and thresholded to obtain multiple safety rope support regions.
[0028] The specific calculation process is as follows: Based on the safety rope mask probability and the centerline probability, the fusion support score is calculated by weighting the fusion coefficient, and then compared with the support threshold. Pixels with scores not lower than the threshold are retained to form the safety rope support area pixels. The calculation formula is: ; ; in, Worker-Safety Rope Observation Index The pixel position in the image. For the first One observation in pixel The fusion of points supports scores, The fusion coefficient is used to adjust the relative contribution weights of the mask probability evidence and the centerline probability evidence. The safety rope mask probability represents the degree of support for a pixel belonging to the safety rope region. The probability of a pixel belonging to the center line of the safety rope represents the degree of support for the pixel belonging to the center line of the safety rope. This represents the thresholded binary safety rope support region. To support thresholds.
[0029] This embodiment uses two sets of fusion coefficients, 0.65 and 0.85, and four sets of support thresholds, 0.12, 0.18, 0.24 and 0.30. By combining and traversing, fusion and thresholding are completed, generating a total of eight safety rope support areas.
[0030] S4. Based on each safety rope support area, the skeleton connectivity component is obtained by using the eight-neighbor skeletonization algorithm. The skeleton connectivity component is then filtered by combining the distance from the skeleton connectivity component to the center of the worker frame with its own length index to obtain the skeleton connectivity component corresponding to the target worker.
[0031] The specific calculation process is as follows: For each candidate skeleton connected component, calculate the squared distance of its nearest pixel to the center of the worker box, combine the number of skeleton pixels of the connected component to calculate the component selection value, and select the connected component with the smallest selection value as the selected result. The calculation formula is: ; in, For the selected skeleton connected components, The squared distance of the nearest pixel from the connected component to the center of the worker's box is given. For the first The center of the worker frame corresponding to each observation. For component length weighting, This represents the number of skeleton pixels of the connected components.
[0032] S5. Based on the selected skeleton connectivity components, select the skeleton point closest to the center of the worker frame as the root point. Obtain the farthest reachable skeleton point from the root point through breadth-first traversal of the eight neighborhoods. Backtrack the parent node chain recorded during the traversal process to recover the ordered path from the root point to the farthest point, which is the ordered curve of the worker root under the corresponding parameter combination. Traverse all eight combinations of fusion coefficients and support thresholds to obtain eight worker root topological hypotheses.
[0033] The recovered worker root ordered curve is resampled into 64 ordered points, the curve length scale is unified between different observations, and the geometric features of the curve are calculated to obtain the curve descriptor of the corresponding single curve; the geometric features include at least one of endpoint displacement, path length, endpoint straight distance, tortuosity, curvature, spatial range, and path probability support.
[0034] S6. Based on multiple worker root topology assumptions, extract curve features and perform statistical summaries to obtain a topology descriptor that includes anchor curve descriptors and topology envelope descriptors.
[0035] The process of generating the topological envelope descriptor is as follows: calculate curve descriptors for multiple worker root topological assumptions, calculate the minimum, first quartile, median, third quartile, and maximum quartile for the same feature dimension of each curve descriptor, and then concatenate the quartile vectors of each dimension to obtain the topological envelope descriptor. The calculation formula is: ; in, For the first The topological envelope descriptor for each observation. For the first Curve descriptor for the root topological assumption of a worker, At the quantile level, This is an index for topological assumptions.
[0036] The process of generating the anchor curve descriptor is as follows: a representative worker root ordered curve is obtained by decoding using a preset fusion coefficient of 0.80 and a preset support threshold of 0.20, and the corresponding geometric features of the curve are extracted to obtain the anchor curve descriptor.
[0037] S7. Based on the local image of the worker, statistically extract the features of color moments, color quantiles, grayscale statistics, edge statistics, gradient magnitude, regional brightness, central region brightness, and gradient direction histogram to obtain the scene descriptor.
[0038] S8. Based on the topology descriptor and the scene descriptor, the topology descriptor is input into the rope expert model and the scene descriptor is input into the scene expert model to obtain the positive class probability of the free suspension or unattached state, respectively. Then, the two positive class probabilities are weighted and fused by the fusion weight. At the same time, the optimal fusion weight and discrimination threshold are traversed and selected within the training partition with the error safety rate as a constraint to obtain the fusion discrimination result.
[0039] The specific formula for fusion and parameter selection is as follows: ; ; in, For the first The fusion of positive class risk scores from individual observations. This represents the positive class probability output by the rope expert model. The positive class probability output by the scene expert model. The fusion weights for the rope expert model; The selected optimal fusion weights, The selected optimal discrimination threshold, For false alarm rate, For error safety rate, This is the preset upper limit for the false positive rate.
[0040] The parameter selection logic is as follows: priority is given to excluding candidate strategies with false alarm rates higher than the preset upper limit. Among the candidates that meet the false alarm rate constraint, priority is given to selecting strategies with lower false alarm rates. When a tie occurs, the macro average F1 value and the balanced accuracy are combined for further determination.
[0041] S9. Based on the fusion discrimination results, the preliminary classification is first completed through the optimal discrimination threshold, and the external constraint state or the verification result is directly output. For the observations that are initially judged as verification results, the release ranking score is further calculated. According to the release ratio determined by the training partition, the samples with the lowest risk are selected and released as external constraint states. Finally, the recognition result containing external constraint states or verification results is obtained.
[0042] The release ranking score is the positive class probability output by the rope expert model, or the maximum positive class probability output by the rope expert and scene expert models. The release ratio in the training partition must meet the following conditions: do not release observations that are actually in a free suspension or unattached state, do not increase the false safety rate and false alarm rate, and do not reduce the balance accuracy.
[0043] Example 2: Based on the identification process in Example 1, this embodiment saves and outputs intermediate results during the entire process, generates auditable information, and realizes traceable verification of the identification process.
[0044] Auditable information includes at least one of the following: fusion coefficients and support thresholds used in each step; number of supporting pixels, number of skeleton connected component pixels, path pixel length, and root point position corresponding to each worker's root topology assumption; topology envelope summary and scene descriptor summary; output probability of rope expert model and output probability of scene expert model; fusion weights and discrimination thresholds; unidirectional release result; and final safety rope visible usage status recognition result.
[0045] By retaining the key intermediate data throughout the entire process, it is possible to trace and verify critical processing steps such as safety rope support area generation, skeleton connectivity component selection, worker root path restoration, topological envelope formation, dual-expert probability fusion, and unidirectional release.
[0046] In summary, this invention constructs a multi-topology hypothesis forest by using multiple sets of fusion coefficients and support thresholds, transforming the uncertainty of upstream segmentation into multiple candidate topological forms. It extracts topological information by combining the two-layer feature expression of anchoring curves and topological envelopes. Then, through the constraint fusion of topology-scene dual expert models and the one-way release hierarchical decision-making mechanism, it can stably complete the identification of the visible usage status of safety ropes in construction scenarios where hooks and anchor points are difficult to observe directly. This reduces the risk of misjudging dangerous states as safe ones, while improving the efficiency and traceability of on-site screening.
[0047] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit them. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can still be made to the technical solutions of the present invention, and these modifications or equivalent substitutions cannot cause the modified technical solutions to deviate from the spirit and scope of the technical solutions of the present invention.
Claims
1. A method for recognizing the visible usage status of safety ropes in a topology-scene-constrained forest, characterized in that: Includes the following steps: S1. Based on the construction images, the worker-safety rope observation is obtained by extracting the worker bounding box, safety rope mask probability map, safety rope centerline probability map, and local images of the worker. S2. Based on the worker frame, by establishing a local coordinate system for the worker and aligning the two types of probability maps, we obtain probabilistic evidence under a unified coordinate system. S3. Based on multiple fusion coefficients and multiple support thresholds, multiple safety rope support regions are obtained by weighted fusion and thresholding of the two types of probability maps. S4. Based on each safety rope support area, the skeletonized components corresponding to the target worker are obtained by combining distance and length indicators for screening. S5. Based on the selected skeleton connectivity components, multiple worker root topological hypotheses are obtained by determining the root point and recovering the ordered path to the visible far end. S6. Based on multiple worker root topology assumptions, by extracting curve features and summarizing statistics, a topology descriptor containing anchor curve descriptors and topology envelope descriptors is obtained. S7. Based on local images of workers, scene descriptors are obtained by extracting color, brightness, edge and gradient features; S8. Based on the topology descriptor and the scene descriptor, the fusion discrimination result is obtained by inputting the dual expert models respectively and fusing the probabilities under the error safety rate constraint. S9. Based on the fusion discrimination result, a secondary judgment is made through the one-way release rule to obtain the identification result that includes the external constraint state or the verification result.
2. The method for recognizing the visible usage status of safety ropes based on topology-scene-constrained forests according to claim 1, characterized in that: In S3, based on the safety rope mask probability and centerline probability, a fusion support score is calculated by weighting the fusion coefficients and compared with a threshold to obtain the safety rope support region pixels; the formula is: ; in, Worker-Safety Rope Observation Index For pixel position, To integrate support scores, The fusion coefficient is... For the safety rope mask probability, The probability of the safety rope centerline.
3. The method for recognizing the visible usage status of safety ropes based on topology-scene-constrained forests according to claim 2, characterized in that: In S3, based on two sets of fusion coefficients of 0.65 and 0.85 and four sets of support thresholds of 0.12, 0.18, 0.24 and 0.30, eight safety rope support areas are obtained by combining and traversing fusion and thresholding.
4. The method for recognizing the visible usage status of safety ropes based on topology-scene-constrained forests according to claim 3, characterized in that: In S4, based on the distance from the skeleton connected component to the center of the worker box and the number of skeleton pixels, the selected skeleton connected component is obtained by calculating the minimum value of the component selection value. The calculation formula is: ; in, For the selected skeleton connected components, The squared distance of the nearest pixel from the connected component to the center of the worker's box is given. For the first The center of the worker frame corresponding to each observation. For component length weighting, This represents the number of skeleton pixels of the connected components.
5. The method for recognizing the visible usage status of safety ropes based on topology-scene-constrained forests according to claim 4, characterized in that: In S5, based on the skeleton root point closest to the center of the worker frame, the farthest point is obtained by breadth-first traversal of the eight neighborhoods and the parent node chain is backtracked to obtain the ordered curve of the worker root.
6. The method for recognizing the visible usage status of safety ropes based on topology-scene-constrained forests according to claim 5, characterized in that: Based on the worker's root ordered curve, a curve descriptor is obtained by resampling to a predetermined number of ordered points and calculating geometric features; the geometric features include at least one of endpoint displacement, path length, tortuosity, and curvature.
7. The method for recognizing the visible usage status of safety ropes based on topology-scene-constrained forests according to claim 6, characterized in that: In S6, curve descriptors based on multiple topological assumptions are used to obtain topological envelope descriptors by calculating quintiles for each dimension and concatenating vectors.
8. The method for recognizing the visible usage status of safety ropes based on topology-scene-constrained forests according to claim 6, characterized in that: In S6, based on a single ordered curve decoded with a preset fusion coefficient of 0.80 and a preset support threshold of 0.20, the anchor curve descriptor is obtained by extracting features.
9. The method for recognizing the visible usage status of safety ropes based on topology-scene-constrained forests according to claim 7, characterized in that: In S8, based on the candidate fusion weights and discrimination thresholds of the training partitions, the optimal fusion parameters are obtained by selecting strategies with false safety rates not exceeding the upper limit.
10. The method for recognizing the visible usage status of safety ropes based on topology-scene constrained forests according to claim 9, characterized in that: In S9, based on the release ranking score observed from the verification results, low-risk samples are selected according to the release ratio determined during training to obtain the observation set of releases under external constraints.
