A photosensitive LED control method and system for self-identification in complex environments
By using gradient enhancement decision tree algorithm and Trace Pro software to simulate light standards in complex environments, the problem of photosensitive LED regulation in complex environments is solved, and intelligent and rationalized light condition control is achieved to meet the vision needs of human eyes.
Patent Information
- Application Number
- CN202211030132.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-26
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2042-08-26
AI Technical Summary
In the prior art, LEDs are switched by manual settings or single light intensity determination methods, and the photosensitive LEDs cannot be intelligently controlled in complex environments to meet the human eye vision needs.
By obtaining multiple influencing indicators of environmental visibility, a visibility prediction model is constructed using the gradient enhancement decision tree algorithm, combined with Trace Pro software to simulate and obtain optical standards, and judge whether the preset standards are met through optical feature analysis to regulate photosensitive LEDs.
It realizes intelligent regulation of photosensitive LEDs in complex environments, ensures that the light conditions meet the vision needs of the human eye, improves the intelligence and rationalization of LED regulation, avoids model overfitting, and improves the prediction speed and accuracy of light standards.
Smart Images

Figure CN115426738B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computer applications, and in particular to a photosensitive LED control method and system for self-identification in complex environments. Background Art
[0002] With the development of computer technology, all walks of life have used computer technology to achieve intelligent control and management, thereby reducing labor costs and improving the economic benefits of enterprises. For the intelligent control of photosensitive LEDs, from the initial manual setting of on and off time, to the current targeted on and off control of photosensitive LEDs based on the light intensity in the actual environment. Then, for complex environments, such as rainy and snowy weather, severe air pollution and other conditions, it is impossible to personalize and formulate appropriate plans. On the basis of ensuring the normal vision recognition and activity of the human eye, further save resources and maximize economic benefits. Therefore, it is of great social significance to study the use of computer technology to conduct a refined analysis of different environmental conditions, and then determine the light standards under different environmental conditions based on intelligent models, so as to achieve high-quality regulation of photosensitive LEDs.
[0003] However, the prior art controls the switching of LEDs by manual settings or by judging a single light intensity condition. In complex environmental conditions, there is a technical problem that the LED switching cannot be controlled intelligently based on the vision needs of the human eye. Summary of the invention
[0004] The purpose of the present invention is to provide a photosensitive LED control method and system with self-identification in complex environments, so as to solve the technical problem that in the prior art, the LED switch is controlled by manual setting or single light intensity condition judgment, and the LED switch cannot be intelligently controlled based on the vision needs of the human eye under complex environmental conditions.
[0005] In view of the above problems, the present invention provides a photosensitive LED control method and system for self-identification in complex environments.
[0006] In a first aspect, the present invention provides a photosensitive LED control method for self-identification in complex environments, wherein the method is implemented by a photosensitive LED control system for self-identification in complex environments, wherein the method comprises: obtaining a first set of influencing indicators of environmental visibility, wherein the first set of influencing indicators comprises multiple indicators; collecting the multiple indicators of the first environment to form first environmental information; constructing a visibility prediction model using a gradient boosting decision tree algorithm; obtaining a first visibility of the first environment using the visibility prediction model based on the first environmental information; simulating a first light standard under the first visibility using Trace Pro software, and using the first light standard as a preset environmental light standard; collecting the first light information of the first environment, performing light feature analysis on the first light information, and obtaining a first analysis result; judging whether the first analysis result meets the preset environmental light standard, obtaining a first judgment result, and regulating the photosensitive LED according to the first judgment result.
[0007] On the other hand, the present invention further provides a photosensitive LED control system for self-identification in complex environments, which is used to execute a photosensitive LED control method for self-identification in complex environments as described in the first aspect, wherein the system includes: a first obtaining unit: the first obtaining unit is used to obtain a first influencing indicator set of environmental visibility, wherein the first influencing indicator set includes multiple indicators; a first composition unit: the first composition unit is used to collect the multiple indicators of the first environment to form the first environmental information; a first construction unit: the first construction unit is used to construct a visibility prediction model using a gradient boosting decision tree algorithm; a second obtaining unit: the second obtaining unit is used to obtain the first visibility of the first environment using the visibility prediction model according to the first environmental information; a first setting unit: the first setting unit is used to simulate and obtain the first light standard under the first visibility using Trace Pro software, and use the first light standard as the preset environmental light standard; a third obtaining unit: the third obtaining unit is used to collect the first light information of the first environment, perform light feature analysis on the first light information, and obtain a first analysis result; a first execution unit: the first execution unit is used to determine whether the first analysis result meets the preset environmental light standard, obtain a first judgment result, and regulate the photosensitive LED according to the first judgment result.
[0008] In a third aspect, the present invention further provides a photosensitive LED control system for self-identification in complex environments, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in the first aspect when executing the program.
[0009] A fourth aspect is an electronic device, comprising a processor and a memory;
[0010] The memory is used for storing;
[0011] The processor is used to execute any one of the methods in the first aspect by calling.
[0012] In a fifth aspect, a computer program product comprises a computer program and / or instructions, which, when executed by a processor, implement the steps of any one of the methods described in the first aspect.
[0013] One or more technical solutions provided in the present invention have at least the following technical effects or advantages:
[0014] 1. Through analysis, determine the environmental factors and indicators that will affect visibility, and then collect relevant indicators of the target environment; then based on the gradient boosting decision tree algorithm, use historical environmental information and its visibility information to train a visibility prediction model, and use the visibility prediction model to intelligently analyze and obtain the visibility data of the target environment; further, use Trace Pro software to simulate the target environment, obtain ambient light information that meets the needs of human vision, and use it as the preset ambient light standard; finally, collect the existing light information in the target environment, and when the existing light information does not meet the preset ambient light standard, supplement the light by adjusting the photosensitive LED. Determine the corresponding light standard through refined environmental analysis, and then intelligently adjust the photosensitive LED based on the existing light conditions, so that the light conditions of the target environment meet the corresponding light standards, and achieve the technical effect of improving the intelligent and rational regulation of photosensitive LEDs.
[0015] 2. By retaining the indicators that have a greater impact on visibility and using them as the input of the visibility prediction model, the visibility prediction model is avoided from overfitting due to its complexity, and the speed of the model's intelligent prediction is improved.
[0016] 3. Through computer software simulation and subjective human eye tests, the light standards that meet vision needs under different visibility conditions are comprehensively determined, achieving the technical effect of improving the accuracy and reliability of light standards.
[0017] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only exemplary, and for ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0019] Figure 1 A schematic flow chart of a photosensitive LED control method for self-identification in complex environments according to the present invention;
[0020] Figure 2 It is a flow chart of constructing a visibility prediction model by using a gradient boosting decision tree algorithm in a photosensitive LED control method for self-identification in a complex environment of the present invention;
[0021] Figure 3 It is a schematic diagram of the process before obtaining the first visibility of the first environment in a photosensitive LED control method for self-identification of a complex environment of the present invention;
[0022] Figure 4 A schematic diagram of the process of obtaining the first light standard in a photosensitive LED control method for self-identification in a complex environment according to the present invention;
[0023] Figure 5 This is a structural schematic diagram of a photosensitive LED control system for self-identification in complex environments according to the present invention;
[0024] Figure 6 It is a schematic diagram of the structure of an exemplary electronic device of the present invention.
[0025] Description of reference numerals:
[0026] A first obtaining unit 11 , a first composing unit 12 , a first constructing unit 13 , a second obtaining unit 14 , a first setting unit 15 , a third obtaining unit 16 , a first executing unit 17 , a bus 300 , a receiver 301 , a processor 302 , a transmitter 303 , a memory 304 , and a bus interface 305 . DETAILED DESCRIPTION
[0027] The present invention provides a photosensitive LED control method and system for self-identification in complex environments. In the prior art, the LED is controlled by manual setting or single light intensity condition judgment, which solves the technical problem that the LED switch cannot be intelligently controlled based on the vision needs of the human eye under complex environmental conditions. The corresponding light standard is determined by fine analysis of the environment, and then the photosensitive LED is intelligently controlled based on the existing light conditions, so that the light conditions of the target environment meet the corresponding light standards, achieving the technical effect of improving the intelligent and rational control of the photosensitive LED.
[0028] The acquisition, storage, use, and processing of data in the technical solution of the present invention are in compliance with the relevant provisions of national laws and regulations.
[0029] Below, the technical solutions in the present invention will be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments of the present invention. It should be understood that the present invention is not limited to the example embodiments described herein. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. It should also be noted that, for the convenience of description, only the parts related to the present invention are shown in the accompanying drawings, rather than all of them.
[0030] The present invention provides a photosensitive LED control method for self-identification of complex environments, and the method is applied to a photosensitive LED control system for self-identification of complex environments, wherein the method comprises: obtaining a first influencing indicator set of environmental visibility, wherein the first influencing indicator set comprises multiple indicators; collecting the multiple indicators of the first environment to form first environmental information; constructing a visibility prediction model using a gradient boosting decision tree algorithm; obtaining a first visibility of the first environment using the visibility prediction model according to the first environmental information; simulating and obtaining a first light standard under the first visibility using Trace Pro software, and using the first light standard as a preset environmental light standard; collecting the first light information of the first environment, performing light feature analysis on the first light information, and obtaining a first analysis result; judging whether the first analysis result meets the preset environmental light standard, obtaining a first judgment result, and regulating the photosensitive LED according to the first judgment result.
[0031] After introducing the basic principles of the present invention, various non-limiting implementation methods of the present invention will be specifically described below in conjunction with the accompanying drawings.
[0032] Embodiment 1
[0033] Please see attached Figure 1 The present invention provides a photosensitive LED control method for self-identification in complex environments, wherein the method is applied to a photosensitive LED control system for self-identification in complex environments, and the method specifically comprises the following steps:
[0034] Step S100: obtaining a first influencing indicator set of environmental visibility, wherein the first influencing indicator set includes a plurality of indicators;
[0035] Specifically, the photosensitive LED control method for self-identification of complex environments is applied to the photosensitive LED control system for self-identification of complex environments, and the environmental factors and indicators that will affect visibility are determined by analysis, and then the relevant indicators of the target environment are collected; then based on the gradient boosting decision tree algorithm, the visibility prediction model is trained using historical environmental information and its visibility information, and the visibility data of the target environment is obtained by intelligent analysis using the visibility prediction model; further, the target environment is simulated using Trace Pro software to obtain ambient light information that meets the vision needs of the human eye, and it is used as the preset ambient light standard; finally, the existing light information in the target environment is collected, and when the existing light information does not meet the preset ambient light standard, the light is supplemented by adjusting the photosensitive LED. In other words, the photosensitive LED control system can determine the corresponding light standard through refined environmental analysis, and then intelligently adjust the photosensitive LED based on the existing light conditions. The photosensitive LED refers to a light-emitting diode that is sensitive to light information, and has the characteristics of energy saving, environmental protection, and fast response speed, so it is widely used in lighting, advertising, screens and other fields. The first influencing index set includes multiple indicators, which are evaluation indicators about the environment, atmosphere, etc., and all of them will have different degrees of impact on human eye visibility. For example, indicators such as atmospheric humidity, airborne particles, wind speed, and air pressure. By obtaining various environmental indicators that will affect visibility, a technical effect of providing intuitive measurement guidance for subsequent evaluation of environmental visibility is achieved.
[0036] Step S200: collecting the multiple indicators of the first environment to form first environment information;
[0037] Specifically, data detection and collection are performed on the relevant indicators of the first environment using various intelligent devices such as sensors and cameras, and the data results of various indicators obtained constitute the first environmental information. The first environment refers to any environment in which the photosensitive LED control system is to be used for LED intelligent control, such as a highway, a safety passage, an activity square, etc. The first environmental information is obtained through detection, which provides accurate and intuitive data basis for the subsequent evaluation of the visibility of the first environment, thereby achieving the technical effect of improving the objectivity and reliability of the evaluation.
[0038] Step S300: constructing a visibility prediction model using a gradient boosting decision tree algorithm;
[0039] Specifically, the gradient boosting decision tree algorithm refers to an algorithm that can use a decision tree as a basic learner, use the idea of the gradient boosting algorithm to adjust the model, let the value of the loss function continue to decrease, and then add up the various models as the final prediction model. In other words, the gradient boosting decision tree algorithm is essentially an iteratively constructed decision tree. The visibility prediction model is obtained by iterating the gradient boosting decision tree algorithm multiple times and updating the regression tree. Among them, the visibility prediction model can be based on the visibility-related environmental indicator information, and intelligently analyze the visibility index of the corresponding environment. The technical effect of providing a data basis for LED control is achieved.
[0040] Step S400: obtaining a first visibility of the first environment using the visibility prediction model according to the first environment information;
[0041] Specifically, the first environmental information obtained by the collection is sorted and then the input quantity of the visibility prediction model is determined, and then the first visibility of the first environment is obtained intelligently. By obtaining the first visibility, an objective evaluation of the first environment is achieved, and at the same time, the technical goal of digitizing and quantifying complex environmental conditions is achieved, and the technical effect of providing a data basis for the subsequent system to intelligently control the photosensitive LED is achieved.
[0042] Step S500: using Trace Pro software to simulate and obtain a first light standard under the first visibility, and using the first light standard as a preset ambient light standard;
[0043] Specifically, through modeling and simulation using Trace Pro software, digital simulation of the first environment can be achieved, and further experimental simulation can be performed under different environmental conditions, i.e., different visibility conditions, to obtain the minimum ambient light data that can meet the vision needs of the human eye under different visibility conditions, and use it as the first light standard, i.e., the preset ambient light standard. In other words, under the preset ambient light standard, humans can meet basic viewing needs in the corresponding visibility environment. Among them, the Trace Pro software can intelligently simulate various types of light information such as lighting conditions, optical systems, light radiance, light intensity, light quality, etc. in various complex environments.
[0044] By obtaining the preset ambient light standard, a reference basis is provided for the subsequent regulation of the LED, thereby achieving the technical effect of energy saving and environmental protection while ensuring the visual needs of daily observation.
[0045] Step S600: collecting first light information of the first environment, performing light characteristic analysis on the first light information, and obtaining a first analysis result;
[0046] Specifically, through various intelligent devices, such as light sensors, etc., relevant light information of the first environment is collected and recorded, such as light intensity, light direction, light position information, light type, light ratio, light color and other related light data. Among them, the light type includes main light, auxiliary light, contour light, background light, decorative light, etc., the light ratio refers to the intensity information of the light in the first environment; the light color is the temperature of the light, that is, the light color in the color image. According to the collection results, the first light information is formed. Further, the first light information is intelligently analyzed to obtain the corresponding first analysis result. The first analysis result is obtained by intelligent analysis, which achieves the technical effect of intuitive and accurate evaluation of the light information in the environment, and provides a reference basis for subsequent intelligent regulation.
[0047] Step S700: determine whether the first analysis result meets a preset ambient light standard, obtain a first determination result, and regulate the photosensitive LED according to the first determination result.
[0048] Furthermore, step S700 of the present invention further includes:
[0049] Step S710: if the first analysis result does not meet the preset ambient light standard, obtain a first control instruction;
[0050] Step S720: regulating the photosensitive LED according to the first regulation instruction.
[0051] Specifically, through the photosensitive LED control system, it is intelligently determined whether the first analysis result obtained by the system analysis meets the preset ambient light standard. When the first analysis result meets the preset ambient light standard, it means that the natural light in the current first environment, that is, sunlight, has met the viewing vision needs of the human eye under the environmental conditions, and there is no need to turn on the photosensitive LED for light supplement; when the first analysis result does not meet the preset ambient light standard, it means that the natural light in the current first environment, that is, sunlight, cannot meet the viewing vision needs of the human eye under the environmental conditions. At this time, the system regulates the photosensitive LED to turn on and supplement the light of the first environment, thereby ensuring the human eye's observation vision needs. The corresponding light standard is determined through the refined analysis of the environment, and then the photosensitive LED is intelligently regulated based on the existing light conditions, so that the light conditions of the target environment meet the corresponding light standards, achieving the technical effect of improving the intelligent and rational regulation of the photosensitive LED.
[0052] Furthermore, step S100 of the present invention further includes:
[0053] Step S110: forming a first decision-making expert set, wherein the first decision-making expert set includes a plurality of experts;
[0054] Step S120: sequentially obtaining a plurality of analysis results of the plurality of experts on factors affecting visibility, and forming a set of environmental visibility affecting factors;
[0055] Step S130: performing statistical analysis on the environmental visibility influencing factor set to obtain the first influencing indicator set.
[0056] Specifically, the first decision-making expert set includes multiple research experts in the field of atmospheric visibility. Among them, the first decision-making expert set includes multiple experts. Through the subjective evaluation of multiple experts, the indicators such as the atmosphere in the environment that will affect their visibility are obtained by each expert. Further, the influencing factors determined by the subjective cognition of all experts are processed by union operation, that is, the environmental visibility influencing factor set is obtained. Finally, the various environmental factors in the environmental visibility influencing factor set are statistically analyzed, such as factor mode operation, so as to determine the main factor indicators that will affect visibility, and form the first influencing indicator set. By obtaining the first influencing indicator set, the technical effect of providing a reference for subsequent detection of environmental conditions is achieved.
[0057] Further, as attached Figure 2 As shown, step S300 of the present invention further includes:
[0058] Step S310: obtaining a first training data set according to historical environmental observation data, wherein the first training data set includes multiple sets of historical environmental information and multiple sets of historical visibility identification information;
[0059] Step S320: constructing a first preset decision tree using the first training data set, wherein the number of layers of the first preset decision tree is limited to a random integer a, 10≤a≤15;
[0060] Step S330: obtaining a first preset accuracy rate, extracting a training data set of the first preset decision tree that does not meet the first preset accuracy rate, and generating a second training data set;
[0061] Step S340: constructing a second preset decision tree using the second training data set, wherein the number of layers of the second preset decision tree is limited to a random integer b, 10≤b≤15;
[0062] Step S350: Similarly, when the data volume of the Mth training data set reaches the first preset data volume, the training is stopped to obtain the M-1th preset decision tree;
[0063] Step S360: performing a sum operation on the first preset decision tree, the second preset decision tree, and up to the M-1th preset decision tree to obtain the visibility prediction model.
[0064] Specifically, firstly, based on the historical environmental monitoring data and the corresponding visibility data, a first training data set is formed. The first training data set includes multiple groups of historical environmental information and multiple groups of historical visibility identification information, and the multiple groups of historical environmental information and the multiple groups of historical visibility identification information have a one-to-one correspondence. Then, the first preset decision tree is constructed using the first training data set, wherein the number of layers of the first preset decision tree is limited to a random integer a, and the range of a is 10≤a≤15. Finally, based on the first preset accuracy, the result data that does not meet the first preset accuracy in the first preset decision tree is extracted to form a training data set. Further, based on the idea of the gradient boosting decision tree algorithm, the training data set is used as the main data, and the second training data set is combined with the first training data set to form a second training data set. Then, the second preset decision tree is constructed using the second training data set, wherein the number of layers of the second preset decision tree is limited to a random integer b, and the range of b is the same as the layer limit value a of the first preset decision tree, which is 10≤b≤15. By setting the highest number of layers of the decision tree, the accuracy of the decision result is ensured while effectively improving the model training speed.
[0065] In the same way, the result data that does not meet the second preset accuracy rate in the second preset decision tree is extracted to form the second training data set. Similarly, when the data volume of the Mth training data set reaches the preset data volume, the training is stopped to obtain the M-1th preset decision tree. The preset data volume refers to the data volume range pre-set by the system based on actual needs. Finally, the first preset decision tree, the second preset decision tree, and the M-1th preset decision tree are added together to obtain the visibility prediction model.
[0066] By using the gradient boosting decision tree algorithm to obtain the visibility prediction model, the accuracy of the model is improved, and at the same time the technical effect of improving the accuracy of visibility obtained intelligently is achieved.
[0067] Further, as attached Figure 3 As shown, step S400 of the present invention further includes:
[0068] Step S410: using the random forest method to perform importance analysis on the multiple indicators to obtain a second analysis result;
[0069] Step S420: Arrange the multiple indicators in descending order according to the second analysis result to obtain a first arrangement result;
[0070] Step S430: According to the first arrangement result, a preset number of environmental indicators are screened to form a first feature vector set;
[0071] Step S440: using the environmental information of the first feature vector set as input of the visibility prediction model.
[0072] Specifically, the random forest method in MPai machine learning is used to perform importance analysis on the multiple indicators that affect visibility, and the importance coefficients of the obtained indicators constitute the second analysis results. Among them, the MPai opens multiple models for statistical learning, and can intelligently obtain the data on the degree of influence of each indicator factor on visibility by directly inputting various environmental indicators and their monitoring data, that is, the importance coefficient, so as to achieve an intuitive evaluation of the degree of influence of each indicator on visibility. Furthermore, according to the second analysis result, that is, the importance coefficient, the indicators are arranged in descending order to obtain the first arrangement result. The first arrangement result is screened, and the indicators corresponding to the first preset number in the first arrangement result are retained, and other environmental indicators with less subsequent impact are eliminated.
[0073] By retaining the indicators that have a greater impact on visibility and using them as the input of the visibility prediction model, the visibility prediction model can be prevented from being too complex and thus overfitting, while the speed of the model's intelligent prediction can be improved.
[0074] Further, as attached Figure 4 As shown, step S500 of the present invention further includes:
[0075] Step S510: constructing an ambient light model using Trace Pro software;
[0076] Step S520: obtaining a human vision requirement standard;
[0077] Step S530: Based on the human vision requirement standard, use the ambient light model to perform simulation to obtain a first simulation result;
[0078] Step S540: Obtain the first light standard according to the first simulation result.
[0079] Specifically, the ambient light model is constructed by the Trace Pro software, which is used to intelligently simulate the environment under different environmental index conditions. Among them, the Trace Pro software is a software designed for optical analysis, which can simulate various light characteristics. For example, light intensity, light quality, light color, light position, etc. Further, the minimum standard for the human eye to observe basic surrounding information is determined by means of big data, literature search, etc. Then, based on the human eye vision requirement standard, the ambient light model is used for simulation, that is, the minimum light conditions required for basic observation of the human eye under different environmental index conditions and different visibility conditions are simulated respectively, which constitute the first simulation result. Among them, in the first simulation result, the three items of environmental index data, visibility, and light environment have a one-to-one correspondence. Among them, the first visibility corresponds to the first light standard.
[0080] Through software simulation, the minimum light conditions required for basic viewing by the human eye under different environmental visibility conditions are achieved, that is, the light standard is obtained, achieving the technical effect of providing a reference standard for the subsequent system to intelligently control the LED.
[0081] Furthermore, the present invention further comprises step S550:
[0082] Step S551: obtaining a first tester set, wherein the first tester set includes a plurality of testers;
[0083] Step S552: constructing a first test environment based on the first visibility and the first light standard;
[0084] Step S553: based on the first test environment, sequentially obtaining a plurality of test results of the plurality of test personnel;
[0085] Step S554: If the plurality of test results do not meet a preset accuracy threshold, the first light standard is adjusted.
[0086] Specifically, the first test personnel include a plurality of adults with normal vision. By testing each test personnel in turn, the accuracy, clarity and other information of viewing and identifying objects at a specific distance under different environmental index conditions and different visibility conditions are obtained to obtain subjective test results under different visibility conditions. Among them, the multiple test results obtained by the subjective test are analyzed, and the test accuracy is calculated to determine whether the accuracy of the test reaches the preset accuracy threshold. When the accuracy meets the preset accuracy threshold, it means that the subjective test has a certain reference value. Therefore, the light standard obtained by the subjective test is adjusted to the objective light standard obtained by software simulation. For example, a total of 100 test personnel participate in the subjective test. Under specific light conditions, the test personnel conduct an identification and judgment test on the same object. According to the test results, the number of correct identification tests is calculated to be 96 times, which means that the accuracy of the subjective test is 96%.
[0087] By adjusting the light standard results obtained by Trace Pro software simulation based on the results obtained from subjective tests, the technical effect of improving the accuracy and reliability of the light standard was achieved.
[0088] In summary, the photosensitive LED control method for self-identification in complex environments provided by the present invention has the following technical effects:
[0089] 1. Through analysis, determine the environmental factors and indicators that will affect visibility, and then collect relevant indicators of the target environment; then based on the gradient boosting decision tree algorithm, use historical environmental information and its visibility information to train a visibility prediction model, and use the visibility prediction model to intelligently analyze and obtain the visibility data of the target environment; further, use Trace Pro software to simulate the target environment, obtain ambient light information that meets the needs of human vision, and use it as the preset ambient light standard; finally, collect the existing light information in the target environment, and when the existing light information does not meet the preset ambient light standard, supplement the light by adjusting the photosensitive LED. Determine the corresponding light standard through refined environmental analysis, and then intelligently adjust the photosensitive LED based on the existing light conditions, so that the light conditions of the target environment meet the corresponding light standards, and achieve the technical effect of improving the intelligent and rational regulation of photosensitive LEDs.
[0090] 2. By retaining the indicators that have a greater impact on visibility and using them as the input of the visibility prediction model, the visibility prediction model is avoided from overfitting due to its complexity, and the speed of the model's intelligent prediction is improved.
[0091] 3. Through computer software simulation and subjective human eye tests, the light standards that meet vision needs under different visibility conditions are comprehensively determined, achieving the technical effect of improving the accuracy and reliability of light standards.
[0092] Embodiment 2
[0093] Based on the same inventive concept as the photosensitive LED control method for self-identification in a complex environment in the aforementioned embodiment, the present invention also provides a photosensitive LED control system for self-identification in a complex environment, see the attached Figure 5 , the system comprising:
[0094] A first obtaining unit 11, the first obtaining unit 11 is used to obtain a first influencing indicator set of environmental visibility, wherein the first influencing indicator set includes a plurality of indicators;
[0095] A first component unit 12, the first component unit 12 is used to collect the multiple indicators of the first environment to form first environment information;
[0096] A first construction unit 13, wherein the first construction unit 13 is used to construct a visibility prediction model using a gradient boosting decision tree algorithm;
[0097] a second obtaining unit 14, the second obtaining unit 14 being configured to obtain a first visibility of the first environment by using the visibility prediction model according to the first environment information;
[0098] A first setting unit 15, the first setting unit 15 is used to simulate and obtain a first light standard under the first visibility by using Trace Pro software, and use the first light standard as a preset ambient light standard;
[0099] A third obtaining unit 16, the third obtaining unit 16 is used to collect first light information of the first environment, perform light characteristic analysis on the first light information, and obtain a first analysis result;
[0100] The first execution unit 17 is used to determine whether the first analysis result meets a preset ambient light standard, obtain a first determination result, and regulate the photosensitive LED according to the first determination result.
[0101] Furthermore, the system also includes:
[0102] A first forming unit, the first forming unit is used to form a first decision-making expert set, wherein the first decision-making expert set includes a plurality of experts;
[0103] A second component unit, the second component unit is used to sequentially obtain a plurality of analysis results of the plurality of experts on factors affecting visibility, and form a set of environmental visibility affecting factors;
[0104] A fourth obtaining unit, wherein the fourth obtaining unit is used to perform statistical analysis on the set of environmental visibility influencing factors to obtain the first set of influencing indicators.
[0105] Furthermore, the system also includes:
[0106] A fifth obtaining unit, the fifth obtaining unit being used to obtain a first training data set according to the historical environmental observation data, wherein the first training data set includes multiple sets of historical environmental information and multiple sets of historical visibility identification information;
[0107] A second construction unit, the second construction unit is used to construct a first preset decision tree using the first training data set, wherein the number of layers of the first preset decision tree is limited to a random integer a, 10≤a≤15;
[0108] a sixth obtaining unit, the sixth obtaining unit being used to obtain a first preset accuracy rate, extract a training data set of the first preset decision tree that does not satisfy the first preset accuracy rate, and generate a second training data set;
[0109] A third construction unit, the third construction unit is used to construct a second preset decision tree using the second training data set, wherein the number of layers of the second preset decision tree is limited to a random integer b, 10≤b≤15;
[0110] A seventh obtaining unit, wherein the seventh obtaining unit is used to stop training when the data amount of the Mth training data set reaches the first preset data amount, and obtain the M-1th preset decision tree;
[0111] An eighth obtaining unit, wherein the eighth obtaining unit is used to perform a sum operation on the first preset decision tree, the second preset decision tree, and up to the M-1th preset decision tree to obtain the visibility prediction model.
[0112] Furthermore, the system also includes:
[0113] a ninth obtaining unit, the ninth obtaining unit being used to perform importance analysis on the multiple indicators by using a random forest method to obtain a second analysis result;
[0114] a tenth obtaining unit, configured to arrange the plurality of indicators in descending order according to the second analysis result to obtain a first arrangement result;
[0115] a tenth obtaining unit, the tenth obtaining unit being used to screen a preset number of environmental indicators according to the first arrangement result to form a first feature vector set;
[0116] A second setting unit, wherein the second setting unit is configured to use the environmental information of the first feature vector set as an input of the visibility prediction model.
[0117] Furthermore, the system also includes:
[0118] A fourth construction unit, the fourth construction unit is used to construct an ambient light model using Trace Pro software;
[0119] an eleventh obtaining unit, the eleventh obtaining unit being used to obtain a human vision requirement standard;
[0120] a twelfth obtaining unit, the twelfth obtaining unit being configured to perform simulation based on the human eye vision requirement standard and using the ambient light model to obtain a first simulation result;
[0121] A thirteenth obtaining unit, the thirteenth obtaining unit is used to obtain the first light standard according to the first simulation result.
[0122] Furthermore, the system also includes:
[0123] a fourteenth obtaining unit, the fourteenth obtaining unit being used to obtain a first tester set, wherein the first tester set includes a plurality of testers;
[0124] a fifth construction unit, configured to construct a first test environment based on the first visibility and the first light standard;
[0125] a fifteenth obtaining unit, configured to sequentially obtain a plurality of test results of the plurality of test personnel based on the first test environment;
[0126] A second execution unit is configured to adjust the first light standard if the plurality of test results do not meet a preset accuracy threshold.
[0127] Furthermore, the system also includes:
[0128] a sixteenth obtaining unit, the sixteenth obtaining unit being configured to obtain a first control instruction if the first analysis result does not meet a preset ambient light standard;
[0129] A third execution unit, wherein the third execution unit is used to control the photosensitive LED according to the first control instruction.
[0130] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. Figure 1The photosensitive LED control method for self-identification in a complex environment and the specific examples in the first embodiment are also applicable to a photosensitive LED control system for self-identification in a complex environment in this embodiment. Through the above detailed description of the photosensitive LED control method for self-identification in a complex environment, those skilled in the art can clearly know the photosensitive LED control system for self-identification in a complex environment in this embodiment, so for the sake of brevity of the specification, it will not be described in detail here. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0131] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
[0132] Exemplary Electronic Devices
[0133] Reference below Figure 6 The electronic device of the present invention will be described.
[0134] Figure 6 The figure shows a schematic structural diagram of an electronic device according to the present invention.
[0135] Based on the inventive concept of a photosensitive LED control method for self-identification in complex environments in the aforementioned embodiment, the present invention also provides a photosensitive LED control system for self-identification in complex environments, on which a computer program is stored, which, when executed by a processor, implements the steps of any method of the photosensitive LED control method for self-identification in complex environments described above.
[0136] Among them, Figure 6 In the embodiment of the present invention, a bus architecture (represented by bus 300) is shown, which may include any number of interconnected buses and bridges, and bus 300 links various circuits including one or more processors represented by processor 302 and memory represented by memory 304. Bus 300 may also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are not further described herein. Bus interface 305 provides an interface between bus 300 and receiver 301 and transmitter 303. Receiver 301 and transmitter 303 may be the same element, namely a transceiver, which provides a unit for communicating with various other devices over a transmission medium.
[0137] The processor 302 is responsible for managing the bus 300 and general processing, while the memory 304 may be used to store data used by the processor 302 when performing operations.
[0138] The present invention provides a photosensitive LED control method for self-identification of complex environments, and the method is applied to a photosensitive LED control system for self-identification of complex environments, wherein the method comprises: obtaining a first influencing indicator set of environmental visibility, wherein the first influencing indicator set comprises multiple indicators; collecting the multiple indicators of the first environment to form first environmental information; constructing a visibility prediction model using a gradient boosting decision tree algorithm; obtaining the first visibility of the first environment using the visibility prediction model according to the first environmental information; simulating and obtaining the first light standard under the first visibility using Trace Pro software, and taking the first light standard as the preset environmental light standard; collecting the first light information of the first environment, performing light feature analysis on the first light information, and obtaining a first analysis result; judging whether the first analysis result meets the preset environmental light standard, obtaining a first judgment result, and regulating the photosensitive LED according to the first judgment result. The method solves the technical problem that the LED switch is controlled by manual setting or single light intensity condition judgment in the prior art, and the LED switch cannot be intelligently controlled based on the vision requirements of the human eye for complex environmental conditions. The corresponding light standard is determined through detailed analysis of the environment, and then the photosensitive LED is intelligently controlled based on the existing light conditions, so that the light conditions of the target environment meet the corresponding light standard, achieving the technical effect of improving the intelligence and rationality of photosensitive LED control.
[0139] The present invention also provides an electronic device, which includes a processor and a memory;
[0140] The memory is used for storing;
[0141] The processor is used to execute any one of the methods in the above-mentioned embodiment 1 by calling.
[0142] The present invention also provides a computer program product, including a computer program and / or instructions, which, when executed by a processor, implement the steps of the method described in any one of the above-mentioned embodiments.
[0143] It should be understood by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the present invention may adopt the form of a complete software embodiment, a complete hardware embodiment, or a combination of software and hardware embodiments. In addition, the present invention is in the form of a computer program product that can be implemented on one or more computer-usable storage media containing computer-usable program codes. The computer-usable storage medium includes, but is not limited to, various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), disk memories, compact disc read-only memories (CD-ROM), optical memories, etc.
[0144] The present invention is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A system that specifies the functions of a box or multiple boxes.
[0145] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction system, which is implemented in the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0146] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they understand the basic creative concepts.
[0147] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention belong to the scope of the present invention and its equivalent technologies, the present invention is also intended to include these changes and variations.
Claims
1. A photosensitive LED control method for self-identification in complex environments, characterized in that: The method is applied to a photosensitive LED control system for self-identification in a complex environment, and the method comprises: Obtaining a first influencing indicator set of environmental visibility, wherein the first influencing indicator set includes a plurality of indicators; Collecting the multiple indicators of the first environment to form first environment information; The visibility prediction model was constructed using the gradient boosting decision tree algorithm; According to the first environment information, obtaining a first visibility of the first environment by using the visibility prediction model; Using Trace Pro software, simulating and obtaining a first light standard under the first visibility, and using the first light standard as a preset ambient light standard; Collecting first light information of the first environment, performing light characteristic analysis on the first light information, and obtaining a first analysis result; Determine whether the first analysis result meets a preset ambient light standard, obtain a first determination result, and adjust the photosensitive LED according to the first determination result; The method of constructing a visibility prediction model using a gradient boosting decision tree algorithm includes: Obtaining a first training data set according to the historical environmental observation data, wherein the first training data set includes multiple sets of historical environmental information and multiple sets of historical visibility identification information; Using the first training data set, construct a first preset decision tree, wherein the number of layers of the first preset decision tree is limited to a random integer a, 10≤a≤15; Obtaining a first preset accuracy rate, extracting a training data set of the first preset decision tree that does not meet the first preset accuracy rate, and generating a second training data set; Using the second training data set, construct a second preset decision tree, wherein the number of layers of the second preset decision tree is limited to a random integer b, 10≤b≤15; Similarly, when the data volume of the Mth training data set reaches the first preset data volume, the training is stopped to obtain the M-1th preset decision tree; Performing a sum operation on the first preset decision tree, the second preset decision tree, and up to the M-1th preset decision tree to obtain the visibility prediction model; The obtaining, according to the first environment information, a first visibility of the first environment by using the visibility prediction model includes: Using a random forest method to perform importance analysis on the multiple indicators to obtain a second analysis result; Arrange the multiple indicators in descending order according to the second analysis result to obtain a first arrangement result; According to the first arrangement result, a preset number of environmental indicators are screened to form a first feature vector set; Using the environmental information of the first feature vector set as input of the visibility prediction model; The using of Trace Pro software to simulate and obtain the first light standard under the first visibility, and using the first light standard as the preset ambient light standard, includes: Use Trace Pro software to build an ambient light model; Standards are needed to obtain human visual acuity; Based on the human vision requirement standard, using the ambient light model to perform simulation to obtain a first simulation result; The first light standard is obtained according to the first simulation result.
2. The method according to claim 1, characterized in that The method for obtaining a first set of influencing indicators of environmental visibility comprises: Forming a first decision-making expert set, wherein the first decision-making expert set includes a plurality of experts; Sequentially obtaining a plurality of analysis results of the plurality of experts on factors affecting visibility to form a set of environmental visibility affecting factors; Statistical analysis is performed on the environmental visibility influencing factor set to obtain the first influencing indicator set.
3. The method according to claim 1, characterized in that After obtaining the first light standard, the method further includes: Obtaining a first set of test subjects, wherein the first set of test subjects includes a plurality of test subjects; constructing a first test environment based on the first visibility and the first light standard; Based on the first test environment, sequentially obtain multiple test results of the multiple test personnel; If the plurality of test results do not meet a preset accuracy threshold, the first light standard is adjusted.
4. The method according to claim 1, characterized in that The regulating the photosensitive LED according to the first judgment result includes: If the first analysis result does not meet the preset ambient light standard, obtaining a first control instruction; The photosensitive LED is regulated according to the first regulation instruction.
5. A photosensitive LED control system for self-identification in complex environments, characterized in that: The system comprises: First obtaining unit: The first obtaining unit is used to obtain a first influencing indicator set of environmental visibility, wherein the first influencing indicator set includes multiple indicators; First component unit: The first component unit is used to collect the multiple indicators of the first environment to form first environment information; First construction unit: The first construction unit is used to construct a visibility prediction model using a gradient boosting decision tree algorithm; Second obtaining unit: The second obtaining unit is used to obtain the first visibility of the first environment by using the visibility prediction model according to the first environment information; First setting unit: The first setting unit is used to simulate and obtain the first light standard under the first visibility by using Trace Pro software, and use the first light standard as the preset ambient light standard; A third obtaining unit: the third obtaining unit is used to collect first light information of the first environment, perform light characteristic analysis on the first light information, and obtain a first analysis result; First execution unit: The first execution unit is used to determine whether the first analysis result meets the preset ambient light standard, obtain a first judgment result, and adjust the photosensitive LED according to the first judgment result; Among them, it also includes: The fifth obtaining unit is used to obtain a first training data set according to the historical environmental observation data, wherein the first training data set includes multiple sets of historical environmental information and multiple sets of historical visibility identification information; A second construction unit, the second construction unit is used to construct a first preset decision tree using the first training data set, wherein the number of layers of the first preset decision tree is limited to a random integer a, 10≤a≤15; a sixth obtaining unit, the sixth obtaining unit being used to obtain a first preset accuracy rate, extract a training data set of the first preset decision tree that does not satisfy the first preset accuracy rate, and generate a second training data set; A third construction unit, the third construction unit is used to construct a second preset decision tree using the second training data set, wherein the number of layers of the second preset decision tree is limited to a random integer b, 10≤b≤15; A seventh obtaining unit, wherein the seventh obtaining unit is used to stop training when the data amount of the Mth training data set reaches the first preset data amount, and obtain the M-1th preset decision tree; an eighth obtaining unit, the eighth obtaining unit being configured to perform a sum operation on the first preset decision tree, the second preset decision tree, and up to the M-1th preset decision tree to obtain the visibility prediction model; Among them, it also includes: a ninth obtaining unit, the ninth obtaining unit being used to perform importance analysis on the multiple indicators by using a random forest method to obtain a second analysis result; a tenth obtaining unit, configured to arrange the plurality of indicators in descending order according to the second analysis result to obtain a first arrangement result; a tenth obtaining unit, the tenth obtaining unit being used to screen a preset number of environmental indicators according to the first arrangement result to form a first feature vector set; a second setting unit, the second setting unit being configured to use the environmental information of the first feature vector set as an input of the visibility prediction model; Among them, it also includes: A fourth construction unit, the fourth construction unit is used to construct an ambient light model using Trace Pro software; an eleventh obtaining unit, the eleventh obtaining unit being used to obtain a human vision requirement standard; a twelfth obtaining unit, the twelfth obtaining unit being configured to perform simulation based on the human eye vision requirement standard and using the ambient light model to obtain a first simulation result; A thirteenth obtaining unit, the thirteenth obtaining unit is used to obtain the first light standard according to the first simulation result.
6. An electronic device, characterized in that: including a processor and a memory; The memory is used for storing; The processor is used to execute the method according to any one of claims 1 to 4 by calling.
7. A computer program product comprising a computer program and / or instructions, characterized in that: When the computer program and / or instructions are executed by a processor, the steps of the method described in any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Efficient regulation and control method and system for light environment of hydroponic vegetables based on appropriate root temperature range
CN107329511A
Intelligent lamplight adjusting method and system
CN111954356A
