Lighting parameter detection method and device in nighttime construction lighting
Through multi-target tracking and deep reinforcement learning algorithms, nighttime construction lighting parameters are dynamically adjusted, which solves the problem of inaccurate lighting configuration in the existing technology, improves the lighting efficiency and safety of nighttime construction sites, and achieves efficient use of energy.
Patent Information
- Application Number
- CN202411040975.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-07-31
AI Technical Summary
The existing nighttime construction lighting control system lacks real-time data analysis and predictive adjustment capabilities, making it difficult to dynamically optimize lighting configurations, resulting in energy waste and reduced operating efficiency, and cannot meet the needs for high efficiency and safety.
It adopts multi-target tracking and scene image extraction technology, and uses multi-objective optimization algorithms and deep reinforcement learning algorithms to predict nighttime construction needs in real time, dynamically adjust lighting parameters, and realize automation and intelligence of lighting configuration.
It improves the accuracy and efficiency of lighting parameter configuration at night construction sites, reduces energy consumption, ensures lighting quality and safety, and achieves dual optimization of energy efficiency and lighting effects.
Smart Images

Figure CN118574288B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of lighting control technology, and in particular to a method and device for detecting lighting parameters in nighttime construction lighting. Background Art
[0002] During nighttime construction activities, the configuration and management of the lighting system is a key factor in ensuring work efficiency and worker safety. Traditional lighting configuration methods often rely on empirical judgment or fixed standards, and lack accurate response to the actual lighting needs of the site. This static lighting configuration method is difficult to ensure the optimization of lighting effects in the face of complex and changing construction environments, and may lead to energy waste, reduced work efficiency, and even hidden dangers to worker safety.
[0003] With the continuous changes in construction scenes, including the transfer of construction areas, changes in nighttime ambient light, and updates to construction tasks, the lighting system needs to be adjusted more flexibly and intelligently to adapt to these changes. However, existing lighting control systems often lack the ability to analyze and predict real-time data and make adjustments, and cannot effectively dynamically predict and optimize the lighting needs of the construction site, thus failing to achieve the best balance between lighting effects and energy consumption. In addition, although some advanced lighting control technologies, such as sensor-based automatic lighting adjustment, have been proposed and applied, these technologies often fail to make full use of the large amount of data collected on site for in-depth analysis and learning. The lack of efficient data processing and intelligent learning mechanisms makes the lighting system less responsive and accurate, making it difficult to meet the dual needs of high efficiency and high safety for nighttime construction lighting. Summary of the invention
[0004] The present application provides a method and device for detecting lighting parameters in nighttime construction lighting, thereby improving the accuracy of parameter configuration of nighttime construction site lighting.
[0005] In a first aspect, the present application provides a method for detecting lighting parameters in nighttime construction lighting, the method comprising:
[0006] Perform multi-target tracking and construction scene image extraction on nighttime construction sites to obtain multiple construction target scene images;
[0007] Extracting and fusing scene brightness features on the multiple construction target scene images to obtain scene fusion brightness features;
[0008] The nighttime lighting demand is predicted by fusing the brightness characteristics of the scene through a multi-objective optimization algorithm to generate initial lighting configuration parameters;
[0009] Based on the initial lighting configuration parameters, lighting control and feedback parameter collection are performed on the nighttime construction site to obtain a plurality of construction target feedback data;
[0010] Through a deep reinforcement learning algorithm, feedback optimization calculation is performed on the initial lighting configuration parameters according to the multiple construction target feedback data to obtain target lighting configuration parameters.
[0011] A second aspect of the present application provides a lighting parameter detection device for nighttime construction lighting, the lighting parameter detection device for nighttime construction lighting comprising:
[0012] A tracking module is used to track multiple targets and extract construction scene images at nighttime construction sites to obtain multiple construction target scene images;
[0013] A fusion module, used for extracting and fusing scene brightness features of the plurality of construction target scene images to obtain scene fusion brightness features;
[0014] A prediction module, used to predict nighttime lighting demand based on the scene fusion brightness characteristics through a multi-objective optimization algorithm to generate initial lighting configuration parameters;
[0015] A collection module, used to perform lighting control and feedback parameter collection on the nighttime construction site based on the initial lighting configuration parameters, and obtain a plurality of construction target feedback data;
[0016] The calculation module is used to perform feedback optimization calculation on the initial lighting configuration parameters according to the multiple construction target feedback data through a deep reinforcement learning algorithm to obtain target lighting configuration parameters.
[0017] The third aspect of the present application provides a computer device, comprising: a memory and at least one processor, wherein the memory stores instructions; the at least one processor calls the instructions in the memory so that the computer device executes the above-mentioned lighting parameter detection method in nighttime construction lighting.
[0018] A fourth aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the above-mentioned lighting parameter detection method in nighttime construction lighting.
[0019] In the technical solution provided by the present application, by deploying high-resolution cameras at the construction site at night to capture video streams, and using target detection and multi-target tracking algorithms, the dynamic changes of the construction site can be accurately identified and tracked in real time. This process not only enhances the responsiveness of the lighting system to changes in the construction site, but also ensures the accuracy of the lighting configuration, thereby improving construction efficiency and safety. By applying a multi-objective optimization algorithm to analyze the scene fusion brightness characteristics, the lighting needs of night construction can be intelligently predicted. This intelligent prediction mechanism allows the system to dynamically adjust the lighting parameters according to the brightness characteristics of the actual scene, realizes the automation and intelligence of the lighting configuration, and ensures that the lighting at the construction site is always in the optimal state. The feedback data is analyzed and learned by a deep reinforcement learning algorithm to optimize the lighting configuration parameters, which can effectively reduce energy consumption while ensuring the lighting quality. By intelligently adjusting the lighting intensity and color temperature, unnecessary energy waste is avoided, and dual optimization of energy efficiency and lighting effects is achieved. The feedback optimization mechanism can be used to adaptively adjust the lighting parameters according to the real-time feedback data from the construction site. This self-learning and adjustment capability enables the lighting system to continuously adapt to changes in the construction site, continuously optimize the lighting effect, and thus improve the accuracy of the parameter configuration of the lighting at the night construction site. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 This is a schematic diagram of an embodiment of a method for detecting lighting parameters in nighttime construction lighting in an embodiment of the present application;
[0021] Figure 2 It is a schematic diagram of an embodiment of a lighting parameter detection device in nighttime construction lighting in an embodiment of the present application. DETAILED DESCRIPTION
[0022] The embodiments of the present application provide a method and device for detecting lighting parameters in nighttime construction lighting, thereby improving the accuracy of parameter configuration of nighttime construction site lighting.
[0023] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0024] For ease of understanding, the specific process of the embodiment of the present application is described below. Figure 1 , an embodiment of the lighting parameter detection method in nighttime construction lighting in the embodiment of the present application includes:
[0025] Step 101: performing multi-target tracking and construction scene image extraction on a nighttime construction site to obtain a plurality of construction target scene images;
[0026] It is understandable that the execution subject of the present application may be a lighting parameter detection device in nighttime construction lighting, or a terminal or a server, which is not specifically limited here. The present application embodiment is described by taking a server as the execution subject as an example.
[0027] Specifically, high-resolution cameras are deployed at night construction sites, and video streams are collected at night construction sites through high-resolution cameras to obtain continuous video streams of the construction sites. By setting a preset time interval, key frames are automatically extracted from the video stream. These key frames represent the construction scenes at specific moments and can effectively capture changes and important moments in the scene. The target detection algorithm is used to analyze the key frames and identify the construction targets in the image. These targets mainly include construction machinery and personnel working on site. After identifying the construction targets, a multi-target tracking algorithm based on Kalman filtering is used to track the positions of multiple construction targets and identify scene changes. The algorithm can effectively process and predict the motion trajectory of the target between video frames, and then continuously track the changes in the target state, obtain the position change and activity range of each construction target during the work process, and collect scene change information. The construction scene image is segmented for the construction site video stream according to the scene change information of each construction target. The corresponding construction target scene image is generated for each specific construction target.
[0028] The multi-target tracking algorithm based on Kalman filtering defines the state variables and measurement variables of each construction target in the construction site video stream. The state variables usually include dynamic features such as the position and speed of the target, while the measurement variables include parameters such as the position information directly observed from the video data. A state transition model is established for each construction target, which is used to link the actual observation data with the state prediction of the target, so as to achieve accurate estimation of the target state. The observation model performs data fusion with the state prediction model based on the data actually extracted from the video, such as the image position of the target, to provide the state estimation result. The state transition model is used to perform position tracking estimation on the construction site video stream and generate position tracking prediction data. These prediction data predict the current position of the target based on the previous state and known motion patterns. At the same time, the observation model detects the current position of the target based on the actual observation in the video stream and obtains the real data of position tracking. The position tracking prediction data and the position tracking real data are compared to calculate the state difference of position tracking. The state difference is the deviation between the predicted position and the actual observed position. This deviation information is used to update the state estimation of the target to ensure the accuracy and reliability of the model prediction. State updating is a dynamic process that continuously adjusts and optimizes the state estimation of the target based on new observation data. According to the difference in position tracking status, scene change recognition is performed on multiple construction targets in the construction site video stream. By analyzing the scene change information of each construction target, the dynamic changes of each target in the construction site, such as movement trajectory, changes in operation area, etc., are obtained, thereby realizing the monitoring of the entire nighttime construction scene and optimizing the adjustment of lighting parameters.
[0029] Step 102: extracting and fusing scene brightness features of multiple construction target scene images to obtain scene fusion brightness features;
[0030] Specifically, multiple construction target scene images are subjected to brightness change region identification to obtain multiple target brightness change regions of each construction target scene image. Image processing technology is used to identify regions in each image where brightness changes significantly. These changes may be caused by the movement of light sources at the construction site, the addition of new light sources, or changes in the intensity of existing light sources. Scene brightness analysis is performed on multiple target brightness change regions to obtain a set of pixel brightness values of each target brightness change region, which represents the brightness characteristics of each region. By performing cluster analysis on the set of pixel brightness values of each target brightness change region, pixels with similar brightness are clustered together to form multiple distinct brightness groups, each of which represents a specific local brightness feature. Local brightness features help understand and adjust the illumination distribution in the scene, and help the system understand the actual effect of illumination in the local area more accurately. Scene global brightness feature identification is performed on multiple construction target scene images, including analyzing the brightness distribution of the entire image to determine the average brightness level, brightness range, and uniformity of brightness distribution of the scene. Local brightness features are fused with global brightness features. Considering the detailed brightness changes in the local area and integrating the brightness background of the overall scene, the scene fusion brightness features of each construction target scene image are obtained.
[0031] Step 103: Use a multi-objective optimization algorithm to predict nighttime lighting demand based on scene fusion brightness features and generate initial lighting configuration parameters;
[0032] It should be noted that the scene fusion brightness features of each construction target scene image are feature encoded respectively, and the features are converted into fusion brightness feature vectors. The fusion brightness feature vectors of each construction target scene image are input into the night lighting demand prediction model. The model includes a multi-head attention mechanism layer, a double-layer threshold recurrent network and a single-layer threshold recurrent network. The fusion brightness feature vectors of each construction target scene image are weightedly fused by the multi-head attention mechanism layer to obtain the target brightness feature vector, highlighting the most critical features and improving the sensitivity of the prediction model to key data. The target brightness feature vector is extracted by the double-layer threshold recurrent network, and the hidden feature vector contains deeper scene brightness dynamic information. The double-layer threshold recurrent network can capture the long-term dependency in the time series data through its feedback loop structure, which is helpful to predict the dynamically changing night lighting demand. The hidden brightness feature vector is used to predict the night lighting demand through the single-layer threshold recurrent network. The single-layer threshold recurrent network uses its simplified structure to quickly generate the corresponding lighting configuration parameter values, which include the brightness, position, angle, etc. of the light, to ensure that each construction scene can be properly illuminated. The multi-objective optimization algorithm is used to analyze and optimize multiple lighting configuration parameter values. The multi-objective optimization algorithm needs to consider the maximization of lighting effects, as well as energy efficiency and cost-effectiveness. The initial lighting configuration parameters are generated through optimization analysis.
[0033] Step 104: Perform lighting control and feedback parameter collection on the nighttime construction site based on the initial lighting configuration parameters to obtain multiple construction target feedback data;
[0034] Specifically, the lighting equipment at the construction site is set according to the initial lighting configuration parameters, including the specific location of the lamps, the type of light source, the brightness and angle. After the lighting equipment is adjusted, the automatic control system is used to automatically adjust these lighting equipment according to the initial configuration to ensure that each construction area is properly illuminated according to its specific needs. At the same time, in order to collect feedback data on the lighting effect, it is necessary to install a variety of sensors on site, such as light sensors, energy consumption monitors and motion detectors, which can monitor the light intensity, power consumption and the effectiveness of lighting coverage in real time. Through a centralized data acquisition system, the data collected by the sensors are automatically sent to a central processing unit, and the data is preliminarily analyzed to determine whether the effect of the current lighting settings meets the expectations, especially whether it meets the safety and efficiency requirements of night construction. If the lighting effect is found to be poor or there is a waste of energy efficiency, the system will feedback to the lighting control system through pre-set logic, automatically adjust the brightness or angle of the lamps according to the feedback, or start additional lighting equipment when necessary. At the same time, long-term data trends are recorded and analyzed to further optimize the lighting strategy.
[0035] Step 105: Using a deep reinforcement learning algorithm, the initial lighting configuration parameters are feedback optimized and calculated according to multiple construction target feedback data to obtain target lighting configuration parameters.
[0036] Specifically, an agent is created for each construction target, and the agent includes an input layer, multiple hidden layers, and an output layer. Various feedback data from the construction site, such as light intensity and power consumption, are converted into feedback encoding vectors for each construction target through feature encoding technology. These vectors effectively capture the lighting conditions and requirements of each construction target. The encoding vectors are input into their respective agents. The agent performs initial parameter execution strategy analysis through its internal neural network structure. This analysis recommends a set of initial lighting configuration parameters for each construction target based on the knowledge learned by the agent and the previous training results. In order to evaluate the effectiveness of the strategy, the output of each agent will calculate reward data based on the actual lighting effect and the preset safety and efficiency standards. These reward data represent the performance of each strategy. Afterwards, based on the reward data obtained, each agent uses a reinforcement learning algorithm to update its strategy to optimize the future decision-making process. The strategy update process is iterative, and the agent continuously learns how to adjust its lighting configuration recommendation to maximize the reward, thereby achieving higher energy efficiency and better lighting quality. The target parameter execution strategies of all agents are comprehensively analyzed and summarized to form a comprehensive parameter execution strategy. Feedback adjustments are made to the initial lighting configuration parameters based on a comprehensive strategy, based on the data and recommendations provided by all agents to ensure the optimal lighting configuration for the entire nighttime construction site.
[0037] Each agent collects data on the performance of its initial lighting configuration parameter execution strategy in the actual construction site, including key indicators such as the uniformity of lighting effects, the suitability of light intensity, and energy consumption. These data are converted into reward parameters through preset evaluation criteria, which directly reflect the effectiveness of each agent's strategy. After obtaining the reward parameters, the policy gradient method is used to analyze and adjust the action strategy of each agent. The policy gradient method is a reinforcement learning technique that allows agents to optimize their decision-making models based on the actual rewards generated by their behaviors. In this process, the reward parameters of each agent are used to calculate the policy gradient, that is, to determine how to adjust the behavior to maximize future rewards under the current strategy. This calculation involves estimating the derivative or rate of change of the policy function to ensure that the direction and magnitude of the policy update are aimed at improving the overall reward. Based on the policy gradient, the reward parameters of each agent are calculated for policy update, and the decision of the agent is optimized according to the gradient direction by adjusting the weights and biases in the neural network. The optimization is iterative, and each iteration adjusts the strategy based on the latest environmental feedback in order to gradually approach the optimal solution. Finally, through the policy update parameters, the initial action execution strategy of each agent is adjusted and optimized to form its own target parameter execution strategy.
[0038] In the embodiment of the present application, by deploying a high-resolution camera at the construction site at night to capture the video stream, and using the target detection and multi-target tracking algorithm, the dynamic changes of the construction site can be accurately identified and tracked in real time. This process not only enhances the responsiveness of the lighting system to changes in the construction site, but also ensures the accuracy of the lighting configuration, thereby improving construction efficiency and safety. By applying a multi-objective optimization algorithm to analyze the scene fusion brightness characteristics, the lighting needs of night construction can be intelligently predicted. This intelligent prediction mechanism allows the system to dynamically adjust the lighting parameters according to the brightness characteristics of the actual scene, realizes the automation and intelligence of the lighting configuration, and ensures that the lighting at the construction site is always in the optimal state. The feedback data is analyzed and learned by the deep reinforcement learning algorithm to optimize the lighting configuration parameters, which can effectively reduce energy consumption while ensuring the lighting quality. By intelligently adjusting the lighting intensity and color temperature, unnecessary energy waste is avoided, and the dual optimization of energy efficiency and lighting effects is achieved. The feedback optimization mechanism can be used to adaptively adjust the lighting parameters according to the real-time feedback data from the construction site. This self-learning and adjustment ability enables the lighting system to continuously adapt to changes in the construction site, continuously optimize the lighting effect, and thus improve the accuracy of the parameter configuration of the night construction site lighting.
[0039] In a specific embodiment, the process of executing step 101 may specifically include the following steps:
[0040] (1) Deploy a high-resolution camera at the nighttime construction site and use the high-resolution camera to collect video streams of the nighttime construction site to obtain a video stream of the construction site;
[0041] (2) Extract key frames from the construction site video stream based on a preset time interval to obtain key frames of the construction site;
[0042] (3) Using the target detection algorithm to identify the construction target of the key frame of the construction site, multiple construction targets are obtained, including: construction machinery and multiple workers;
[0043] (4) The multi-target tracking algorithm based on Kalman filtering tracks the positions of multiple construction targets and identifies scene changes, and obtains the scene change information of each construction target;
[0044] (5) Segment the construction scene image of the construction site video stream according to the scene change information of each construction target to obtain multiple construction target scene images.
[0045] Specifically, high-resolution cameras are deployed at night construction sites to ensure that the cameras can cover the entire construction area, including all important work areas and machinery operation areas. These cameras have night vision capabilities and can capture videos clearly in low-light conditions so that clear image information can be obtained even during night operations. Continuous video stream acquisition is performed on the construction site. Key frames are automatically extracted from the video stream based on preset time intervals, such as every five minutes. The selection of key frames is based on the significance of scene changes. Whenever an important visual change is detected, such as machinery movement or the opening of a new work area, the system captures this frame as a key frame. The key frames are analyzed using target detection algorithms, such as YOLO or SSD algorithms, to identify construction targets in the image, including various construction machinery and workers. These algorithms can quickly and accurately locate construction targets in the image and draw bounding boxes for each target by training on a large number of labeled images. For example, when the camera captures a new construction machine entering the scene, the target detection algorithm can immediately identify that it is an excavator and mark its location. The multi-target tracking algorithm based on Kalman filtering performs position tracking and scene change recognition on multiple construction targets. Kalman filtering is an efficient and fast-response algorithm suitable for estimating the state of dynamic systems under noisy conditions, and continuously adjusts the estimate of the target state through prediction and update cycles. By continuously tracking the position of each construction target, the tracking continuity can be maintained even when the target is temporarily blocked or the lighting conditions change. In this way, whenever the construction machinery moves or the workers change their working positions, the system can update their position information in real time and capture these changes. The construction scene image segmentation of the construction site video stream is performed based on the scene change information of each construction target, and the entire video scene is decomposed into multiple separate image blocks, each corresponding to a construction target. For example, if a machine moves from one side of the screen to the other, the image segmentation algorithm can identify and track the entire movement path of the machine, generating independent image segments for each position, which record the activities of the excavator at different locations.
[0046] In a specific embodiment, the execution step is based on the multi-target tracking algorithm of Kalman filtering to track the positions of multiple construction targets and identify scene changes, and the process of obtaining the scene change information of each construction target can specifically include the following steps:
[0047] (1) The multi-target tracking algorithm based on Kalman filtering defines the state variables and measurement variables of each construction target in the construction site video stream, and establishes a state transition model for each construction target;
[0048] (2) Establish an observation model for each construction target based on state variables and measurement variables;
[0049] (3) Use the state transition model to estimate the position of the construction site video stream and obtain the position tracking prediction data;
[0050] (4) Perform position tracking detection on the construction site video stream through the observation model to obtain the real position tracking data;
[0051] (5) Compare the position tracking prediction data and the position tracking real data and update the status to obtain the position tracking status difference;
[0052] (6) Based on the position tracking state difference, scene change recognition is performed on multiple construction targets in the construction site video stream to obtain scene change information of each construction target.
[0053] Specifically, the multi-target tracking algorithm based on Kalman filtering defines the state variables and measurement variables of each construction target in the construction site video stream, which are the basis for the execution of the algorithm. State variables usually include the position, velocity, and acceleration of the target, while measurement variables are data directly observed from the video stream, such as the coordinate position of the target in the image. A state transition model is established for each construction target, which describes how the target state changes over time. For example, if the current position and velocity of a construction machine are known, the state transition model will be used to predict its position and velocity at the next moment. The prediction is based on the laws of physical motion, such as uniform linear motion or accelerated motion, and possible operational interventions, such as steering and speed changes. At the same time, an observation model is established for each construction target based on the state variables and measurement variables. The observation model associates state variables and measurement variables and describes how to predict measurement variables (such as the position observed by the camera) from state variables (internal states). The observation model usually includes some form of mapping function that can handle the conversion from real-world states to camera image coordinates, while taking into account observation noise, that is, random deviations in actual observations. Position tracking estimation and position tracking detection are performed on the construction site video stream through the state transition model. In the prediction step, the algorithm uses the state transition model to estimate the future state of each construction target and generate position tracking prediction data. These data represent the best estimate of the target's future position based on state information in the absence of new observation input. In the update step, after the new video frame is processed and the observation data is extracted from it, the observation model is used to calculate the position tracking real data for each target. These data are based on the actual observed target position and reflect the current state of the target. The Kalman filter compares the predicted data with the real data and adjusts the estimate of the target state by calculating the difference between the two - the position tracking state difference. The adjustment updates the estimated state of the target to make it closer to the real state by considering the uncertainty of the prediction and observation, as well as their respective credibility. Based on the position tracking state difference, scene change recognition is performed on multiple construction targets in the construction site video stream to obtain scene change information for each construction target.
[0054] In a specific embodiment, the process of executing step 102 may specifically include the following steps:
[0055] (1) Identify brightness change regions of multiple construction target scene images to obtain multiple target brightness change regions of each construction target scene image;
[0056] (2) Perform scene brightness analysis on multiple target brightness change regions to obtain a set of pixel brightness values for each target brightness change region;
[0057] (3) Perform cluster analysis on the pixel brightness value sets of each target brightness change area to obtain multiple scene local brightness features of each construction target scene image;
[0058] (4) Recognize the scene global brightness features of multiple construction target scene images to obtain the scene global brightness features of each construction target scene image;
[0059] (5) Perform feature fusion on the scene local brightness features and multiple scene local brightness features to obtain the scene fusion brightness features of each construction target scene image.
[0060] Specifically, the brightness change area is identified from each construction target scene image, the illumination change in the image is analyzed, and those areas with significant brightness changes are determined. The brightness change area is separated from the background through image processing techniques such as edge detection and image segmentation. Each area may represent a different object or construction activity area. Scene brightness analysis is performed on multiple target brightness change areas, including calculating the set of pixel brightness values in each target brightness change area. The pixel-level brightness value statistics are performed on each separated area to obtain detailed brightness information. Cluster analysis is performed on the set of pixel brightness values in each target brightness change area to identify and classify different brightness features, so as to better understand the lighting conditions in each area. Cluster analysis usually uses machine learning algorithms such as k-means or hierarchical clustering methods to group pixels according to the similarity of brightness values. Each group represents a specific local brightness feature, so as to identify which areas are visually bright or dark, and understand the distribution pattern of brightness, such as whether it is uniform, whether there are prominent highlights, etc. The global brightness feature of the scene is recognized for multiple construction target scene images. An overall visual impression is obtained to evaluate the lighting conditions of the entire construction scene. Global brightness features usually include statistics such as the overall brightness mean, standard deviation, and brightness range, which provide important information about the brightness level and variation of the entire scene. The local brightness features and global brightness features of the scene are fused to generate a comprehensive brightness feature description that takes into account both local details and global perspectives. Feature fusion usually involves multiple data fusion techniques, such as weighted averaging, principal component analysis, or machine learning models, to effectively integrate various brightness features and provide a comprehensive brightness profile.
[0061] In a specific embodiment, the process of executing step 103 may specifically include the following steps:
[0062] (1) Feature encoding is performed on the scene fusion brightness features of each construction target scene image to obtain a fusion brightness feature vector of each construction target scene image;
[0063] (2) Input the fused brightness feature vector of each construction target scene image into the night lighting demand prediction model, which includes: a multi-head attention mechanism layer, a double-layer threshold recurrent network, and a single-layer threshold recurrent network;
[0064] (3) The fused brightness feature vector of each construction target scene image is weightedly fused through the multi-head attention mechanism layer to obtain the target brightness feature vector;
[0065] (4) Extract hidden features from the target brightness feature vector through a double-layer threshold recurrent network to obtain a hidden brightness feature vector;
[0066] (5) Predicting nighttime lighting demand based on hidden brightness feature vectors through a single-layer threshold recurrent network to obtain multiple lighting configuration parameter values;
[0067] (6) A multi-objective optimization algorithm is used to perform multi-objective optimization analysis on multiple lighting configuration parameter values to generate initial lighting configuration parameters.
[0068] Specifically, feature encoding is performed on the scene fusion brightness features of each construction target scene image. Image processing and feature engineering techniques, such as principal component analysis (PCA) or autoencoders, are used to reduce data dimensions while retaining important information. The fusion brightness feature vector of each construction target scene image includes key statistics of brightness, such as average brightness, brightness variance, skewness and kurtosis of brightness distribution, which can fully reflect the lighting conditions of the scene. The fusion brightness feature vector is input into the night lighting demand prediction model, which includes a multi-head attention mechanism layer, a double-layer gated recurrent network (GRU) and a single-layer gated recurrent network. The multi-head attention mechanism layer automatically captures the most relevant information fragments of lighting demand from the fusion brightness feature vectors of each construction target scene image through a parallel attention mechanism. This layer can enhance the model's response to key features and identify the main factors affecting lighting demand by assigning different weights to different features. Afterwards, the target brightness feature vector is input into the double-layer gated recurrent network to extract deep features in the time series data and understand how the brightness in the construction scene changes over time. The double-layer threshold recurrent network can capture the long-term dependencies between features while maintaining low complexity by stacking two layers of recurrent units, and generate a hidden brightness feature vector that represents the deep brightness dynamics of the scene. The hidden brightness feature vector is input into the single-layer threshold recurrent network, and the final prediction of nighttime lighting needs is made based on the extracted deep features. The single-layer GRU plays a role of rapid response and adjustment, and outputs the final lighting configuration parameter values according to the input hidden feature vector. These parameter values will directly determine the specific lighting configuration of the construction site, such as the layout of lamps, light intensity and lighting angle. The multi-objective optimization algorithm is used to analyze and optimize multiple lighting configuration parameter values. While meeting the nighttime lighting needs, the algorithm takes into account multiple objectives such as cost-effectiveness, energy consumption and environmental impact. Multi-objective optimization can find the optimal trade-off between multiple objectives through algorithms such as non-dominated sorting genetic algorithm, and generate a set of initial lighting configuration parameters that can meet the needs of nighttime operations and have high efficiency and sustainability.
[0069] In a specific embodiment, the process of executing step 105 may specifically include the following steps:
[0070] (1) Create an intelligent agent for each construction target, which includes an input layer, multiple hidden layers, and an output layer;
[0071] (2) Feature encoding is performed on the feedback data of multiple construction targets to obtain a feedback encoding vector for each construction target;
[0072] (3) Input the feedback encoding vector of each construction target into the agent, and use the agent to perform parameter execution strategy analysis to obtain the initial parameter execution strategy of each agent;
[0073] (4) Calculate the reward data for the initial parameter execution strategy of each agent to obtain the reward parameters of each agent, and update the strategy of the initial parameter execution strategy according to the reward parameters to obtain the target parameter execution strategy of each agent;
[0074] (5) Comprehensively analyze the target parameter execution strategy of each intelligent agent, generate a comprehensive parameter execution strategy, and adjust the initial lighting configuration parameters based on the comprehensive parameter execution strategy to obtain the target lighting configuration parameters.
[0075] Specifically, an agent is created for each construction target, and the agent includes an input layer, multiple hidden layers, and an output layer. The input layer is responsible for receiving data, the hidden layer processes the data and extracts features, and the output layer generates decisions or predictions. Feedback data for multiple construction targets is processed. These data may include lighting intensity, energy consumption, lighting coverage, and worker line of sight feedback. Through feature encoding techniques such as principal component analysis (PCA) or autoencoders, complex data is converted into a more concise form to obtain feedback encoding vectors. After the encoded feedback vectors are input into the respective agents, parameter execution strategy analysis is performed based on these data. Through the multi-layer network structure of the agent, the weights are adjusted using the back propagation algorithm to optimize the output results, and a set of effective initial parameter execution strategies for lighting configuration are obtained. These strategies will optimize lighting effects and energy efficiency based on real-time data. In order to further optimize these strategies, reward data are calculated based on the output of the agent. These reward data are based on pre-defined performance indicators, such as improved energy efficiency, reduced light pollution, and improved work safety. Each agent receives a corresponding reward value based on how well the lighting configuration effect it generates meets these standards. The learning process of the agent is adjusted according to the reward parameters, and the initial parameter execution strategy executed by the agent is updated through the reward mechanism to make it closer to the ideal operation model. Through continuous training and updating, each agent obtains a set of efficient target parameter execution strategies. These strategies are then fed into a higher-level decision-making system for comprehensive analysis. By comprehensively considering the strategies of all agents, a comprehensive comprehensive parameter execution strategy is formed. This strategy not only considers the output of a single agent, but also takes into account the lighting needs and conditions of the entire construction site. Finally, based on the comprehensive parameter execution strategy, the initial lighting configuration parameters are adjusted according to the data learned from the agent, ensuring that the lighting system can not only meet the basic needs of night construction, but also maximize energy efficiency and work efficiency while ensuring safety. Through the intelligent feedback loop, the lighting configuration is continuously optimized to adapt to the changing conditions and needs of the construction site.
[0076] In a specific embodiment, the execution step calculates reward data for the initial parameter execution strategy of each agent to obtain the reward parameter of each agent, and updates the strategy of the initial parameter execution strategy according to the reward parameter to obtain the target parameter execution strategy of each agent. The process may specifically include the following steps:
[0077] (1) Calculate the reward data for each agent and obtain the reward parameters of each agent;
[0078] (2) Perform policy gradient analysis on each agent based on the reward parameters of each agent to determine the policy gradient of each agent;
[0079] (3) The reward parameters of each agent are updated through the policy gradient to obtain the corresponding policy update parameters of each agent;
[0080] (4) Based on the strategy update parameters corresponding to each agent, the initial action execution strategy corresponding to each agent is updated to generate the target parameter execution strategy corresponding to each agent.
[0081] Specifically, reward data is calculated for each agent. Reward data is calculated based on the performance of the agent in performing its task. For example, in a nighttime construction lighting scenario, an agent may be responsible for adjusting the brightness and angle of a set of lights to ensure the optimal lighting effect and energy use in the construction area. If the agent successfully reduces energy consumption while maintaining or improving the quality of lighting, it will receive a high reward value. These reward data directly reflect the effectiveness of the agent's strategy and are the key basis for evaluating and adjusting these strategies. Policy gradient analysis is performed on each agent based on the reward parameters of each agent. Policy gradient involves calculating the gradient of the reward function with respect to the policy parameters, that is, determining how to adjust the behavior under the current strategy to maximize future rewards. For example, if an agent finds that work efficiency can be significantly improved by increasing the light intensity in a certain area, the policy gradient analysis will identify this behavior and calculate the most suitable parameter adjustment so that the light intensity can be automatically increased in similar situations in the future. After the policy gradient calculation is completed, the policy update parameters of the agent's reward parameters are adjusted using these gradients. The internal parameters of the agent (such as weights in the neural network) will be updated according to the policy gradient, so that the agent can better optimize its reward results in future decisions. This process is iterative, and the policy is adjusted each time according to new data feedback to continuously approach the ideal operation model. Based on the policy update parameters corresponding to each agent, the initial action execution policy corresponding to each agent is updated. All previous analysis and learning results are applied to actual operations to generate the target parameter execution policy corresponding to each agent. These updated policies will directly affect the actual operation of the agent, such as adjusting the configuration of the light to ensure that its decision is consistent with the optimization goal, so as to achieve the expected lighting effect and energy efficiency goals in actual operation.
[0082] The above describes the lighting parameter detection method in the nighttime construction lighting in the embodiment of the present application. The following describes the lighting parameter detection device in the nighttime construction lighting in the embodiment of the present application. Figure 2 In the embodiment of the present application, an embodiment of the lighting parameter detection device in nighttime construction lighting includes:
[0083] Tracking module 201, used to track multiple targets and extract construction scene images at nighttime construction sites to obtain multiple construction target scene images;
[0084] A fusion module 202 is used to extract and fuse scene brightness features of multiple construction target scene images to obtain scene fusion brightness features;
[0085] Prediction module 203, used to predict nighttime lighting demand by fusion brightness features of scenes through multi-objective optimization algorithm, and generate initial lighting configuration parameters;
[0086] The collection module 204 is used to perform lighting control and feedback parameter collection on the nighttime construction site based on the initial lighting configuration parameters to obtain multiple construction target feedback data;
[0087] The calculation module 205 is used to perform feedback optimization calculation on the initial lighting configuration parameters according to multiple construction target feedback data through a deep reinforcement learning algorithm to obtain target lighting configuration parameters.
[0088] Through the collaboration of the above components, by deploying high-resolution cameras at the construction site at night to capture video streams, and using target detection and multi-target tracking algorithms, the dynamic changes of the construction site can be accurately identified and tracked in real time. This process not only enhances the lighting system's ability to respond to changes on the construction site, but also ensures the accuracy of the lighting configuration, thereby improving construction efficiency and safety. By applying a multi-objective optimization algorithm to analyze the scene fusion brightness characteristics, the lighting needs of night construction can be intelligently predicted. This intelligent prediction mechanism allows the system to dynamically adjust the lighting parameters according to the brightness characteristics of the actual scene, realizes the automation and intelligence of the lighting configuration, and ensures that the lighting on the construction site is always in the optimal state. The feedback data is analyzed and learned through a deep reinforcement learning algorithm to optimize the lighting configuration parameters, which can effectively reduce energy consumption while ensuring the lighting quality. By intelligently adjusting the lighting intensity and color temperature, unnecessary energy waste is avoided, and the dual optimization of energy efficiency and lighting effects is achieved. The feedback optimization mechanism can adaptively adjust the lighting parameters according to the real-time feedback data from the construction site. This self-learning and adjustment capability enables the lighting system to continuously adapt to changes on the construction site, continuously optimize the lighting effect, and thus improve the accuracy of the parameter configuration of the night construction site lighting.
[0089] The present application also provides a computer device, which includes a memory and a processor. The memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the processor executes the steps of the lighting parameter detection method in the night construction lighting in the above-mentioned embodiments.
[0090] The present application also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the lighting parameter detection method in nighttime construction lighting.
[0091] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0092] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.
[0093] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for detecting lighting parameters in nighttime construction lighting, characterized in that: The lighting parameter detection method in nighttime construction lighting comprises: Perform multi-target tracking and construction scene image extraction on a nighttime construction site to obtain multiple construction target scene images; specifically, the method comprises: deploying a high-resolution camera at the nighttime construction site, and collecting a video stream of the nighttime construction site through the high-resolution camera to obtain a construction site video stream; extracting key frames from the construction site video stream based on a preset time interval to obtain a construction site key frame; performing construction target identification on the construction site key frame through a target detection algorithm to obtain multiple construction targets, wherein the construction targets include: construction machinery and multiple workers; a multi-target tracking algorithm based on Kalman filtering defines the state variables and measurement variables of each construction target in the construction site video stream, and establishes a state transition model for each construction target ; Establish an observation model for each construction target according to the state variables and the measurement variables; perform position tracking estimation on the construction site video stream through the state transition model to obtain position tracking prediction data; perform position tracking detection on the construction site video stream through the observation model to obtain position tracking real data; compare the position tracking prediction data and the position tracking real data and update the state to obtain a position tracking state difference; perform scene change recognition on multiple construction targets in the construction site video stream according to the position tracking state difference to obtain scene change information of each construction target; perform construction scene image segmentation on the construction site video stream according to the scene change information of each construction target to obtain multiple construction target scene images; The scene brightness feature extraction and feature fusion are performed on the multiple construction target scene images to obtain scene fusion brightness features; specifically including: performing brightness change area identification on the multiple construction target scene images to obtain multiple target brightness change areas of each construction target scene image; performing scene brightness analysis on the multiple target brightness change areas to obtain a set of pixel brightness values of each target brightness change area; performing cluster analysis on the set of pixel brightness values of each target brightness change area to obtain multiple scene local brightness features of each construction target scene image; performing scene global brightness feature identification on the multiple construction target scene images to obtain scene global brightness features of each construction target scene image; performing feature fusion on the scene local brightness features and the multiple scene local brightness features to obtain scene fusion brightness features of each construction target scene image; The scene fusion brightness feature is used to predict the night lighting demand through a multi-objective optimization algorithm to generate initial lighting configuration parameters; specifically, the method comprises: performing feature encoding on the scene fusion brightness feature of each construction target scene image respectively to obtain a fusion brightness feature vector of each construction target scene image; inputting the fusion brightness feature vector of each construction target scene image into a night lighting demand prediction model, wherein the night lighting demand prediction model comprises: a multi-head attention mechanism layer, a double-layer threshold recurrent network and a single-layer threshold recurrent network; performing attention mechanism weighted fusion on the fusion brightness feature vector of each construction target scene image through the multi-head attention mechanism layer to obtain a target brightness feature vector; performing hidden feature extraction on the target brightness feature vector through the double-layer threshold recurrent network to obtain a hidden brightness feature vector; performing night lighting demand prediction on the hidden brightness feature vector through the single-layer threshold recurrent network to obtain multiple lighting configuration parameter values; performing multi-objective optimization analysis on the multiple lighting configuration parameter values through a multi-objective optimization algorithm to generate initial lighting configuration parameters; Based on the initial lighting configuration parameters, lighting control and feedback parameter collection are performed on the nighttime construction site to obtain a plurality of construction target feedback data; The method comprises the following steps: creating an intelligent agent for each construction target, wherein the intelligent agent comprises an input layer, multiple hidden layers and an output layer; encoding the feedback data of the multiple construction targets to obtain a feedback encoding vector for each construction target; inputting the feedback encoding vector of each construction target into the intelligent agent, and performing parameter execution strategy analysis through the intelligent agent to obtain an initial parameter execution strategy for each intelligent agent; calculating reward data for each intelligent agent to obtain a reward parameter for each intelligent agent; performing policy gradient analysis on each intelligent agent based on the reward parameter of each intelligent agent to determine the policy gradient of each intelligent agent; performing policy update parameters on the reward parameter of each intelligent agent through the policy gradient to obtain a policy update parameter corresponding to each intelligent agent; performing policy update on the initial action execution strategy corresponding to each intelligent agent based on the policy update parameter corresponding to each intelligent agent to generate a target parameter execution strategy corresponding to each intelligent agent; performing comprehensive analysis on the target parameter execution strategy of each intelligent agent to generate a comprehensive parameter execution strategy, and performing feedback parameter adjustment on the initial lighting configuration parameters according to the comprehensive parameter execution strategy to obtain the target lighting configuration parameters.
2. A lighting parameter detection device for nighttime construction lighting, characterized in that: The lighting parameter detection device in the nighttime construction lighting comprises: The tracking module is used to track multiple targets and extract construction scene images at nighttime construction sites to obtain multiple construction target scene images; specifically, it includes: deploying a high-resolution camera at the nighttime construction site, and collecting video streams of the nighttime construction site through the high-resolution camera to obtain a construction site video stream; extracting key frames from the construction site video stream based on a preset time interval to obtain a construction site key frame; identifying construction targets from the construction site key frame through a target detection algorithm to obtain multiple construction targets, and the construction targets include: construction machinery and multiple workers; a multi-target tracking algorithm based on Kalman filtering defines the state variables and measurement variables of each construction target in the construction site video stream, and establishes a state transition for each construction target. A state transition model is used; an observation model of each construction target is established according to the state variables and the measurement variables; a position tracking estimation is performed on the construction site video stream through the state transition model to obtain position tracking prediction data; a position tracking detection is performed on the construction site video stream through the observation model to obtain position tracking real data; the position tracking prediction data and the position tracking real data are compared and the state is updated to obtain a position tracking state difference; according to the position tracking state difference, scene change recognition is performed on multiple construction targets in the construction site video stream to obtain scene change information of each construction target; according to the scene change information of each construction target, construction scene image segmentation is performed on the construction site video stream to obtain multiple construction target scene images; A fusion module is used to extract scene brightness features and fuse features of the multiple construction target scene images to obtain scene fusion brightness features; specifically comprising: identifying brightness change areas of the multiple construction target scene images to obtain multiple target brightness change areas of each construction target scene image; performing scene brightness analysis on the multiple target brightness change areas to obtain a set of pixel brightness values of each target brightness change area; performing cluster analysis on the set of pixel brightness values of each target brightness change area to obtain multiple scene local brightness features of each construction target scene image; performing scene global brightness feature identification on the multiple construction target scene images to obtain scene global brightness features of each construction target scene image; performing feature fusion on the scene local brightness features and the multiple scene local brightness features to obtain scene fusion brightness features of each construction target scene image; A prediction module is used to predict nighttime lighting demand for the scene fusion brightness features through a multi-objective optimization algorithm to generate initial lighting configuration parameters; specifically comprising: feature encoding the scene fusion brightness features of each construction target scene image respectively to obtain a fusion brightness feature vector of each construction target scene image; inputting the fusion brightness feature vector of each construction target scene image into a nighttime lighting demand prediction model, the nighttime lighting demand prediction model comprising: a multi-head attention mechanism layer, a double-layer threshold recurrent network and a single-layer threshold recurrent network; performing attention mechanism weighted fusion on the fusion brightness feature vector of each construction target scene image through the multi-head attention mechanism layer to obtain a target brightness feature vector; performing hidden feature extraction on the target brightness feature vector through the double-layer threshold recurrent network to obtain a hidden brightness feature vector; performing nighttime lighting demand prediction on the hidden brightness feature vector through the single-layer threshold recurrent network to obtain multiple lighting configuration parameter values; performing multi-objective optimization analysis on the multiple lighting configuration parameter values through a multi-objective optimization algorithm to generate initial lighting configuration parameters; A collection module, used to perform lighting control and feedback parameter collection on the nighttime construction site based on the initial lighting configuration parameters, and obtain a plurality of construction target feedback data; The calculation module is used to perform feedback optimization calculation on the initial lighting configuration parameters according to the multiple construction target feedback data through a deep reinforcement learning algorithm to obtain the target lighting configuration parameters; specifically comprising: creating an intelligent agent for each construction target, the intelligent agent comprising an input layer, multiple hidden layers and an output layer; performing feature encoding on the multiple construction target feedback data to obtain a feedback encoding vector for each construction target; inputting the feedback encoding vector of each construction target into the intelligent agent, and performing parameter execution strategy analysis through the intelligent agent to obtain the initial parameter execution strategy of each intelligent agent; performing reward data calculation on each intelligent agent to obtain the reward parameter of each intelligent agent number; perform a policy gradient analysis on each agent based on the reward parameter of each agent to determine the policy gradient of each agent; perform a policy update parameter on the reward parameter of each agent through the policy gradient to obtain the policy update parameter corresponding to each agent; perform a policy update on the initial action execution strategy corresponding to each agent based on the policy update parameter corresponding to each agent to generate the target parameter execution strategy corresponding to each agent; perform a comprehensive analysis on the target parameter execution strategy of each agent to generate a comprehensive parameter execution strategy, and perform feedback parameter adjustment on the initial lighting configuration parameters according to the comprehensive parameter execution strategy to obtain the target lighting configuration parameters.
3. A computer device, characterized in that: The computer device comprises: a memory and at least one processor, wherein instructions are stored in the memory; The at least one processor calls the instructions in the memory to enable the computer device to execute the lighting parameter detection method in nighttime construction lighting as claimed in claim 1.
4. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions are executed by the processor, the lighting parameter detection method in nighttime construction lighting as claimed in claim 1 is implemented.
