Construction site violation behavior image recognition method and system

By using multimodal feature fusion and temporal correlation modeling, risk characteristic representations of construction sites are generated, and the range of early warning parameters is optimized. This solves the problems of insufficient identification ability and poor adaptability of existing systems, and achieves efficient monitoring and management of violations.

CN123182149APending Publication Date: 2026-11-27GUANGDONG ENERGY GROUP GUIYANG PUMPED STORAGE POWER GENERATION CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing construction site violation monitoring systems lack the integration of multi-dimensional and multi-modal features, making them unable to adapt to the complex environment and dynamic changes at construction sites. This results in insufficient identification capabilities and poor adaptability of the early warning mechanism, as well as a lack of adaptive adjustment capabilities.

Method used

By extracting multimodal scene feature vectors from the construction site, cross-domain feature fusion and temporal correlation modeling are performed to generate risk feature representations with spatiotemporal correlation attributes. Combined with historical construction data, the three-level early warning parameter range is optimized and adaptively adjusted. Structured early warning data is generated, and disposal plans are automatically matched and their effects are evaluated.

Benefits of technology

It significantly improves the robustness and real-time performance of identifying violations, reduces the probability of false identification, enhances the adaptability and security management level of the early warning system, and achieves complete closed-loop management from identification to optimization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123182149A_ABST
    Figure CN123182149A_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of construction site safety management, and particularly relates to a construction site illegal behavior image recognition method and system. The method comprises the following steps: acquiring real-time image data through a visual acquisition device, extracting a multi-modal scene feature vector and mapping it into a risk feature representation with space-time correlation attributes based on a multi-dimensional risk index system, determining the warning level according to the risk feature representation and the three-level warning parameter interval optimized in combination with the construction history data, recognizing the illegal behavior in the associated image area, retrieving the matched disposal scheme from the front-end alarm and on-site disposal measure association library to generate disposal instructions, obtaining the disposal effect evaluation record by associating and verifying the feedback data and the recognition result after execution to adaptively adjust the three-level warning parameter interval. The present application improves the accuracy of illegal behavior recognition and warning and the disposal efficiency, and realizes the adaptive optimization of the warning parameters.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of construction site safety management technology, and in particular to a method and system for image recognition of violations at construction sites. Background Technology

[0002] In the field of construction site safety management, traditional methods for monitoring violations mainly rely on manual inspections or real-time monitoring by fixed cameras. Manual inspections are limited by personnel allocation and inspection frequency, making it difficult to achieve 24 / 7, comprehensive real-time monitoring. Meanwhile, conventional video surveillance methods typically only collect single-dimensional visual images, directly detecting overt violations such as not wearing a safety helmet or smoking through image processing technology. These systems often use static rules or simple thresholds for alarms, lacking in-depth analysis of the complex environment and dynamic changes at construction sites.

[0003] Current technologies for processing image data often remain at the pixel level or shallow feature extraction level, failing to effectively integrate multi-source information. For example, cross-modal features such as spatial location information, temporal variation patterns, and image frequency distribution are not comprehensively utilized, resulting in insufficient ability to identify hidden risks or complex violations. Early warning mechanisms typically rely on fixed parameter thresholds, which are set by historical experience or industry standards and cannot adapt to dynamic changes in different construction stages, working environments, or personnel behaviors, easily leading to false alarms or missed alarms.

[0004] Furthermore, existing solutions lack a quantitative assessment and feedback loop for the effectiveness of handling violations after the incident is resolved. Once an alarm is triggered, the handling process often ends with manual intervention or simple recording, and the system cannot automatically adjust its warning strategy based on the actual results. This results in poor long-term adaptability of the warning system, making it difficult to continuously learn and optimize risk assessment criteria, thus limiting the improvement of intelligent management. Therefore, there is an urgent need for a construction site violation monitoring solution that can integrate multi-dimensional and multi-modal features and has adaptive adjustment capabilities. Summary of the Invention

[0005] This invention provides a method and system for image recognition of violations at construction sites, which can solve the problems in the prior art.

[0006] A first aspect of the present invention provides a method for image recognition of violations at construction sites, comprising:

[0007] Real-time image data of the construction site is acquired through visual acquisition equipment;

[0008] Multimodal scene feature vectors are extracted from the real-time image data. Based on a pre-constructed multi-dimensional risk indicator system, the multimodal scene feature vectors are mapped to quantitative risk indicators to obtain risk feature representations with spatiotemporal correlation attributes.

[0009] Based on the three-level early warning parameter range jointly optimized by the risk characteristic representation and construction history data, the early warning level of the risk characteristic representation is determined, and structured early warning data is generated.

[0010] The system identifies violations in the image regions associated with the structured early warning data, outputs the identification results, retrieves matching handling plans from the front-end alarm and on-site handling measures association database based on the identification results, and generates handling instructions.

[0011] Obtain on-site feedback data after the execution of the disposal instruction, correlate and verify the on-site feedback data with the identification result to obtain a disposal effect evaluation record, and use the disposal effect evaluation record to adaptively adjust the three-level early warning parameter range.

[0012] Multimodal scene feature vectors are extracted from the real-time image data. Based on a pre-constructed multi-dimensional risk indicator system, the multimodal scene feature vectors are mapped to quantitative risk indicators to obtain a risk feature representation with spatiotemporal correlation attributes, including:

[0013] The real-time image data is subjected to joint transformation and cross-domain feature fusion to generate a fused feature representation containing spatial semantic information and frequency domain statistical information;

[0014] Temporal correlation modeling is performed on the fused feature representation to construct a temporal correlation feature vector containing historical state information and current state information;

[0015] The temporal correlation feature vector and the fused feature representation are concatenated to generate the multimodal scene feature vector;

[0016] The spatial semantic information in the multimodal scene feature vector is mapped to a spatial location identifier, and the historical state information and current state information in the multimodal scene feature vector are mapped to a temporal state identifier;

[0017] Based on the predefined risk element types and risk level correspondence in the multi-dimensional risk indicator system, the multimodal scenario feature vector is mapped to the quantitative risk indicator.

[0018] The quantitative risk indicator is associated and encoded with the spatial location identifier and the temporal state identifier to generate the risk feature representation with spatiotemporal correlation attributes.

[0019] Temporal correlation modeling is performed on the fused feature representation to construct a temporal correlation feature vector containing historical state information and current state information, including:

[0020] Extract the historical image frame sequence corresponding to the current image frame from the construction history data, and extract the corresponding historical fusion feature representation for each historical image frame in the historical image frame sequence;

[0021] Calculate the feature change between the historical fusion feature representation and the fusion feature representation of the current image frame, and construct a temporal change trajectory based on the feature change. The temporal change trajectory is used to represent the dynamic change process of risk elements in the construction site from a historical moment to the current moment.

[0022] The time-series change trajectory is subjected to trend prediction analysis to extract trend features reflecting changes in the state of risk elements from the time-series change trajectory;

[0023] The historical fusion feature representation is encoded as the historical state information, the fusion feature representation of the current image frame is encoded as the current state information, and the trend feature is used as a temporal association attribute that links the historical state information and the current state information.

[0024] The historical state information, the current state information, and the time-series associated attributes are concatenated to generate the time-series associated feature vector.

[0025] Based on the three-level early warning parameter range jointly optimized by the risk characteristic representation and construction history data, the early warning level of the risk characteristic representation is determined, and structured early warning data is generated, including:

[0026] Historical violation records are extracted from the construction history data. These historical violation records include historical risk characteristics and severity indicators of the consequences of the historical violations at the time of occurrence.

[0027] Based on the statistical correlation between the historical risk characteristics and the severity indicators of historical violation consequences, the distribution of the severity of violation consequences corresponding to different risk characteristic values ​​is calculated.

[0028] Based on the distribution of the severity of the consequences of the violation, the numerical space of the risk characteristic representation is divided into the three-level early warning parameter intervals;

[0029] Extract the spatiotemporal correlation attributes from the risk feature representation, and dynamically adjust the three-level early warning parameter range based on the spatiotemporal correlation attributes to generate an adaptive early warning parameter range for the current risk feature representation;

[0030] If the value of the risk feature falls within the corresponding interval of the adaptive early warning parameter interval, the early warning level corresponding to the risk feature is determined.

[0031] The structured early warning data is generated by structurally encoding the early warning level and the spatiotemporal correlation attributes in the risk feature representation.

[0032] The system identifies violations within the image regions associated with the structured early warning data, outputs the identification results, retrieves matching handling plans from the front-end alarm and on-site handling measures association database based on the identification results, and generates handling instructions, including:

[0033] Spatiotemporal correlation attributes are extracted from the structured early warning data, and the target image region in the real-time image data is determined based on the spatial location identifier in the spatiotemporal correlation attributes.

[0034] The violation behavior features are extracted from the target image region, and the extracted violation behavior features are subjected to correlation analysis to identify the causal relationship between the violation behavior features;

[0035] Based on the causal relationship, the type of violation is determined, and the type of violation is combined with the warning level in the structured warning data to generate the identification result;

[0036] Extract a set of candidate handling solutions corresponding to the types of violations in the identification results from the front-end alarm and on-site handling measures association library;

[0037] Based on the warning level in the identification results, the candidate treatment plan set is prioritized and the treatment plan with the highest priority is selected as the matching treatment plan.

[0038] Extract the spatiotemporal correlation attributes from the structured early warning data, and generate the handling instructions based on the spatiotemporal correlation attributes and the matched handling scheme.

[0039] The target image region is subjected to violation behavior feature extraction, and the extracted violation behavior features are subjected to correlation analysis to identify the causal relationship between the violation behavior features, including:

[0040] Semantic segmentation is performed on the target image region to divide it into a personnel region, an equipment region, and an environment region;

[0041] Extract personnel posture features and personnel position features from the personnel area, extract equipment status features and equipment position features from the equipment area, and extract environmental risk features from the environment area;

[0042] Calculate the spatial distance relationship between the personnel location characteristics and the equipment location characteristics, and determine whether there is unauthorized contact or unauthorized proximity between the personnel and the equipment based on the spatial distance relationship;

[0043] Extract the action timing change information from the personnel posture features and the state timing change information from the equipment state features;

[0044] Calculate the temporal correlation between the action timing change information and the state timing change information, and determine whether there is a causal triggering relationship between the personnel action and the equipment state change based on the temporal correlation.

[0045] Based on a comprehensive assessment of the unauthorized contact or approach state, the causal triggering relationship, and the environmental risk characteristics, the causal relationship between the personnel posture characteristics, the equipment status characteristics, and the environmental risk characteristics is determined.

[0046] Obtain on-site feedback data after the execution of the disposal instruction, correlate and verify the on-site feedback data with the identification result to obtain a disposal effect evaluation record, and use the disposal effect evaluation record to adaptively adjust the three-level early warning parameter range, including:

[0047] Obtain on-site feedback data after the execution of the disposal instruction, identify violations in the on-site image data collected at the time of disposal execution in the on-site feedback data, and extract the violation status features after disposal execution;

[0048] The violation status characteristics are compared and analyzed with the violation behavior types in the identification results to calculate the degree of violation status elimination;

[0049] Based on the matching relationship between the degree of elimination of the violation and the warning level in the identification result, it is determined whether the execution effect of the handling instruction has achieved the expected result, and a handling effect evaluation record is generated.

[0050] Extract the correlation statistical features between the early warning level identifier and the disposal effect compliance identifier from the disposal effect evaluation record, calculate the disposal effect compliance rate corresponding to different early warning levels, and determine the misjudgment risk range in the three-level early warning parameter range based on the disposal effect compliance rate;

[0051] The distribution characteristics of the degree of elimination of violation status in the disposal effect evaluation record are extracted for the misjudged risk interval. The interval boundary of the misjudged risk interval is adjusted according to the distribution characteristics to generate an adaptively adjusted three-level early warning parameter interval.

[0052] A second aspect of the present invention provides an image recognition system for violations at construction sites, comprising:

[0053] The image acquisition unit is used to acquire real-time image data of the construction site through visual acquisition equipment;

[0054] The risk feature unit is used to extract multimodal scene feature vectors from the real-time image data, and based on a pre-constructed multidimensional risk indicator system, map the multimodal scene feature vectors to quantitative risk indicators to obtain risk feature representations with spatiotemporal correlation attributes.

[0055] The early warning determination unit is used to determine the early warning level of the risk feature representation based on the three-level early warning parameter range jointly optimized by the risk feature representation and construction history data, and generate structured early warning data.

[0056] The instruction generation unit is used to identify violations in the image regions associated with the structured early warning data, output the identification results, retrieve matching disposal plans from the front-end alarm and on-site disposal measures association library based on the identification results, and generate disposal instructions.

[0057] The parameter adjustment unit is used to acquire on-site feedback data after the execution of the disposal instruction, correlate and verify the on-site feedback data with the identification result to obtain a disposal effect evaluation record, and use the disposal effect evaluation record to adaptively adjust the three-level early warning parameter range.

[0058] A third aspect of the present invention provides an electronic device, comprising:

[0059] processor;

[0060] Memory used to store processor-executable instructions;

[0061] The processor is configured to invoke instructions stored in the memory to execute the aforementioned method.

[0062] A fourth aspect of the present invention provides a computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, implement the aforementioned method.

[0063] This invention extracts multimodal scene feature vectors from real-time construction site image data and combines them with spatial semantics and frequency domain statistical information to construct a risk feature representation with spatiotemporal correlation attributes. This representation can comprehensively capture multidimensional risk characteristics of construction sites, effectively reducing the probability of misidentification caused by viewpoint obstruction, lighting changes, or equipment vibration. The mapping between visual data and historical risk dimensions enables the early warning analysis to possess both spatial positioning accuracy and temporal evolution patterns, significantly improving the robustness and real-time performance of violation identification. It has a particularly outstanding advantage in the early detection of high-risk events in dynamic construction scenarios.

[0064] This invention optimizes the three-level early warning parameter range with historical construction data to better reflect actual on-site conditions, avoiding false alarms or missed warnings caused by fixed thresholds. The association coding of risk feature representation and spatiotemporal identifiers further enhances the interpretability of the early warning results, facilitating managers to quickly locate the source of risk and its historical evolution. The generation of structured early warning data enables precise binding of risk information to image regions, providing high-precision input for subsequent violation identification and reducing computational redundancy.

[0065] This invention shortens emergency response time by automating the process from violation identification output to front-end alarm and response plan matching. The on-site feedback data after the execution of the response command is correlated and verified with the identification results. The generated response effect evaluation record not only verifies the effectiveness of the response measures but also adaptively adjusts the three-level early warning parameter range accordingly. The dynamic parameter optimization mechanism enables the early warning system to continuously adapt to different construction stages, environmental changes, and individual work behavior differences, forming a complete closed loop from identification to optimization and improvement. Over long-term operation, this significantly improves overall monitoring efficiency and safety management level. Attached Figure Description

[0066] Figure 1 This is a flowchart illustrating the image recognition method for construction site violations according to an embodiment of the present invention.

[0067] Figure 2 This is a schematic diagram of the process for determining risk characteristics in an embodiment of the present invention. Detailed Implementation

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

[0069] The technical solution of the present invention will be described in detail below with reference to specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.

[0070] Figure 1 This is a flowchart illustrating the image recognition method for construction site violations according to an embodiment of the present invention. Figure 1 As shown, the image recognition method for violations at the construction site includes:

[0071] Real-time image data of the construction site is acquired through visual acquisition equipment;

[0072] Multimodal scene feature vectors are extracted from the real-time image data. Based on a pre-constructed multi-dimensional risk indicator system, the multimodal scene feature vectors are mapped to quantitative risk indicators to obtain risk feature representations with spatiotemporal correlation attributes.

[0073] Based on the three-level early warning parameter range jointly optimized by the risk characteristic representation and construction history data, the early warning level of the risk characteristic representation is determined, and structured early warning data is generated.

[0074] The system identifies violations in the image regions associated with the structured early warning data, outputs the identification results, retrieves matching handling plans from the front-end alarm and on-site handling measures association database based on the identification results, and generates handling instructions.

[0075] Obtain on-site feedback data after the execution of the disposal instruction, correlate and verify the on-site feedback data with the identification result to obtain a disposal effect evaluation record, and use the disposal effect evaluation record to adaptively adjust the three-level early warning parameter range.

[0076] Figure 2 This is a schematic diagram illustrating the process of determining risk characteristic representation according to an embodiment of the present invention. Figure 2 As shown, multimodal scene feature vectors are extracted from the real-time image data. Based on a pre-constructed multi-dimensional risk indicator system, the multimodal scene feature vectors are mapped to quantitative risk indicators to obtain a risk feature representation with spatiotemporal correlation attributes, including:

[0077] The real-time image data is subjected to joint transformation and cross-domain feature fusion to generate a fused feature representation containing spatial semantic information and frequency domain statistical information;

[0078] Temporal correlation modeling is performed on the fused feature representation to construct a temporal correlation feature vector containing historical state information and current state information;

[0079] The temporal correlation feature vector and the fused feature representation are concatenated to generate the multimodal scene feature vector;

[0080] The spatial semantic information in the multimodal scene feature vector is mapped to a spatial location identifier, and the historical state information and current state information in the multimodal scene feature vector are mapped to a temporal state identifier;

[0081] Based on the predefined risk element types and risk level correspondence in the multi-dimensional risk indicator system, the multimodal scenario feature vector is mapped to the quantitative risk indicator.

[0082] The quantitative risk indicator is associated and encoded with the spatial location identifier and the temporal state identifier to generate the risk feature representation with spatiotemporal correlation attributes.

[0083] Real-time image data acquired from visual acquisition devices first undergoes a preprocessing stage to ensure the stability and accuracy of subsequent processing. This preprocessing includes image normalization, which maps the pixel values ​​of the input image to a floating-point range of 0 to 1. A minimum-maximum normalization method is used, calculating the minimum and maximum pixel values ​​across the entire image, then subtracting the minimum value from each pixel value and dividing by the difference between the maximum and minimum values ​​to complete normalization. The image size needs to be uniformly adjusted to a fixed resolution to adapt to the input requirements of the subsequent feature extraction network. Bilinear interpolation is used to scale the original image. When the aspect ratio of the original image does not match the target resolution aspect ratio, it is first scaled proportionally to match the target size on the longer side, then the shorter side is padded. The padded pixel value is the average of adjacent pixels to avoid introducing edge artifacts. The preprocessed image data then enters the joint transformation and cross-domain feature fusion stage.

[0084] The joint transformation module performs parallel spatial and frequency domain feature extraction on the preprocessed real-time image data. Spatial domain feature extraction is achieved through a convolutional neural network structure, which consists of a cascaded combination of multiple convolutional and pooling layers. The convolutional layers use 3x3 kernels to scan the local receptive field of the image with a stride of 1 to preserve spatial detail. The pooling layers use a 2x2 max-pooling window for downsampling to reduce feature dimensionality and enhance translation invariance. Each convolutional layer is followed by a batch normalization layer and an activation layer. The batch normalization layer normalizes the feature map output by channel dimension, calculates the mean and variance of all positions in each channel, subtracts the mean from the feature value, divides by the square root of the variance, and adds a small stability constant. The activation layer uses a modified linear unit function to perform a nonlinear transformation on the normalized feature values, setting feature values ​​less than 0 to 0 to introduce sparsity. The feature map obtained after multiple convolutions and pooling contains rich spatial semantic information, including local and global features such as the location, shape, and texture of the target. Frequency domain feature extraction is achieved by performing a Fast Fourier Transform (FFT) on real-time image data, converting the pixel values ​​in the spatial domain into spectral components in the frequency domain. The FFT performs a one-dimensional transformation on each row and column, then combines the results to form a two-dimensional spectrum. The amplitude component of the spectrum reflects the frequency distribution of the image, while the phase component reflects the spatial structure information. A logarithmic transformation is performed on the amplitude component of the spectrum to compress the dynamic range, facilitating subsequent processing and visualization. The transformation method involves taking the natural logarithmic value of the spectrum amplitude plus one. Frequency domain features have a good ability to characterize the global statistical properties of images, capturing periodic patterns and frequency distribution features that are difficult to express explicitly in the spatial domain.

[0085] The cross-domain feature fusion module deeply fuses spatial domain features and frequency domain features to generate a fused feature representation containing multi-dimensional information. The fusion operation consists of two stages: feature alignment and feature fusion. In the feature alignment stage, a projection layer maps spatial and frequency domain features to a unified feature dimension space. The projection layer uses 1x1 convolution to achieve a linear transformation of the channel dimension while maintaining the spatial dimension. The aligned spatial and frequency domain features are then concatenated along the channel dimension to form a two-stream feature representation. In the feature fusion stage, an attention mechanism adaptively weights and fuses the two-stream features. The attention mechanism first calculates the similarity matrix between the spatial and frequency domain features. The similarity calculation uses a dot product method, performing an inner product operation between each channel of the spatial domain feature and each channel of the frequency domain feature. The resulting similarity matrix reflects the degree of correlation between the two features. The similarity matrix is ​​then normalized along the channel dimension using an exponential normalization function to convert the similarity values ​​into weight coefficients in the range of 0 to 1, with the sum of the weight coefficients being 1. The weight coefficients are then weighted and summed with both the spatial and frequency domain features to obtain the fused feature representation. The fusion feature representation contains both spatial semantic information and frequency domain statistical information. The spatial semantic information is reflected in the semantic categories and spatial relationships corresponding to different positions in the feature map, while the frequency domain statistical information is reflected in the energy distribution and phase characteristics of the corresponding frequency components in the feature vector.

[0086] The temporal correlation modeling module extends and models the fused feature representation in a temporal dimension, constructing a temporal correlation feature vector containing historical and current state information. Temporal correlation modeling is implemented using a recurrent neural network (RNN) structure. The RNN expands step-by-step, with each step receiving the fused feature representation of the current time step as input and maintaining a hidden state vector as a compressed representation of the historical state information. The update of the hidden state vector is achieved through a gating mechanism, which consists of three components: a forgetting gate, an input gate, and an output gate. The forgetting gate calculates a forgetting coefficient between 0 and 1 based on the current input and the hidden state of the previous time step. The forgetting coefficient is obtained by concatenating the current input and the hidden state of the previous time step, performing a linear transformation, and then mapping through a logistic function. A forgetting coefficient close to 0 indicates that a large amount of historical state information needs to be forgotten, while a coefficient close to 1 indicates that it needs to be completely retained. The input gate calculates an input coefficient between 0 and 1 based on the current input and the hidden state of the previous time step. The calculation method for the input coefficient is similar to that of the forgetting coefficient, and the input coefficient controls how much of the current input information is written into the hidden state. The candidate state vector is obtained by concatenating the current input with the hidden state from the previous time step, performing a linear transformation, and then mapping it using the hyperbolic tangent function. The hyperbolic tangent function maps the candidate state values ​​to [-1, 1] to enhance expressive power. The hidden state vector at the current time step is obtained by adding the element-wise product of the hidden state from the previous time step and the element-wise product of the input gate and the candidate state vector. The output gate calculates an output coefficient between 0 and 1 based on the current input and the current hidden state. The output coefficient controls how much information in the hidden state is output as the temporal correlation feature vector. The temporal correlation feature vector is obtained by the element-wise product of the output gate and the current hidden state after activation by the hyperbolic tangent function. The temporal correlation feature vector contains state evolution information from historical time steps to the current time step, which can capture the dynamic change patterns and trend characteristics of the construction site. The time window length of the recurrent neural network is set to 10 time steps, that is, maintaining the state information of the most recent 10 time steps. The choice of window length needs to balance the coverage of historical information and computational cost. Too long a window will lead to the gradient vanishing problem, and too short a window cannot fully capture long-term dependencies.

[0087] The generation of multimodal scene feature vectors is achieved by concatenating temporally correlated feature vectors with fused feature representations. This concatenation operation is performed along the feature dimension, sequentially arranging each element of the temporally correlated feature vector with the corresponding feature value of the fused feature representation to form a higher-dimensional joint feature vector. Before concatenation, it is necessary to ensure that the spatial dimensions of the temporally correlated feature vectors and the fused feature representations are consistent. If they are inconsistent, global average pooling or adaptive pooling is used to compress the spatial dimension of the fused feature representation to be the same as that of the temporally correlated feature vectors. Global average pooling calculates the average value of all spatial locations for each channel of the fused feature representation, compressing the 2D feature map into a 1D feature vector. The concatenated multimodal scene feature vector simultaneously contains a comprehensive representation of four modalities: spatial semantic information, frequency domain statistical information, historical state information, and current state information, providing a comprehensive feature foundation for subsequent risk quantification and early warning determination.

[0088] The construction of spatiotemporal correlation attributes involves two parallel paths: the generation of spatial location identifiers and the generation of temporal state identifiers. Spatial location identifiers are generated by parsing the spatial semantic information in the multimodal scene feature vectors. Spatial semantic information corresponds to the dimensional components of the feature vectors originating from spatial domain features; these components preserve the spatial structure information of the feature maps. By performing semantic segmentation on the spatial semantic information, each pixel position in the feature map is assigned to a predefined semantic category. These categories include spatial types related to construction site risks, such as personnel areas, equipment areas, material stacking areas, and hazardous operation areas. Semantic segmentation employs a decoder structure combining upsampling and skip connections. Upsampling uses transposed convolution to gradually restore the low-resolution feature map to the original image resolution. Skip connections concatenate feature maps from different levels of the encoding stage with the corresponding feature maps from the decoding layer to fuse multi-scale information. After labeling each pixel position with a semantic category, the segmentation result extracts independent semantic regions through clustering and connected component analysis. The centroid coordinates and bounding box coordinates of each semantic region are calculated as spatial location identifiers. The centroid coordinates are obtained by calculating the arithmetic mean of the coordinates of all pixels within the region. The bounding box coordinates are determined by extracting the minimum and maximum x-coordinates, minimum and maximum y-coordinates of the pixels within the region to define the rectangular area. Spatial location identifiers are stored in structured data format, including semantic category fields, centroid x-coordinate fields, centroid y-coordinate fields, bounding box top-left corner x-coordinate fields, bounding box top-left corner y-coordinate fields, bounding box width fields, and bounding box height fields.

[0089] The generation of temporal state identifiers is achieved by comparing and analyzing historical and current state information in the feature vectors of multimodal scenes. The dimensional components of the corresponding feature vectors for historical and current state information originate from the temporally related feature vectors. The degree and direction of change in the construction site state are quantified by calculating the difference between historical and current state information. The difference metric uses Euclidean distance, summing the squares of the differences between corresponding elements of the historical and current state information vectors and taking the square root to obtain the distance value. A larger distance value indicates a more drastic state change. Further analysis of the direction of state change is conducted by calculating the cosine similarity between the historical and current state information vectors to determine whether the state change tends towards increased or decreased risk. The cosine similarity is obtained by dividing the dot product of the two vectors by the product of their respective moduli. A similarity close to 1 indicates that the direction of state change is consistent with the historical trend, close to -1 indicates the opposite direction, and close to 0 indicates orthogonal independence. The temporal state identifiers are stored in numerical feature form, including fields for state change amplitude, state change direction, change acceleration, and change duration. The acceleration of change is calculated by comparing the difference in the magnitude of state changes across multiple consecutive time steps, and the duration of change is obtained by counting the number of time steps in which the same direction of change occurs consecutively.

[0090] The generation of quantitative risk indicators is based on a pre-constructed multi-dimensional risk indicator system. This system includes definitions and quantification rules for multiple risk dimensions. Each risk dimension corresponds to a type of construction site safety risk, including fall from height risk, falling object risk, mechanical injury risk, and electric shock risk. Each risk dimension defines a set of risk element types and risk level correspondences. The risk element types describe the specific factors leading to the risk, and the risk level correspondence maps the quantified values ​​of the risk elements to risk level ranges. The mapping between multimodal scene feature vectors and the risk indicator system is achieved through a classifier network. The classifier network adopts a fully connected cascaded structure, with the input being the multimodal scene feature vector and the output being the probability distribution of risk levels for each risk dimension. The fully connected layers perform linear transformations on the input features through matrix multiplication and bias addition. Each fully connected layer is followed by a batch normalization layer and an activation layer to enhance expressive power and training stability. The output dimension of the final fully connected layer is equal to the number of risk level categories. The output value is converted into a probability distribution through an exponential normalization function, where the probability value of each category represents the confidence level of that risk level. The category with the highest probability value is selected as the predicted risk level, and this risk level is mapped to the corresponding quantitative risk indicator value. The quantitative risk indicator value is assigned according to the severity of the risk level: low risk is assigned a value ranging from 0 to 30, medium risk from 30 to 70, and high risk from 70 to 100. The quantitative risk indicator is stored in structured data format, including a risk dimension identifier field, a risk element type field, a risk level field, and a risk indicator value field.

[0091] Risk feature representation with spatiotemporal correlation attributes is generated by associating quantitative risk indicators with spatial location identifiers and temporal state identifiers through encoding. This association encoding uses a key-value pair mapping method, with the semantic category and centroid coordinates of the spatial location identifier as the key, and the complete information of the quantitative risk indicator, temporal state identifier, and spatial location identifier as the value. The encoding result generates one risk feature representation instance for each spatial location, containing spatial dimension field groups, temporal dimension field groups, and risk dimension field groups. The spatial dimension field groups contain all fields of the spatial location identifier, such as semantic category, centroid coordinates, and bounding box coordinates. The temporal dimension field groups contain all fields of the temporal state identifier, such as state change magnitude, state change direction, change acceleration, and change duration. The risk dimension field groups contain all fields of the quantitative risk indicator, such as risk dimension identifier, risk element type, risk level, and risk indicator value. During the encoding process, consistency checks are performed on the spatiotemporal identifiers and risk indicators to ensure that only one risk feature representation instance exists for the same spatial location at the same time, avoiding data redundancy and conflicts. Risk characteristic representation instances are indexed based on timestamps and spatial locations, supporting multi-dimensional retrieval operations such as querying by time range, querying by spatial region, and querying by risk level range.

[0092] Taking a high-altitude work scenario at a construction site as an example, the data case illustrates the entire process. The real-time image data acquired by the visual acquisition device is a single color image with a resolution of 1920x1080 pixels. The image content includes the scaffolding area, workers, safety nets, and the ground area. After preprocessing, the image is normalized to the 0-1 range, and its size is uniformly adjusted to 512x512 pixels. The spatial domain features extracted by the joint transformation module are a 512-channel, 16x16 spatial resolution feature map, and the frequency domain features are a 256-dimensional spectral feature vector. The fused feature after cross-domain feature fusion is represented as a 768-channel, 16x16 spatial resolution feature map. Temporal correlation modeling maintains the historical state over 10 time steps. The hidden state vector at each time step has a dimension of 512, and the temporal correlation feature vector at the current moment also has a dimension of 512. The multimodal scene feature vectors are concatenated to obtain a feature vector with a dimension of 1280. Spatial location markers identified three semantic regions: Region 1 is the scaffolding area, with a centroid coordinate of x-coordinate 256 and y-coordinate 128, a bounding box upper-left corner coordinate of x-coordinate 100 and y-coordinate 50, and a width of 300 and a height of 200. Region 2 is the worker area, with a centroid coordinate of x-coordinate 300 and y-coordinate 200, a bounding box upper-left corner coordinate of x-coordinate 250 and y-coordinate 150, and a width of 100 and a height of 150. Region 3 is the safety net area, with a centroid coordinate of x-coordinate 150 and y-coordinate 400, a bounding box upper-left corner coordinate of x-coordinate 50 and y-coordinate 300, and a width of 200 and a height of 200. Temporal status markers showed that the status change amplitude of the worker area was 0.85, the direction of change was positively increasing, the acceleration of change was 0.12, and the duration of change was 5 time steps. Quantitative risk indicators identified a fall-from-height risk, with a risk level of high risk and a risk index value of 85. The risk feature representation with spatiotemporal correlation attributes associates and encodes the spatial location identifier, temporal status identifier and quantitative risk indicators of the operator's area, generating a structured risk feature representation instance containing 15 fields. The unique identifier of the instance is a combination of timestamp and spatial centroid coordinates.

[0093] Temporal correlation modeling is performed on the fused feature representation to construct a temporal correlation feature vector containing historical state information and current state information, including:

[0094] Extract the historical image frame sequence corresponding to the current image frame from the construction history data, and extract the corresponding historical fusion feature representation for each historical image frame in the historical image frame sequence;

[0095] Calculate the feature change between the historical fusion feature representation and the fusion feature representation of the current image frame, and construct a temporal change trajectory based on the feature change. The temporal change trajectory is used to represent the dynamic change process of risk elements in the construction site from a historical moment to the current moment.

[0096] The time-series change trajectory is subjected to trend prediction analysis to extract trend features reflecting changes in the state of risk elements from the time-series change trajectory;

[0097] The historical fusion feature representation is encoded as the historical state information, the fusion feature representation of the current image frame is encoded as the current state information, and the trend feature is used as a temporal association attribute that links the historical state information and the current state information.

[0098] The historical state information, the current state information, and the time-series associated attributes are concatenated to generate the time-series associated feature vector.

[0099] When performing temporal correlation modeling on the fused feature representation, it is necessary to extract a sequence of historical image frames that are temporally correlated with the current image frame from the historical construction data. Specifically, using the acquisition timestamp of the current image frame as a reference, backtracking along the historical timeline, and retrieving historical image frames consistent with the current camera viewpoint and construction area location from the historical database according to a preset time window length and sampling interval, an ordered sequence of historical image frames is formed. The time span of this sequence can be configured according to the dynamic change frequency of the construction scene. For example, a shorter time window can be used in high-frequency operation areas to capture rapidly changing risk states, while a longer time window can be appropriately extended in low-frequency areas to obtain more complete historical state information. For each frame in the historical image frame sequence, the same joint transformation and cross-domain feature fusion process as the current image frame is used to extract the corresponding historical fused feature representation, ensuring that the historical features and current features are comparable and consistent in the feature space, laying the foundation for subsequent calculation of feature changes.

[0100] When calculating the feature change between the historical fused feature representation and the current image frame fused feature representation, for the th frame in the sequence... Frame fusion feature representation of historical image frames Feature representation fused with the current image frame The feature change vector is obtained through dimension-wise interpolation. ,in For historical frame indexing, Indicates the first Frame fusion feature representation of historical image frames, This represents the fused feature representation of the current image frame. This represents the corresponding feature change vector. After calculating the feature change vectors for all historical frames in the sequence, these change vectors are arranged in chronological order to construct a temporal change trajectory. This temporal change trajectory, in the form of a structured vector sequence, fully records the dynamic evolution path of risk factors (such as the spatial distribution of workers, the wearing status of protective equipment, and the occupancy of hazardous areas) in the feature space from the earliest historical moment to the current moment, providing temporally coherent input data for subsequent trend prediction analysis.

[0101] When performing trend prediction analysis on time-series change trajectories, a time-series analysis method with sequence modeling capabilities is introduced to process the change trajectory. The time-series change trajectory is input into a pre-trained time-series feature extraction network. This network perceives and models patterns such as periodicity, monotonically increasing or decreasing trends, and abrupt changes in historical change sequences, outputting a trend feature vector that reflects the changing trend of risk factors. The trend feature vector contains multi-dimensional trend description information. For example, the rate of change component of the risk factor is used to characterize the speed of state change, the direction of change component is used to indicate whether the risk level is rising, and the magnitude of change component is used to quantify the degree to which the risk factor deviates from the normal baseline state. Through trend analysis of time-series change trajectories, not only can the static state of risk at the current moment be captured, but the evolution direction of risk factors in the short term can also be predicted, thus providing forward-looking time-series dynamic information for subsequent risk feature representation.

[0102] After extracting trend features, the historical fusion feature representations from the historical image frame sequence are aggregated and encoded to generate a historical state information vector. This vector comprehensively reflects the overall state distribution of the construction site within the historical time window. The fusion feature representation of the current image frame is directly encoded into a current state information vector, preserving the complete scene features at the current moment. The trend feature vector is used as a temporal association attribute linking historical and current state information. This attribute acts as a semantic bridge, describing the dynamic process and change patterns from the historical state to the current state. During the encoding of historical state information, differentiated weights can be assigned to historical frames at different time intervals in the sequence. Historical frames closer to the current moment are given higher weights to highlight the impact of the recent state on the current risk assessment; historical frames farther from the current moment are given lower weights to avoid excessive interference from premature historical information in the current state assessment.

[0103] Vector of historical state information Current state information vector Time-related attribute vector The features are concatenated according to a preset dimensional order. The concatenation operation directly links the three vectors along the feature dimensions to generate a temporally correlated feature vector. ,in This is a vector of historical state information. This is the current state information vector. For time-series related attribute vectors, The final generated temporal correlation feature vector, symbol This represents a vector concatenation operation. The temporal correlation feature vector simultaneously carries accumulated information from historical states, immediate information from the current state, and dynamic correlation information between the two in the feature space. These three parts complement each other, jointly forming a complete temporal description of the risk state at the construction site. This feature vector is then further concatenated with the fused feature representation to ultimately form a multimodal scene feature vector, providing sufficient feature input for subsequent quantitative risk indicator mapping based on a multi-dimensional risk indicator system.

[0104] In real-world construction scenarios, the aforementioned temporal correlation modeling method can effectively address the complex dynamic changes at construction sites. For example, as construction workers gradually approach hazardous work areas, the temporal trajectory can capture the continuous changing trends of personnel position characteristics. Trend prediction analysis can identify the escalating risk before violations fully occur, thus enhancing the foresight and timeliness of subsequent early warning judgments. For periodic work scenarios, temporal correlation modeling can also distinguish between state fluctuations and abnormal risk states within normal work cycles, reducing the false alarm rate caused by normal work actions and improving the overall accuracy and reliability of the identification method.

[0105] Based on the three-level early warning parameter range jointly optimized by the risk characteristic representation and construction history data, the early warning level of the risk characteristic representation is determined, and structured early warning data is generated, including:

[0106] Historical violation records are extracted from the construction history data. These historical violation records include historical risk characteristics and severity indicators of the consequences of the historical violations at the time of occurrence.

[0107] Based on the statistical correlation between the historical risk characteristics and the severity indicators of historical violation consequences, the distribution of the severity of violation consequences corresponding to different risk characteristic values ​​is calculated.

[0108] Based on the distribution of the severity of the consequences of the violation, the numerical space of the risk characteristic representation is divided into the three-level early warning parameter intervals;

[0109] Extract the spatiotemporal correlation attributes from the risk feature representation, and dynamically adjust the three-level early warning parameter range based on the spatiotemporal correlation attributes to generate an adaptive early warning parameter range for the current risk feature representation;

[0110] If the value of the risk feature falls within the corresponding interval of the adaptive early warning parameter interval, the early warning level corresponding to the risk feature is determined.

[0111] The structured early warning data is generated by structurally encoding the early warning level and the spatiotemporal correlation attributes in the risk feature representation.

[0112] When extracting historical violation records from the construction history database, it is necessary to ensure the completeness of the records and the representativeness of the time span. Each historical violation record contains two types of key information: first, a historical risk characteristic representation corresponding to the time of the violation, which carries spatiotemporal correlation attributes and can reflect the scenario state at the time of the violation; second, an indicator of the severity of the consequences of the historical violation, which is assigned by human experts or post-event investigation results, and is usually labeled according to three levels: minor, moderate, and severe. In the data preprocessing stage, the historical records need to be denoised and normalized to remove outlier samples caused by data acquisition equipment failure or labeling errors, ensuring the reliability of statistical analysis.

[0113] Based on the aforementioned historical violation records, a statistical correlation is established between the numerical values ​​of historical risk characteristics and the severity indicators of historical violation consequences. Specifically, the numerical space of historical risk characteristics is discretized and partitioned, and the frequency distribution of severity indicators for historical samples falling into each partition is statistically analyzed, thereby obtaining the distribution of the severity of violation consequences corresponding to different risk characteristic numerical ranges. Let the i-th... The risk characteristic representation value of each sample is: The corresponding severity level is indicated as For a given numerical range The subset of samples falling into this segment is The severity level in this section is The conditional probability estimate is ,in This represents the number of elements in the set. By repeating the above statistical process for all numerical ranges, a complete distribution curve of the severity of the consequences of violations can be obtained, providing data support for subsequent parameter interval division.

[0114] Based on the distribution of the severity of the consequences of violations, the numerical space representing risk characteristics is divided into three levels of early warning parameter intervals. The division principle is based on the probability density inflection point of the severity distribution: when the conditional probability of the "severe" category in the severity distribution exceeds the preset high-risk threshold... When the corresponding numerical range is classified into the Level 3 warning range (highest warning level), the conditional probability of the "medium" category exceeds the preset medium-risk threshold. If the conditions for high risk are not met, the corresponding section is designated as a Level II warning zone; the remaining sections are designated as a Level I warning zone (lowest warning). The boundary values ​​of the three zones are denoted as follows: and ,satisfy ,form , , Three-segment structure. The aforementioned threshold. , and boundary values , All parameters are determined through a joint optimization process using historical data. A multi-objective optimization method that maximizes the accuracy of early warning and minimizes the false alarm rate can be used to solve the problem, so that the parameter intervals of the three-level early warning system have the best distinguishing ability on historical data.

[0115] After completing the basic three-level early warning parameter interval division, it is necessary to further utilize the spatiotemporal correlation attributes carried in the current risk characteristic representation to dynamically adjust the interval boundaries, thereby generating an adaptive early warning parameter interval for the current scenario. The spatiotemporal correlation attributes include two dimensions: spatial location identifier and temporal state identifier. The spatial location identifier reflects the type of construction area where the current violation risk is located; different areas (such as high-altitude operation areas, machinery operation areas, densely populated passageways, etc.) have significantly different inherent risk coefficients. The temporal state identifier reflects the current position on the construction process timeline; the sensitivity of violation risk varies at different process stages. A spatial adjustment factor is introduced based on the spatial location identifier. A timing adjustment factor is introduced based on the timing state identifier. Both are obtained by querying a pre-established adjustment factor mapping table. The adjusted adaptive interval boundary value is calculated as follows: as well as ,in and All values ​​are non-negative real numbers. A positive value is used when the inherent risk of the current scenario is higher than the historical average, causing the interval boundary to shrink to the left, triggering a higher warning level under the same risk characteristic value; conversely, a negative value is used when the inherent risk is lower, causing the interval boundary to expand to the right. Through this dynamic adjustment mechanism, the adaptive warning parameter interval can fully consider the specificities of the current spatiotemporal context while maintaining historical statistical regularities, thus improving the accuracy of warning judgment.

[0116] After determining the adaptive early warning parameter range, the numerical value representing the current risk characteristic is compared with the adjusted boundary value. and The values ​​are compared to determine which interval falls within the three-level range, thus establishing the warning level. If the risk characteristic value is less than... If the value is within a certain range, it is considered a Level 1 warning, indicating that the current scenario risk is within an acceptable range; if the value is between and If the value is between [a certain value] and [a certain value], it is considered a Level 2 warning, indicating a potential risk of violation that requires attention; if the value is greater than or equal to [a certain value], it is considered a Level 2 warning. If the warning level is not met, it is classified as a Level 3 warning, indicating that a high-risk violation has occurred in the current scenario, requiring immediate triggering of the response process. The warning level determination results are stored as an enumerated identifier, corresponding to low risk, medium risk, and high risk, respectively, to facilitate rapid retrieval and response in subsequent processing procedures.

[0117] The warning level determination result and the spatiotemporal correlation attributes in the risk feature representation are structured and encoded to generate structured warning data. The structured encoding adopts a fixed field format, including the following fields: warning level field (stores the three-level level identifier), spatial location field (stores the spatial location identifier, including the construction area number and coordinate information), temporal status field (stores the temporal status identifier, including the process stage number and timestamp), risk value field (stores the original value of the current risk feature representation), and adaptive boundary field (stores the value used in this determination). and (For subsequent tracing and evaluation). Structured early warning data is output in the form of standardized data packets, which can be directly transmitted to the violation identification process and the front-end alarm system, ensuring that downstream processing links can fully obtain the early warning context information and support accurate violation location and retrieval of handling solutions. The structured coding also retains an adaptive adjustment factor. and The records provide a complete decision-making traceability basis for subsequent evaluation of treatment effectiveness and adaptive adjustment of early warning parameters.

[0118] The system identifies violations within the image regions associated with the structured early warning data, outputs the identification results, retrieves matching handling plans from the front-end alarm and on-site handling measures association database based on the identification results, and generates handling instructions, including:

[0119] Spatiotemporal correlation attributes are extracted from the structured early warning data, and the target image region in the real-time image data is determined based on the spatial location identifier in the spatiotemporal correlation attributes.

[0120] The violation behavior features are extracted from the target image region, and the extracted violation behavior features are subjected to correlation analysis to identify the causal relationship between the violation behavior features;

[0121] Based on the causal relationship, the type of violation is determined, and the type of violation is combined with the warning level in the structured warning data to generate the identification result;

[0122] Extract a set of candidate handling solutions corresponding to the types of violations in the identification results from the front-end alarm and on-site handling measures association library;

[0123] Based on the warning level in the identification results, the candidate treatment plan set is prioritized and the treatment plan with the highest priority is selected as the matching treatment plan.

[0124] Extract the spatiotemporal correlation attributes from the structured early warning data, and generate the handling instructions based on the spatiotemporal correlation attributes and the matched handling scheme.

[0125] When identifying violations in image regions associated with structured early warning data, the spatiotemporal correlation attributes are first extracted from the structured early warning data. The structured early warning data is stored in an early warning record table in a relational database. The table structure includes fields for early warning identifier, early warning level, risk indicator value, spatial location identifier, timestamp, and associated camera identifier. The extraction of spatiotemporal correlation attributes involves querying the early warning record table to obtain the values ​​of the spatial location identifier and timestamp fields. The spatial location identifier field uses three-dimensional coordinates, including x, y, and height coordinates, with the origin of the coordinate system set to the reference point at the construction site. The timestamp field records the absolute moment the early warning occurred, using a standard time format. The associated camera identifier field stores the camera device number covering the spatial location, used to subsequently determine the source of the real-time image data.

[0126] When determining the target image region in real-time image data based on spatial location identifiers, a mapping relationship between the spatial coordinate system and the image pixel coordinate system needs to be established. This mapping relationship is achieved through camera calibration parameters, which are stored in the camera configuration table and include the camera intrinsic parameter matrix and extrinsic parameter matrix. The intrinsic parameter matrix describes the camera's focal length, principal point position, and distortion coefficients, while the extrinsic parameter matrix describes the camera's position and orientation in the spatial coordinate system. The calibration process uses a checkerboard calibration board to capture images at multiple known spatial locations on the construction site. By detecting the pixel coordinates of the checkerboard corner points in the image and their corresponding spatial coordinates, the calibration parameters are solved using perspective transformation. The accuracy of the calibration parameters is evaluated through reprojection error. The reprojection error is the Euclidean distance between the pixel coordinates of the spatial points projected onto the image plane using the calibrated parameters and the actual detected pixel coordinates. If the error is less than a set pixel threshold, the calibration parameters are considered usable.

[0127] The 3D coordinates of the spatial location marker are transformed to the camera coordinate system using the extrinsic parameter matrix of the calibration parameters, and then projected to the image pixel coordinate system using the intrinsic parameter matrix to obtain the pixel coordinates of the spatial location in the image. Since the spatial location marker usually corresponds to a region rather than a single point, the region range needs to be determined according to the warning type. The region range is determined by expanding outwards by a fixed pixel distance from the projection center point. The expansion distance is dynamically adjusted according to the warning level; the higher the warning level, the larger the expansion distance to cover a wider observation range. The coordinates of the expanded region boundary include the x-coordinate of the upper left corner, the y-coordinate of the upper left corner, the width, and the height. These parameters define the cropping range of the target image region in the real-time image data. Real-time image data is obtained by querying the associated camera identifier to obtain image frames captured by the corresponding camera at times near the timestamp. Image frames are extracted from the video stream buffer, which uses a circular queue structure to store image frames within the most recent time period to support fast retrieval.

[0128] After the target image region is determined, violation behavior features are extracted. Feature extraction is implemented using a deep convolutional neural network (CNN), with a network structure combining a backbone feature extraction network and a multi-scale feature fusion module. The backbone feature extraction network contains multiple convolutional and pooling layers. The kernel size, stride, and padding of the convolutional layers are configured to maintain the feature map size or scale it down proportionally. A modified linear unit (MRU) is used as the activation function. Batch normalization layers are inserted between the convolutional layers and the activation function to accelerate training convergence and improve feature stability. Max pooling is used in the pooling layers, and multiple pooling layers are cascaded to achieve a progressive abstraction from high-resolution features to low-resolution semantic features. The multi-scale feature fusion module upsamples and concatenates the feature maps output from different pooling layers. Upsampling uses bilinear interpolation to enlarge the low-resolution feature map to the same size as the high-resolution feature map. The concatenation operation is performed along the channel dimension, and the fused feature map contains both detailed and semantic information.

[0129] The feature extraction output for violation behavior includes a feature vector and a spatial attention map. The feature vector is compressed spatially by a global average pooling layer, resulting in a fixed-dimensional one-dimensional vector. The vector dimension is related to the number of violation behavior categories and is used for subsequent classification tasks. The spatial attention map is generated by applying channel weighting and spatial weighting mechanisms to the feature map. Channel weighting calculates the global average and global maximum values ​​of each channel feature map, concatenates them, and maps them to a channel weight vector through a fully connected layer. The weight vector is multiplied with the original feature map channel by channel to achieve channel-level feature enhancement. Spatial weighting calculates the average and maximum values ​​of the weighted feature map in the channel dimension, concatenates them, and generates a spatial weight map through a convolutional layer. The weight map is multiplied pixel by pixel with the original feature map to achieve spatial-level feature enhancement. The numerical range of the spatial attention map is normalized to the interval between 0 and 1; a larger value indicates a higher importance of the region for violation behavior identification.

[0130] The extracted features of violations are subjected to correlation analysis to identify causal relationships between features. This correlation analysis is implemented using a graph convolutional network (GCNN). The graph structure uses features from different spatial regions as nodes, and edges between nodes represent spatial adjacency or semantic relationships between regions. Spatial adjacency is determined by calculating the Euclidean distance between the centroid coordinates of different regions; regions with a distance less than a set threshold are connected by edges. Semantic relationships are determined by calculating the cosine similarity between feature vectors from different regions; regions with a similarity greater than a set threshold are connected by edges. The convolution operation of the GCNN aggregates the features of its neighboring nodes at each node. The aggregation method is a weighted sum of the neighboring node features, with weights determined by the type and strength of the edges. The weights for spatial adjacency are inversely proportional to distance, while the weights for semantic relationships are directly proportional to similarity. The aggregated features are then updated through a nonlinear transformation layer, which uses a combination of fully connected layers and activation functions. The GCNN achieves feature propagation and refinement on the graph structure through multi-layer cascading, outputting an updated feature vector for each node.

[0131] The identification of causal relationships is achieved by analyzing the change patterns of node feature vectors and edge weights. A causal relationship is defined as the relationship where a change in the feature of one node leads to a change in the feature of another node. The identification method involves comparing the temporal sequence of changes in node features in the outputs of each layer of a graph convolutional network with the changes in features of its neighboring nodes. This temporal sequence is achieved by introducing a temporal graph convolutional layer. This layer adds a temporal convolution operation to the spatial graph convolution, with the temporal convolution kernels convolving the node features at consecutive time points to capture the evolution of features over time. Causal relationships are quantified as causal strength coefficients. These coefficients are obtained by calculating the Granger causality test statistic of the change in the feature of the source node against the change in the feature of the target node. A causal relationship is considered to exist when the statistic is greater than a significance threshold. Causal relationships are stored in the form of an adjacency matrix, where rows correspond to source nodes, columns correspond to target nodes, and matrix elements are causal strength coefficients.

[0132] When determining the type of violation based on causal relationships, the causal relationship adjacency matrix is ​​matched against a predefined violation pattern library. This library stores typical causal relationship patterns corresponding to various violations, represented as graph templates. Each template defines the constraint ranges for node types, edge types, and causal strength coefficients. The matching operation employs a graph isomorphism algorithm or a subgraph matching algorithm to determine whether the current causal relationship adjacency matrix is ​​consistent with a template structure in the pattern library or contains that template as a subgraph. During the matching process, tolerance matching of node features and range matching of edge weights are allowed. The tolerance threshold and range boundaries are set according to the template definitions in the pattern library. Upon successful matching, the corresponding violation type identifier is output; upon failed matching, an unknown violation type identifier is output, and a manual review process is triggered. Violation types include predefined categories such as not wearing a safety helmet, not wearing a safety belt while working at height, unauthorized hot work, unauthorized entry into restricted areas, and unauthorized equipment operation. Each category corresponds to a unique type code.

[0133] When combining the violation type with the warning level in the structured early warning data, a fixed-bit encoding scheme is used. The violation type code is used as the high-order bit, and the warning level code as the low-order bit; these two are concatenated to form the combined code. The violation type code occupies a certain number of bits, and the warning level code occupies a certain number of bits. The number of bits is determined based on the number of types and levels to ensure uniqueness. The combined code uses hexadecimal representation to shorten the code length. After generation, the code is stored as the primary key field in the recognition result table. The recognition result table structure includes the recognition result code field, violation type field, warning level field, spatial location identifier field, timestamp field, feature vector field, and causal adjacency matrix field. The feature vector field stores the feature vectors extracted from the violation features, using a binary serialization format to save space. The causal adjacency matrix field stores a compressed representation of the sparse matrix, storing only the row index, column index, and value of the non-zero elements.

[0134] When extracting the set of candidate handling solutions corresponding to the violation types in the identification results from the front-end alarm and on-site handling measures association database, the association database is implemented using a relational database association table. The association table structure includes a violation type field, a handling solution identifier field, a handling solution description field, an applicable warning level range field, and a priority weight field. The violation type field serves as a foreign key to associate with the identification results table, and the handling solution identifier field serves as a foreign key to associate with the handling solution details table. The handling solution details table stores information such as specific handling operation steps, personnel requirements, execution time limits, and acceptance criteria. The extraction operation of the candidate handling solution set is performed by querying the association table, filtering all records where the violation type field equals the violation type in the identification results, and returning a list of handling solution identifiers for these records. The query results are cached in memory to support fast access for subsequent priority sorting operations. The cache uses a key-value storage structure, where the key is the violation type code and the value is the list of handling solution identifiers.

[0135] When prioritizing the candidate response plan set based on the warning level in the identification results, the sorting rule combines the applicable warning level range field and the priority weight field. The applicable warning level range field defines the set of warning levels to which the response plan applies, represented by a bitmap, where each bit corresponds to a warning level, with a value of 1 indicating applicability and 0 indicating inapplicability. The sorting operation first filters response plans that contain the current warning level in the applicable warning level range field, forming a filtered subset of candidate plans. The filtered candidate plans are then sorted in descending order by the priority weight field, which is a non-negative integer, with larger values ​​indicating higher priority. The weight values ​​are set based on a comprehensive evaluation of the response plan's response speed, resource consumption, safety risks, and historical execution results. The weight values ​​are configured by administrators when the associated table record is created and can be dynamically adjusted based on actual execution feedback. The plan at the top of the sorted candidate plan list is the highest priority response plan, and its response plan identifier is output as the matched response plan.

[0136] When extracting spatiotemporal correlation attributes from structured early warning data, these attributes include, in addition to spatial location identifiers and timestamps, associated camera identifiers, early warning trigger source identifiers, and risk spread range identifiers. The associated camera identifier identifies the on-site feedback data acquisition equipment after the execution of the response command. The early warning trigger source identifier records the sensor or monitoring point number that triggered the early warning. The risk spread range identifier defines the spatial boundary of the area affected by the early warning and is represented by a sequence of polygon vertex coordinates. The extraction of spatiotemporal correlation attributes involves querying the early warning record table to obtain the values ​​of all relevant fields. These field values ​​are serialized into structured data objects for use in generating subsequent response commands.

[0137] When generating disposal instructions based on spatiotemporal correlation attributes and matched disposal plans, the instructions are encapsulated in a structured message format. This format includes a message header and a message body. The message header contains an instruction identifier field, an instruction type field, a generation timestamp field, and a priority field. The message body contains a disposal plan identifier field, an execution area field, personnel requirements field, execution time limit field, on-site monitoring equipment list field, and acceptance criteria field. The instruction identifier field is generated using a globally unique identifier generation algorithm to ensure that each disposal instruction is uniquely traceable. The instruction type field maps the combination of violation type and warning level to predefined instruction type enumeration values, including types such as immediate stoppage, personnel evacuation, equipment power outage, area lockdown, and mandatory rectification. The generation timestamp field records the absolute moment the disposal instruction was generated, and the priority field inherits the warning level code from the identification results.

[0138] The "Disposal Plan Identifier" field is filled with the disposal plan identifier output by the matching disposal plan. The "Execution Area" field is determined based on the spatial location identifier and risk spread range identifier in the spatiotemporal correlation attributes. The execution area is represented as a spatial polygon. The vertex coordinates of the polygon are obtained by spatially transforming the polygon vertices of the risk spread range identifier and the center point of the spatial location identifier. The transformation method is to translate the entire polygon to the position centered on the spatial location identifier. The "Execution Personnel Requirements" field is extracted from the disposal plan details table and includes the qualification requirements, quantity requirements, and role division of the execution personnel. The "Execution Time Limit" field is calculated based on the warning level and the standard execution time of the disposal plan. The calculation method is to multiply the standard execution time by the time coefficient corresponding to the warning level. The higher the warning level, the smaller the time coefficient to require a faster response. The "On-site Monitoring Equipment List" field includes the identifiers of associated cameras in the spatiotemporal correlation attributes and the identifiers of other monitoring equipment within the execution area. The equipment identifiers are obtained by querying the equipment configuration table. The query condition is that the spatial location coordinates of the equipment fall within the polygon of the execution area. The "Acceptance Criteria" field is extracted from the disposal plan details table and defines the acceptance inspection items and qualification judgment conditions after the disposal is completed.

[0139] After a disposal instruction is generated, it is sent to the field execution terminal via a message queue. The message queue uses a publish-subscribe model, where the disposal instruction is published as a message to a specific topic, and the field execution terminal corresponding to the execution area subscribes to that topic to receive the instruction. Messages in the message queue are persisted to disk to ensure that instructions are not lost. Message transmission uses at least-once semantics to ensure that the execution terminal receives the instruction at least once, and the execution terminal avoids duplicate execution through idempotency handling. The message queue is configured with a message expiration time; instruction messages that have not been consumed within the execution time limit are automatically marked as timed out and trigger an alarm. After receiving the disposal instruction, the execution terminal parses the message body, queries the disposal plan details table based on the disposal plan identifier to obtain detailed operation steps, and executes the disposal operations in the order of the steps. During execution, the execution progress is periodically reported to the central server. The progress report message includes the identifier of the completed steps, the current execution status, and the estimated remaining time.

[0140] Taking a high-altitude operation scenario at a construction site as an example, this illustrates the data case of the entire process. The structured early warning data record shows that the early warning level is Level 2, the spatial location identifier is the x-coordinate, y-coordinate, and height coordinates, the timestamp is a specific time on a certain morning, the associated camera identifier is the device number, the early warning trigger source identifier is the sensor number, and the risk spread range identifier is a circular area centered on this spatial location. After extracting these spatiotemporal correlation attributes from the early warning record table, the camera configuration table is queried through the camera identifier to obtain the calibration parameters of the camera. The calibration parameters include the focal length, principal pixel coordinates, and distortion coefficient. The spatial location coordinates are transformed to the camera coordinate system through the extrinsic parameter matrix of the calibration parameters, and then projected to the image pixel coordinates through the intrinsic parameter matrix to obtain the pixel coordinates of the projection center point. Based on the extended distance configuration value of the Level 2 early warning, the target image area is determined to be a rectangular area containing the coordinates of the upper left corner, width, and height.

[0141] Image frames from the camera near the timestamp are extracted from the video stream buffer. After cropping to obtain the target image region, it is input into the violation feature extraction network. The network outputs a feature vector and a spatial attention map. The feature vector is processed by a graph convolutional network. The graph structure contains nodes of the target region and nodes of neighboring regions, which are determined by spatial adjacency. The causal association adjacency matrix output by the graph convolutional network shows that there is a causal relationship between the target region node and the neighboring region node, and the causal strength coefficient exceeds the threshold. The causal association pattern is successfully matched with the "working at height without wearing a safety belt" pattern in the violation pattern library, and the violation type code is output. The violation type code and the warning level code are combined to generate the recognition result code, and the recognition result is stored in the recognition result table.

[0142] The system queries the database linking front-end alarms and on-site handling measures to retrieve the corresponding handling plans for each violation type code, returning multiple candidate plan records. The candidate plans have different applicable warning levels and priority weights; after filtering, the candidate plans are sorted in descending order of priority weight, and the first plan is selected as the matching handling plan. The plan details table records the handling operation steps, personnel requirements, execution time limit, and acceptance criteria.

[0143] The message body generating the disposal instruction is populated with a scheme identifier. The execution area field calculates the polygon vertex coordinate sequence based on the risk spread range and spatial location coordinates. The executor requirements field and the execution time limit field are calculated based on the warning level and standard duration. The on-site monitoring equipment list field includes associated cameras and other monitoring equipment within the execution area. The acceptance criteria field defines the inspection items and judgment conditions. The disposal instruction message is sent to the on-site execution terminal corresponding to the execution area via a message queue. After receiving the instruction, the terminal parses the message and displays the disposal operation steps. The executor performs the rectification operation according to the steps and reports the execution completion status after completion. The acceptance personnel check according to the acceptance criteria. If the inspection is passed, the disposal instruction status is updated to "completed". If the inspection fails, a new rectification process is triggered and the execution time limit is extended.

[0144] The target image region is subjected to violation behavior feature extraction, and the extracted violation behavior features are subjected to correlation analysis to identify the causal relationship between the violation behavior features, including:

[0145] Semantic segmentation is performed on the target image region to divide it into a personnel region, an equipment region, and an environment region;

[0146] Extract personnel posture features and personnel position features from the personnel area, extract equipment status features and equipment position features from the equipment area, and extract environmental risk features from the environment area;

[0147] Calculate the spatial distance relationship between the personnel location characteristics and the equipment location characteristics, and determine whether there is unauthorized contact or unauthorized proximity between the personnel and the equipment based on the spatial distance relationship;

[0148] Extract the action timing change information from the personnel posture features and the state timing change information from the equipment state features;

[0149] Calculate the temporal correlation between the action timing change information and the state timing change information, and determine whether there is a causal triggering relationship between the personnel action and the equipment state change based on the temporal correlation.

[0150] Based on a comprehensive assessment of the unauthorized contact or approach state, the causal triggering relationship, and the environmental risk characteristics, the causal relationship between the personnel posture characteristics, the equipment status characteristics, and the environmental risk characteristics is determined.

[0151] When performing semantic segmentation on the target image region, a pixel-level segmentation network based on an encoder-decoder structure is used to divide the pixels in the target image region into three categories according to semantic categories: personnel region, equipment region, and environment region. The encoder part extracts deep semantic features through multi-layer convolution and pooling operations, while the decoder part restores spatial resolution through upsampling and skip connections, finally outputting a semantic category mask for each pixel. In the construction site scene, the personnel region corresponds to the human contour areas of workers, managers, etc.; the equipment region corresponds to the pixel range of construction machinery and tools such as excavators, tower cranes, scaffolding, and chainsaws; and the environment region covers background elements such as the ground, pits, high-voltage lines, and edge protection. After semantic segmentation, the target image region is subjected to region cropping and feature extraction partitioning based on the category masks to ensure that information from different semantic categories does not cause aliasing interference during subsequent feature extraction.

[0152] When extracting personnel posture features from the personnel area, a keypoint detection method is used to estimate the human skeleton, obtaining two-dimensional coordinate sequences of joints such as the head, shoulders, elbows, wrists, hips, knees, and ankles, forming a personnel posture feature vector. Personnel position features are represented by calculating the geometric center coordinates of the personnel area mask and the four corner coordinates of the bounding box, while simultaneously recording the absolute position of the person in the image coordinate system and their offset relative to the safety boundary. When extracting equipment status features from the equipment area, status descriptors are established for different types of equipment. For example, rotation angle and angular velocity estimates are extracted for rotating equipment, arm length changes are extracted for telescopic equipment, and operating status flags are extracted for stationary equipment. The extraction method for equipment position features is similar to that for personnel position features, using the geometric center and bounding box coordinates of the equipment area mask. When extracting environmental risk features from the environmental area, high-risk environmental elements such as edge areas, pit areas, high-voltage line buffer zones, water accumulation areas, and smoke areas are identified, and corresponding risk level labels and spatial range descriptions are generated for each type of environmental element, forming an environmental risk feature vector.

[0153] When calculating the spatial distance relationship between personnel location features and equipment location features, the center coordinates of the personnel bounding box are marked as follows: The center coordinates of the device bounding box are as follows: The Euclidean distance between the two is denoted as ,but To eliminate the impact of image perspective distortion on distance estimation, a perspective correction coefficient based on scene calibration information is introduced. Convert pixel distances in the image coordinate system to approximate physical distances. Pre-set unauthorized contact thresholds for different equipment types. Approaching the threshold for violations ,when When it is determined that there is an unauthorized contact between personnel and equipment, The system determines when an unauthorized approach is detected. Furthermore, the threshold needs to be dynamically adjusted based on the motion status information of the equipment area; when the equipment is in high-speed motion, the threshold should be reduced accordingly. The value of is selected to enhance the sensitivity of security decisions.

[0154] When extracting temporal change information of human posture features, the coordinate sequence of key points in multiple consecutive frames of images is differentially analyzed to obtain the displacement vector of each joint point between adjacent frames, thereby constructing the joint point motion trajectory matrix. By applying sliding window statistics to the motion trajectory matrix, the mean velocity and acceleration estimates of each joint point within the time window are calculated, forming the motion temporal change information vector. When extracting temporal change information of device status features, the device status descriptor subsequences in multiple consecutive frames of images are also subjected to differencing and sliding window statistics to obtain the device status temporal change information vector. This includes timing statistics such as the direction of equipment movement, the amplitude of movement, and the frequency of state switching.

[0155] When calculating the temporal correlation between action temporal change information and state temporal change information, a cross-correlation function is used. and The correlation coefficient is estimated under different time delays, assuming the time delay parameter is... The corresponding cross-correlation coefficient is ,but ,in and They are respectively and The mean, and These are the corresponding standard deviations. When At a certain positive delay When a significant peak is reached, it is considered that the change in personnel action precedes the change in equipment state, indicating a causal triggering relationship between personnel action and equipment state change. When the peak occurs at a negative delay, it is considered that the change in equipment state precedes the personnel action, corresponding to a personnel stress response scenario triggered by equipment malfunction. A preset significance threshold for the correlation coefficient is used. Only when Only then can the causal triggering relationship be confirmed, avoiding misjudgments caused by random fluctuations.

[0156] When conducting a comprehensive assessment based on the state of unauthorized contact or proximity, causal triggering relationships, and environmental risk characteristics, a multi-dimensional causal association assessment matrix is ​​constructed, and the determination result of the unauthorized contact or proximity state is encoded as a binary flag. The causal triggering relationship determination result is encoded as a directional flag bit. The activation state of each risk element in the environmental risk feature vector is encoded into a risk activation vector. During the comprehensive evaluation process, based on a predefined causal relationship rule base, [the following is done / the following is also done / the following is ... , and The system uses logical reasoning to determine the causal relationship type among personnel posture characteristics, equipment status characteristics, and environmental risk characteristics based on combined states. For example, when a person illegally approaches moving equipment while simultaneously being in a high-risk environment near an edge, a compound causal relationship is identified, corresponding to a high-severity violation category. When there is only a unidirectional causal trigger between personnel action and equipment status, and environmental risk characteristics are not activated, a single causal relationship is identified, corresponding to a medium-severity violation category. Finally, the causal relationship type, relationship strength, and related feature category information are integrated and output as a structured description of subsequent violation identification results.

[0157] Obtain on-site feedback data after the execution of the disposal instruction, correlate and verify the on-site feedback data with the identification result to obtain a disposal effect evaluation record, and use the disposal effect evaluation record to adaptively adjust the three-level early warning parameter range, including:

[0158] Obtain on-site feedback data after the execution of the disposal instruction, identify violations in the on-site image data collected at the time of disposal execution in the on-site feedback data, and extract the violation status features after disposal execution;

[0159] The violation status characteristics are compared and analyzed with the violation behavior types in the identification results to calculate the degree of violation status elimination;

[0160] Based on the matching relationship between the degree of elimination of the violation and the warning level in the identification result, it is determined whether the execution effect of the handling instruction has achieved the expected result, and a handling effect evaluation record is generated.

[0161] Extract the correlation statistical features between the early warning level identifier and the disposal effect compliance identifier from the disposal effect evaluation record, calculate the disposal effect compliance rate corresponding to different early warning levels, and determine the misjudgment risk range in the three-level early warning parameter range based on the disposal effect compliance rate;

[0162] The distribution characteristics of the degree of elimination of violation status in the disposal effect evaluation record are extracted for the misjudged risk interval. The interval boundary of the misjudged risk interval is adjusted according to the distribution characteristics to generate an adaptively adjusted three-level early warning parameter interval.

[0163] The on-site feedback data after the execution of the disposal command is acquired by visual acquisition devices within a continuous time window between the execution time and the subsequent disposal. The acquisition devices include network cameras fixed at key locations on the construction site and mobile handheld acquisition terminals. The acquisition frequency is dynamically adjusted according to the complexity of the scene to ensure the capture of dynamic changes in the disposal process. The on-site feedback data includes on-site image data acquired at the time of disposal execution, continuous image sequence data within the subsequent period, the start timestamp and end timestamp of the disposal command, the identification of the personnel involved, and the spatial coordinates of the execution area. The resolution of the on-site image data is standardized to a standard specification, and the image format is compressed to balance storage overhead and image quality. The on-site feedback data is transmitted to the data processing server via a wireless network. A reliable transmission protocol is used to ensure data integrity. During transmission, the image data is encrypted to ensure data security. The encryption key is dynamically distributed and periodically updated through a key management service.

[0164] The on-site image data collected during the enforcement process first undergoes a preprocessing stage, which includes image denoising, brightness normalization, and resizing. Image denoising employs Gaussian filtering, eliminating image noise by weighted averaging of each pixel and its neighboring pixels. Brightness normalization adjusts the overall image brightness to the target range by calculating the average brightness value of the image; this adjustment is achieved by multiplying the brightness value of each pixel by the ratio of the target average brightness to the current average brightness. Resizing scales the image to a fixed size to fit the input requirements of the violation detection model, using interpolation to preserve image details. The preprocessed image data then enters the violation detection module, which is based on a deep convolutional neural network. The network structure includes a feature extraction layer and a classification prediction layer. The feature extraction layer uses a residual connection structure, containing multiple residual blocks. Each residual block contains multiple convolutional layers and skip connections. The convolutional kernels of the convolutional layers use standard sizes, and the stride and padding are configured according to feature preservation requirements. Each convolutional layer is followed by a batch normalization layer and a corrected linear unit activation layer. The batch normalization layer calculates the mean and variance of the feature map along the channel dimension and normalizes it. The corrected linear unit activation layer sets negative features to zero. The skip connections of the residual blocks add the input feature map and the convolutional output feature map element-wise. When the number of input and output channels is inconsistent, the number of channels is adjusted through convolution. After feature extraction, the spatial dimension is compressed by a global average pooling layer to obtain a fixed-dimensional feature vector.

[0165] The classification prediction layer comprises multiple fully connected layers, each mapping feature vectors to an output dimension corresponding to the number of violation categories. Violation categories include a predefined set of categories such as not wearing a safety helmet, not wearing a safety belt while working at height, unauthorized hot work, unauthorized entry into restricted areas, and unauthorized equipment operation. The weight matrices of the fully connected layers are obtained through offline training. The training dataset contains labeled images, with each image corresponding to one or more violation category labels. A cross-entropy loss function is used to optimize the multi-label classification task. A gradient descent optimizer is used during training, and the learning rate, momentum parameter, and weight decay coefficient are adjusted based on training convergence. The model achieves engineering-usable classification accuracy and recall on the validation set. The output of the classification prediction layer is activated by a logistic function to obtain the predicted probability for each category. Categories with probabilities greater than a set threshold are identified as existing violations. The identification results include the violation category identifier, prediction confidence, and the spatial location information of the violation in the image. Spatial location information is obtained by introducing a region proposal network after the feature extraction layer. The region proposal network generates candidate target boxes. Each candidate box is filtered by non-maximum suppression and several boxes with high confidence are retained. The coordinates of the candidate boxes are represented as the x-coordinate of the top left corner, the y-coordinate of the top left corner, the width and the height.

[0166] The characteristics of the violation status after the action is executed are extracted by time-series comparison of the violation identification results. The time-series comparison is based on the identification results before and after the action. The identification results before the action are derived from the analysis of on-site image data when the warning was triggered and are stored in the warning record database. The time-series comparison operation is performed separately for each violation category. The comparison dimensions include whether the violation still exists, the change in the number of violation targets, the change in the spatial location of violation targets, and the change in the confidence of the violation. Whether the violation still exists is determined by comparing whether the predicted probability of the category before and after the action is greater than a threshold. If it is greater than the threshold before the action but less than the threshold after the action, the violation is considered to have been eliminated. If both are greater than the threshold, the violation is considered to still exist. The change in the number of violation targets is calculated by statistically analyzing the difference in the number of target boxes of the category before and after the action. A positive difference indicates a decrease in the number of violation targets, a negative difference indicates an increase, and a difference of 0 indicates no change in the number. The change in the spatial location of violation targets is determined by calculating the Euclidean distance of the centroid coordinates of the target boxes before and after the action. A distance greater than a set pixel threshold is considered a significant change in location, and a distance less than the threshold is considered a basic change in location. Changes in the confidence level of violations are determined by calculating the difference between the predicted probabilities of that category before and after the action is taken. A positive difference indicates a decrease in confidence, while a negative difference indicates an increase in confidence. Violation status characteristics are stored in structured data format, including fields for violation category identifier, elimination status, quantity change, location change, and confidence level change.

[0167] When comparing and analyzing the violation status features with the violation types in the identification results, the identification results refer to the early warning identification results generated before the handling instruction is triggered. These results include the violation type, early warning level, risk indicator value, spatial location identifier, and timestamp. The comparative analysis matches each violation category one by one. For each violation category in the identification results, the system checks if a corresponding record exists in the violation status features. If a corresponding record exists, the Boolean value of the elimination status field is extracted; a true value indicates that the violation has been eliminated, and a false value indicates that it still exists. If no corresponding record exists in the violation status features, the violation is considered not to have been identified after the handling was executed, and is by default judged as eliminated. The degree of violation status elimination is obtained by calculating the ratio of the number of eliminated violation categories to the total number of violation categories in the identification results. The ratio ranges from 0 to 1, where 0 indicates that all violations have not been eliminated, and 1 indicates that all violations have been eliminated. The calculation method is to iterate through the list of violation types in the identification results, count the number of categories with a true elimination status, and divide this number by the length of the list of violation types. If the identification results contain multiple categories of violations with varying risk levels, a weighted calculation method is introduced. The risk indicator value corresponding to each violation category is used as a weight, and the sum of the weights of eliminated categories divided by the sum of the weights of all categories yields the weighted degree of violation elimination. The weighting method involves normalizing the risk indicator values ​​to the range of zero to one, and the normalization method is to divide the risk indicator value of each category by the maximum value of the risk indicator values ​​of all categories.

[0168] The matching relationship between the degree of violation elimination and the warning level in the identification results is determined through a predefined threshold range for the expected degree of elimination. Warning levels are divided into Level 1, Level 2, and Level 3, with Level 1 corresponding to the lowest risk, Level 2 to medium risk, and Level 3 to the highest risk. The threshold range for the expected degree of elimination is set according to the warning level; the higher the warning level, the higher the lower bound of the expected degree of elimination threshold. The matching relationship is determined by comparing whether the calculated degree of violation elimination falls within the expected degree of elimination threshold range for the corresponding warning level. If it falls within the range, the execution effect of the handling instruction is considered to have met expectations, and a true value is generated for the handling effect compliance flag. If it does not fall within the range, the execution effect is considered to have failed to meet expectations, and the handling effect compliance flag is generated for a false value. The handling effect evaluation record is stored in structured data format, including a warning record identifier field, a warning level field, a list of violation types field, a degree of violation elimination field, a handling effect compliance flag field, a handling execution start time field, a handling execution end time field, and an evaluation generation time field. The warning record identifier field is used to associate with the original warning record, ensuring that the evaluation record is traceable to the specific warning event. The evaluation records of the handling effect are stored in the evaluation record table of the relational database. The table structure is defined as columns corresponding to multiple fields. The primary key is the warning record identifier field, and the index fields include the warning level field and the handling effect compliance identifier field to support subsequent statistical queries.

[0169] The accumulation of response effectiveness evaluation records forms a historical evaluation dataset. From this dataset, statistical correlation features between warning level identifiers and response effectiveness achievement identifiers are extracted. This extraction is achieved through database aggregation queries. The query statement groups records by warning level and counts the number of records with a response effectiveness achievement identifier of true value, along with the total number of records. The response effectiveness achievement rate for different warning levels is calculated by dividing the number of achieving records by the total number of records for that warning level, with the achievement rate ranging from 0 to 1. The statistical query is limited to a time window, only counting evaluation records within the most recent time period to reflect the response effectiveness characteristics of the current stage, avoiding the influence of outdated historical data on the analysis results. The statistical results include the achievement rate values ​​for each warning level. The misjudgment risk range is determined by comparing the achievement rate with the expected achievement rate threshold. The expected achievement rate threshold is set at a relatively high level, meaning that it is expected that most response instructions will achieve the expected results. If the achievement rate for a certain warning level is lower than the expected threshold, the parameter range setting for that warning level is considered to have a misjudgment risk, and the corresponding parameter range is marked as the misjudgment risk range. The identifier for the misjudged risk range includes the warning level field, the lower bound field of the current parameter range, the upper bound field of the current parameter range, and the compliance rate field.

[0170] To extract the distribution characteristics of the degree of violation elimination indicators in the evaluation records of the handling effect of misjudged risk intervals, the extraction operation involves filtering all records in the evaluation record table whose warning level field equals the warning level corresponding to the misjudged risk interval, obtaining the value of the degree of violation elimination field for these records, and forming a numerical sequence of elimination degree. Distribution characteristics are calculated including mean, standard deviation, quantiles, and kurtosis. The mean is obtained by summing all elements of the elimination degree numerical sequence and dividing by the number of elements, reflecting the average level of elimination. The standard deviation is obtained by taking the square root of the average of the squared differences between each element and the mean, reflecting the dispersion of the elimination degree. Quantiles are obtained by extracting the element values ​​at specific positions after sorting the elimination degree numerical sequence, and extracting values ​​at different quantiles to observe the distribution pattern. Kurtosis is obtained by calculating the higher-order central moment of the elimination degree distribution, reflecting the kurtosis of the distribution; a positive value indicates a more kurtosis than a normal distribution, and a negative value indicates a flatter distribution. Distribution characteristics are used to determine the central tendency and dispersion of the degree of elimination within the risk interval of misjudgment. If the mean is significantly lower than the lower bound of the expected degree of elimination threshold, it indicates that the current parameter interval is set too wide and the upper bound needs to be tightened. If the standard deviation is large and the quantile span is wide, it indicates that the parameter interval contains samples with large differences and the interval division needs to be refined.

[0171] The boundary adjustment of the misjudged risk interval is based on the high quantile in the distribution characteristics. The adjustment strategy is to adjust the upper bound of the misjudged risk interval to a risk indicator value that makes the elimination degree corresponding to the high quantile meet the lower bound of the expected elimination degree threshold. Specifically, a mapping relationship is established between the elimination degree and the risk indicator value. This mapping relationship is obtained by analyzing the correlation between the elimination degree of violations and the risk indicator value of the corresponding warning record in historical assessment records. The mapping relationship is fitted using a linear regression model. The model input is the risk indicator value, and the output is the predicted elimination degree value. The parameters of the linear regression model are estimated using the least squares method. The training data consists of all records in the assessment record table whose warning level is equal to the warning level corresponding to the misjudged risk interval. The risk indicator value field and the violation elimination degree field are extracted to form training sample pairs. After model fitting, slope and intercept parameters are obtained. The slope parameter reflects the change in elimination degree when the risk indicator value changes, and the intercept parameter reflects the baseline value of elimination degree when the risk indicator value is 0. Using the fitted linear regression model, the lower bound of the expected elimination degree threshold is used as the target elimination degree, and the corresponding risk indicator value is calculated in reverse. This value is the adjusted upper bound of the interval. The reverse solution involves subtracting the intercept parameter from the target elimination level and then dividing by the slope parameter to obtain the risk index value. The adjusted upper bound of the interval must satisfy the constraint that it is not lower than the current lower bound. If the calculated upper bound is lower than the lower bound, the upper bound is set to the lower bound plus the minimum interval value to maintain the minimum interval width. The adaptively adjusted three-level warning parameter interval replaces the upper bound of the original misjudged risk interval with the adjusted upper bound, while the lower bound remains unchanged. Other warning level parameter intervals not marked as misjudged risk intervals retain their original settings. The adjusted parameter intervals are stored in the parameter configuration table. The table structure includes a warning level field, an interval lower bound field, and an interval upper bound field. The primary key is the warning level field. The parameter configuration table update operation is set with a version control mechanism. Each adjustment generates a new version number and records the adjustment timestamp and adjustment basis.

[0172] This case study uses data from a construction site's high-altitude work scenario to illustrate the entire process. Before the execution of the handling order, the early warning identification results detected two violations: not wearing a safety helmet and not wearing a safety belt while working at height. The warning level was Level 2, the risk indicator value was at a medium level, the spatial location was the scaffolding area, and the timestamp recorded the time of the warning occurrence. The handling order required the workers to immediately stop work and rectify the violations. The start and end times of the execution were recorded as the time span of the handling process. Post-handling feedback data was collected shortly after the handling was completed. The preprocessed on-site image data was input into the violation identification module. The identification results showed that the predicted probability of the violation of not wearing a safety helmet was below the threshold and was considered eliminated; the predicted probability of the violation of not wearing a safety belt while working at height was above the threshold and was considered still present. The feature extraction of the violation status showed that the elimination status of not wearing a safety helmet was a true value, while the elimination status of not wearing a safety belt while working at height was a false value. The degree of elimination of the violation status was calculated by dividing the number of eliminated categories by the total number of categories to obtain the proportion of partial elimination. The lower bound of the expected elimination degree threshold for Level 2 warnings is relatively high. If the calculated elimination degree is below the threshold, the handling effect is considered unsatisfactory, and the handling effect is marked as satisfactory, indicating a false value. The effectiveness evaluation record generates a comprehensive evaluation information field. Historical evaluation datasets statistically analyze evaluation records of Level 2 warnings within the most recent time period. If the compliance rate is lower than the expected compliance rate threshold, the Level 2 warning parameter interval is marked as a misjudgment risk interval. The numerical sequence of the degree of violation elimination from the evaluation records is extracted, and the mean, standard deviation, and quantiles are calculated. A linear regression model is fitted to obtain slope and intercept parameters, representing the linear relationship between the risk indicator value and the degree of elimination. The lower bound of the expected degree of elimination threshold is substituted into the model for inverse solving, yielding the adjusted risk indicator value. The upper bound of the Level 2 warning parameter interval is adjusted to the newly calculated value, while the lower bound remains unchanged. The adaptively adjusted Level 2 warning parameter interval is updated in the parameter configuration table.

[0173] A second aspect of the present invention provides an image recognition system for violations at construction sites, comprising:

[0174] The image acquisition unit is used to acquire real-time image data of the construction site through visual acquisition equipment;

[0175] The risk feature unit is used to extract multimodal scene feature vectors from the real-time image data, and based on a pre-constructed multidimensional risk indicator system, map the multimodal scene feature vectors to quantitative risk indicators to obtain risk feature representations with spatiotemporal correlation attributes.

[0176] The early warning determination unit is used to determine the early warning level of the risk feature representation based on the three-level early warning parameter range jointly optimized by the risk feature representation and construction history data, and generate structured early warning data.

[0177] The instruction generation unit is used to identify violations in the image regions associated with the structured early warning data, output the identification results, retrieve matching disposal plans from the front-end alarm and on-site disposal measures association library based on the identification results, and generate disposal instructions.

[0178] The parameter adjustment unit is used to acquire on-site feedback data after the execution of the disposal instruction, correlate and verify the on-site feedback data with the identification result to obtain a disposal effect evaluation record, and use the disposal effect evaluation record to adaptively adjust the three-level early warning parameter range.

[0179] A third aspect of the present invention provides an electronic device, comprising:

[0180] processor;

[0181] Memory used to store processor-executable instructions;

[0182] The processor is configured to invoke instructions stored in the memory to execute the aforementioned method.

[0183] A fourth aspect of the present invention provides a computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, implement the aforementioned method.

[0184] This invention can be a method, apparatus, system, and / or computer program product. The computer program product may include a computer-readable storage medium having computer-readable program instructions loaded thereon for performing various aspects of the invention.

[0185] 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 the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for image recognition of violations at construction sites, characterized in that, include: Real-time image data of the construction site is acquired through visual acquisition equipment; Multimodal scene feature vectors are extracted from the real-time image data. Based on a pre-constructed multi-dimensional risk indicator system, the multimodal scene feature vectors are mapped to quantitative risk indicators to obtain risk feature representations with spatiotemporal correlation attributes. Based on the three-level early warning parameter range jointly optimized by the risk characteristic representation and construction history data, the early warning level of the risk characteristic representation is determined, and structured early warning data is generated. The system identifies violations in the image regions associated with the structured early warning data, outputs the identification results, retrieves matching handling plans from the front-end alarm and on-site handling measures association database based on the identification results, and generates handling instructions. Obtain on-site feedback data after the execution of the disposal instruction, correlate and verify the on-site feedback data with the identification result to obtain a disposal effect evaluation record, and use the disposal effect evaluation record to adaptively adjust the three-level early warning parameter range.

2. The method according to claim 1, characterized in that, Multimodal scene feature vectors are extracted from the real-time image data. Based on a pre-constructed multi-dimensional risk indicator system, the multimodal scene feature vectors are mapped to quantitative risk indicators to obtain a risk feature representation with spatiotemporal correlation attributes, including: The real-time image data is subjected to joint transformation and cross-domain feature fusion to generate a fused feature representation containing spatial semantic information and frequency domain statistical information; Temporal correlation modeling is performed on the fused feature representation to construct a temporal correlation feature vector containing historical state information and current state information; The temporal correlation feature vector and the fused feature representation are concatenated to generate the multimodal scene feature vector; The spatial semantic information in the multimodal scene feature vector is mapped to a spatial location identifier, and the historical state information and current state information in the multimodal scene feature vector are mapped to a temporal state identifier; Based on the predefined risk element types and risk level correspondence in the multi-dimensional risk indicator system, the multimodal scenario feature vector is mapped to the quantitative risk indicator. The quantitative risk indicator is associated and encoded with the spatial location identifier and the temporal state identifier to generate the risk feature representation with spatiotemporal correlation attributes.

3. The method according to claim 2, characterized in that, Temporal correlation modeling is performed on the fused feature representation to construct a temporal correlation feature vector containing historical state information and current state information, including: Extract the historical image frame sequence corresponding to the current image frame from the construction history data, and extract the corresponding historical fusion feature representation for each historical image frame in the historical image frame sequence; Calculate the feature change between the historical fusion feature representation and the fusion feature representation of the current image frame, and construct a temporal change trajectory based on the feature change. The temporal change trajectory is used to represent the dynamic change process of risk elements in the construction site from a historical moment to the current moment. The time-series change trajectory is subjected to trend prediction analysis to extract trend features reflecting changes in the state of risk elements from the time-series change trajectory; The historical fusion feature representation is encoded as the historical state information, the fusion feature representation of the current image frame is encoded as the current state information, and the trend feature is used as a temporal association attribute that links the historical state information and the current state information. The historical state information, the current state information, and the time-series associated attributes are concatenated to generate the time-series associated feature vector.

4. The method according to claim 1, characterized in that, Based on the three-level early warning parameter range jointly optimized by the risk characteristic representation and construction history data, the early warning level of the risk characteristic representation is determined, and structured early warning data is generated, including: Historical violation records are extracted from the construction history data. These historical violation records include historical risk characteristics and severity indicators of the consequences of the historical violations at the time of occurrence. Based on the statistical correlation between the historical risk characteristics and the severity indicators of historical violation consequences, the distribution of the severity of violation consequences corresponding to different risk characteristic values ​​is calculated. Based on the distribution of the severity of the consequences of the violation, the numerical space of the risk characteristic representation is divided into the three-level early warning parameter intervals; Extract the spatiotemporal correlation attributes from the risk feature representation, and dynamically adjust the three-level early warning parameter range based on the spatiotemporal correlation attributes to generate an adaptive early warning parameter range for the current risk feature representation; If the value of the risk feature falls within the corresponding interval of the adaptive early warning parameter interval, the early warning level corresponding to the risk feature is determined. The structured early warning data is generated by structurally encoding the early warning level and the spatiotemporal correlation attributes in the risk feature representation.

5. The method according to claim 1, characterized in that, The system identifies violations within the image regions associated with the structured early warning data, outputs the identification results, retrieves matching handling plans from the front-end alarm and on-site handling measures association database based on the identification results, and generates handling instructions, including: Spatiotemporal correlation attributes are extracted from the structured early warning data, and the target image region in the real-time image data is determined based on the spatial location identifier in the spatiotemporal correlation attributes. The violation behavior features are extracted from the target image region, and the extracted violation behavior features are subjected to correlation analysis to identify the causal relationship between the violation behavior features; Based on the causal relationship, the type of violation is determined, and the type of violation is combined with the warning level in the structured warning data to generate the identification result; Extract a set of candidate handling solutions corresponding to the types of violations in the identification results from the front-end alarm and on-site handling measures association library; Based on the warning level in the identification results, the candidate treatment plan set is prioritized and the treatment plan with the highest priority is selected as the matching treatment plan. Extract the spatiotemporal correlation attributes from the structured early warning data, and generate the handling instructions based on the spatiotemporal correlation attributes and the matched handling scheme.

6. The method according to claim 5, characterized in that, The target image region is subjected to violation behavior feature extraction, and the extracted violation behavior features are subjected to correlation analysis to identify the causal relationship between the violation behavior features, including: Semantic segmentation is performed on the target image region to divide it into a personnel region, an equipment region, and an environment region; Extract personnel posture features and personnel position features from the personnel area, extract equipment status features and equipment position features from the equipment area, and extract environmental risk features from the environment area; Calculate the spatial distance relationship between the personnel location characteristics and the equipment location characteristics, and determine whether there is unauthorized contact or unauthorized proximity between the personnel and the equipment based on the spatial distance relationship; Extract the action timing change information from the personnel posture features and the state timing change information from the equipment state features; Calculate the temporal correlation between the action timing change information and the state timing change information, and determine whether there is a causal triggering relationship between the personnel action and the equipment state change based on the temporal correlation. Based on a comprehensive assessment of the unauthorized contact or approach state, the causal triggering relationship, and the environmental risk characteristics, the causal relationship between the personnel posture characteristics, the equipment status characteristics, and the environmental risk characteristics is determined.

7. The method according to claim 1, characterized in that, Obtain on-site feedback data after the execution of the disposal instruction, correlate and verify the on-site feedback data with the identification result to obtain a disposal effect evaluation record, and use the disposal effect evaluation record to adaptively adjust the three-level early warning parameter range, including: Obtain on-site feedback data after the execution of the disposal instruction, identify violations in the on-site image data collected at the time of disposal execution in the on-site feedback data, and extract the violation status features after disposal execution; The violation status characteristics are compared and analyzed with the violation behavior types in the identification results to calculate the degree of violation status elimination; Based on the matching relationship between the degree of elimination of the violation and the warning level in the identification result, it is determined whether the execution effect of the handling instruction has achieved the expected result, and a handling effect evaluation record is generated. Extract the correlation statistical features between the early warning level identifier and the disposal effect compliance identifier from the disposal effect evaluation record, calculate the disposal effect compliance rate corresponding to different early warning levels, and determine the misjudgment risk range in the three-level early warning parameter range based on the disposal effect compliance rate; The distribution characteristics of the degree of elimination of violation status in the disposal effect evaluation record are extracted for the misjudged risk interval. The interval boundary of the misjudged risk interval is adjusted according to the distribution characteristics to generate an adaptively adjusted three-level early warning parameter interval.

8. A construction site violation image recognition system, used to implement the method as described in any one of claims 1-6, characterized in that, include: The image acquisition unit is used to acquire real-time image data of the construction site through visual acquisition equipment; The risk feature unit is used to extract multimodal scene feature vectors from the real-time image data, and based on a pre-constructed multidimensional risk indicator system, map the multimodal scene feature vectors to quantitative risk indicators to obtain risk feature representations with spatiotemporal correlation attributes. The early warning determination unit is used to determine the early warning level of the risk feature representation based on the three-level early warning parameter range jointly optimized by the risk feature representation and construction history data, and generate structured early warning data. The instruction generation unit is used to identify violations in the image regions associated with the structured early warning data, output the identification results, retrieve matching disposal plans from the front-end alarm and on-site disposal measures association library based on the identification results, and generate disposal instructions. The parameter adjustment unit is used to acquire on-site feedback data after the execution of the disposal instruction, correlate and verify the on-site feedback data with the identification result to obtain a disposal effect evaluation record, and use the disposal effect evaluation record to adaptively adjust the three-level early warning parameter range.

9. An electronic device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured to invoke instructions stored in the memory to execute the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having computer program instructions stored thereon, characterized in that, When the computer program instructions are executed by the processor, they implement the method described in any one of claims 1 to 7.