Method, device, equipment and storage medium for adaptively adjusting lighting brightness

By collecting and analyzing ambient light and natural light data for the intelligent lighting system, combined with LSTM and natural language processing technology, precise adjustment of light brightness is achieved, solving the problems of delayed response and insufficient understanding of user needs in the existing technology, and improving Lighting system adaptability and user experience.

CN118338510BActive Publication Date: 2024-09-13SHENZHEN HUADIAN LIGHTING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410760732.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-09-13
Estimated Expiration
2044-06-13

AI Technical Summary

Technical Problem

Existing intelligent lighting systems lag in response to changes in ambient light and are difficult to adapt to complex and changing lighting environments in real time. Moreover, their understanding of user needs is relatively simple and they cannot fully consider users' personalized preferences and emotional states, resulting in less than ideal lighting adjustment effects.

Method used

By accurately collecting ambient light and natural light data in preset areas, using long short-term memory network (LSTM) to smooth light intensity data, and combining natural language processing algorithms to analyze user needs, extract user brightness preferences, and combine environmental image sets Extract the environmental atmosphere data, match the light intensity adaptation value, and calculate the light intensity difference to determine the target adjustment intensity.

Benefits of technology

It achieves precise adjustment of light brightness, enabling it to adapt to environmental changes and user needs in real time, improves the response speed and personalized control of the lighting system, and significantly improves user experience and system performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118338510B
    Figure CN118338510B
Patent Text Reader

Abstract

The present application relates to the field of image processing technology, and discloses a method, device, equipment and storage medium for adaptively adjusting the brightness of lighting. The method comprises: inputting ambient light intensity and natural light intensity into a long short-term memory network to smooth the light intensity data, and obtain smoothed light intensity data; inputting user demand data into a natural language processing algorithm to extract user preference brightness, and obtain preference brightness data; extracting the ambient atmosphere from an ambient image set, and obtain ambient atmosphere data, and matching the light intensity adaptation value corresponding to the ambient atmosphere data; performing light intensity difference calculation on the smoothed light intensity data and the preference brightness data, and obtain a first light intensity difference; performing light intensity difference calculation on the light intensity adaptation value and the preference brightness data, and obtain a second light intensity difference; performing difference median calculation on the first light intensity difference and the second light intensity difference, and obtain light intensity difference median data, and determining the target adjustment intensity according to the light intensity difference median. The present application improves the accuracy of adaptive adjustment of lighting brightness.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing, and in particular to a method, device, equipment and storage medium for adaptively adjusting the brightness of lighting. Background Art

[0002] With the advancement of technology, smart lighting systems are increasingly being used in modern buildings. Traditional smart lighting systems usually rely on preset schedules or simple sensor data to adjust light brightness. These systems can automatically turn lights on and off or adjust light brightness based on preset conditions to save energy and provide a more comfortable lighting environment. In addition, some advanced smart lighting systems can also adjust lights through manual control or voice commands by users, further improving the user experience.

[0003] However, existing intelligent lighting systems have some shortcomings. These systems have a relatively slow response to changes in ambient light and are difficult to adapt to complex and changing lighting environments in real time. Traditional systems have a relatively single understanding of user needs and cannot fully consider the user's personalized preferences and emotional state, resulting in less than ideal lighting adjustment effects. In addition, the existing light intensity data processing methods are simple and often ignore the combined effects of natural light and artificial light, resulting in insufficient accuracy and stability of the adjustment results. In summary, the existing technology still has a lot of room for improvement in real-time, adaptability and user experience. Summary of the invention

[0004] The present application provides a method, device, equipment and storage medium for adaptively adjusting the brightness of lighting lights, which are used to improve the accuracy of adaptively adjusting the brightness of lighting lights.

[0005] In a first aspect, the present application provides a method for adaptively adjusting the brightness of lighting, the method comprising: collecting ambient light data of a preset area to obtain the ambient light intensity of the preset area;

[0006] Collecting natural light data for the preset area to obtain the natural light intensity of the preset area;

[0007] Inputting the ambient light intensity and the natural light intensity into a preset long short-term memory network to smooth the light intensity data to obtain smoothed light intensity data;

[0008] Collecting user demand data, and inputting the user demand data into a natural language processing algorithm to extract user preference brightness, thereby obtaining preference brightness data;

[0009] Collecting an environmental image set of the preset area, extracting the environmental atmosphere from the environmental image set to obtain environmental atmosphere data, and matching the light intensity adaptation value corresponding to the environmental atmosphere data;

[0010] Performing light intensity difference calculation on the smoothed light intensity data and the preferred brightness data to obtain a first light intensity difference, and performing light intensity difference calculation on the light intensity adaptation value and the preferred brightness data to obtain a second light intensity difference;

[0011] The first light intensity difference and the second light intensity difference are subjected to difference median calculation to obtain light intensity difference median data, and the target adjustment intensity is determined according to the light intensity difference median data.

[0012] In combination with the first aspect, in a first implementation of the first aspect of the present application, collecting ambient light data for a preset area to obtain the ambient light intensity of the preset area includes:

[0013] Collecting a light source image set of the preset area, and performing grayscale processing on each light source image in the light source image set to obtain a plurality of grayscale light source images;

[0014] Segmenting the preset area using the multiple grayscale light source images to obtain multiple sub-areas corresponding to the preset area;

[0015] Inputting the multiple sub-regions into a convolutional neural network to extract pixel features, thereby obtaining light intensity pixel features of each sub-region;

[0016] Intensity mapping is performed on the light intensity pixel features of each sub-region to obtain light intensity data of each sub-region;

[0017] The ambient light intensity is fused with the light intensity data of each sub-area to obtain the ambient light intensity of the preset area.

[0018] In combination with the first aspect, in a second implementation of the first aspect of the present application, collecting natural light data for a preset area to obtain the natural light intensity of the preset area includes:

[0019] Performing environmental segmentation on the preset area to obtain a plurality of segmented environmental areas;

[0020] Identify the natural light source for each segmented environment area to obtain the natural light source corresponding to each segmented environment area;

[0021] Perform natural light intensity analysis on the natural light source corresponding to each segmented environment area to obtain the natural light intensity of each segmented environment area;

[0022] The light intensity of the natural light in each segmented environment area is calculated to obtain the natural light intensity of the preset area.

[0023] In combination with the first aspect, in a third implementation of the first aspect of the present application, the long short-term memory network includes an input layer, an LSTM layer, and an output layer, and the inputting the ambient light intensity and the natural light intensity into a preset long short-term memory network to smooth the light intensity data to obtain smoothed light intensity data includes:

[0024] Inputting the ambient light intensity and the natural light intensity into the input layer for data normalization processing to obtain normalized light intensity data;

[0025] Inputting the normalized light intensity data into the LSTM layer for time series extraction to obtain time series light intensity data;

[0026] Extracting light intensity dependency data from the time series light intensity data to obtain light intensity dependency data;

[0027] Inputting the time series light intensity data and the light intensity dependency relationship data into the output layer to extract data sharp points to obtain sharp data points;

[0028] The time series light intensity data is smoothed according to the sharp data points to obtain the smoothed light intensity data.

[0029] In combination with the first aspect, in a fourth implementation of the first aspect of the present application, collecting user demand data and inputting the user demand data into a natural language processing algorithm to extract user preference brightness to obtain preference brightness data includes:

[0030] Collecting user demand data, and inputting the user demand data into a natural language processing algorithm for semantic analysis to obtain demand semantic data;

[0031] Based on the demand semantic data, performing user sentiment analysis on the user demand data to obtain user sentiment data;

[0032] Predicting the user's psychological state based on the demand semantic data and the user emotion data to obtain psychological state data;

[0033] Performing data analysis on the required semantic data to obtain initial brightness adjustment data;

[0034] The initial brightness adjustment data is brightness-weighted according to the psychological state data to obtain the preferred brightness data.

[0035] In combination with the first aspect, in a fifth implementation of the first aspect of the present application, collecting the environmental image set of the preset area, extracting the environmental atmosphere of the environmental image set to obtain environmental atmosphere data, and matching the light intensity adaptation value corresponding to the environmental atmosphere data, includes:

[0036] Collecting the environmental image set, performing user behavior extraction on the environmental image set, and obtaining user behavior data;

[0037] Performing user behavior flow conversion on the user behavior data to obtain a user behavior flow;

[0038] Embedding semantic labels into the user behavior stream to obtain a semantic behavior stream;

[0039] Performing environment type matching on the environment image set according to the semantic behavior flow to obtain an environment type set, wherein the environment type set includes: meeting type, free activity type and office type;

[0040] Ambient atmosphere data is generated according to the environmental type set, and the light intensity adaptation value corresponding to the ambient atmosphere data is matched.

[0041] In combination with the first aspect, in a sixth implementation of the first aspect of the present application, the performing of light intensity difference calculation on the smoothed light intensity data and the preferred brightness data to obtain a first light intensity difference, and performing of light intensity difference calculation on the light intensity adaptation value and the preferred brightness data to obtain a second light intensity difference, include:

[0042] Performing light intensity difference calculation on the smoothed light intensity data and the preferred brightness data to obtain a first initial light intensity difference;

[0043] Performing a difference threshold analysis on the first initial light intensity difference to obtain a first difference threshold;

[0044] Performing brightness adjustment power analysis according to the first difference threshold to obtain a first brightness adjustment power;

[0045] Performing power correction on the first brightness adjustment power according to a preset standard brightness power to obtain a first correction power, and performing difference correction on the first initial light intensity difference according to the first correction power to obtain the first light intensity difference;

[0046] Performing light intensity difference calculation on the light intensity adaptation value and the preferred brightness data to obtain a second initial light intensity difference;

[0047] Performing a difference threshold analysis on the second initial light intensity difference to obtain a second difference threshold;

[0048] Performing brightness adjustment power analysis according to the second difference threshold to obtain a second brightness adjustment power;

[0049] The second brightness adjustment power is power-corrected according to a preset standard brightness power to obtain a second corrected power, and the second initial light intensity difference is difference-corrected according to the second corrected power to obtain the second light intensity difference.

[0050] In a second aspect, the present application provides a lighting light brightness adaptive adjustment device, the lighting light brightness adaptive adjustment device comprising:

[0051] A first acquisition module is used to collect ambient light data of a preset area to obtain the ambient light intensity of the preset area;

[0052] A second collection module is used to collect natural light data of the preset area to obtain the natural light intensity of the preset area;

[0053] An input module is used to input the ambient light intensity and the natural light intensity into a preset long short-term memory network to smooth the light intensity data to obtain smoothed light intensity data;

[0054] An extraction module is used to collect user demand data and input the user demand data into a natural language processing algorithm to extract user preference brightness to obtain preference brightness data;

[0055] A matching module is used to collect an environmental image set of the preset area, extract the environmental atmosphere from the environmental image set to obtain environmental atmosphere data, and match the light intensity adaptation value corresponding to the environmental atmosphere data;

[0056] A calculation module, used for performing light intensity difference calculation on the smoothed light intensity data and the preferred brightness data to obtain a first light intensity difference, and performing light intensity difference calculation on the light intensity adaptation value and the preferred brightness data to obtain a second light intensity difference;

[0057] A determination module is used to perform difference median calculation on the first light intensity difference and the second light intensity difference to obtain light intensity difference median data, and determine a target adjustment intensity according to the light intensity difference median.

[0058] The third aspect of the present application provides a lighting light brightness adaptive adjustment device, comprising: a memory and at least one processor, wherein the memory stores instructions; the at least one processor calls the instructions in the memory so that the lighting light brightness adaptive adjustment device performs the above-mentioned lighting light brightness adaptive adjustment method.

[0059] A fourth aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the above-mentioned method for adaptively adjusting the brightness of lighting light.

[0060] In the technical solution provided by the present application, more comprehensive light intensity information can be obtained by accurately collecting the ambient light data and natural light data of the preset area, thereby laying the foundation for the subsequent smoothing of the light intensity data. The long short-term memory network (LSTM) is used to perform data smoothing on the ambient light intensity and natural light intensity, which can effectively remove the noise and mutation in the light intensity data, improve the smoothness and stability of the light intensity data, and provide reliable data support for accurately adjusting the light brightness. At the same time, the present invention also conducts in-depth analysis of user demand data through a natural language processing algorithm, and can accurately extract the user's brightness preference, thereby achieving more personalized brightness adjustment. By processing the environmental image set of the preset area, extracting the environmental atmosphere data, and matching the corresponding light intensity adaptation value, it is possible to achieve intelligent perception and response to the environmental atmosphere, so that the light adjustment is more in line with the actual environmental requirements. When calculating the light intensity difference, by respectively calculating the light intensity difference between the smoothed light intensity data and the preferred brightness data, and the light intensity adaptation value and the preferred brightness data, the difference between the current light brightness and the user's expectations can be accurately quantified, thereby providing an accurate adjustment basis for light adjustment. By calculating the median difference of the first light intensity difference and the second light intensity difference, the median data of the light intensity difference is obtained, and the target adjustment intensity is determined based on the data, so that the light brightness can be accurately adjusted, so that the light brightness can adapt to environmental changes and user needs in real time. This method has achieved innovations and breakthroughs in multiple technical features. Through the comprehensive collection of multiple data sources, it can more comprehensively understand the ambient light intensity and natural light intensity, thereby providing a reliable foundation for subsequent data processing. LSTM is used to smooth the light intensity data. Compared with traditional smoothing algorithms, LSTM can better capture the long-term dependencies in time series data, making the smoothed light intensity data more continuous and stable. Thirdly, the natural language processing algorithm is used to analyze the user demand data, which can accurately extract the user's brightness preference from the semantic level, avoiding the one-sided and single understanding of user needs in traditional methods. At the same time, by processing the environmental image set, the environmental atmosphere can be perceived from a visual perspective, and intelligent response can be made in combination with the light intensity adaptation value, making the light adjustment more environmentally adaptable. In the process of calculating the light intensity difference, the difference between the smoothed light intensity data and the preferred brightness data, and the difference between the light intensity adaptation value and the preferred brightness data are calculated respectively, which can more accurately quantify the gap between the current light brightness and the user's expectations, thereby providing an accurate reference for light brightness adjustment. By calculating the median of the light intensity difference, the fluctuations between different light intensity differences can be effectively balanced, making the target adjustment intensity more stable and reliable. The innovation of the technical features of the present invention not only solves the problems of the prior art such as the delayed response to ambient light changes, insufficient understanding of user needs, and simple processing of light intensity data, but also realizes precise adjustment and intelligent control of light brightness through multi-dimensional data collection and processing, significantly improving the overall performance of the lighting system and user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.

[0062] Figure 1 This is a schematic diagram of an embodiment of a method for adaptively adjusting the brightness of lighting in an embodiment of the present application;

[0063] Figure 2 This is a schematic diagram of an embodiment of a lighting light brightness adaptive adjustment device in an embodiment of the present application. DETAILED DESCRIPTION

[0064] The embodiments of the present application provide a method, device, equipment and storage medium for adaptively adjusting the brightness of lighting. The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described here can be implemented in an order other than that illustrated or described here. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0065] For ease of understanding, the specific process of the embodiment of the present application is described below. Figure 1 , an embodiment of the method for adaptively adjusting the brightness of lighting light in the embodiment of the present application includes:

[0066] Step S101, collecting ambient light data of a preset area to obtain the ambient light intensity of the preset area;

[0067] It is understandable that the execution subject of the present application may be a lighting light brightness adaptive adjustment device, or a terminal or a server, which is not specifically limited here. The present application embodiment is described by taking a server as the execution subject as an example.

[0068] Specifically, a set of light source images of a preset area is collected, and the light sources of the preset area are comprehensively recorded through the image set. Each collected light source image is grayed, the color image is converted into a gray image, the color information is removed, the brightness information is retained, and multiple grayed light source images are obtained. Graying can simplify subsequent image processing and analysis. The preset area is segmented by the grayed light source image, and the preset area is divided into multiple sub-areas. The multiple sub-areas are input into a convolutional neural network for pixel feature extraction. A convolutional neural network is an image processing tool that can extract highly recognizable pixel features from the original image through layer-by-layer convolution and pooling operations. These features represent the spatial distribution and variation of light intensity in each sub-area. Intensity mapping is performed on the light intensity pixel features of each sub-area. Intensity mapping is a technology that converts light intensity pixel features into actual light intensity data. Through this process, the light intensity data of each sub-area is obtained. The light intensity data of each sub-area is fused with ambient light intensity. The light intensity data of multiple sub-areas are comprehensively processed to obtain the ambient light intensity of the entire preset area.

[0069] Step S102, collecting natural light data for a preset area to obtain the natural light intensity of the preset area;

[0070] Specifically, the preset area is segmented, and the preset area is divided into multiple segmented environment areas. Natural light sources are identified for each segmented environment area. The natural light sources in each segmented environment area are identified by image processing technology or sensor data analysis. For example, windows, skylights, or other openings that allow natural light to enter. Natural light intensity analysis is performed on the natural light sources corresponding to each segmented environment area. The light intensity of each natural light source is measured and calculated using a light intensity sensor or an image processing algorithm. The natural light intensity data reflects the light intensity of the natural light sources in each segmented environment area, for example, measuring the intensity of sunlight passing through each window, or the light intensity under the skylight. Natural light intensity analysis not only measures the value of light intensity, but also considers the distribution and change of light to ensure the accuracy and comprehensiveness of the data. The light intensity is calculated based on the natural light in each segmented environment area to obtain the overall natural light intensity of the preset area. The calculation process needs to consider the area, light source position, and light intensity distribution of each segmented environment area to ensure that the final natural light intensity data can accurately reflect the natural light intensity of the entire preset area.

[0071] Step S103, inputting the ambient light intensity and the natural light intensity into a preset long short-term memory network to smooth the light intensity data to obtain smoothed light intensity data;

[0072] Specifically, the ambient light intensity and natural light intensity are input into the input layer for data normalization processing to eliminate the magnitude differences between different data sources and obtain normalized light intensity data. The normalized light intensity data is input into the LSTM layer for time series extraction. The LSTM layer is used to process time series data. Through its unique memory unit and gating mechanism, it can effectively capture the temporal trend and pattern of light intensity data to obtain time series light intensity data. During the processing of the LSTM layer, the memory unit can save and update important light intensity information and ignore irrelevant data noise, thereby improving the accuracy of the data. Light intensity dependency data is extracted from the time series light intensity data. By analyzing the internal relationship and pattern in the time series light intensity data, the dependency and correlation between the light intensity data are revealed to obtain light intensity dependency data. The time series light intensity data and light intensity dependency data are input into the output layer for data sharp point extraction to identify abnormal points or mutation points in the light intensity data. These sharp data points may be caused by emergencies or abnormal light sources. The identification of sharp data points is an important prerequisite for data smoothing, which can effectively filter out abnormal data and ensure the accuracy and reliability of smoothing processing. The time series light intensity data is smoothed according to the sharp data points. By eliminating the influence of the sharp data points, the light intensity data is made smoother and more continuous, and smooth light intensity data is obtained.

[0073] Step S104: Collect user demand data, and input the user demand data into a natural language processing algorithm to extract user preference brightness, thereby obtaining preference brightness data;

[0074] Specifically, user demand data is collected, which may be obtained through user voice commands, text input or other interactive methods. The user demand data contains the user's specific requirements and expectations for lighting brightness. The user demand data is input into a natural language processing algorithm for semantic analysis. The natural language processing algorithm extracts semantic information from the user demand data by performing lexical analysis, syntactic analysis and semantic parsing on the user demand data to obtain demand semantic data. Based on the demand semantic data, user sentiment analysis is performed on the user demand data. User sentiment data is obtained by analyzing the emotional state expressed by the user, such as happiness, tension, fatigue, etc. The user's emotional state may directly affect his preference for lighting brightness. Through sentiment analysis of user voice or text, the user's emotional state is understood, so that these emotional factors are considered when adjusting the lighting brightness to provide more personalized adjustment. The user's psychological state is predicted for the demand semantic data and the user's emotional data. The user psychological state prediction combines the demand semantic data and the emotional data, and infers the user's psychological state through a prediction model or algorithm to obtain psychological state data. The psychological state data can reflect the user's current psychological needs. The demand semantic data is parsed to obtain initial brightness adjustment data. The semantic data of the demand is converted into specific brightness adjustment instructions, which include preliminary brightness adjustment suggestions. The initial brightness adjustment data is brightness-weighted according to the psychological state data. The psychological state data is combined with the initial brightness adjustment data, and the weight of the initial adjustment data is adjusted to obtain the final preferred brightness data.

[0075] Step S105, collecting an environmental image set of a preset area, extracting the environmental atmosphere from the environmental image set to obtain environmental atmosphere data, and matching the light intensity adaptation value corresponding to the environmental atmosphere data;

[0076] Specifically, the environmental image set of the preset area is collected. These image sets are obtained in real time through the camera installed in the environment to ensure that all kinds of environmental information and dynamic changes in the preset area can be fully recorded. User behavior is extracted from the environmental image set. Through image processing and behavior recognition algorithms, the activities and interactions of people in the image are analyzed to obtain user behavior data. User behavior data is converted into user behavior streams to convert discrete behavior data into continuous behavior streams. Through time series analysis and behavior pattern recognition technology, the user's behavior activities are arranged in chronological order to form a user behavior stream. Semantic labels are embedded in the user behavior stream. Through natural language processing and semantic analysis technology, various behavior activities in the user behavior stream are given specific semantic labels to obtain a semantic behavior stream. Environmental image sets are matched according to the semantic behavior stream. Through comprehensive analysis of the semantic behavior stream and the environmental image set, the environmental type in the preset area is identified and an environmental type set is obtained. The environmental type set includes meeting type, free activity type, and office type. Environmental atmosphere data is generated according to the environmental type set, and the light intensity adaptation value corresponding to the environmental atmosphere data is matched. The environmental atmosphere data generates specific data that can reflect the environmental atmosphere by analyzing various behavioral patterns and environmental characteristics in the environmental type. For example, the environmental atmosphere data of the meeting type may include a higher concentration and a lower activity, and the environmental atmosphere data of the free activity type may include a higher activity and a lower concentration. The environmental atmosphere data is matched with the corresponding light intensity adaptation value, and the appropriate light intensity setting for different environmental types is determined through the pre-set light intensity adaptation model.

[0077] Step S106, performing light intensity difference calculation on the smoothed light intensity data and the preferred brightness data to obtain a first light intensity difference, and performing light intensity difference calculation on the light intensity adaptation value and the preferred brightness data to obtain a second light intensity difference;

[0078] Specifically, the light intensity difference is calculated for the smoothed light intensity data and the preferred brightness data to obtain a first initial light intensity difference. By comparing the smoothed ambient light intensity data with the user's preferred brightness data, the difference between the two is calculated to reflect the brightness deviation between the current lighting environment and the user's expectations. The difference threshold analysis is performed on the first initial light intensity difference to obtain a first difference threshold. It is determined whether the light intensity difference is within an acceptable range to avoid frequent brightness adjustments due to small differences, thereby affecting the user experience and system stability. By setting a reasonable threshold, it is ensured that the brightness adjustment is triggered only when the light intensity difference exceeds a certain range. The brightness adjustment power analysis is performed according to the first difference threshold to obtain a first brightness adjustment power. The required adjustment power is calculated according to the size of the light intensity difference so as to achieve effective adjustment of the lighting brightness. The first brightness adjustment power is power-corrected according to the preset standard brightness power to obtain a first correction power. The preset standard brightness power is a reference value used to correct the actually calculated adjustment power to ensure that the adjustment power is within a reasonable range and does not cause excessive or insufficient adjustment. Through power correction, the brightness adjustment effect is optimized, making the lighting system more intelligent and precise. The first initial light intensity difference is corrected according to the first correction power to obtain the first light intensity difference. According to the corrected adjustment power, the light intensity difference is recalculated so that the final first light intensity difference is more in line with the actual needs and the system adjustment capability. The light intensity difference is calculated for the light intensity adaptation value and the preferred brightness data to obtain the second initial light intensity difference. By comparing the light intensity adaptation value with the user's preferred brightness data, the difference between the two is calculated, and this difference can reflect the brightness deviation between the ambient atmosphere light intensity and the user's expectation. The second initial light intensity difference is analyzed by the difference threshold to obtain the second difference threshold. The brightness adjustment power is analyzed according to the second difference threshold to obtain the second brightness adjustment power. By analyzing the light intensity difference, the required adjustment power is calculated to achieve effective adjustment of the lighting brightness. The second brightness adjustment power is power-corrected according to the preset standard brightness power to obtain the second correction power. Through power correction, the adjustment power is ensured to be within a reasonable range and the brightness adjustment effect is optimized. The second initial light intensity difference is corrected according to the second correction power to obtain the second light intensity difference. According to the corrected adjustment power, the light intensity difference is recalculated so that the final second light intensity difference is more in line with the actual needs and the system adjustment capability.

[0079] Step S107, performing difference median calculation on the first light intensity difference and the second light intensity difference to obtain light intensity difference median data, and determining the target adjustment intensity according to the light intensity difference median.

[0080] Specifically, the first light intensity difference and the second light intensity difference are calculated for the median difference. The median difference calculation is a statistical method. By calculating the middle value of the two light intensity differences, it can effectively smooth the influence of extreme values ​​on the adjustment result, obtain more stable and representative median data of light intensity difference, reduce the influence of abnormal values ​​or extreme values ​​on the overall light intensity adjustment, and ensure the reliability and stability of the median data of light intensity difference. The target adjustment intensity is determined according to the median data. The determination of the target adjustment intensity needs to consider the size and direction of the median data. If the median value of the light intensity difference is positive, it indicates that the current lighting intensity is lower than the user's preferred brightness, and the lighting intensity needs to be increased; conversely, if the median value of the light intensity difference is negative, it indicates that the current lighting intensity is higher than the user's preferred brightness, and the lighting intensity needs to be reduced. When determining the target adjustment intensity, the amplitude and speed of the adjustment need to be considered to ensure the smoothness of the adjustment process and the comfort of the user experience. For example, if the median value of the light intensity difference is large, the adjustment amplitude can be appropriately increased, but at the same time, it is also necessary to avoid excessive adjustment at one time, which causes discomfort to the user. On the contrary, if the median value of the light intensity difference is small, the adjustment amplitude should be small to make subtle adjustments. At the same time, the determination of the target adjustment intensity can also be combined with historical data and user feedback for dynamic adjustment. For example, by recording and analyzing the user's preferred brightness data in different environments and time periods, a personalized adjustment model can be established to make the target adjustment intensity more in line with the user's long-term needs and habits.

[0081] In the embodiment of the present application, by accurately collecting the ambient light data and natural light data of the preset area, more comprehensive light intensity information can be obtained, thereby laying the foundation for the subsequent smoothing of the light intensity data. By using the long short-term memory network (LSTM) to perform data smoothing on the ambient light intensity and natural light intensity, the noise and mutation in the light intensity data can be effectively removed, the smoothness and stability of the light intensity data can be improved, and reliable data support can be provided for accurately adjusting the light brightness. At the same time, the present invention also conducts in-depth analysis of the user demand data through the natural language processing algorithm, and can accurately extract the user's brightness preference, thereby realizing more personalized brightness adjustment. By processing the environmental image set of the preset area, extracting the environmental atmosphere data, and matching the corresponding light intensity adaptation value, it is possible to realize intelligent perception and response to the environmental atmosphere, so that the light adjustment is more in line with the actual environmental requirements. When calculating the light intensity difference, by respectively calculating the light intensity difference between the smoothed light intensity data and the preferred brightness data, and the light intensity adaptation value and the preferred brightness data, the difference between the current light brightness and the user's expectations can be accurately quantified, thereby providing an accurate adjustment basis for light adjustment. By calculating the median difference of the first light intensity difference and the second light intensity difference, the median data of the light intensity difference is obtained, and the target adjustment intensity is determined based on the data, so that the light brightness can be accurately adjusted, so that the light brightness can adapt to environmental changes and user needs in real time. This method has achieved innovations and breakthroughs in multiple technical features. Through the comprehensive collection of multiple data sources, it can more comprehensively understand the ambient light intensity and natural light intensity, thereby providing a reliable foundation for subsequent data processing. LSTM is used to smooth the light intensity data. Compared with traditional smoothing algorithms, LSTM can better capture the long-term dependencies in time series data, making the smoothed light intensity data more continuous and stable. Thirdly, the natural language processing algorithm is used to analyze the user demand data, which can accurately extract the user's brightness preference from the semantic level, avoiding the one-sided and single understanding of user needs in traditional methods. At the same time, by processing the environmental image set, the environmental atmosphere can be perceived from a visual perspective, and intelligent response can be made in combination with the light intensity adaptation value, making the light adjustment more environmentally adaptable. In the process of calculating the light intensity difference, the difference between the smoothed light intensity data and the preferred brightness data, and the difference between the light intensity adaptation value and the preferred brightness data are calculated respectively, which can more accurately quantify the gap between the current light brightness and the user's expectations, thereby providing an accurate reference for light brightness adjustment. By calculating the median of the light intensity difference, the fluctuations between different light intensity differences can be effectively balanced, making the target adjustment intensity more stable and reliable. The innovation of the technical features of the present invention not only solves the problems of the prior art such as the delayed response to ambient light changes, insufficient understanding of user needs, and simple processing of light intensity data, but also realizes precise adjustment and intelligent control of light brightness through multi-dimensional data collection and processing, significantly improving the overall performance of the lighting system and user experience.

[0082] In a specific embodiment, the process of executing step S101 may specifically include the following steps:

[0083] (1) Collecting a set of light source images in a preset area, and gray-scaling each light source image in the set of light source images to obtain multiple gray-scale light source images;

[0084] (2) Segmenting the preset area using multiple grayscale light source images to obtain multiple sub-areas corresponding to the preset area;

[0085] (3) Input multiple sub-regions into the convolutional neural network for pixel feature extraction to obtain the light intensity pixel features of each sub-region;

[0086] (4) Perform intensity mapping on the light intensity pixel features of each sub-region to obtain the light intensity data of each sub-region;

[0087] (5) The light intensity data of each sub-area is fused with the ambient light intensity to obtain the ambient light intensity of the preset area.

[0088] Specifically, high-resolution camera equipment is installed in a preset area, which can capture the light source image set in the area regularly or in real time. After the image acquisition is completed, each light source image in the light source image set is grayed. The color image is converted into a grayscale image, the color information is removed, and the brightness information is retained. The grayscale processing is usually achieved by the weighted average method, and the formula is as follows:

[0089]

[0090] in, It's pixels The gray value of , , are the red, green and blue components of the pixel respectively. Through this formula, the color value of each pixel is converted into a grayscale value to obtain multiple grayscale light source images. The preset area is segmented by multiple grayscale light source images. The preset area is divided into multiple sub-regions, each of which contains similar light intensity information. Segmentation algorithms in image processing are usually used, such as threshold segmentation, region growing method or graph theory-based methods. Suppose a simple threshold-based method is used to set a grayscale threshold T, and pixels with grayscale values ​​greater than T are divided into one region, and pixels with grayscale values ​​less than T are divided into another region. In this way, the preset area is divided into several sub-regions. The sub-regions are input into a convolutional neural network for pixel feature extraction. Convolutional neural network is a deep learning model suitable for image processing tasks. Through multiple layers of convolution, pooling and fully connected layers, high-order features of the image can be extracted. Set a simple convolution layer whose output feature map The calculation formula is as follows:

[0091] ;

[0092] in, is the pixel value of the input image, It is The weight of the convolution kernel, is the bias, It is The convolution kernels are located at The output feature map of . Through the convolution operation, the light intensity pixel features of each sub-region can be extracted. These features can reflect the spatial distribution and change of the light intensity in the sub-region. The light intensity pixel features of each sub-region are intensity mapped to obtain the light intensity data of each sub-region. Intensity mapping is to convert pixel features into actual light intensity values. Assume that the light intensity feature in the sub-region is expressed as , through a linear mapping function Convert it to light intensity data:

[0093] ;

[0094] in, is the light intensity data, and are the parameters of the mapping function, which can be determined through calibration experiments. Through intensity mapping, the high-order features extracted by the convolutional neural network are converted into actual light intensity values. The light intensity data of each sub-area is fused with the ambient light intensity to obtain the ambient light intensity of the preset area. The light intensity data of each sub-area are combined to form an overall light intensity distribution map.

[0095] In a specific embodiment, the process of executing step S102 may specifically include the following steps:

[0096] (1) Perform environmental segmentation on the preset area to obtain multiple segmented environmental areas;

[0097] (2) Identify the natural light source for each segmented environment area to obtain the natural light source corresponding to each segmented environment area;

[0098] (3) Analyze the natural light intensity of the natural light source corresponding to each segmented environment area to obtain the natural light intensity of each segmented environment area;

[0099] (4) Calculate the light intensity of the natural light in each segmented environment area to obtain the natural light intensity of the preset area.

[0100] Specifically, the environment of the preset area is segmented. The entire preset area is divided into several sub-areas so that the natural light source and light intensity in each area can be analyzed independently. For example, the image is segmented into several parts with similar light intensity and characteristics by a watershed algorithm or a region growing algorithm based on edge detection. The natural light source is identified for each segmented environment area to determine the main natural light source in each sub-area, such as a window, skylight or other open area. The machine learning algorithm is used to identify these natural light sources, and the position and type of the light source in the image are detected by a pre-trained model. For example, a convolutional neural network is used to analyze the light source features in the image, so as to accurately identify the natural light source in each sub-area. The natural light intensity of the natural light source corresponding to each segmented environment area is analyzed. The natural light intensity of each sub-area is obtained by measuring and calculating the light intensity of the natural light source in each sub-area. The light intensity analysis can be implemented by a light intensity sensor or an image processing algorithm. The light intensity is calculated according to the natural light in each segmented environment area to obtain the overall natural light intensity of the preset area. The light intensity data of each sub-area are combined to form an overall light intensity distribution map. For example, suppose that multiple cameras and light intensity sensors are installed in an open office, and each camera and sensor can capture and measure the light intensity information in the office. Use image processing algorithms to segment the office environment and divide the office area into several sub-areas, such as areas close to windows, areas far from windows, and middle areas. Use convolutional neural networks to identify natural light sources in each sub-area and determine the main natural light source in each sub-area. For example, the natural light source in areas close to windows is the window, and the natural light source in areas far from windows may be less. Perform light intensity analysis on the natural light sources in each sub-area. Suppose that multiple light intensity sensors are installed in areas close to windows, and these sensors can measure the light intensity in that area. Calculate the average light intensity of the sub-area Similarly, sensors in other sub-areas can also measure and calculate the corresponding light intensity data. The overall light intensity is calculated based on the light intensity data of each sub-area. Assuming that the area near the window occupies 20% of the entire office area, the middle area occupies 50%, and the area far from the window occupies 30%, the corresponding weights can be set. The overall natural light intensity of the entire office is calculated by the formula

[0101] ;

[0102] Through this method, the overall natural light intensity data in the office can be obtained, providing data support for the adaptive adjustment of the lighting system.

[0103] In a specific embodiment, the process of executing step S103 may specifically include the following steps:

[0104] (1) Input the ambient light intensity and natural light intensity into the input layer for data normalization to obtain normalized light intensity data;

[0105] (2) Input the normalized light intensity data into the LSTM layer for time series extraction to obtain time series light intensity data;

[0106] (3) Extracting light intensity dependency data from the time series light intensity data to obtain light intensity dependency data;

[0107] (4) The time series light intensity data and light intensity dependency data are input into the output layer to extract data sharp points and obtain sharp data points;

[0108] (5) Perform data smoothing on the time series light intensity data based on the sharp data points to obtain smoothed light intensity data.

[0109] Specifically, the ambient light intensity and natural light intensity are input into the input layer for data normalization to obtain normalized light intensity data. Standardize data of different ranges and units so that they are processed on the same scale. A common normalization method is to linearly convert the data into the range of [0, 1] or [-1, 1]. The normalized light intensity data is input into the long short-term memory network (LSTM) layer for time series extraction. LSTM is a special recursive neural network suitable for processing time series data. LSTM can capture the temporal changing trends and patterns of light intensity data through its memory units and gating mechanisms. The calculation formula of the LSTM layer is as follows:

[0110] ;

[0111] in, It's the Gate of Forgetfulness. is the input gate, is the output gate, is the candidate memory cell state, is the memory cell state, is the output, is the sigmoid activation function, is the hyperbolic tangent activation function, and are weight and bias parameters. Through the time series extraction of the LSTM layer, the time series light intensity data is obtained, which reflects the dynamic change of light intensity over time. The light intensity dependency data is extracted from the time series light intensity data to capture the dependency and correlation between the light intensity data. Through statistical methods such as correlation analysis or regression analysis, a relationship model between light intensity data is established, and the formula is as follows:

[0112] ;

[0113] in, is the dependent variable, is the independent variable, is the regression coefficient, is the error term. By establishing a light intensity dependency model, the dependency data between the light intensity data is extracted. The time series light intensity data and the light intensity dependency data are input into the output layer for data sharp point extraction. Data sharp point extraction is to identify abnormal points or mutation points in the light intensity data. These sharp data points may be caused by sudden events or abnormal light sources. In the processing of the output layer, these sharp data points can be identified by statistical methods or anomaly detection algorithms. Common anomaly detection methods include statistical-based methods (such as standard deviation, quartiles, etc.) and machine learning-based methods (such as isolation forests, support vector machines, etc.). Data smoothing is performed on the time series light intensity data according to the sharp data points. By eliminating the influence of sharp data points, the light intensity data is made smoother and continuous, and smoothed light intensity data is obtained. Commonly used smoothing methods include moving average method and exponentially weighted moving average method. The formula is as follows:

[0114] Moving average method:

[0115] ;

[0116] in, It's time The smoothed data, It's time The original data, is the size of the smoothing window. By using the moving average method, short-term fluctuations in the data are smoothed out to obtain more stable light intensity data.

[0117] In a specific embodiment, the process of executing step S104 may specifically include the following steps:

[0118] (1) Collect user demand data and input the user demand data into the natural language processing algorithm for semantic analysis to obtain demand semantic data;

[0119] (2) Based on the demand semantic data, user sentiment analysis is performed on the user demand data to obtain user sentiment data;

[0120] (3) Predict the user's psychological state based on the demand semantic data and user emotion data to obtain psychological state data;

[0121] (4) Analyze the required semantic data to obtain initial brightness adjustment data;

[0122] (5) The initial brightness adjustment data is brightness-weighted according to the psychological state data to obtain the preferred brightness data.

[0123] Specifically, demand data is collected from users. This data can be obtained in many forms, such as user voice commands, text input or other interactive methods. The user demand data is input into the natural language processing algorithm for semantic analysis. The natural language processing algorithm can understand and process the user's natural language input and extract the key demand information. The natural language processing algorithm extracts the user's main needs through technologies such as word segmentation, part-of-speech tagging and dependency syntax analysis. Semantic analysis includes several steps: first, text preprocessing to remove stop words and punctuation marks; then word segmentation and part-of-speech tagging; finally, through dependency syntax analysis and entity recognition, the user's intention and related parameters are extracted to obtain demand semantic data. Based on the demand semantic data, user sentiment analysis is performed on the user demand data. Understanding the user's emotional state when expressing the demand can be achieved through sentiment lexicon or machine learning model. Sentiment analysis methods include rule-based methods and machine learning-based methods. Rule-based methods rely on predefined sentiment lexicon and rules, while machine learning-based methods train sentiment classification models through training data sets. Through sentiment analysis, the user's sentiment data is obtained, which includes sentiment polarity (such as positive, negative) and sentiment intensity. Predict the user's psychological state based on the demand semantic data and the user's emotional data. Infer the user's current psychological state by combining the user's needs and emotions. Use a machine learning model, such as a deep neural network or a support vector machine, with the model input being the demand semantic data and emotional data, and the output being the user's psychological state. Perform data parsing on the demand semantic data to obtain initial brightness adjustment data. Convert the semantic data into specific brightness adjustment instructions. For example, if the demand semantic data indicates that the user wants to increase the brightness, the data parsing module generates corresponding brightness adjustment parameters, such as increasing the brightness by 20%. Perform brightness weighting on the initial brightness adjustment data based on the psychological state data to obtain the final preferred brightness data. Adjust the initial brightness adjustment data by comprehensively considering the user's psychological state. For example, if the psychological state prediction shows that the user feels tired and needs more comfortable and soft light, the brightness weighting module will make appropriate adjustments based on the initial adjustment data to ensure that the final brightness setting is more in line with the user's actual needs. Specifically, brightness weighting can be performed using the following formula.

[0124] ;

[0125] in, is the final preferred brightness data, is the initial brightness adjustment data, is the brightness adjustment coefficient, is the psychological state weight. Through this weighted method, the brightness setting is dynamically adjusted to make it more personalized and in line with the user's needs.

[0126] In a specific embodiment, the process of executing step S105 may specifically include the following steps:

[0127] (1) Collecting an environmental image set, extracting user behavior from the environmental image set, and obtaining user behavior data;

[0128] (2) Performing user behavior stream conversion on the user behavior data to obtain the user behavior stream;

[0129] (3) Embed the user behavior stream with semantic labels to obtain the semantic behavior stream;

[0130] (4) matching the environment type of the environment image set according to the semantic behavior flow to obtain an environment type set, where the environment type set includes: meeting type, free activity type, and office type;

[0131] (5) Generate environmental atmosphere data according to the environmental type set, and match the light intensity adaptation value corresponding to the environmental atmosphere data.

[0132] Specifically, camera devices are installed in the preset area, which can capture and record the environmental image set in real time. User behavior extraction is performed on the environmental image set. User activities in the image are identified and analyzed through image processing and computer vision technology. For example, deep learning models (such as YOLO or OpenPose) are used to detect people and their postures in the image, so as to identify different behaviors, such as walking, sitting, standing, raising hands, etc. User behavior data is converted into user behavior streams. Discrete behavior data is converted into continuous behavior streams. Through time series analysis and pattern recognition technology, user behavior activities are arranged in chronological order to form user behavior streams. User behavior streams can not only reflect the behavior at a single time point, but also show the continuity and change trend of behavior. Semantic label embedding is performed on user behavior streams. Through natural language processing and semantic analysis technology, various behavior activities in the user behavior stream are given specific semantic labels, such as "discussion", "demonstration", "rest", etc. Through semantic label embedding, the behavior stream that originally only contains behavior information is converted into a semantic behavior stream with semantic information. For example, "sit down" and "raise hand" can be embedded as the semantic label "participate in discussion". The environment image set is matched with the environment type according to the semantic behavior flow. According to the user behavior and activity pattern, the type of the current environment is identified. For example, by analyzing the semantic behavior flow, it is identified that the activity patterns in the conference room are mainly "discussion" and "demonstration", so it can be matched as the meeting type. Similarly, if the behavior flow of a certain area mainly includes "walking" and "chatting", it can be matched as the free activity type. Through matching, an environment type set is obtained, including meeting type, free activity type, office type, etc. The environment atmosphere data is generated according to the environment type set, and the light intensity adaptation value corresponding to the environment atmosphere data is matched. The environment atmosphere data is generated according to different environment types and user behavior patterns, and can reflect the atmosphere characteristics of the current environment. For example, the environment atmosphere data of the meeting type may include high concentration and high participation, the environment atmosphere data of the free activity type may include high activity and low concentration, and the environment atmosphere data of the office type may include medium activity and high concentration. According to the environment atmosphere data, the corresponding light intensity adaptation value is matched to ensure that the lighting system can provide a light intensity suitable for the current environment and activity. For example, in a meeting type environment, the light intensity adaptation value may be high to ensure adequate lighting; in a free activity type environment, the light intensity adaptation value may be low to create a comfortable atmosphere; in an office type environment, the light intensity adaptation value may be moderate to balance work efficiency and comfort.

[0133] In a specific embodiment, the process of performing light intensity difference calculation on the smoothed light intensity data and the preferred brightness data to obtain a first light intensity difference, and performing light intensity difference calculation on the light intensity adaptation value and the preferred brightness data to obtain a second light intensity difference may specifically include the following steps:

[0134] (1) Calculating the light intensity difference of the smoothed light intensity data and the preferred brightness data to obtain a first initial light intensity difference;

[0135] (2) performing a difference threshold analysis on the first initial light intensity difference to obtain a first difference threshold;

[0136] (3) performing brightness adjustment power analysis according to the first difference threshold to obtain a first brightness adjustment power;

[0137] (4) performing power correction on the first brightness adjustment power according to a preset standard brightness power to obtain a first correction power, and performing difference correction on the first initial light intensity difference according to the first correction power to obtain a first light intensity difference;

[0138] (5) Calculating the light intensity difference based on the light intensity adaptation value and the preferred brightness data to obtain a second initial light intensity difference;

[0139] (6) performing a difference threshold analysis on the second initial light intensity difference to obtain a second difference threshold;

[0140] (7) performing brightness adjustment power analysis according to the second difference threshold to obtain a second brightness adjustment power;

[0141] (8) Performing power correction on the second brightness adjustment power according to the preset standard brightness power to obtain a second corrected power, and performing difference correction on the second initial light intensity difference according to the second corrected power to obtain a second light intensity difference.

[0142] Specifically, the light intensity difference is calculated for the smoothed light intensity data and the user's preferred brightness data to determine the difference between the current lighting intensity and the user's expected brightness, thereby providing a basis for subsequent adjustments. Assuming that the user's preferred brightness is 300 lux and the current smoothed light intensity data is 250 lux, the first initial light intensity difference is 50 lux, which means that the current light intensity is lower than the user's expected brightness. The first initial light intensity difference is subjected to a difference threshold analysis. It is determined whether the light intensity difference is within an acceptable range to avoid frequent adjustments due to minor differences. A reasonable threshold is set, such as 10 lux, and brightness adjustment is performed only when the first initial light intensity difference exceeds this threshold. If the first initial light intensity difference is 50 lux, which is greater than the threshold of 10 lux, brightness adjustment is required. A brightness adjustment power analysis is performed based on the first difference threshold to obtain the first brightness adjustment power. The power that needs to be adjusted is calculated to achieve the desired brightness change. For example, assuming that each watt of power can increase the light intensity by 10 lux, a light intensity difference of 50 lux requires an adjustment power of 5 watts. The light intensity difference is converted into actual power demand, thereby guiding the dimming device to make accurate brightness adjustment. The first brightness adjustment power is corrected according to the preset standard brightness power to obtain the first corrected power. The standard brightness power is a reference value used to correct the actual calculated adjustment power to ensure that the adjustment power is within a reasonable range. For example, if the standard brightness power is 4 watts and the calculated adjustment power is 5 watts, the corrected power may be adjusted to 4.5 watts, which is closer to the standard value. Power correction can prevent over- or under-adjustment and ensure the smoothness and accuracy of the adjustment process. After obtaining the first corrected power, the first initial light intensity difference is corrected according to the power to obtain the first light intensity difference. The light intensity difference is recalculated according to the corrected adjustment power to make it more in line with actual needs. For example, the corrected 4.5 watt power can increase the light intensity by 45 lux, then the new first light intensity difference is 300 lux (user preference) minus 295 lux (current light intensity), and the result is 5 lux, which means that the current light intensity is close to the brightness expected by the user and the adjustment effect is good. The light intensity difference is calculated for the light intensity adaptation value and the user preferred brightness data to obtain a second initial light intensity difference. The light intensity adaptation value is the optimal light intensity predicted based on the environmental atmosphere and user behavior. For example, if the light intensity adaptation value is 280 lux, and the user preferred brightness is still 300 lux, then the second initial light intensity difference is 20 lux. A difference threshold analysis is performed on the second initial light intensity difference to obtain a second difference threshold. Similarly, a reasonable threshold is set, such as 10 lux, and when the second initial light intensity difference exceeds this threshold, brightness adjustment is performed. A brightness adjustment power analysis is performed based on the second difference threshold to obtain a second brightness adjustment power. A power correction is performed on the second brightness adjustment power based on a preset standard brightness power to obtain a second corrected power. A difference correction is performed on the second initial light intensity difference based on the second corrected power to obtain a second light intensity difference.

[0143] The above describes the method for adaptively adjusting the brightness of lighting lights in the embodiment of the present application. The following describes the device for adaptively adjusting the brightness of lighting lights in the embodiment of the present application. Figure 2 In the embodiment of the present application, an embodiment of the lighting light brightness adaptive adjustment device includes:

[0144] The first acquisition module 201 is used to collect ambient light data of a preset area to obtain the ambient light intensity of the preset area;

[0145] The second acquisition module 202 is used to collect natural light data of the preset area to obtain the natural light intensity of the preset area;

[0146] An input module 203 is used to input the ambient light intensity and the natural light intensity into a preset long short-term memory network to smooth the light intensity data to obtain smoothed light intensity data;

[0147] Extraction module 204, used to collect user demand data, and input the user demand data into a natural language processing algorithm to extract user preference brightness, thereby obtaining preference brightness data;

[0148] The matching module 205 is used to collect an environmental image set of the preset area, extract the environmental atmosphere from the environmental image set to obtain environmental atmosphere data, and match the light intensity adaptation value corresponding to the environmental atmosphere data;

[0149] A calculation module 206, configured to perform a light intensity difference calculation on the smoothed light intensity data and the preferred brightness data to obtain a first light intensity difference, and perform a light intensity difference calculation on the light intensity adaptation value and the preferred brightness data to obtain a second light intensity difference;

[0150] The determination module 207 is used to perform difference median calculation on the first light intensity difference and the second light intensity difference to obtain light intensity difference median data, and determine the target adjustment intensity according to the light intensity difference median.

[0151] Through the cooperation of the above-mentioned components, more comprehensive light intensity information can be obtained by accurately collecting the ambient light data and natural light data of the preset area, thereby laying the foundation for the subsequent smoothing of the light intensity data. The long short-term memory network (LSTM) is used to perform data smoothing on the ambient light intensity and natural light intensity, which can effectively remove the noise and mutation in the light intensity data, improve the smoothness and stability of the light intensity data, and provide reliable data support for accurately adjusting the light brightness. At the same time, the present invention also conducts in-depth analysis of user demand data through a natural language processing algorithm, and can accurately extract the user's brightness preference, thereby achieving more personalized brightness adjustment. By processing the environmental image set of the preset area, extracting the environmental atmosphere data, and matching the corresponding light intensity adaptation value, it is possible to achieve intelligent perception and response to the environmental atmosphere, so that the light adjustment is more in line with the actual environmental needs. When calculating the light intensity difference, by respectively calculating the light intensity difference between the smoothed light intensity data and the preferred brightness data, and the light intensity adaptation value and the preferred brightness data, the difference between the current light brightness and the user's expectations can be accurately quantified, thereby providing an accurate adjustment basis for light adjustment. By calculating the median difference of the first light intensity difference and the second light intensity difference, the median data of the light intensity difference is obtained, and the target adjustment intensity is determined based on the data, so that the light brightness can be accurately adjusted, so that the light brightness can adapt to environmental changes and user needs in real time. This method has achieved innovations and breakthroughs in multiple technical features. Through the comprehensive collection of multiple data sources, it can more comprehensively understand the ambient light intensity and natural light intensity, thereby providing a reliable foundation for subsequent data processing. LSTM is used to smooth the light intensity data. Compared with traditional smoothing algorithms, LSTM can better capture the long-term dependencies in time series data, making the smoothed light intensity data more continuous and stable. Thirdly, the natural language processing algorithm is used to analyze the user demand data, which can accurately extract the user's brightness preference from the semantic level, avoiding the one-sided and single understanding of user needs in traditional methods. At the same time, by processing the environmental image set, the environmental atmosphere can be perceived from a visual perspective, and intelligent response can be made in combination with the light intensity adaptation value, making the light adjustment more environmentally adaptable. In the process of calculating the light intensity difference, the difference between the smoothed light intensity data and the preferred brightness data, and the difference between the light intensity adaptation value and the preferred brightness data are calculated respectively, which can more accurately quantify the gap between the current light brightness and the user's expectations, thereby providing an accurate reference for light brightness adjustment. By calculating the median of the light intensity difference, the fluctuations between different light intensity differences can be effectively balanced, making the target adjustment intensity more stable and reliable. The innovation of the technical features of the present invention not only solves the problems of the prior art such as the delayed response to ambient light changes, insufficient understanding of user needs, and simple processing of light intensity data, but also realizes precise adjustment and intelligent control of light brightness through multi-dimensional data collection and processing, significantly improving the overall performance of the lighting system and user experience.

[0152] The present application also provides a lighting light brightness adaptive adjustment device, which includes a memory and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the steps of the lighting light brightness adaptive adjustment method in the above-mentioned embodiments.

[0153] The present application also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the method for adaptively adjusting the brightness of lighting.

[0154] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described systems, systems and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0155] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.

[0156] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for adaptively adjusting the brightness of lighting, characterized in that: The method for adaptively adjusting the brightness of lighting light comprises: Collecting ambient light data of a preset area to obtain the ambient light intensity of the preset area; Collecting natural light data for the preset area to obtain the natural light intensity of the preset area; Inputting the ambient light intensity and the natural light intensity into a preset long short-term memory network to smooth the light intensity data to obtain smoothed light intensity data; Collecting user demand data, and inputting the user demand data into a natural language processing algorithm to extract user preference brightness, and obtain preference brightness data; specifically including: collecting user demand data, and inputting the user demand data into a natural language processing algorithm to perform semantic analysis, and obtain demand semantic data; based on the demand semantic data, performing user emotion analysis on the user demand data, and obtain user emotion data; performing user psychological state prediction on the demand semantic data and the user emotion data, and obtain psychological state data; performing data analysis on the demand semantic data, and obtain initial brightness adjustment data; performing brightness weighting on the initial brightness adjustment data according to the psychological state data, and obtain the preference brightness data; Collecting an environmental image set of the preset area, extracting the environmental atmosphere from the environmental image set to obtain environmental atmosphere data, and matching the light intensity adaptation value corresponding to the environmental atmosphere data; specifically including: collecting the environmental image set, extracting user behavior from the environmental image set to obtain user behavior data; converting the user behavior data into a user behavior stream to obtain a user behavior stream; embedding semantic tags into the user behavior stream to obtain a semantic behavior stream; matching the environmental type of the environmental image set according to the semantic behavior stream to obtain an environmental type set, wherein the environmental type set includes: meeting type, free activity type and office type; generating environmental atmosphere data according to the environmental type set, and matching the light intensity adaptation value corresponding to the environmental atmosphere data; Performing light intensity difference calculation on the smoothed light intensity data and the preferred brightness data to obtain a first light intensity difference, and performing light intensity difference calculation on the light intensity adaptation value and the preferred brightness data to obtain a second light intensity difference; Perform difference median calculation on the first light intensity difference and the second light intensity difference to obtain light intensity difference median data, and determine the target adjustment intensity according to the light intensity difference median data.

2. The method for adaptively adjusting the brightness of lighting according to claim 1, characterized in that: The collecting of ambient light data of a preset area to obtain the ambient light intensity of the preset area includes: Collecting a light source image set of the preset area, and performing grayscale processing on each light source image in the light source image set to obtain a plurality of grayscale light source images; Segmenting the preset area using the multiple grayscale light source images to obtain multiple sub-areas corresponding to the preset area; Inputting the multiple sub-regions into a convolutional neural network to extract pixel features, thereby obtaining light intensity pixel features of each sub-region; Intensity mapping is performed on the light intensity pixel features of each sub-region to obtain light intensity data of each sub-region; The ambient light intensity is fused with the light intensity data of each sub-area to obtain the ambient light intensity of the preset area.

3. The method for adaptively adjusting the brightness of lighting according to claim 1, characterized in that: The collecting of natural light data for a preset area to obtain the natural light intensity of the preset area includes: Performing environmental segmentation on the preset area to obtain a plurality of segmented environmental areas; Identify the natural light source for each segmented environment area to obtain the natural light source corresponding to each segmented environment area; Perform natural light intensity analysis on the natural light source corresponding to each segmented environment area to obtain the natural light intensity of each segmented environment area; The light intensity is calculated according to the natural light intensity of each segmented environment area to obtain the natural light intensity of the preset area.

4. The method for adaptively adjusting the brightness of lighting according to claim 1, characterized in that: The long short-term memory network includes an input layer, an LSTM layer and an output layer. The inputting the ambient light intensity and the natural light intensity into the preset long short-term memory network to smooth the light intensity data to obtain smoothed light intensity data includes: Inputting the ambient light intensity and the natural light intensity into the input layer for data normalization processing to obtain normalized light intensity data; Inputting the normalized light intensity data into the LSTM layer for time series extraction to obtain time series light intensity data; Extracting light intensity dependency data from the time series light intensity data to obtain light intensity dependency data; Inputting the time series light intensity data and the light intensity dependency relationship data into the output layer to extract data sharp points to obtain sharp data points; The time series light intensity data is smoothed according to the sharp data points to obtain the smoothed light intensity data.

5. The method for adaptively adjusting the brightness of lighting according to claim 1, characterized in that: The step of performing light intensity difference calculation on the smoothed light intensity data and the preferred brightness data to obtain a first light intensity difference, and performing light intensity difference calculation on the light intensity adaptation value and the preferred brightness data to obtain a second light intensity difference comprises: Performing light intensity difference calculation on the smoothed light intensity data and the preferred brightness data to obtain a first initial light intensity difference; Performing a difference threshold analysis on the first initial light intensity difference to obtain a first difference threshold; Performing brightness adjustment power analysis according to the first difference threshold to obtain a first brightness adjustment power; Performing power correction on the first brightness adjustment power according to a preset standard brightness power to obtain a first correction power, and performing difference correction on the first initial light intensity difference according to the first correction power to obtain the first light intensity difference; Performing light intensity difference calculation on the light intensity adaptation value and the preferred brightness data to obtain a second initial light intensity difference; Performing a difference threshold analysis on the second initial light intensity difference to obtain a second difference threshold; Performing brightness adjustment power analysis according to the second difference threshold to obtain a second brightness adjustment power; The second brightness adjustment power is power-corrected according to a preset standard brightness power to obtain a second corrected power, and the second initial light intensity difference is difference-corrected according to the second corrected power to obtain the second light intensity difference.

6. A lighting light brightness adaptive adjustment device, characterized in that: The lighting light brightness adaptive adjustment device comprises: A first acquisition module is used to collect ambient light data of a preset area to obtain the ambient light intensity of the preset area; A second collection module is used to collect natural light data of the preset area to obtain the natural light intensity of the preset area; An input module is used to input the ambient light intensity and the natural light intensity into a preset long short-term memory network to smooth the light intensity data to obtain smoothed light intensity data; The extraction module is used to collect user demand data, and input the user demand data into a natural language processing algorithm to extract user preference brightness, and obtain preference brightness data; specifically includes: collecting user demand data, and inputting the user demand data into a natural language processing algorithm for semantic analysis to obtain demand semantic data; based on the demand semantic data, performing user emotion analysis on the user demand data to obtain user emotion data; performing user psychological state prediction on the demand semantic data and the user emotion data to obtain psychological state data; performing data analysis on the demand semantic data to obtain initial brightness adjustment data; performing brightness weighting on the initial brightness adjustment data according to the psychological state data to obtain the preference brightness data; A matching module is used to collect an environmental image set of the preset area, extract the environmental atmosphere from the environmental image set to obtain environmental atmosphere data, and match the light intensity adaptation value corresponding to the environmental atmosphere data; specifically including: collecting the environmental image set, extracting user behavior from the environmental image set to obtain user behavior data; converting the user behavior data into a user behavior stream to obtain a user behavior stream; embedding semantic tags into the user behavior stream to obtain a semantic behavior stream; matching the environmental image set with environmental types according to the semantic behavior stream to obtain an environmental type set, wherein the environmental type set includes: meeting type, free activity type and office type; generating environmental atmosphere data according to the environmental type set, and matching the light intensity adaptation value corresponding to the environmental atmosphere data; A calculation module, used for performing light intensity difference calculation on the smoothed light intensity data and the preferred brightness data to obtain a first light intensity difference, and performing light intensity difference calculation on the light intensity adaptation value and the preferred brightness data to obtain a second light intensity difference; A determination module is used to perform difference median calculation on the first light intensity difference and the second light intensity difference to obtain light intensity difference median data, and determine a target adjustment intensity according to the light intensity difference median data.

7. A lighting light brightness adaptive adjustment device, characterized in that: The lighting light brightness adaptive adjustment device comprises: a memory and at least one processor, wherein the memory stores instructions; The at least one processor calls the instruction in the memory to enable the lighting light brightness adaptive adjustment device to execute the lighting light brightness adaptive adjustment method according to any one of claims 1 to 5.

8. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions are executed by the processor, the method for adaptively adjusting the brightness of lighting light according to any one of claims 1 to 5 is implemented.