Plant lighting device control method and system based on tomato growth data
Through the terminal equipment in the smart planting shed, the tomato growth stage identification and light characteristic data analysis are performed, and the lighting device is dynamically adjusted, which solves the problem of tomato elongation and underdevelopment in low light environment, and achieves rapid growth and increased yield of tomatoes.
Patent Information
- Application Number
- CN202411018215.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-09-17
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the existing technology, the tomato growing environment in the smart planting shed is prone to leggy growth and stunted growth under low light conditions due to air pollution, aging of the shed film and adverse climatic conditions, and the existing lighting device cannot be adjusted according to different growth stages. Personalized control of lighting needs.
Using terminal equipment, including image recognition model building module, recognition module, database building module and control logic module, through image recognition and big data analysis, the growth stage of tomatoes is identified and its light characteristic data is obtained, and the light intensity of the plant lighting device is dynamically adjusted. and types to ensure that the tomatoes in each area receive suitable lighting conditions.
Through personalized light management, we can promote the rapid growth of tomatoes, avoid stunting, and increase tomato yield in smart agriculture.
Smart Images

Figure CN118660366A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of lighting devices, and in particular to a plant lighting device control method and system based on tomato growth data. Background Art
[0002] Tomato is a light-loving vegetable. The light environment plays an important role in its growth and development. It not only provides the energy needed for plant growth and development, but also transmits signals for plant growth regulation and light morphology. However, in the actual production process of tomato cultivation, due to the pollution of the atmospheric environment, the aging of the greenhouse film and the influence of adverse climatic conditions, tomatoes grow under weak light conditions for a long time, which leads to problems such as leggy growth and poor development. Artificial lighting is one of the most effective ways to improve the lighting conditions in the facility. In the smart planting shed, many LED lights are often set to supplement the growth process of tomatoes. However, the growth of tomatoes can be divided into multiple stages, and the light type and light intensity required in different stages are consistent. Since the tomatoes in each area of the smart planting shed may be in different growth stages, the existing technology does not take this into account. Instead, the same light type and light intensity are uniformly set to provide light to the tomatoes, which may cause problems such as leggy growth and poor development of tomatoes. Summary of the invention
[0003] The present invention overcomes the deficiencies of the prior art and provides a plant lighting device control method and system based on tomato growth data.
[0004] To achieve the above object, the technical solution adopted by the present invention is: The first aspect of the present invention provides a terminal device, including an image recognition model building module, a recognition module, a database building module and a control logic module: An image recognition model building module is used to obtain image data information of tomatoes at various growth stages, and to construct image training sets corresponding to each growth stage based on the image data information of tomatoes at various growth stages, and to construct a tomato growth stage image recognition model based on the image training sets corresponding to each growth stage; The recognition module is used to arrange a camera in the tomato planting shed, obtain image data information of each area in the tomato planting shed through the camera, recognize the image data information of each area in the tomato planting shed through the tomato growth stage image recognition model, and obtain the growth stage of tomatoes in each area in the tomato planting shed; A database construction module, used to retrieve through big data to obtain the light characteristic data required by tomatoes in various growth stages, construct a tomato growth database according to the light characteristic data required by tomatoes in various growth stages, and regularly update the tomato growth database; The control logic module is used to obtain the lighting characteristic data required by each area in the tomato planting shed according to the growth stage of tomatoes in each area in the tomato planting shed and the tomato growth database, and control the plant lighting device in each area based on the lighting characteristic data required by each area in the tomato planting shed.
[0005] In the terminal device, in the image recognition model building module, the image data information of tomatoes at various growth stages is obtained, and the image training sets corresponding to the various growth stages are constructed according to the image data information of tomatoes at various growth stages, which specifically includes: Obtain image data information of tomatoes at various growth stages, use the image data information of tomatoes at various growth stages as sample data, set the number of images in a training set, initialize the image training set corresponding to each growth stage, and randomly select sample data from the image training set corresponding to each growth stage; After selecting sample data in the image training set corresponding to each growth stage, the image training set corresponding to each growth stage is formed, and the Dice coefficient between the image training sets corresponding to each growth stage is calculated; Setting a Dice coefficient threshold, determining whether the Dice coefficients of the image training sets corresponding to the various growth stages are all greater than the Dice coefficient threshold, and if not, outputting the image training sets corresponding to the various growth stages; When the Dice coefficient between the image training sets corresponding to the respective growth stages is greater than the Dice coefficient threshold, sample data in the image training sets corresponding to the respective growth stages are reselected until the Dice coefficient between the image training sets corresponding to the respective growth stages is no greater than the Dice coefficient threshold.
[0006] In the terminal device, in the image recognition model building module, a tomato growth stage image recognition model is built based on the image training sets corresponding to the various growth stages, specifically: The image training sets corresponding to the various growth stages are input into the BP neural network in batches to construct a tomato growth stage image recognition model, and the number of neuron nodes, the number of hidden layer nodes, the number of input layer nodes, and the number of output layer nodes are initialized to form a network structure; Setting a training rate and an iteration number, and training and iterating the network structure according to the training rate and the iteration number, and saving the model parameters of the tomato growth stage image recognition model when the loss function of the tomato growth stage image recognition model converges to a preset value; After the image training sets corresponding to each growth stage are input into the BP neural network for training, the model parameters of the tomato growth stage image recognition model in each training process are saved, and the final tomato growth stage image recognition model is output.
[0007] In the terminal device, in the recognition module, the growth stage of tomatoes in each area of the tomato planting shed is obtained by recognizing the image data information of each area in the tomato planting shed, specifically: By filtering and denoising the image data information of each area in the tomato planting shed, the pre-processed image data information of each area in the tomato planting shed is obtained; The pre-processed image data information of each area in the tomato planting shed is input into the tomato growth stage image recognition model for recognition, so as to obtain the growth stage of the tomatoes in each area in the tomato planting shed.
[0008] In the terminal device, in the database construction module, the light characteristic data required by tomatoes in various growth stages are retrieved through big data, a tomato growth database is constructed according to the light characteristic data required by tomatoes in various growth stages, and the tomato growth database is regularly updated, specifically including: Setting a search tag, searching through big data according to the search tag, obtaining the light characteristic data required by tomatoes in various growth stages, and taking the growth stage as the first target node and the light characteristic data as the second target node; Constructing a directed description relationship, connecting the first target node and the second target node based on the directed description relationship to form a topological structure graph, and obtaining an adjacency matrix corresponding to the topological structure graph according to the topological structure graph to construct a tomato growth database; The adjacency matrix corresponding to the topological structure diagram is sequentially input into the storage space of the tomato growth database for storage, and a data update time limit is set to obtain the data update time limit of the current tomato growth database; When the data update time limit of the current tomato growth database is greater than a preset data update time limit threshold, the illumination characteristic data is updated based on the data update time limit to regularly update the tomato growth database.
[0009] In this terminal device, in the control logic module, the illumination characteristic data required by each area in the tomato planting shed is obtained according to the growth stage of tomatoes in each area in the tomato planting shed and the tomato growth database, and the plant lighting device in each area is controlled based on the illumination characteristic data required by each area in the tomato planting shed, specifically: Inputting the growth stage of tomatoes in each area of the tomato planting shed into the tomato growth database for retrieval to obtain the light characteristic data required by each area of the tomato planting shed; Initialize the working parameters of the plant lighting device, and obtain the light characteristic data emitted under the working parameters of the plant lighting device by setting a sensor in the tomato planting shed, and determine whether the light characteristic data emitted under the working parameters of the plant lighting device is the light characteristic data required by each area in the tomato planting shed; If the illumination characteristic data emitted under the working parameters of the plant illumination device is not the illumination characteristic data required by each area in the tomato planting shed, then readjusting the working parameters of the plant illumination device until the illumination characteristic data required by each area in the tomato planting shed is reached; If the lighting characteristic data emitted under the working parameters of the plant lighting device are the lighting characteristic data required by each area in the tomato planting shed, the working parameters of the plant lighting device are output, and the plant lighting device in each area is continuously controlled according to the working parameters of the plant lighting device.
[0010] A second aspect of the present invention provides a plant lighting device control method based on tomato growth data, comprising the following steps: Acquire image data information of tomatoes at various growth stages, construct image training sets corresponding to each growth stage according to the image data information of tomatoes at various growth stages, and construct a tomato growth stage image recognition model based on the image training sets corresponding to each growth stage; Arranging a camera in the tomato planting shed, and obtaining image data information of each area in the tomato planting shed through the camera, identifying the image data information of each area in the tomato planting shed through the tomato growth stage image recognition model, and obtaining the growth stage of tomatoes in each area in the tomato planting shed; Retrieving through big data, obtaining the light characteristic data required by tomatoes in various growth stages, building a tomato growth database according to the light characteristic data required by tomatoes in various growth stages, and regularly updating the tomato growth database; According to the growth stage of tomatoes in each area of the tomato planting shed and the tomato growth database, the lighting characteristic data required by each area in the tomato planting shed is obtained, and the plant lighting device in each area is controlled based on the lighting characteristic data required by each area in the tomato planting shed.
[0011] A third aspect of the present invention provides a plant lighting device control system based on tomato growth data, comprising a memory and a processor, wherein the memory comprises a method program, and when the method program is executed by the processor, the following steps are implemented: Acquire image data information of tomatoes at various growth stages, construct image training sets corresponding to each growth stage according to the image data information of tomatoes at various growth stages, and construct a tomato growth stage image recognition model based on the image training sets corresponding to each growth stage; Arranging a camera in the tomato planting shed, and obtaining image data information of each area in the tomato planting shed through the camera, identifying the image data information of each area in the tomato planting shed through the tomato growth stage image recognition model, and obtaining the growth stage of tomatoes in each area in the tomato planting shed; Retrieving through big data, obtaining the light characteristic data required by tomatoes in various growth stages, building a tomato growth database according to the light characteristic data required by tomatoes in various growth stages, and regularly updating the tomato growth database; According to the growth stage of tomatoes in each area of the tomato planting shed and the tomato growth database, the lighting characteristic data required by each area in the tomato planting shed is obtained, and the plant lighting device in each area is controlled based on the lighting characteristic data required by each area in the tomato planting shed.
[0012] The present invention solves the defects existing in the background technology and has the following beneficial effects: The present invention obtains the illumination characteristic data required by each area in the tomato planting shed according to the growth stage of the tomatoes in each area in the tomato planting shed and the tomato growth database, and controls the plant lighting device in each area based on the illumination characteristic data required by each area in the tomato planting shed. The present invention formulates the optimal illumination intensity data according to the growth conditions of the tomatoes in the planting shed, and can further provide light sources for the tomatoes in each planting area according to the optimal illumination intensity data, so that the tomato plants can grow rapidly and avoid stunted growth, thereby increasing the yield of tomatoes in smart agriculture. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in 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 described below are only some embodiments of the present invention. For ordinary technicians in this field, drawings of other embodiments can be obtained based on these drawings without paying creative work.
[0014] Figure 1 A device block diagram of a terminal device is shown; Figure 2 The overall method flow chart of the plant lighting device control method based on tomato growth data is shown; Figure 3 A system block diagram of a plant lighting device control system based on tomato growth data is shown. DETAILED DESCRIPTION
[0015] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0016] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.
[0017] like Figure 1 As shown, the present invention provides a terminal device, which includes an image recognition model building module 10, a recognition module 20, a database construction module 30 and a control logic module 40.
[0018] Among them, in the image recognition model building module 10, in this embodiment, we mainly build an image recognition model of tomato growth stages based on the BP neural network. First, a large number of growth images of tomatoes at various growth stages are collected, and the image data information of tomatoes at various growth stages is used as sample data. The number of images in each training set is set. In this solution, the number of images in the training set corresponding to each growth stage is set to 5000, and sample data in the image training set corresponding to each growth stage is randomly selected; During the training process, since there may be tomato plants at multiple growth stages in an image of a growth stage, a certain image sample data in a training set may contain tomato plants at multiple growth stages, which will cause multi-scale interference during the training process. At this time, the selection of the training set will be very important. In this process, the Dice coefficient measurement method is integrated. After the training set is formed, the Dice coefficient between the training sets is calculated by the Dice coefficient measurement method, where the following relationship is satisfied: ; in, For collection The Dice coefficient value between Represents the i-th training set Represents the i+1th training set ; The Dice coefficient values between training sets are calculated by the above relationship (the range is 0-1). When the Dice coefficient value is greater than the preset Dice coefficient value (set to 0.01 in this case), that is, if there is an image data of a tomato plant in multiple growth stages among the 100 samples, it is an unqualified training set and the sample data in the training set needs to be reset until the Dice coefficients between the image training sets corresponding to each growth stage are not greater than the preset Dice coefficient threshold. This technical means can suppress the interference caused by multi-scale features during the training process and improve the recognition accuracy of tomatoes at various growth stages.
[0019] In the recognition module 20, after the training set is completed, the parameters of the BP neural network structure are set, where the number of neuron nodes in the network input layer is the number of characteristic factors (independent variables) of the system, and the number of neuron nodes in the output layer is the number of system targets. The hidden layer nodes are selected according to experience and are generally set to 75% of the number of input layer nodes. If the input layer has 7 nodes and the output layer has 1 node, then the hidden layer can be temporarily set to 5 nodes, that is, a 7-5-1 BP neural network model is formed. When the system is trained, it is actually necessary to compare different numbers of hidden layer nodes 4, 5, and 6 respectively, and finally determine the most reasonable network structure. Secondly, set the initial weight value, and set a random number between 0.5 and 1 as the initial weight of the network. Secondly, in the classic BP algorithm, the training rate is determined by experience. The larger the training rate, the greater the weight change and the faster the convergence; but if the training rate is too large, it will cause the system to oscillate. Therefore, the training rate is as large as possible without causing oscillation. In this method, the minimum training rate is 0.9. The number of iterations is 1000. Since neural network calculation cannot guarantee the convergence of iteration results under various parameter configurations, when the iteration results do not converge, the maximum number of iterations is allowed. When the loss function of the recognition model converges to the preset value, the model parameters are saved. At this time, one training is completed. When the image training set corresponding to each growth stage is input into the BP neural network training, the model parameters of the tomato growth stage image recognition model in each training process are saved, and the final tomato growth stage image recognition model is output. Therefore, after filtering and denoising the collected images, the final tomato growth stage image recognition model is used to identify the growth stage of tomatoes in each area of the tomato planting shed, so as to formulate more suitable lighting feature data (light intensity, light type, etc.).
[0020] In the database construction module 30, when formulating more suitable illumination characteristic data, the illumination characteristic data required by tomatoes in various growth stages are mainly obtained by searching such data through the big data network, and the illumination characteristic data required by tomatoes in various growth stages are stored in the database, and the illumination characteristic data required by tomatoes in various growth stages are obtained by calling the data, wherein the growth stage is used as the first target node and the illumination characteristic data is used as the second target node, and a directed description relationship is created, so that the first target node points to the second target node, forming a topological structure diagram constructed by the tomato growth stage and the required illumination characteristic data, and since the topological structure diagram can be described by the adjacency matrix, the adjacency matrix is input into the database for storage. However, big data is constantly updated, and at this time, the database needs to be updated regularly. In this embodiment, it is set to be updated once a month.
[0021] In the control logic module 40, since different working parameter data will cause changes in the light intensity, light type, etc. of the plant lighting device, in the process of controlling the plant lighting device, the growth stage of tomatoes in each area in the tomato planting shed is mainly input into the tomato growth database for retrieval, and the light characteristic data required by each area in the tomato planting shed is obtained, and the working parameters of the plant lighting device are initialized, and the light characteristic data emitted under the working parameters of the plant lighting device is obtained by setting a sensor in the tomato planting shed, and it is determined whether the light characteristic data emitted under the working parameters of the plant lighting device is the light characteristic data required by each area in the tomato planting shed; the light characteristic data emitted under the working parameters of the plant lighting device is not the light characteristic data required by each area in the tomato planting shed According to the lighting characteristic data required by each area, the working parameters of the plant lighting device are readjusted until they are the lighting characteristic data required by each area in the tomato planting shed; if the lighting characteristic data emitted under the working parameters of the plant lighting device are the lighting characteristic data required by each area in the tomato planting shed, the working parameters of the plant lighting device are output, and the plant lighting device in each area is continuously controlled according to the working parameters of the plant lighting device, so as to formulate the optimal light intensity data according to the growth conditions of the tomatoes in the planting shed, and further provide light sources for the tomatoes in each planting area according to the optimal light intensity data, so as to enable the tomato plants to grow rapidly and avoid poor development, wherein the working parameters of the plant lighting device include current value, voltage value, brightness value and other data.
[0022] like Figure 2 As shown, the above practical qualitative content can be summarized as a plant lighting device control method based on tomato growth data, which specifically includes the following steps: S102: Acquire image data information of tomatoes at various growth stages, construct image training sets corresponding to various growth stages according to the image data information of tomatoes at various growth stages, and construct a tomato growth stage image recognition model based on the image training sets corresponding to various growth stages; S104: Arranging a camera in the tomato planting shed and obtaining image data information of each area in the tomato planting shed through the camera, identifying the image data information of each area in the tomato planting shed through the tomato growth stage image recognition model, and obtaining the growth stage of tomatoes in each area in the tomato planting shed; S106: searching through big data to obtain the light characteristic data required by tomatoes in various growth stages, constructing a tomato growth database according to the light characteristic data required by tomatoes in various growth stages, and regularly updating the tomato growth database; S108: Obtaining the lighting characteristic data required by each area in the tomato planting shed according to the growth stage of tomatoes in each area in the tomato planting shed and the tomato growth database, and controlling the plant lighting device in each area based on the lighting characteristic data required by each area in the tomato planting shed.
[0023] Among them, according to this embodiment, by arranging a camera device in a tomato planting shed and obtaining image data information of each area in the tomato planting shed through the camera device, it can also include: obtaining location information of the tomato planting area and area information of the tomato planting area, and obtaining historical average growth height data of tomatoes through big data, setting the height position of the camera device according to the historical average growth height data of tomatoes, and initializing the rectangular coordinate installation position of the camera device; simulating the installation of the camera device according to the rectangular coordinate installation position of the camera device and the height position of the camera device, obtaining an installation simulation diagram, and simulating the camera area that each camera device in the installation simulation diagram can capture images to obtain the total camera area area; when the total camera area area is smaller than the area information of the tomato planting area, readjusting the rectangular coordinate installation position of the camera device until the total camera area area is not less than the area information of the tomato planting area; when the total camera area area is not less than the area information of the tomato planting area, outputting the installation position of the camera device, installing the camera device according to the installation position of the camera device, and obtaining image data information of each area in the tomato planting shed through the camera device.
[0024] It should be noted that in this case, the average growth of tomatoes was fully taken into consideration, so that a better camera installation position was determined based on the historical average growth height data of tomatoes. Virtual reality technology was used to simulate the area that the camera could capture, so that the total camera area was not less than the area information of the tomato planting area, allowing all-round monitoring of each tomato plant.
[0025] Among them, according to this embodiment, the method may also include: obtaining the characteristic data of the lighting performance changes of the plant lighting device under different working parameters through big data, and constructing a lighting characteristic data prediction model based on a deep neural network, inputting the characteristic data of the lighting performance changes of the plant lighting device under different working parameters into the lighting characteristic data prediction model for training, and obtaining the trained lighting characteristic data prediction model; obtaining the characteristic data of the lighting performance changes of the plant lighting device within a preset time, inputting the characteristic data of the lighting performance changes of the plant lighting device within the preset time into the trained lighting characteristic data prediction model for prediction, and obtaining the lighting performance of the plant lighting device under different working parameters at the current timestamp. Characteristic data, and obtain the working parameter information of the plant lighting device in each area, and generate the lighting characteristic data of the plant lighting device in each area under the current working parameters according to the working parameter information of the plant lighting device in each area and the lighting characteristic data of the plant lighting device under different working parameters in the current timestamp. When the deviation value between the lighting characteristic data of the plant lighting device in each area under the current working parameters and the lighting characteristic data required by tomatoes in each area is greater than the preset deviation threshold, the working parameters corresponding to the lighting characteristic data required by tomatoes in the current timestamp are obtained, and the working parameters of the current plant lighting device are compensated according to the working parameters corresponding to the lighting characteristic data required by tomatoes in the current timestamp. It should be noted that, in fact, the luminous performance of the plant lighting device will degrade over time. Through this method, the working parameters of the current plant lighting device can be further optimized to improve the rationality of the control of the plant lighting device.
[0026] like Figure 3 As shown, the present invention also provides a plant lighting device control system 5 based on tomato growth data, including a memory 50 and a processor 51. The memory 50 includes a method program. When the method program is executed by the processor 51, the following steps are implemented: Acquire image data information of tomatoes at various growth stages, construct image training sets corresponding to each growth stage according to the image data information of tomatoes at various growth stages, and construct a tomato growth stage image recognition model based on the image training sets corresponding to each growth stage; Arranging a camera in the tomato planting shed, and obtaining image data information of each area in the tomato planting shed through the camera, identifying the image data information of each area in the tomato planting shed through the tomato growth stage image recognition model, and obtaining the growth stage of tomatoes in each area in the tomato planting shed; Retrieving through big data, obtaining the light characteristic data required by tomatoes in various growth stages, building a tomato growth database according to the light characteristic data required by tomatoes in various growth stages, and regularly updating the tomato growth database; According to the growth stage of tomatoes in each area of the tomato planting shed and the tomato growth database, the lighting characteristic data required by each area in the tomato planting shed is obtained, and the plant lighting device in each area is controlled based on the lighting characteristic data required by each area in the tomato planting shed.
[0027] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0028] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0029] In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0030] A person of ordinary skill in the art can understand that: all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: a mobile storage device, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0031] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the methods of each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.
[0032] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A terminal device, It is characterized in that include: An image recognition model building module is used to obtain image data information of tomatoes at various growth stages, and to construct image training sets corresponding to each growth stage based on the image data information of tomatoes at various growth stages, and to construct a tomato growth stage image recognition model based on the image training sets corresponding to each growth stage; The recognition module is used to arrange a camera in the tomato planting shed, obtain image data information of each area in the tomato planting shed through the camera, recognize the image data information of each area in the tomato planting shed through the tomato growth stage image recognition model, and obtain the growth stage of tomatoes in each area in the tomato planting shed; A database construction module, used to retrieve through big data to obtain the light characteristic data required by tomatoes in various growth stages, construct a tomato growth database according to the light characteristic data required by tomatoes in various growth stages, and regularly update the tomato growth database; The control logic module is used to obtain the lighting characteristic data required by each area in the tomato planting shed according to the growth stage of tomatoes in each area in the tomato planting shed and the tomato growth database, and control the plant lighting device in each area based on the lighting characteristic data required by each area in the tomato planting shed.
2. The terminal device according to claim 1, It is characterized in that In the image recognition model building module, the acquisition of image data information of tomatoes at various growth stages and the construction of image training sets corresponding to various growth stages according to the image data information of tomatoes at various growth stages specifically include: Obtain image data information of tomatoes at various growth stages, use the image data information of tomatoes at various growth stages as sample data, set the number of images in a training set, initialize the image training set corresponding to each growth stage, and randomly select sample data from the image training set corresponding to each growth stage; After selecting sample data in the image training set corresponding to each growth stage, the image training set corresponding to each growth stage is formed, and the Dice coefficient between the image training sets corresponding to each growth stage is calculated; Setting a Dice coefficient threshold, determining whether the Dice coefficients of the image training sets corresponding to the various growth stages are all greater than the Dice coefficient threshold, and if not, outputting the image training sets corresponding to the various growth stages; When the Dice coefficient between the image training sets corresponding to the respective growth stages is greater than the Dice coefficient threshold, sample data in the image training sets corresponding to the respective growth stages are reselected until the Dice coefficient between the image training sets corresponding to the respective growth stages is no greater than the Dice coefficient threshold.
3. The terminal device according to claim 1, It is characterized in that In the image recognition model building module, a tomato growth stage image recognition model is constructed based on the image training sets corresponding to the various growth stages, specifically: The image training sets corresponding to the various growth stages are input into the BP neural network in batches to construct a tomato growth stage image recognition model, and the number of neuron nodes, the number of hidden layer nodes, the number of input layer nodes, and the number of output layer nodes are initialized to form a network structure; Setting a training rate and an iteration number, and training and iterating the network structure according to the training rate and the iteration number, and saving the model parameters of the tomato growth stage image recognition model when the loss function of the tomato growth stage image recognition model converges to a preset value; After the image training sets corresponding to each growth stage are input into the BP neural network for training, the model parameters of the tomato growth stage image recognition model in each training process are saved, and the final tomato growth stage image recognition model is output.
4. The terminal device according to claim 1, It is characterized in that In the recognition module, the growth stage of tomatoes in each area of the tomato planting shed is obtained by recognizing the image data information of each area in the tomato planting shed, specifically: By filtering and denoising the image data information of each area in the tomato planting shed, the pre-processed image data information of each area in the tomato planting shed is obtained; The pre-processed image data information of each area in the tomato planting shed is input into the tomato growth stage image recognition model for recognition, so as to obtain the growth stage of the tomatoes in each area in the tomato planting shed.
5. The terminal device according to claim 1, It is characterized in that In the database construction module, the light characteristic data required by tomatoes in various growth stages are retrieved through big data, a tomato growth database is constructed according to the light characteristic data required by tomatoes in various growth stages, and the tomato growth database is updated regularly, specifically including: Setting a search tag, searching through big data according to the search tag, obtaining the light characteristic data required by tomatoes in various growth stages, and taking the growth stage as the first target node and the light characteristic data as the second target node; Constructing a directed description relationship, connecting the first target node and the second target node based on the directed description relationship to form a topological structure graph, and obtaining an adjacency matrix corresponding to the topological structure graph according to the topological structure graph to construct a tomato growth database; The adjacency matrix corresponding to the topological structure diagram is sequentially input into the storage space of the tomato growth database for storage, and a data update time limit is set to obtain the data update time limit of the current tomato growth database; When the data update time limit of the current tomato growth database is greater than a preset data update time limit threshold, the illumination characteristic data is updated based on the data update time limit to regularly update the tomato growth database.
6. The terminal device according to claim 1, It is characterized in that In the control logic module, the illumination characteristic data required by each area in the tomato planting shed is obtained according to the growth stage of tomatoes in each area in the tomato planting shed and the tomato growth database, and the plant lighting device in each area is controlled based on the illumination characteristic data required by each area in the tomato planting shed, specifically: Inputting the growth stage of tomatoes in each area of the tomato planting shed into the tomato growth database for retrieval to obtain the light characteristic data required by each area of the tomato planting shed; Initialize the working parameters of the plant lighting device, and obtain the light characteristic data emitted under the working parameters of the plant lighting device by setting a sensor in the tomato planting shed, and determine whether the light characteristic data emitted under the working parameters of the plant lighting device is the light characteristic data required by each area in the tomato planting shed; If the illumination characteristic data emitted under the working parameters of the plant illumination device is not the illumination characteristic data required by each area in the tomato planting shed, then readjusting the working parameters of the plant illumination device until the illumination characteristic data required by each area in the tomato planting shed is reached; If the lighting characteristic data emitted under the working parameters of the plant lighting device are the lighting characteristic data required by each area in the tomato planting shed, the working parameters of the plant lighting device are output, and the plant lighting device in each area is continuously controlled according to the working parameters of the plant lighting device.
7. Plant lighting device control method based on tomato growth data, It is characterized in that The following steps are involved: Acquire image data information of tomatoes at various growth stages, construct image training sets corresponding to each growth stage according to the image data information of tomatoes at various growth stages, and construct a tomato growth stage image recognition model based on the image training sets corresponding to each growth stage; Arranging a camera in the tomato planting shed, and obtaining image data information of each area in the tomato planting shed through the camera, identifying the image data information of each area in the tomato planting shed through the tomato growth stage image recognition model, and obtaining the growth stage of tomatoes in each area in the tomato planting shed; Retrieving through big data, obtaining the light characteristic data required by tomatoes in various growth stages, building a tomato growth database according to the light characteristic data required by tomatoes in various growth stages, and regularly updating the tomato growth database; According to the growth stage of tomatoes in each area of the tomato planting shed and the tomato growth database, the lighting characteristic data required by each area in the tomato planting shed is obtained, and the plant lighting device in each area is controlled based on the lighting characteristic data required by each area in the tomato planting shed.
8. Plant lighting control system based on tomato growth data, It is characterized in that The method comprises a memory and a processor, wherein the memory comprises a method program, and when the method program is executed by the processor, the following steps are implemented: Acquire image data information of tomatoes at various growth stages, construct image training sets corresponding to each growth stage according to the image data information of tomatoes at various growth stages, and construct a tomato growth stage image recognition model based on the image training sets corresponding to each growth stage; Arranging a camera in the tomato planting shed, and obtaining image data information of each area in the tomato planting shed through the camera, identifying the image data information of each area in the tomato planting shed through the tomato growth stage image recognition model, and obtaining the growth stage of tomatoes in each area in the tomato planting shed; Retrieving through big data, obtaining the light characteristic data required by tomatoes in various growth stages, building a tomato growth database according to the light characteristic data required by tomatoes in various growth stages, and regularly updating the tomato growth database; According to the growth stage of tomatoes in each area of the tomato planting shed and the tomato growth database, the lighting characteristic data required by each area in the tomato planting shed is obtained, and the plant lighting device in each area is controlled based on the lighting characteristic data required by each area in the tomato planting shed.
Citation Information
Cited By
Lighting equipment control method and system in tomato planting process
CN118714705A
A lighting equipment control method and system in tomato planting process
CN118714705B
Tomato cultivation control system based on illumination parameter adjustment
CN120323240A
