Maximum power control method of LED lamp
By integrating sensors and random forest models in the LED lamp drive circuit, real-time monitoring and analysis of temperature and power data, and dynamic adjustment of the maximum power threshold, the problem of overheating and reduced light output efficiency during high-power operation of LED lamps is solved, achieving a more efficient, Reliable operation and security.
Patent Information
- Application Number
- CN202410903485.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-08
- Publication Date
- 2024-10-11
AI Technical Summary
LED lamps generate a large amount of heat when running at high power, resulting in reduced light output efficiency and color drift, affecting reliability and lifespan, and may cause safety accidents such as electrical overload and fire.
Integrate temperature sensors, current and voltage sensors into the driving circuit of LED lamps, monitor temperature and power data in real time, determine overheating and power abnormalities through analysis, generate adjustment coefficients to dynamically adjust the maximum power threshold, and use random forest models to predict power and temperature changes , optimize the control strategy.
Effectively prevent overheating and power waste, extend the service life of LED lamps, improve operating efficiency and reliability, reduce operating costs, and improve user experience and safety.
Smart Images

Figure CN118765004A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of LED lamp control, and in particular to a maximum power control method of an LED lamp. Background Art
[0002] The maximum power control of LED lamps refers to the real-time monitoring and adjustment of the current and voltage of LED lamps through technical means to ensure that their operating power does not exceed the preset safety threshold. This can prevent the lamps from generating too much heat when running at high power, avoid performance degradation or lamp damage due to overheating, and thus extend their service life.
[0003] This control method can not only improve energy efficiency and prevent unnecessary energy waste, but also automatically adjust the power output of the lamp according to the ambient light intensity and usage scenario through intelligent regulation. Through this fine power management, energy saving can be achieved while ensuring the stability and reliability of LED lamps under various conditions.
[0004] The prior art has the following deficiencies:
[0005] LED lamps generate a lot of heat when running at high power. Overheating can cause the light output efficiency of LED lamps to be significantly reduced, and the light color may drift, which not only affects the user's visual experience, but also damages the reliability and life of the lamp. At the same time, when the light output efficiency of LED lamps is significantly reduced, it will further lead to power waste and increased energy consumption, while shortening the life of the lamp. Continuous inefficient operation and high energy consumption will not only significantly increase operating costs, but may also cause electrical overloads, ultimately leading to failures of lamps and their power supply systems, and even causing serious safety accidents such as fires. Summary of the invention
[0006] The object of the present invention is to provide a maximum power control method for an LED lamp to solve the shortcomings of the background technology.
[0007] In order to achieve the above object, the present invention provides the following technical solution: a maximum power control method for an LED lamp, comprising the following steps:
[0008] S1: By integrating a temperature sensor in the driving circuit of the LED lamp, real-time monitoring is performed to obtain the temperature data of the LED lamp when it is working, and the obtained temperature data is analyzed to determine whether the LED lamp is overheated;
[0009] S2: When the LED lamp is overheated, the real-time power consumption value of the LED lamp is obtained, and the power consumption value is compared and analyzed with the preset maximum power threshold of the LED lamp to determine whether the power of the LED lamp is abnormal;
[0010] S3: When the power of the LED lamp is abnormal, a comprehensive analysis is performed on the power consumption fluctuation of the LED lamp and the luminous color drift state of the LED lamp, an adjustment coefficient is generated according to the analysis result, and the maximum power threshold of the LED lamp is dynamically adjusted according to the adjustment coefficient;
[0011] S4: adjusting the operating state of the LED lamp to control its power consumption and temperature according to the dynamically adjusted maximum power threshold and the power consumption value of the LED lamp monitored in real time;
[0012] S5: The power consumption and temperature change data of the LED lamps within a period of time after adjustment are analyzed and predicted through the random forest model, and the maximum power control strategy of the LED lamps is optimized according to the prediction results to improve its operating efficiency.
[0013] In a preferred embodiment, in S1, the temperature data is analyzed by a moving average method to determine whether the LED lamp is overheated, specifically:
[0014] Determine the size of the time window as w, obtain real-time temperature data from the temperature sensor, and store it in a queue. Use a circular queue to store temperature data to ensure memory efficiency.
[0015] Use a sliding window to calculate the average of the temperature data, which is achieved by accumulating all the data in the window and dividing it by the window size;
[0016] According to the design specifications of the LED lamp, the preset temperature safety threshold of the LED lamp is obtained, and the moving average value is compared with the temperature safety threshold to determine whether overheating occurs;
[0017] If the moving average value of the LED lamp is greater than or equal to the temperature safety threshold, the LED lamp is overheated and a corresponding temperature abnormality signal is generated to alert relevant personnel; if the moving average value of the LED lamp is less than the temperature safety threshold, the LED lamp is not overheated and a normal temperature signal is generated without any processing.
[0018] In a preferred embodiment, the current and voltage of the LED lamp are monitored in real time by a current sensor and a voltage sensor integrated in the driving circuit, the power data P collected each time is recorded into a pre-prepared array, and the mean and standard deviation of the power consumption data collected over a period of time are calculated;
[0019] The calculated power consumption mean is compared with the maximum power threshold. If the power consumption mean is greater than or equal to the maximum power threshold and the power consumption standard deviation is greater than or equal to the power consumption standard deviation threshold, the power of the LED lamp fluctuates abnormally and is judged as power abnormality.
[0020] In a preferred embodiment, when the power of the LED lamp is abnormal, a power consumption fluctuation index is generated according to the power consumption fluctuation of the LED lamp, and the method for obtaining the power consumption fluctuation index is:
[0021] The real-time power consumption data of LED lamps in a fixed time period of s is obtained to form a time series P(x), where x represents time; the data sampling frequency is set to fs, that is, the number of times data is collected per second, and the total number of sampling points is set to N. The acquired power consumption time series data is subjected to Fourier transform, and the power consumption fluctuation in the frequency domain is calculated. The power consumption time series data P(x) is subjected to discrete Fourier transform and converted to the frequency domain, and the frequency component and amplitude are calculated. The specific calculation expression is: Where P(f) is the power consumption component at frequency f, xn is the time of the nth sampling point, N is the total number of sampling points, and e -j2πfn is the complex exponential function in Fourier transform; transform the time domain signal P(x) to the frequency domain P(f) to obtain the power consumption fluctuation amplitude on different frequency components. The specific calculation expression is: Wherein, |P(f)| is the power consumption fluctuation amplitude at frequency f, Re(P(f)) and Im(P(f)) are the real part and imaginary part of the Fourier transform result respectively; the power consumption fluctuation index is calculated according to the power consumption fluctuation amplitude in the frequency domain; Where QS is the power consumption fluctuation index, f min and f max are the minimum and maximum values of the frequency range respectively.
[0022] In a preferred embodiment, when the power of the LED lamp is abnormal, a color drift index is generated according to the light color drift state data of the LED lamp, and the method for obtaining the color drift index is:
[0023] The color data of the LED lamp is obtained through the color sensor and converted into the value of the Lab color space. The Lab color space consists of three parameters. The standard Lab color value and the current Lab color value of the LED lamp are determined, and the difference value AL in brightness between the current color and the standard color is calculated, AL = Lcurrent-Lstandard; and the difference value MK in chromaticity between the current color of the LED lamp and the standard color is calculated. Calculate the difference in hue between the current color and the standard color, Calculate the color drift index between the standard color and the current color. The specific calculation expression is: Where SD is the color drift index, S AL , S MK , SEH is the scaling function of the brightness and chromaticity of LED lamps, R t is the rotation term and is a constant.
[0024] In a preferred embodiment, the power consumption fluctuation index and the color drift index are normalized, and the adjustment coefficient of the maximum power threshold of the LED lamp is calculated by the normalized power consumption fluctuation index and the color drift index;
[0025] According to the calculated adjustment coefficient, the maximum power threshold of the LED lamp is dynamically adjusted, and the adjustment formula is: new maximum power threshold = current maximum power threshold × (1-adjustment coefficient); the maximum power threshold setting in the control system is updated to ensure that the LED lamp operates according to the new threshold.
[0026] In a preferred embodiment, in S4, the power consumption value of the LED lamp monitored in real time is marked as P realtime , the maximum power threshold after dynamic adjustment is marked as P maxnew , and mark the current LED lamp driving current as X curent , if P realtime Greater than or equal to P maxnew , then reduce the drive current X curent To reduce power consumption;
[0027] Adjusted drive current X new The calculation expression is: Adjusted drive voltage U new The calculation expression is: U curent is the current driving voltage of the LED lamp; by adjusting the current and voltage, the power consumption of the LED lamp meets the maximum power threshold after dynamic adjustment: P new =U new ×X new ;P new is the power consumption value of the new LED lamp.
[0028] In a preferred embodiment, in S5, the power consumption and temperature change data of the LED lamp within a period of time after adjustment are analyzed and predicted by a random forest model, and the maximum power control strategy of the LED lamp is optimized according to the prediction result, specifically:
[0029] Select power consumption value, temperature data and time as feature input, and the power consumption and temperature change of LED lamps in the future as output;
[0030] Select the random forest regression model and use cross-validation to adjust the model's hyperparameters. The calculation expression of the model is: P(t+Δt),T(t+Δt)=f(P(t),T(t),t); where f is the random forest regression model and Δt is the prediction time interval;
[0031] Use the trained random forest model to predict the power consumption and temperature changes within a fixed time in the future; the specific calculation expressions are: EP(t+Δt))=RF(P(t),T(t),t); ET(t+Δt))=RF(P(t),T(t),t); RF is the trained random forest model, EP(t+Δt)) and ET(t+Δt)) are the predicted future power consumption and temperature values respectively;
[0032] According to the prediction results of the random forest model, the power control strategy of the LED lamps is dynamically adjusted to improve the operating efficiency. If the predicted power consumption is greater than or equal to the maximum threshold, the power output is adjusted in advance to avoid overload; if the predicted temperature is greater than or equal to the safety threshold, cooling measures are taken in advance to reduce power output and increase heat dissipation.
[0033] In the above technical solution, the technical effects and advantages provided by the present invention are:
[0034] 1. The present invention integrates a temperature sensor in the driving circuit of the LED lamp to monitor and analyze the temperature data in real time to determine whether the LED lamp is overheated. When overheating occurs, the power consumption value is further obtained and compared with the preset maximum power threshold to determine whether the power is abnormal. If the power is abnormal, the power consumption fluctuation and the luminous color drift are comprehensively analyzed to generate an adjustment coefficient and dynamically adjust the maximum power threshold. Then, according to the adjusted maximum power threshold and the real-time power consumption value, the operating state of the LED lamp is dynamically adjusted to control its power consumption and temperature. In addition, the power consumption and temperature change data within a period of time after adjustment are analyzed and predicted by the random forest model to optimize the maximum power control strategy of the LED lamp. This method effectively solves the problem of a large amount of heat generated by LED lamps and reduced light output efficiency when they are running at high power in the prior art, avoids power waste and increased energy consumption, improves the operating efficiency and reliability of LED lamps, and extends their service life.
[0035] 2. The present invention adjusts the operating status of LED lamps through comprehensive analysis and prediction to ensure that they maintain optimal performance under various working conditions. Real-time monitoring and dynamic adjustment of the maximum power threshold prevent overheating and power anomalies, effectively improving energy efficiency and lighting quality. Through the application of the random forest model, the power control strategy is further optimized, and prediction and adjustment are made in advance to avoid potential safety hazards and equipment failures, significantly reduce operating costs, and improve user experience and safety. In summary, the present invention not only improves the performance and reliability of LED lamps, but also provides strong support for the realization of intelligent lighting systems. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0037] Figure 1 The figure is a flow chart of the method of the present invention. DETAILED DESCRIPTION
[0038] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution 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. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0039] Example 1
[0040] See also Figure 1 As shown, the maximum power control method of an LED lamp described in this embodiment includes the following steps:
[0041] S1: By integrating a temperature sensor in the driving circuit of the LED lamp, real-time monitoring is performed to obtain the temperature data of the LED lamp when it is working, and the obtained temperature data is analyzed to determine whether the LED lamp is overheated;
[0042] S2: When the LED lamp is overheated, the real-time power consumption value of the LED lamp is obtained, and the power consumption value is compared and analyzed with the preset maximum power threshold of the LED lamp to determine whether the power of the LED lamp is abnormal;
[0043] S3: When the power of the LED lamp is abnormal, a comprehensive analysis is performed on the power consumption fluctuation of the LED lamp and the luminous color drift state of the LED lamp, an adjustment coefficient is generated according to the analysis result, and the maximum power threshold of the LED lamp is dynamically adjusted according to the adjustment coefficient;
[0044] S4: adjusting the operating state of the LED lamp to control its power consumption and temperature according to the dynamically adjusted maximum power threshold and the power consumption value of the LED lamp monitored in real time;
[0045] S5: The power consumption and temperature change data of the LED lamps within a period of time after adjustment are analyzed and predicted through the random forest model, and the maximum power control strategy of the LED lamps is optimized according to the prediction results to improve its operating efficiency.
[0046] Among them, in S1, by integrating a temperature sensor in the driving circuit of the LED lamp, real-time monitoring is performed to obtain temperature data of the LED lamp when it is working, and the obtained temperature data is analyzed to determine whether the LED lamp is overheated.
[0047] In the driving circuit of the LED lamp, especially near the LED chip and the heat sink, a high-precision temperature sensor is integrated to monitor the operating temperature of the LED lamp in real time.
[0048] Choose a suitable high-precision temperature sensor, such as a thermistor, thermocouple, or digital temperature sensor. Each sensor has its own unique advantages: Thermistor: has high sensitivity and is suitable for accurate temperature measurement.
[0049] Thermocouples: have a wide temperature measurement range and are suitable for extreme temperature environments.
[0050] Digital temperature sensor: Provides digital output to facilitate direct communication with the control unit and reduce signal conversion errors.
[0051] Install the temperature sensor near the LED chip and the heat sink to ensure that the measured temperature data can accurately reflect the operating temperature of the LED lamp. Fix the sensor in the specified position by welding or clamping, and connect it to the drive circuit to ensure that the sensor can work stably and the data transmission is reliable.
[0052] The temperature sensor continuously monitors the temperature of the LED lamp and collects data at a high frequency (such as multiple times per second) to ensure real-time and data continuity.
[0053] Signal transmission: Analog signal transmission: For analog sensors such as thermistors and thermocouples, the temperature data is transmitted to the control unit in the form of analog voltage or current signals.
[0054] Digital signal transmission: For digital temperature sensors, temperature data is directly transmitted to the control unit in the form of digital signals (such as I2C, SPI protocols), ensuring high accuracy and anti-interference ability.
[0055] After the control unit receives the temperature data, it filters and processes the data through the built-in software algorithm to remove noise and obtain accurate temperature readings.
[0056] Signal conversion: If an analog sensor is used, the analog signal is first converted into a digital signal through an ADC (Analog-to-Digital Converter).
[0057] Filtering: Low-pass filtering: Use a low-pass filter to remove high-frequency noise and retain the true temperature change data.
[0058] Moving average filtering: average the data collected multiple times continuously to smooth data fluctuations and reduce instantaneous interference.
[0059] Calibration and compensation: Perform temperature compensation and correction based on the sensor’s calibration data and usage environment to ensure the accuracy of the measurement data.
[0060] The temperature data is analyzed by the moving average method to determine whether the LED lamp is overheated, specifically:
[0061] Determine the size of the time window as w, for example, the temperature data of the last 10 sampling points. The window size should be determined according to the thermal inertia of the LED lamp and the sampling frequency, usually a few seconds to tens of seconds.
[0062] Get real-time temperature data from the temperature sensor and store it in a queue. Use a circular queue to store temperature data to ensure memory efficiency.
[0063] Use a sliding window to calculate the average of the temperature data, which is achieved by accumulating all the data in the window and dividing it by the window size;
[0064] According to the design specifications of the LED lamp, the preset temperature safety threshold of the LED lamp is obtained, and the moving average value is compared with the temperature safety threshold to determine whether overheating occurs;
[0065] If the moving average value of the LED lamp is greater than or equal to the temperature safety threshold, it means that the LED lamp is overheated at this time, and a corresponding temperature abnormality signal is generated to alert relevant personnel; if the moving average value of the LED lamp is less than the temperature safety threshold, it means that the LED lamp is not overheated at this time, and a normal temperature signal is generated, and no processing is required.
[0066] S2: When the LED lamp is overheated, the real-time power consumption value of the LED lamp is obtained, and the power consumption value is compared and analyzed with the preset maximum power threshold of the LED lamp to determine whether the power of the LED lamp is abnormal.
[0067] Prepare a list or array to store the power consumption data collected in real time. Determine the statistical indicators used to judge power anomalies, including mean and standard deviation (SD). According to the design specifications and safety requirements of LED lamps, set a power safety upper limit threshold (Max Power Threshold), such as 100 watts (W).
[0068] The current sensor and voltage sensor integrated in the driving circuit monitor the current (I) and voltage (U) of the LED lamp in real time. The power consumption value is calculated using the formula P = U*I, where P is power, U is voltage, and I is current. The power data P collected each time is recorded in a pre-prepared list or array.
[0069] Calculate the mean and standard deviation of the power consumption data collected over a period of time;
[0070] Max Power Threshold: Set a safe power limit value according to design specifications, such as 100 watts (W).
[0071] Standard Deviation Threshold (SD Threshold): Set a standard deviation threshold for judging power fluctuations, such as 10 watts (W), to detect abnormal fluctuations.
[0072] The calculated power consumption mean is compared with the maximum power threshold. If the power consumption mean is greater than or equal to the maximum power threshold, and the power consumption standard deviation is greater than or equal to the power consumption standard deviation threshold, it indicates that the power of the LED lamp fluctuates abnormally and is judged as power abnormality.
[0073] S3: When the power of the LED lamp is abnormal, a comprehensive analysis is performed on the power consumption fluctuation of the LED lamp and the luminous color drift state of the LED lamp, an adjustment coefficient is generated according to the analysis result, and the maximum power threshold of the LED lamp is dynamically adjusted according to the adjustment coefficient.
[0074] When the power of the LED lamp is abnormal, a power consumption fluctuation index is generated according to the power consumption fluctuation of the LED lamp. The method for obtaining the power consumption fluctuation index is:
[0075] The real-time power consumption data of LED lamps in a fixed time period of s is obtained to form a time series P(x), where x represents time; the data sampling frequency is set to fs, that is, the number of times data is collected per second, and the total number of sampling points is set to N. The acquired power consumption time series data is subjected to Fourier transform, and the power consumption fluctuation in the frequency domain is calculated. The power consumption time series data P(x) is subjected to discrete Fourier transform and converted to the frequency domain, and the frequency component and amplitude are calculated. The specific calculation expression is: Where P(f) is the power consumption component at frequency f, xn is the time of the nth sampling point, N is the total number of sampling points, and e -j2πfn is the complex exponential function in Fourier transform; transform the time domain signal P(x) to the frequency domain P(f) to obtain the power consumption fluctuation amplitude on different frequency components. The specific calculation expression is: Wherein, |P(f)| is the power consumption fluctuation amplitude at frequency f, Re(P(f)) and Im(P(f)) are the real part and imaginary part of the Fourier transform result respectively; the power consumption fluctuation index is calculated according to the power consumption fluctuation amplitude in the frequency domain; Where QS is the power consumption fluctuation index, f min and f max are the minimum and maximum values of the frequency range respectively.
[0076] The larger the power consumption fluctuation index is, the more significant the fluctuation is in the frequency domain. This fluctuation may be caused by the instability of the drive circuit, interference from the external environment, or other internal faults. Large power fluctuations will not only affect the stability and performance of LED lamps, but may also cause increased heat generation, accelerate component aging, and shorten the life of the lamp.
[0077] According to the size of the power consumption fluctuation index, the maximum power threshold of the LED lamp needs to be appropriately adjusted. A larger fluctuation index indicates that the current maximum power threshold may be too high and cannot effectively suppress power fluctuations. Therefore, it is necessary to lower the maximum power threshold to reduce power fluctuations and improve the stability and reliability of LED lamps.
[0078] By adjusting the maximum power threshold, power consumption can be controlled within a more stable range and the fluctuation range can be reduced. This not only helps to extend the service life of LED lamps, but also improves their working efficiency and safety. In practical applications, the maximum power threshold should be dynamically adjusted according to the changing trend of the power consumption fluctuation index to ensure that LED lamps can maintain optimal performance under various working conditions.
[0079] When the power of the LED lamp is abnormal, a color drift index is generated according to the light color drift state data of the LED lamp. The method for obtaining the color drift index is:
[0080] The color data of the LED lamp is obtained through the color sensor and converted into the value of the Lab color space. The Lab color space consists of three parameters: L* (brightness), a* (green to red), and b* (blue to yellow).
[0081] Determine the standard Lab color value (Lstandard, astandard, bstandard) and the current Lab color value (Lcurrent, acurrent, bcurrent) of the LED lamp, calculate the difference value AL between the current color and the standard color in brightness, AL = Lcurrent - Lstandard; and calculate the difference value MK between the current color and the standard color of the LED lamp in chromaticity, Calculate the difference in hue between the current color and the standard color, Calculate the color drift index between the standard color and the current color. The specific calculation expression is: Where SD is the color drift index, S AL , S MK , S EH is the scaling function of the brightness and chromaticity of LED lamps, R t is the rotation term and is a constant.
[0082] The larger the color drift index, the more significant the change in the color of the LED lamp, which is usually caused by power fluctuations or temperature changes. A larger color drift index means that the current maximum power threshold may be too high, causing the LED lamp to heat up severely when running at high power, thus causing color drift. Therefore, when the color drift index is large, it is necessary to consider adjusting the maximum power threshold of the LED lamp to reduce power consumption, lower temperature, and reduce color drift.
[0083] Adjusting the maximum power threshold can effectively control the heat generated by LED lamps, maintain a relatively stable operating temperature, and thus reduce the color drift caused by excessive temperature. This adjustment helps to extend the service life of LED lamps, maintain the consistency of their light color, and ensure the quality of lighting. In addition, lowering the maximum power threshold can also improve the overall energy efficiency of LED lamps and avoid unnecessary energy waste.
[0084] By dynamically adjusting the maximum power threshold, the operating parameters of LED lamps can be optimized while ensuring the lighting effect, reducing the impact of power fluctuations and temperature changes on light color. When the color drift index increases significantly, appropriately reducing the maximum power threshold is a key measure to maintain the stability and reliability of LED lamps, which helps to improve user experience and long-term performance of the equipment.
[0085] The power consumption fluctuation index and the color drift index are normalized, and the adjustment coefficient of the maximum power threshold of the LED lamp is calculated according to the normalized power consumption fluctuation index and the color drift index.
[0086] For example, the present invention may use the following formula to calculate the adjustment coefficient of the maximum power threshold of the LED lamp, and the calculation expression is: Wherein, LK is the adjustment coefficient, QS is the power consumption fluctuation index, SD is the color drift index, a1 and a2 are the proportional coefficients of the power consumption fluctuation index and the color drift index, and a2>a1>0;
[0087] According to the calculated adjustment coefficient, the maximum power threshold of the LED lamp is dynamically adjusted, and the adjustment formula is: new maximum power threshold = current maximum power threshold × (1-adjustment coefficient); the maximum power threshold setting in the control system is updated to ensure that the LED lamp operates according to the new threshold.
[0088] S4: According to the dynamically adjusted maximum power threshold and the power consumption value of the LED lamp monitored in real time, the operating state of the LED lamp is adjusted to control the power consumption and temperature thereof.
[0089] The real-time monitored LED lamp power consumption value is marked as P realtime , the maximum power threshold after dynamic adjustment is marked as P maxnew , and mark the current LED lamp driving current as X curent , if P realtime Greater than or equal to P maxnew , then it is necessary to reduce the drive current X curent To reduce power consumption;
[0090] Adjusted drive current X new The calculation expression is: Adjusted drive voltage U new The calculation expression is: U curent is the current driving voltage of the LED lamp; by adjusting the current and voltage, the power consumption of the LED lamp meets the maximum power threshold after dynamic adjustment: P new =U new ×X new ;P new is the power consumption value of the new LED lamp.
[0091] In this embodiment, by integrating a temperature sensor in the driving circuit of the LED lamp, real-time monitoring is performed to obtain temperature data of the LED lamp when it is working, and the obtained temperature data is analyzed to determine whether the LED lamp is overheated; when the LED lamp is overheated, the real-time power consumption value of the LED lamp is obtained, and the power consumption value is compared and analyzed with the preset maximum power threshold of the LED lamp to determine whether the power of the LED lamp is abnormal; when the power of the LED lamp is abnormal, a comprehensive analysis is performed on the power consumption fluctuation of the LED lamp and the luminous color drift state of the LED lamp, an adjustment coefficient is generated according to the analysis result, and the maximum power threshold of the LED lamp is dynamically adjusted according to the adjustment coefficient; according to the maximum power threshold after dynamic adjustment and the power consumption value of the LED lamp monitored in real time, the operating state of the LED lamp is adjusted to control its power consumption and temperature; the LED lamp can be effectively prevented from overheating, power fluctuation and color drift can be reduced, the life of the lamp can be extended, energy efficiency can be improved, and its stability and reliability under various working conditions can be ensured, thereby improving the overall lighting quality and user experience.
[0092] Example 2
[0093] S5: The power consumption and temperature change data of the LED lamps within the adjusted fixed time are analyzed and predicted through the random forest model, and the maximum power control strategy of the LED lamps is optimized according to the prediction results to improve its operating efficiency.
[0094] The adjusted data of LED lamp power consumption and temperature variation over a period of time are collected and preprocessed to meet the input requirements of the random forest model.
[0095] Monitor and record the power consumption value P(t) and the operating temperature T(t) of LED lamps in real time; record the timestamp t of the data, process the missing values in the data, and use interpolation or mean filling methods to normalize the data to improve the training effect of the model.
[0096] The random forest model is trained using the collected power consumption and temperature variation data.
[0097] The data set is divided into a training set and a test set, generally with a ratio of 80:20.
[0098] The power consumption value, temperature data and time are selected as feature inputs, and the power consumption and temperature change of the LED lamp at a certain point in the future are output.
[0099] Select the random forest regression model and use cross validation to adjust the model's hyperparameters, such as the number of trees, maximum depth, etc. The calculation expression of the model is: P(t+Δt),T(t+Δt)=f(P(t),T(t),t); where f is the random forest regression model and Δt is the prediction time interval.
[0100] Use the trained random forest model to predict power consumption and temperature changes over a period of time in the future.
[0101] The current power consumption and temperature data are used as model input, and the model outputs the power consumption and temperature changes in the future. The specific calculation expressions are: EP(t+Δt))=RF(P(t),T(t),t); ET(t+Δt))=RF(P(t),T(t),t); RF is the trained random forest model, EP(t+Δt)) and ET(t+Δt)) are the predicted future power consumption and temperature values respectively.
[0102] According to the prediction results of the random forest model, the power control strategy of LED lamps is dynamically adjusted to improve operating efficiency. If the predicted power consumption is greater than or equal to the maximum threshold, the power output is adjusted in advance to avoid overload; if the predicted temperature is greater than or equal to the safety threshold, cooling measures are taken in advance to reduce power output and increase heat dissipation. Based on real-time monitoring and prediction results, the power control strategy is continuously updated and optimized to ensure that LED lamps operate in the best state.
[0103] In this embodiment, the power consumption and temperature changes of LED lamps are analyzed and predicted by the random forest model, so that the power control strategy can be adjusted in advance, the operating efficiency can be optimized, overheating and power fluctuations can be prevented, and the LED lamps can be ensured to operate in a safe, stable and efficient state, thereby extending the service life and improving the lighting quality.
[0104] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters in the formula are set by technicians in this field according to actual conditions.
[0105] The above embodiments can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented by software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.
[0106] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0107] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0108] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.
Claims
1. A maximum power control method for LED lamps, Features: The steps include: S1: By integrating a temperature sensor in the driving circuit of the LED lamp, real-time monitoring is performed to obtain the temperature data of the LED lamp when it is working, and the obtained temperature data is analyzed to determine whether the LED lamp is overheated; S2: When the LED lamp is overheated, the real-time power consumption value of the LED lamp is obtained, and the power consumption value is compared and analyzed with the preset maximum power threshold of the LED lamp to determine whether the power of the LED lamp is abnormal; S3: When the power of the LED lamp is abnormal, a comprehensive analysis is performed on the power consumption fluctuation of the LED lamp and the luminous color drift state of the LED lamp, an adjustment coefficient is generated according to the analysis result, and the maximum power threshold of the LED lamp is dynamically adjusted according to the adjustment coefficient; S4: adjusting the operating state of the LED lamp to control its power consumption and temperature according to the dynamically adjusted maximum power threshold and the power consumption value of the LED lamp monitored in real time; S5: The power consumption and temperature change data of the LED lamps within a period of time after adjustment are analyzed and predicted through the random forest model, and the maximum power control strategy of the LED lamps is optimized according to the prediction results to improve its operating efficiency.
2. A maximum power control method for an LED lamp according to claim 1, Features: In S1, the temperature data is analyzed by the moving average method to determine whether the LED lamp is overheated, specifically: Determine the size of the time window as w, obtain real-time temperature data from the temperature sensor, and store it in a queue. Use a circular queue to store temperature data to ensure memory efficiency. Use a sliding window to calculate the average of the temperature data, which is achieved by accumulating all the data in the window and dividing it by the window size; According to the design specifications of the LED lamp, the preset temperature safety threshold of the LED lamp is obtained, and the moving average value is compared with the temperature safety threshold to determine whether overheating occurs; If the moving average value of the LED lamp is greater than or equal to the temperature safety threshold, the LED lamp is overheated and a corresponding temperature abnormality signal is generated to alert relevant personnel; if the moving average value of the LED lamp is less than the temperature safety threshold, the LED lamp is not overheated and a normal temperature signal is generated without any processing.
3. A maximum power control method for an LED lamp according to claim 2, Features: The current and voltage of the LED lamps are monitored in real time through the current sensor and voltage sensor integrated in the driving circuit, the power data P collected each time is recorded into a pre-prepared array, and the mean and standard deviation of the power consumption data collected over a period of time are calculated; The calculated power consumption mean is compared with the maximum power threshold. If the power consumption mean is greater than or equal to the maximum power threshold and the power consumption standard deviation is greater than or equal to the power consumption standard deviation threshold, the power of the LED lamp fluctuates abnormally and is judged as power abnormality.
4. A maximum power control method for an LED lamp according to claim 3, Features: When the power of the LED lamp is abnormal, a power consumption fluctuation index is generated according to the power consumption fluctuation of the LED lamp. The method for obtaining the power consumption fluctuation index is: The real-time power consumption data of LED lamps in a fixed time period of s is obtained to form a time series P(x), where x represents time; the data sampling frequency is set to fs, that is, the number of times data is collected per second, and the total number of sampling points is set to N. The acquired power consumption time series data is subjected to Fourier transform, and the power consumption fluctuation in the frequency domain is calculated. The power consumption time series data P(x) is subjected to discrete Fourier transform and converted to the frequency domain, and the frequency component and amplitude are calculated. The specific calculation expression is: Where P(f) is the power consumption component at frequency f, xn is the time of the nth sampling point, N is the total number of sampling points, and e -j2πfn is the complex exponential function in Fourier transform; transform the time domain signal P(x) to the frequency domain P(f) to obtain the power consumption fluctuation amplitude on different frequency components. The specific calculation expression is: Wherein, |P(f)| is the power consumption fluctuation amplitude at frequency f, Re(P(f)) and Im(P(f)) are the real part and imaginary part of the Fourier transform result respectively; the power consumption fluctuation index is calculated according to the power consumption fluctuation amplitude in the frequency domain; Where QS is the power consumption fluctuation index, f min and f max are the minimum and maximum values of the frequency range respectively.
5. A maximum power control method for an LED lamp according to claim 4, Features: When the power of the LED lamp is abnormal, a color drift index is generated according to the light color drift state data of the LED lamp. The method for obtaining the color drift index is: The color data of the LED lamp is obtained through the color sensor and converted into the value of the Lab color space. The Lab color space consists of three parameters. The standard Lab color value and the current Lab color value of the LED lamp are determined, and the difference value AL in brightness between the current color and the standard color is calculated, AL = Lcurrent-Lstandard; and the difference value MK in chromaticity between the current color of the LED lamp and the standard color is calculated. Calculate the difference in hue between the current color and the standard color, Calculate the color drift index between the standard color and the current color. The specific calculation expression is: Where SD is the color drift index, S AL , S MK , S EH is the scaling function of the brightness and chromaticity of LED lamps, R t is the rotation term and is a constant.
6. A maximum power control method for an LED lamp according to claim 5, Features: Normalizing the power consumption fluctuation index and the color drift index, and calculating the adjustment coefficient of the maximum power threshold of the LED lamp according to the normalized power consumption fluctuation index and the color drift index; According to the calculated adjustment coefficient, the maximum power threshold of the LED lamp is dynamically adjusted, and the adjustment formula is: new maximum power threshold = current maximum power threshold × (1-adjustment coefficient); the maximum power threshold setting in the control system is updated to ensure that the LED lamp operates according to the new threshold.
7. A maximum power control method for an LED lamp according to claim 6, Features: In S4, the power consumption value of the LED lamp monitored in real time is marked as P realtime , the maximum power threshold after dynamic adjustment is marked as P maxnew , and mark the current LED lamp driving current as X curent , if P realtime Greater than or equal to P maxnew , then reduce the drive current X curent To reduce power consumption; Adjusted drive current X new The calculation expression is: Adjusted drive voltage U new The calculation expression is: U curent is the current driving voltage of the LED lamp; by adjusting the current and voltage, the power consumption of the LED lamp meets the maximum power threshold after dynamic adjustment: P new =U new ×X new ;P new is the power consumption value of the new LED lamp.
8. A maximum power control method for an LED lamp according to claim 7, Features: In S5, the power consumption and temperature change data of the LED lamps within a period of time after adjustment are analyzed and predicted by the random forest model, and the maximum power control strategy of the LED lamps is optimized according to the prediction results, specifically: Select power consumption value, temperature data and time as feature input, and the power consumption and temperature change of LED lamps in the future as output; Select the random forest regression model and use cross-validation to adjust the model's hyperparameters. The calculation expression of the model is: P(t+Δt),T(t+Δt)=f(P(t),T(t),t); where f is the random forest regression model and Δt is the prediction time interval; Use the trained random forest model to predict the power consumption and temperature changes within a fixed time in the future; the specific calculation expressions are: EP(t+Δt))=RF(P(t),T(t),t); ET(t+Δt))=RF(P(t),T(t),t); RF is the trained random forest model, EP(t+Δt)) and ET(t+Δt)) are the predicted future power consumption and temperature values respectively; According to the prediction results of the random forest model, the power control strategy of the LED lamps is dynamically adjusted to improve the operating efficiency. If the predicted power consumption is greater than or equal to the maximum threshold, the power output is adjusted in advance to avoid overload; if the predicted temperature is greater than or equal to the safety threshold, cooling measures are taken in advance to reduce power output and increase heat dissipation.
Citation Information
Cited By
High-brightness light source temperature real-time monitoring method, device and equipment
CN119300211A
Intelligent monitoring system for predicting service life of high-power LED lamp bead
CN119403015A
