Full direct current lighting method and system based on AI perception
By deploying multiple sensors and cloud dynamic dimming strategies in the lighting system, combined with edge execution strategies, an AI-aware full DC lighting method is realized, solving the problem that existing lighting control is difficult to meet multiple needs at the same time, and improving the accuracy of lighting control and the comprehensive performance of the system.
Patent Information
- Application Number
- CN202510541237.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-28
- Publication Date
- 2025-05-30
- Estimated Expiration
- 2045-04-28
AI Technical Summary
Existing lighting control strategies usually only consider a single goal, such as energy saving or comfort, and it is difficult to meet multiple needs such as comfort, energy saving and stability at the same time, and have low execution accuracy.
Using AI-aware all-DC lighting method, the environment data is collected by deploying multiple heterogeneous sensors, data fusion is performed using a two-layer fusion framework based on Bayesian inference, dynamically optimized target dimming strategies are deployed in the cloud, and the terminal execution layer is built-in edge execution strategies to compensate for factors such as line voltage drop.
It improves the accuracy and comprehensiveness of environmental monitoring, achieves a comprehensive balance of comfort, energy saving and stability of the lighting system, improves the accuracy of dimming control, and overcomes the problem of low execution accuracy in the prior art.
Smart Images

Figure CN120076125A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of lighting control, and in particular to an all - DC lighting method and system based on AI perception. Background Art
[0002] In the prior art, the following problems exist in environmental monitoring and lighting control systems: the environmental data collected by a single sensor has low accuracy and cannot comprehensively reflect the actual conditions of a complex environment; lighting control strategies usually only consider a single goal such as energy conservation or comfort, and it is difficult to simultaneously meet multiple requirements such as comfort, energy conservation, and stability; at the same time, factors such as line voltage drop also lead to low execution accuracy during actual execution. Summary of the Invention
[0003] One of the purposes of the present invention is to provide an all - DC lighting method based on AI perception to solve the problem that in the prior art, lighting control strategies usually only consider a single goal such as energy conservation or comfort, it is difficult to simultaneously meet multiple requirements such as comfort, energy conservation, and stability, and it is impossible to achieve precise control of lamp dimming.
[0004] The present invention is achieved through the following technical solutions. An all - DC lighting method based on AI perception includes the following steps: S100, collecting environmental data by deploying different types of sensors, and sending the environmental data collected by the different types of sensors to an edge gateway; S200, the edge gateway pre - processes the received environmental data, and performs fusion processing on the pre - processed environmental data to obtain a fused environmental state vector, and sends the environmental state vector to the cloud; S300, the cloud calculates an optimal dimming current according to the received environmental state vector through a dynamically optimized target dimming strategy deployed in the cloud; S400, the cloud sends the optimal dimming current to the terminal execution layer, and the terminal execution layer generates a dimming instruction according to the received optimal dimming current to adjust the state of the lamp.
[0005] Further, the all - DC lighting method further includes step S500, by embedding an edge execution strategy in a PI controller of the terminal execution layer, and controlling the PI controller to compensate for line voltage drop through the edge execution strategy, and correcting the PWM duty cycle in actual execution, so that the current is as close as possible to the optimal current under the condition of fluctuations caused by factors such as line impedance and voltage drop.
[0006] Further, the different types of sensors include:
[0007] Light sensors, presence sensors, temperature sensors, and color temperature / spectrum sensors.
[0008] Further, a light sensor is used to detect the ambient light intensity, distinguish the contributions of natural light and artificial light sources, and support dynamic dimming. One light sensor can be deployed per 10 to 20 square meters to prevent light shadow errors. A presence sensor is used to detect the activities of people in the target area, distinguish whether people are present, and can set the detection threshold according to the specific scenario requirements of the target area. A temperature sensor is used to monitor the ambient temperature in real time to assist the lighting system in optimizing energy consumption. A color temperature / spectrum sensor is used to detect the color temperature and spectral distribution of the ambient light to guide the lighting system in optimizing the light color matching.
[0009] Further, when the deployment area is indoors, indoor positioning sensors can also be arranged to track the positions and movement trajectories of people through BLE / UWB technology, so as to achieve follow-up lighting or scene linkage.
[0010] Further, the preprocessing in step S200 includes: Denoising: Using a Kalman filter or a moving window mean to process the transient noise of the sensor, identifying the abnormal data of the sensor based on statistical methods, and removing the outliers; Timestamp synchronization: After denoising, synchronize the timestamps of the data collected by different types of sensors.
[0011] Further, the timestamp synchronization can adopt hardware-level synchronization or software-level interpolation synchronization.
[0012] Further, the fusion processing of the preprocessed environmental data includes:
[0013] Fusing the environmental data through a fusion algorithm based on Bayesian inference. The fusion algorithm based on Bayesian inference includes the following steps: S210. Based on the preprocessed sensor data, define an environmental state vector according to different types of sensors to describe the real environment collected by the sensors at a certain moment, and construct an observation model for each type of sensor; S220. Align the timestamp differences of the environmental data of different types of sensors through spatio-temporal alignment, and then perform weighted averaging according to the data of the light sensor group to obtain a comprehensive observation value. The spatio-temporal alignment aligns the environmental data with different sampling frequencies so that different environmental data have data values at the same time point. The spatio-temporal alignment can be achieved through linear interpolation. By given a sensor Z i , sample and record the data value Z k at different timestamps t i (t k ), and align these data to any time point t; S230. Fuse the environmental data from different types of sensors through Bayes' theorem, and combine the observation values of different sensor observation models and the previous environmental state vector X t-1 to calculate the current environmental state vector X t .
[0014] Furthermore, the environmental state vector can be expressed by the following formula:
[0015] , where is the environmental state vector, is the light intensity, Lux; is the temperature, °C; is the human presence, binary: 0 means no one, 1 means someone; is the light color interference coefficient, dimensionless, used to describe the deviation degree of the light source color temperature; the observation model of the light sensor is shown in the following formula:
[0016] , where is the observation value of the light sensor, is the true light intensity, is the light measurement error, indicates that the observation error of the light sensor follows a normal distribution with a mean of 0, is the noise variance of the light sensor; the observation model of the temperature sensor is shown in the following formula:
[0017] , where is the observation value of the temperature sensor, is the true temperature, is the temperature measurement error, indicates that the temperature measurement error follows a normal distribution with a mean of 0 and a variance of , is the noise variance of the temperature sensor; the observation model of the human presence sensor is shown in the following formula:
[0018] , where is the observation value of the human presence sensor, indicating whether a person is detected by the sensor, is the true human presence state, is the misdetection error, indicating that the sensor misdetects one state as another state, is the exclusive OR operation, used to represent the misdetection situation, that is, if and are inconsistent, an incorrect observation value will be returned; the observation model of the color temperature sensor is shown in the following formula:
[0019] , where is the observation value of the color temperature sensor, is the true light color interference coefficient, indicating the actual light color interference degree at time t, is the color temperature measurement error.
[0020] Furthermore, the aligned data can be calculated by the following formula:
[0021] , where is the aligned data after interpolation, is the observation value of sensor i at timestamp t k , t k is the timestamp of the original sensor data, t k+1 and t k are two adjacent timestamps, is the weight of linear interpolation, representing the relative distance of time point t from timestamps t k and t k+1 . This weight is used for weighted averaging of sensor data.
[0022] Furthermore, the fusion algorithm based on Bayesian inference can also include a dynamic weight adjustment strategy for sensors. When the observation value of a sensor differs significantly from the previous environmental state vector estimate, it indicates that there may be a sudden anomaly or an abnormal measurement value. At this time, the weight will be reduced to reduce the impact of this sensor on the final state estimate, making the system more robust; conversely, if the difference between the sensor's observation value and the state estimate is small, it means that the sensor data is relatively reliable, and the weight will be increased to enhance the role of this sensor in state estimation. The weight can be calculated by the following formula:
[0023] , where is the updated weight at time t, is the variance related to the j-th variable, λ is the sensitivity coefficient, is the observation value measured by the j-th sensor or observation model at time t, representing the current measurement data regarding the j-th variable, is the previous estimate of the j-th variable at time t - 1, and this estimate is usually a prediction or estimation based on past data.
[0024] Furthermore, the dimming instruction maps the optimal dimming current to a duty cycle between 0 and 1, and controls the states such as the brightness and color temperature of the lamp through this duty cycle.
[0025] Furthermore, the dimming instruction realizes the mapping of the optimal dimming current through the following formula:
[0026] ,
[0027] where is the pulse width modulation duty cycle, is the optimal dimming current.
[0028] Further, the goal of edge execution strategy control is to keep the current of the lamp close to the optimal dimming current, and compensate for the current errors caused by line voltage drop, hardware characteristics, and load changes. Through the proportional and integral control of the PI controller, it can quickly respond and eliminate long-term errors, and gradually adjust the actual current to the target current.
[0029] Further, the edge execution strategy can be expressed by the following formula:
[0030] , where is the actual pulse width modulation duty cycle after being adjusted by the PI controller, is the target pulse width modulation duty cycle obtained by mapping, is the current error, is the proportional gain of the PI controller, is the accumulation of the error function over time, is the integration variable, is the integral gain of the PI controller.
[0031] Further, the current error is calculated by the following formula: , where in the formula is the optimal dimming current, is the actual measured current.
[0032] Further, the dynamic optimization target dimming strategy includes an objective function and dynamic constraint conditions.
[0033] Further, the objective function of the dynamic optimization target dimming strategy includes: a comfort term, a stability term, and an energy-saving term. Among them, the comfort term is related to the actual illuminance and the target illuminance. The actual illuminance is controlled by the driving current and is related to the ambient light intensity. The energy-saving term is related to the system power consumption, and the power consumption is a function of the driving current. The stability term is related to the current change rate, and the goal is to limit the rapid change of the current. The comfort term, the stability term, and the energy-saving term together form a whole, and the comprehensive balance of comfort, energy saving, and stability is achieved by optimizing the current; the dynamic constraint conditions of the dynamic optimization target dimming strategy are used to ensure that the dimming strategy conforms to physical limitations in actual applications while ensuring the stability of the system and the comfort of users, including: current constraint, illuminance deviation constraint, and stability derivative constraint. Among them, the current constraint is used to ensure that the current is between the minimum and maximum values of the current allowed by the lamp, so that the current value will not exceed the maximum limit that the device can withstand, nor will it be lower than the minimum operating current of the device; the illuminance deviation constraint is used to ensure that the illuminance of the target area is as close as possible to the predetermined target illuminance to provide the best comfort experience; the stability derivative constraint ensures the smooth operation of the system by setting the maximum limit of the current change rate and restricting the current change rate.
[0034] Furthermore, the objective function is expressed by the following formula:
[0035] , where J is the objective function, representing the weighted sum of the trade - offs of three objectives during the time period from t 0 to t, is the weight coefficient of the comfort term, is the weight coefficient of the energy - saving term, is the weight coefficient of the stability term; is the actual illuminance, is the target illuminance, is the comfort term; is the energy - saving term, is the power consumption; is the stability term, which is used to describe the smoothness of the current change rate.
[0036] Furthermore, the actual illuminance can be expressed by the following formula: , where in the formula, is the light efficiency of the lighting system, is the ambient light intensity, that is, the light intensity in the probability distribution of the ambient state obtained by Bayesian inference.
[0037] Furthermore, the power consumption is proportional to the square of the current and can be expressed by the following formula: , where R LED is the resistance of the lamp, which together with the square of the current determines the power consumption. is the stability term, which is used to describe the smoothness of the current change rate. To avoid sudden dimming instructions, the change rate of the current needs to be kept smooth. Especially during the dimming process, sudden current changes may cause the light to flicker or become unstable.
[0038] Furthermore, the current constraint is expressed by the following formula: , is the minimum current allowed for the lamp, is the maximum current allowed for the lamp; the illuminance deviation constraint is expressed by the following formula: , is the maximum allowed illuminance deviation; the stability derivative constraint is expressed by the following formula: , is the maximum limit of the current change rate.
[0039] On the other hand, the present invention provides an AI - aware all - DC lighting system, which includes a processor and a memory. A computer program is stored in the memory. When the computer program is executed by the processor, the above - described AI - aware all - DC lighting method is implemented.
[0040] Compared with the prior art, the present invention has the following advantages and beneficial effects:
[0041] 1. The present invention can effectively improve the accuracy and comprehensiveness of environmental monitoring by arranging multiple heterogeneous sensors in the target area and using a two-layer fusion framework based on Bayesian inference and dynamic weights to fuse the heterogeneous sensor data, thereby overcoming the shortcoming of low accuracy of data collected by a single sensor.
[0042] 2. The present invention deploys a dynamic optimization target dimming strategy in the cloud, and calculates the optimal dimming current based on the fused environmental state probability distribution. This strategy comprehensively balances the comfort, energy saving and stability of the lighting system, and solves the problem that existing lighting control strategies are difficult to meet multiple needs at the same time.
[0043] 3. The solution of the present invention realizes high-precision and high-efficiency environmental monitoring and lighting control through the coordination of multi-sensor fusion, cloud-based dynamic optimization dimming strategy and terminal edge execution strategy, meets the multiple requirements of lighting systems in complex environments, and has strong practical value. At the same time, by building an edge execution strategy in the terminal execution layer and compensating for interference factors such as line voltage drop and hardware nonlinearity through a PI controller, the actual execution current is as close to the optimal current as possible, improving the accuracy of dimming control and overcoming the disadvantage of low execution accuracy caused by factors such as line voltage drop in actual execution in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] The drawings described herein are used to provide a further understanding of the embodiments of the present invention, constitute a part of this application, and do not constitute a limitation of the embodiments of the present invention. In the drawings:
[0045] Figure 1 This is a flow chart of the method provided in Example 1 of the present invention. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0047] Example 1
[0048] In the existing process of area dynamic dimming, environmental data collected by a single sensor is usually adopted, and dimming is carried out according to the data of the single sensor, resulting in low accuracy of dimming, being unable to comprehensively reflect the actual situation of a complex environment, and being difficult to provide accurate environmental state information for lighting control. Moreover, the data of a single sensor will lead to the output dimming control strategy usually only considering a single goal such as energy saving or comfort, being difficult to simultaneously meet multiple requirements such as comfort, energy saving and stability, and being unable to achieve the comprehensive optimization of the lighting system.
[0049] In view of the above problems, this embodiment discloses an all-DC lighting method based on AI perception. By adopting a variety of heterogeneous sensors to collect environmental data and using a data fusion algorithm to process the heterogeneous data, the accuracy of environmental monitoring is improved. In this embodiment, a dynamic optimization target dimming strategy is deployed in the cloud, and the optimal dimming current is calculated according to the probability distribution of the fused environmental state, so as to achieve the comprehensive balance of comfort, energy saving and stability of the lighting system. An edge execution strategy is built in at the terminal execution layer. By compensating factors such as line voltage drop through a PI controller, the actually executed current is made as close as possible to the optimal current, thereby improving the accuracy of dimming control. The solution disclosed in this embodiment realizes high-precision and high-efficiency environmental monitoring and lighting control through the coordination of multi-sensor fusion, cloud dynamic optimization of dimming strategy and terminal edge execution strategy, and meets the multiple requirements of the lighting system in a complex environment.
[0050] Figure 1 The overall flowchart of the all-DC lighting method based on AI perception in this embodiment is shown. From Figure 1 it can be seen that this embodiment includes the following steps:
[0051] Step 1: Arrange a variety of sensors in the target area to collect environmental data, and send the environmental data collected by various types of sensors to the edge gateway.
[0052] After receiving the sensor data, the edge gateway first filters out the noise of the sensor data. After completing noise reduction, the heterogeneous data collected by multiple sensors is fused to obtain fused data and the fused data is sent to the cloud.
[0053] Specifically, a Kalman filter or a moving window mean can be used to filter out the transient noise of the light and temperature sensors for the sensor data. At the same time, abnormal data (such as mis-triggering of a human body sensor) is identified based on statistical methods and outliers are removed. After noise reduction is completed, timestamp synchronization is performed on the data collected by different sensors. Timestamp synchronization can adopt hardware-level synchronization (such as using GPS / PPS pulses) or software-level interpolation synchronization (linear interpolation for low-sampling-rate sensors).
[0054] Specifically, in this embodiment, a light sensor, a presence sensor, a temperature sensor, and a color temperature / spectrum sensor are arranged in the target area.
[0055] Among them, the light sensor is used to detect the ambient light intensity (unit: Lux), distinguish the contributions of natural light and artificial light sources, and support dynamic dimming; one can be deployed per 10 - 20 square meters to prevent light shadow errors.
[0056] The presence sensor is used to detect the activities (movement, stillness) of people in the target area, distinguish whether people are present, and the detection threshold can be set according to the specific scenario requirements of the target area (for example, a high sensitivity is required in the corridor area to prevent missed detections).
[0057] The temperature sensor is used to monitor the ambient temperature in real - time to assist the lighting system in optimizing energy consumption.
[0058] The color temperature / spectrum sensor is used to detect the color temperature (unit: K) and spectral distribution of the ambient light, and guide the lighting system to optimize the light color matching (for example, specific ambient light color temperatures are required in areas such as art exhibition halls and medical operating tables).
[0059] In addition, if the target area is indoors, an indoor positioning sensor can also be arranged to track the position and movement trajectory of people through BLE / UWB technology, so as to achieve follow - up lighting or scene linkage.
[0060] Specifically, a fusion algorithm based on Bayesian inference can be used to fuse heterogeneous data. In this embodiment, a multi - type heterogeneous sensor data fusion algorithm based on FPGA is built into the edge gateway. This algorithm is a two - layer fusion framework based on Bayesian inference and dynamic weights, which is used to solve the spatio - temporal alignment problem of heterogeneous sensor data and balance the accuracy and real - time performance of heterogeneous sensor data.
[0061] The heterogeneous sensor data fusion algorithm includes the following:
[0062] 1) First, based on the sensor data after noise reduction pre - processing, an environmental state vector is defined, which is used to describe the real environment collected by the sensors at a certain moment t. And different types of observation models for different types of sensors are constructed.
[0063] Specifically, in this embodiment, the environmental state vector can be represented by the following formula:
[0064] ,
[0065] Among them, is the environmental state vector, that is, the aforementioned fusion data, is the light intensity, Lux; is the temperature, °C; For the presence of personnel, it is binary: 0 (no person) / 1 (person present); It is the light color interference coefficient, dimensionless, used to describe the deviation degree of the light source color temperature.
[0066] In this embodiment, observation models of four types of sensors are exemplarily given:
[0067] The observation model of the light sensor is shown as follows:
[0068] ,
[0069] where, is the observed value of the light sensor, is the true light intensity, is the light measurement error, indicates that the observation error of the light sensor follows a normal distribution, with a mean of 0 and a variance of , which means that the error of the sensor is random, most of the errors will be concentrated near 0 (i.e., the measured value is close to the true value), but there may also be some larger errors. is the noise variance of the light sensor.
[0070] The observation model of the temperature sensor is shown as follows:
[0071] ,
[0072] where, is the observed value of the temperature sensor, is the true temperature, is the temperature measurement error, indicates that the temperature measurement error follows a normal distribution, with a mean of 0 and a variance of , is the noise variance of the temperature sensor.
[0073] The observation model of the person presence sensor is shown as follows:
[0074] ,
[0075] where, is the observed value of the person presence sensor, indicating whether a person is detected by the sensor. This value can be 0 or 1, 0 means no person, and 1 means person present. is the true personnel presence state, indicating whether there is a person in the environment at time t, 1 means yes, and 0 means no. is the false detection error, indicating that the sensor wrongly detects one state (such as no person) as another state (such as person present). This error is related to the detection accuracy of the sensor and is usually expressed as the false detection rate. is an exclusive OR operation, used to represent the situation of false detection. That is, if and are inconsistent (false detection occurs), an incorrect observed value will be returned. is the false detection rate, that is, the probability of the sensor misjudging. For example, the false detection rate means that the sensor has a 10% probability of misjudging the unoccupied state as occupied.
[0076] The observation model of the color temperature sensor is shown as follows:
[0077] ,
[0078] where, is the observed value of the color temperature sensor, that is, the light color interference coefficient measured by the sensor, which reflects the color temperature deviation of the light source. It is determined by the true light color interference coefficient and the measurement error. is the true light color interference coefficient, representing the actual light color interference degree at time t. It describes the deviation of the light source color. is the color temperature measurement error, representing the noise of the color temperature sensor. This noise follows a uniform distribution represents that the color temperature measurement error is uniformly distributed in the interval inside. is the maximum amplitude of the color temperature error, used to control the error range. A larger a represents a larger measurement error of the color temperature sensor, and a smaller a represents a smaller error.
[0079] It should be noted that in the exemplary observation model disclosed in this embodiment, both the light sensor and the temperature sensor use the Gaussian noise model to reflect their measurement error distributions. represents a Gaussian distribution, that is, a normal distribution. and In, 0 is the mean of this Gaussian distribution, representing the central value of this distribution. The mean being 0 means that the expected value of the error between the observed value and the true value is 0, that is, the error has no bias in the positive or negative direction. and are the variances of the Gaussian distribution, representing the volatility or uncertainty of the error. The larger the variance, the more unstable the error and the larger the fluctuation range; the smaller the variance, the smaller the error and the smaller the fluctuation range.
[0080] 2) Process the timestamp differences of the environmental data collected by different types of sensors through spatio-temporal alignment, and then perform weighted averaging according to the data of the light sensor group to obtain a comprehensive observed value.
[0081] Specifically, spatio-temporal alignment aligns environmental data with different sampling frequencies so that different environmental data have data values at the same time point. In this embodiment, spatio-temporal alignment of sensor data can be exemplarily achieved by linear interpolation. By giving a sensor Z i , samples and records the data value Z k at different timestamps t i (t k ), and aligns this data to an arbitrary time point t. Specifically, it can be expressed by the following formula:
[0082] ,
[0083] where, is the aligned data after interpolation, representing the estimated value at time t. is the observed value of sensor i at timestamp t k , t k is the timestamp of the original sensor data, representing the sampling moment. t k+1 and t k are two adjacent timestamps, is the weight of linear interpolation, representing the relative distance of time point t from timestamps t k and t k+1 , and this weight is used for weighted averaging of sensor data.
[0084] Specifically, in this embodiment, weighted averaging can also be performed according to the data of the light sensor group by fusing the observed values of multiple light sensors into a comprehensive value. Let the observed value of each sensor be given a weight , and this weight reflects the position or importance of the sensor. Sensors closer to the working area will have higher weights, and it can be expressed by the following formula:
[0085] ,
[0086] where, is the fused light value, representing the weighted average light intensity at time t. is the weight of the j-th sensor, and this weight is usually related to the position or importance of the sensor. is the observed value of the j-th light sensor at time t. is the number of light sensors.
[0087] 3) Finally, fuse the data from different sensors through Bayes' theorem, and estimate the current environmental state vector X t-1 by combining the observed values calculated from the observation models of different sensors and the previous environmental state vector X t。
[0088] Specifically, the multi-modal Bayesian fusion of this embodiment can be expressed by the following formula:
[0089]
[0090] ,
[0091] Among them, is the posterior probability of estimating the current environmental state vector given all observed data (illumination, temperature, human presence, color temperature).
[0092] is the likelihood function of the light sensor, representing the probability of the observed value of the light sensor given the true illumination. is the likelihood function of the temperature sensor, representing the probability of the observed value of the temperature sensor given the true temperature. is the likelihood function of the human presence sensor, representing the probability observed by the human presence sensor given the true human presence. is the likelihood function of the color temperature sensor, representing the probability observed by the color temperature sensor given the true light color interference coefficient. is the state transition probability, which describes the relationship between the current environmental state vector X t and the environmental state vector X t-1 at the previous moment. In the actual calculation process, the state transition probability can be modeled by a Markov process.
[0093] It should be noted that these likelihood functions are used to describe the relationship between each sensor data and the true environmental state. The specific form of the likelihood function depends on the type of observed data and the measurement characteristics of the sensor. In this embodiment, for sensors with Gaussian noise, the Gaussian distribution can be used as the likelihood function; for count data, the Poisson distribution can be used, etc. The specific form of the likelihood function can also be determined by methods such as data fitting, literature experience, or Bayesian inference.
[0094] This embodiment also includes a dynamic weight adjustment strategy for sensors. When the observed value of a sensor differs significantly from the estimated value of the previous environmental state vector X t-1 it indicates that there may be a sudden anomaly or an abnormal measured value. At this time, the weight will be reduced to reduce the impact of this sensor on the final state estimation, making the system more robust. Conversely, if the difference between the observed value of the sensor and the state estimation is small, it means that the sensor data is relatively reliable, and the weight will be increased to enhance the role of this sensor in state estimation. The weight can be calculated by the following formula:
[0095] ,
[0096] Among them, is the updated weight at time t, representing the weight updated according to the current observation data and the previous estimate. is the variance associated with the j-th variable, which represents the measurement noise or uncertainty of the variable. Generally, a larger variance means a larger noise in the signal and a lower reliability of the signal. λ is the sensitivity coefficient, used to control the relative influence of the error term and the noise term in the model. By adjusting the sensitivity coefficient, the weight of the difference between the observation error and the previous estimate in the formula can be updated. A larger sensitivity coefficient will make the weight more affected by this difference, meaning that the difference between the previous estimate and the current observation has a greater impact on the weight update. is the observed value measured by the j-th sensor or observation model at time t, representing the current measurement data regarding the j-th variable. is the previous estimate of the j-th variable at time t-1, which is usually a prediction or estimation based on past data.
[0097] is the absolute difference between the current observed value and the previous estimate of the j-th variable, used to measure the deviation between the observed value and the predicted value. If this difference is large, it means that the gap between the current observed value and the previous estimate is large, which may indicate a large measurement error or a large environmental change, thus affecting the update of the weight.
[0098] It should be noted that the dynamic weight adjustment strategy provides an adaptive mechanism for the multi-type sensor data fusion algorithm, enabling it to adjust the weight in real time according to the performance of the sensors and the changes in the observation data, thereby improving the accuracy and robustness of the state estimation. By introducing the sensitivity coefficient, the response intensity to sudden anomalies can be flexibly controlled to ensure that the system can make reasonable state estimates in the face of different sensor qualities and abnormal situations.
[0099] Step 2: The cloud receives the fusion data sent by the edge gateway. In this embodiment, the fusion data is the processed environmental state probability distribution calculated by the fusion algorithm arranged in the edge gateway.
[0100] A dynamic optimization target dimming strategy is deployed in the cloud, and this strategy calculates the optimal dimming current according to the received environmental state probability distribution.
[0101] Specifically, in this embodiment, the dynamic optimization target dimming strategy includes an objective function and dynamic constraint conditions.
[0102] Among them, the objective function is used to comprehensively balance the comfort, energy conservation, and stability of the lighting system. By weighing and summing up the three objectives of comfort, energy conservation, and stability over a period of time, the requirements in these three aspects are combined to achieve the optimal dimming strategy.
[0103] In this embodiment, the objective function can be expressed by the following formula:
[0104] ,
[0105] where J is the objective function, representing the weighted sum of the three objectives from time t 0 to t. is the weight coefficient of the comfort term, is the weight coefficient of the energy conservation term, is the weight coefficient of the stability term.
[0106] is the actual illuminance, which is controlled by the driving current and is related to the ambient light intensity. is the target illuminance, which is set according to the actual application requirements and can be set by the user across fields or automatically adjusted according to the environment. is the comfort term, which represents the difference between the actual illuminance and the target illuminance. The purpose is to minimize this difference and ensure that the indoor lighting conforms to the predetermined comfort standard as much as possible. By using the form of the square difference, it emphasizes that large deviations are more unfavorable than small deviations, thus more strongly punishing the large deviations between the actual illuminance and the target illuminance.
[0107] In this embodiment, the actual illuminance can be expressed by the following formula:
[0108] ,
[0109] In the formula, is the light efficiency of the lighting system, is the ambient light intensity, that is, the light intensity in the probability distribution of the environmental state obtained by Bayesian inference.
[0110] is the energy conservation term, is the power consumption. The purpose of this term is to minimize the power consumption, thereby achieving energy conservation. The power consumption is proportional to the square of the current and can be expressed by the following formula:
[0111] , where R LED is the resistance of the lamp, which together with the square of the current determines the power consumption.
[0112] is the stability term, which is used to describe the smoothness of the current change rate. In order to avoid sudden dimming instructions, the change rate of the current needs to be kept smooth. Especially during the dimming process, sudden current changes may cause the light to flicker or become unstable.
[0113] It should be noted that in the objective function, the comfort term is related to the actual illuminance and the target illuminance. The actual illuminance is controlled by the driving current and is related to the ambient light intensity. The energy-saving term is related to the system power consumption, and the power consumption is a function of the driving current. The stability term is related to the current change rate, and the goal is to limit the rapid change of the current. These three parts together form a whole, and the comprehensive balance of comfort, energy saving, and stability is achieved by optimizing the current.
[0114] The dynamic constraint conditions of this embodiment are used to ensure that the dimming strategy not only conforms to physical limitations in actual applications but also guarantees the stability of the system and the comfort of users. It can include: current constraint, illuminance deviation constraint, and stability derivative constraint.
[0115] Among them, the current constraint can be expressed by the following formula:
[0116] ,
[0117] is the minimum current allowed for the lamp, is the maximum current allowed for the lamp. This constraint ensures that the current is between the minimum and maximum values of the current allowed for the lamp. Thus, it ensures that the current value does not exceed the maximum limit that the device can withstand and does not fall below the minimum operating current of the device, thereby guaranteeing the safety and stability of the hardware.
[0118] The illuminance deviation constraint can be expressed by the following formula:
[0119] ,
[0120] is the maximum allowable illuminance deviation, which can be determined according to the actual usage situation. This constraint is used to ensure that the illuminance in the target area is as close as possible to the predetermined target illuminance to provide the best comfort experience.
[0121] The stability derivative constraint can be expressed by the following formula:
[0122] ,
[0123] is the maximum limit of the current change rate. During the dimming process, if the current changes too fast, it may cause the light to flicker or become unstable, affecting the comfort of users and even damaging the lighting equipment. This constraint guarantees the smooth operation of the system by limiting the current change rate.
[0124] It should be noted that the dynamic constraint conditions play a crucial role in the entire dimming strategy, ensuring the reliability, stability, and user comfort of the system. By precisely controlling these constraint conditions, the dimming strategy can neither violate the hardware limitations of the system nor provide the best lighting effect in the actual environment.
[0125] Step 3: The cloud sends the calculated optimal dimming current to the terminal execution layer. The terminal execution layer generates a dimming instruction based on the received optimal dimming current and adjusts the states of the lamp, such as brightness and color temperature.
[0126] Specifically, the dimming instruction maps the optimal dimming current to a duty cycle between 0 and 1, and adjusts the states of the lamp, such as brightness and color temperature, through this duty cycle.
[0127] Specifically, the mapping can be carried out through the following formula:
[0128] In this embodiment, the optimal dimming current can be mapped through the following formula:
[0129] ,
[0130] where is the duty cycle of PWM (pulse width modulation duty cycle), is the optimal dimming current calculated through the objective function. Through this formula, the instruction of the optimal current can be converted into a PWM signal, and the brightness and color temperature of the lamp can be adjusted through the PWM drive circuit.
[0131] The above formula maps the dimming instruction to the duty cycle, and adjusts the brightness of the lamp through the duty cycle. In addition, in this embodiment, the brightness of the lamp can also be adjusted by mapping the light instruction to a voltage of 0 - 10V. 0 - 10V dimming is a common dimming method, usually used to control the brightness and color temperature of LED lamps. By adjusting the voltage signal (between 0V and 10V), the brightness change of the lamp is controlled. 0V represents the lowest brightness (turning off the lamp), and 10V represents the highest brightness. In this embodiment, the mapping relationship between the optimal dimming current and the 0 - 10V voltage is:
[0132] ,
[0133] where is the 0 - 10V dimming voltage signal.
[0134] In this embodiment, considering that in actual engineering, although the PWM duty cycle D(t) is obtained through the above drive current mapping formula, there are still several factors that may cause the brightness of the lamp not to accurately follow the optimal current:
[0135] 1) Line voltage drop. In an actual circuit, especially when the current is large, the resistance of the line and the characteristics of the wire may cause current loss or voltage reduction. This means that the optimal current command cannot always be directly converted into the actual current value. If there is a voltage drop, the actual current may be less than the theoretical current.
[0136] 2) Hardware characteristics and non-linearity. The characteristics of the current source, drive circuit, and lamp may be non-linear and may behave differently at different current or voltage levels, which can lead to inconsistencies between the PWM signal and the actual current.
[0137] 3) Load change. If the load of the lamp changes, or there are other circuits in the system that affect the current of the lamp (such as the change of other loads), it will cause errors in current tracking.
[0138] For the above reasons, an edge execution strategy can be built into the PI controller at the terminal execution layer. By using the edge execution strategy to control the PI controller to compensate for the line voltage drop and correct the PWM duty cycle in actual execution, the current can be made as close as possible to the optimal current under the fluctuations caused by factors such as line impedance and voltage drop.
[0139] In this embodiment, the edge execution strategy can be expressed by the following formula:
[0140] ,
[0141] where, is the actual PWM duty cycle, which is the actual PWM duty cycle adjusted by the PI controller.
[0142] is the target PWM duty cycle obtained by mapping, that is, the PWM duty cycle D(t) obtained by the drive current mapping formula, which can be understood as the ideal brightness of the lamp.
[0143] is the current error, which is the optimal current minus the difference between the actual measured current, which can be expressed by the following formula:
[0144] , where is the actual measured current, which may not be consistent with the optimal current due to various factors (such as line voltage drop, load change, etc.). is the proportional gain of the PI controller, which controls the response strength of the proportional part to the current error. If the error is large, the proportional control will provide a large correction amount and quickly adjust the PWM duty cycle to make the actual current quickly approach the expected value. A larger proportional gain will make the system respond faster to the error, but it may also introduce overshoot or oscillation; a smaller proportional gain will make the system respond slower.
[0145] is the integral part, which is the accumulation of the current error over a period of time. The integral term represents the influence of past errors on the control signal. is the accumulation of the error function over time and reflects the error over a past period of time in actual control. is the integral variable, which is a virtual time variable used to represent the accumulation of past errors during the integration process; is the integral gain of the PI controller, which determines the response strength of the integral part to the error accumulation. The integral gain controls the action of the integral part, and its function is to eliminate the steady-state error. That is, if the error persists for a long time, the integrator will gradually accumulate the error, thereby generating a correction in the control quantity to drive the error to gradually decrease.
[0146] It should be noted that the function of the integral part is to eliminate long-existing errors. Especially when there is a steady-state deviation in the system (such as because there are often small voltage drops or drifts in the system), the integral term will accumulate the error over time. The PI controller adjusts the duty cycle according to the accumulated error information over time to reduce the steady-state deviation caused by long-term or continuous errors (such as voltage drops or other system disturbances), and gradually corrects the control signal until the error disappears.
[0147] The specific embodiments described above further elaborate on the purpose, technical solutions, and beneficial effects of the present invention. It should be understood that the above are only specific embodiments of the present invention and are not used to limit the protection scope of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A full DC lighting method based on AI perception, characterized in that: The full DC lighting method comprises: S100, collecting environmental data by deploying different types of sensors, and sending the environmental data collected by the different types of sensors to an edge gateway; S200, the edge gateway preprocesses the received environmental data, and fuses the preprocessed environmental data to obtain a fused environmental state vector, and sends the environmental state vector to the cloud; S300, the cloud calculates the optimal dimming current according to the received environmental state vector through the dynamic optimization target dimming strategy deployed in the cloud; S400, the cloud sends the optimal dimming current to the terminal execution layer, The terminal execution layer generates dimming instructions according to the optimal dimming current and adjusts the state of the lamp.
2. The full DC lighting method based on AI perception according to claim 1 is characterized in that: The full DC lighting method also The method comprises: step S500, wherein an edge execution strategy is built into a PI controller of a terminal execution layer, and the PI controller is controlled by the edge execution strategy to compensate for line voltage drop, thereby correcting the duty cycle of pulse width modulation in actual execution.
3. The full DC lighting method based on AI perception according to claim 1 is characterized in that: The different types of sensors include: Light sensor, person-presence sensor, temperature sensor, and color temperature / spectrum sensor.
4. The full DC lighting method based on AI perception according to claim 1 is characterized in that: The preprocessing in step S200 includes: Noise reduction: Use Kalman filter or sliding window mean to process the transient noise of the sensor, identify abnormal data of the sensor based on statistical methods, and eliminate outliers; Timestamp synchronization: After noise reduction is completed, the timestamps of the data collected by different types of sensors are synchronized.
5. The full DC lighting method based on AI perception according to claim 1 is characterized in that: The fusing process of the pre-processed environmental data includes: The environmental data is fused by a fusion algorithm based on Bayesian inference, and the fusion algorithm based on Bayesian inference includes the following steps: S210, based on the preprocessed sensor data and according to different types of sensors, define an environment state vector to describe the real environment collected by the sensor at a certain moment, And build observation models for each type of sensor; S220, processing the timestamp differences of the environmental data of different types of sensors by spatiotemporal alignment, and then performing weighted averaging based on the data of the illumination sensor group to obtain a comprehensive observation value, Spatiotemporal alignment aligns environmental data with different sampling frequencies so that different environmental data have data values at the same time point. The spatiotemporal alignment is achieved by linear interpolation, given a sensor Z i , at different timestamps t k Sampling and recording data value Z i (t k ), align these data to any time point t; S230, fuse the environmental data from different types of sensors through Bayesian theorem, combine the observations of different sensor observation models and the previous environmental state vector X t-1 Calculate the current environment state vector X t .
6. The full DC lighting method based on AI perception according to claim 1, characterized in that: The dynamic optimization target dimming strategy includes an objective function and dynamic constraints.
7. The full DC lighting method based on AI perception according to claim 1, characterized in that: The dimming instruction maps the dimming optimal current to a duty cycle between 0 and 1, and controls the state of the lamp through the duty cycle.
8. The full DC lighting method based on AI perception according to claim 2 is characterized in that: The goal of the edge execution strategy control is to keep the current of the lamp consistent with the optimal dimming current and compensate for the current error caused by line voltage drop, hardware characteristics and load changes. By controlling the proportion and integral of the PI controller, it can quickly respond and eliminate long-term errors, and gradually adjust the actual current to the target current.
9. The full DC lighting method based on AI perception according to claim 6, characterized in that: The objective function of the dynamic optimization target dimming strategy includes: Comfort item, stability item and energy saving item, among which, The comfort term is related to the actual illuminance and the target illuminance, while the actual illuminance is controlled by the drive current and is related to the ambient light intensity. The energy saving term is related to the system power consumption, which is a function of the drive current. The stability term is related to the rate of change of the current, and the goal is to limit the rapid change of the current. The comfort item, stability item and energy saving item together form a whole, and a comprehensive balance of comfort, energy saving and stability is achieved by optimizing the current; The dynamic constraints of the dynamically optimized target dimming strategy are used to ensure that the dimming strategy complies with physical limitations in actual applications while ensuring system stability and user comfort, including: Current constraint, illumination deviation constraint and stability derivative constraint, where: Current constraint is used to ensure that the current is between the minimum and maximum values allowed by the lamp, so that the current value will not exceed the maximum limit of the device, nor will it be lower than the minimum operating current of the device; The illuminance deviation constraint is used to ensure that the illuminance of the target area is consistent with the predetermined target illuminance to provide the best comfort experience; The stability derivative constraint ensures the smooth operation of the system by limiting the current change rate by setting a maximum limit on the current change rate.
10. A full DC lighting system based on AI perception, characterized in that: The full DC lighting system includes: processor; A memory storing a computer program, which, when executed by a processor, implements the AI-perception-based full DC lighting system method as described in any one of claims 1 to 9.
Citation Information
Patent Citations
Intelligent street lamp management method and system based on edge calculation
CN118632419A
Intelligent perception driven real-time data monitoring and safety evaluation system and method
CN119598403A
Light emitting diode intelligent dimming system based on multispectral control
CN119697842A
Method and system for collecting decision data by multi-modal large model driven intelligent agent
CN119808006A
Organic electroluminescent materials and devices
KR1020200116036A