CN114451257A - Irrigation method and device based on neural network, storage medium and electronic equipment - Google Patents
Irrigation method and device based on neural network, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN114451257A CN114451257A CN202111589819.2A CN202111589819A CN114451257A CN 114451257 A CN114451257 A CN 114451257A CN 202111589819 A CN202111589819 A CN 202111589819A CN 114451257 A CN114451257 A CN 114451257A
- Authority
- CN
- China
- Prior art keywords
- data
- vector
- sensor
- irrigation
- determining
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000003973 irrigation Methods 0.000 title claims abstract description 95
- 230000002262 irrigation Effects 0.000 title claims abstract description 95
- 238000000034 method Methods 0.000 title claims abstract description 67
- 238000013528 artificial neural network Methods 0.000 title claims abstract description 27
- 238000012549 training Methods 0.000 claims description 36
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 claims description 21
- 230000003287 optical effect Effects 0.000 claims description 17
- 238000012360 testing method Methods 0.000 claims description 13
- 238000003062 neural network model Methods 0.000 claims description 12
- 238000004590 computer program Methods 0.000 claims description 5
- 238000013507 mapping Methods 0.000 claims description 4
- 230000008569 process Effects 0.000 description 11
- 230000008859 change Effects 0.000 description 8
- 238000004891 communication Methods 0.000 description 7
- 230000007613 environmental effect Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000005286 illumination Methods 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 206010063385 Intellectualisation Diseases 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 238000007781 pre-processing Methods 0.000 description 1
- 239000007921 spray Substances 0.000 description 1
- 230000035899 viability Effects 0.000 description 1
Images
Classifications
-
- A—HUMAN NECESSITIES
- A01—AGRICULTURE; FORESTRY; ANIMAL HUSBANDRY; HUNTING; TRAPPING; FISHING
- A01G—HORTICULTURE; CULTIVATION OF VEGETABLES, FLOWERS, RICE, FRUIT, VINES, HOPS OR SEAWEED; FORESTRY; WATERING
- A01G25/00—Watering gardens, fields, sports grounds or the like
-
- A—HUMAN NECESSITIES
- A01—AGRICULTURE; FORESTRY; ANIMAL HUSBANDRY; HUNTING; TRAPPING; FISHING
- A01G—HORTICULTURE; CULTIVATION OF VEGETABLES, FLOWERS, RICE, FRUIT, VINES, HOPS OR SEAWEED; FORESTRY; WATERING
- A01G25/00—Watering gardens, fields, sports grounds or the like
- A01G25/16—Control of watering
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02A—TECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
- Y02A40/00—Adaptation technologies in agriculture, forestry, livestock or agroalimentary production
- Y02A40/10—Adaptation technologies in agriculture, forestry, livestock or agroalimentary production in agriculture
- Y02A40/22—Improving land use; Improving water use or availability; Controlling erosion
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Life Sciences & Earth Sciences (AREA)
- General Health & Medical Sciences (AREA)
- General Engineering & Computer Science (AREA)
- Biophysics (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Evolutionary Computation (AREA)
- Artificial Intelligence (AREA)
- Molecular Biology (AREA)
- Computing Systems (AREA)
- Biomedical Technology (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Health & Medical Sciences (AREA)
- Water Supply & Treatment (AREA)
- Environmental Sciences (AREA)
- Air Conditioning Control Device (AREA)
- Feedback Control In General (AREA)
Abstract
The invention discloses an irrigation method based on a neural network, which comprises the following steps: respectively acquiring first data acquired by a humidity sensor, a temperature sensor and a light sensor at a first preset time interval; determining a metadata vector based on the first data; and under the condition that the metadata vector is input into a pre-established prediction model and then the irrigation is determined to be needed, controlling an irrigation system to irrigate according to the irrigation quantity output by the prediction model.
Description
Technical Field
The invention relates to the field of irrigation, in particular to an irrigation method and device based on a neural network, a storage medium and electronic equipment.
Background
Greening is also an important component of the community, and a great deal of manpower is spent annually on maintaining irrigation in order to maintain the viability of greening.
Some current intelligent irrigation systems directly use all the data collected at the same time point as one piece of data of an input layer. Even if the conditions of illumination and temperature are considered, the intelligent control model is not trained by using a machine learning method, and only one variable is controlled by using an embedded chip, so that the intelligent degree is not high, and meanwhile, the prediction on the change of weather is not sufficient.
Disclosure of Invention
In order to solve the technical problem that the existing intelligent irrigation system cannot meet intelligent irrigation, the invention provides an irrigation method based on a neural network, which comprises the following steps:
respectively acquiring first data acquired by a humidity sensor, a temperature sensor and a light sensor at a first preset time interval;
determining a metadata vector based on the first data;
determining a metadata vector based on the first data, wherein the metadata vector comprises a humidity sensor vector, a temperature sensor vector, and a light sensor vector;
and under the condition that the metadata vector is input into a pre-established prediction model and then irrigation is determined to be needed, controlling an irrigation system to irrigate according to the irrigation quantity output by the prediction model.
In some embodiments, said determining a metadata vector based on said first data comprises:
respectively determining the difference value between the humidity sensor values of every two adjacent moments in the first data of the humidity sensor to obtain first equal difference value data of the humidity sensor;
a humidity sensor vector is determined based on the first arithmetic difference data and a last moment sensor value in the first data of the humidity sensor.
In some embodiments, said determining a metadata vector based on said first data comprises:
respectively determining the difference value between the temperature sensor values of every two adjacent moments in the first data of the temperature sensors to obtain second equal-grade difference value data of the temperature sensors;
determining the temperature sensor vector based on the second equal difference data and the last moment sensor value in the first data of the temperature sensor.
In some embodiments, said determining a metadata vector based on said first data comprises:
respectively determining the difference value between the optical sensor values of every two adjacent moments in the first data of the optical sensor to obtain third equal difference value data of the optical sensor;
determining the light sensor vector based on the third isodyne data and a last moment sensor value in the first data of the light sensor.
In some embodiments, the method further comprises:
acquiring water consumption data in real time;
and controlling the irrigation system to stop irrigating when the water consumption data reaches the irrigation amount output by the prediction model.
In some embodiments, the method further comprises:
respectively acquiring second data acquired by the humidity sensor, the temperature sensor and the optical sensor at a second preset time interval;
determining a sample metadata vector based on the second data;
generating training data based on the sample metadata vector, whether irrigation is required and a mapping relationship between irrigation amounts, wherein the sample metadata vector comprises a sample humidity sensor vector, a sample temperature sensor vector and a sample light sensor vector;
the predictive model is derived based on the training data.
In some embodiments, said deriving said predictive model based on said training data comprises:
dividing the training data into a training set and a test set;
inputting the training set into a neural network model for training, and using the test set to test the accuracy of the neural network model;
and determining the neural network model as the prediction model under the condition that the accuracy of the neural network model meets the requirement.
The present invention also provides an irrigation device based on a neural network, comprising:
the acquisition module is used for respectively acquiring first data acquired by the humidity sensor, the temperature sensor and the optical sensor at a first preset time interval;
a determination module to determine a metadata vector based on the first data, wherein the metadata vector includes a humidity sensor vector, a temperature sensor vector, and a light sensor vector;
and the control module is used for controlling the irrigation system to irrigate according to the irrigation quantity output by the prediction model under the condition that the metadata vector is input into the pre-established prediction model and then the irrigation is determined to be needed.
The invention also provides an electronic device comprising a memory and a processor, the memory having stored thereon a computer program which, when executed by the processor, performs the control method as described above.
The present invention also provides a storage medium storing a computer program executable by one or more processors and operable to implement the control method as described above.
Compared with the prior art, one or more embodiments in the above scheme can have the following advantages or beneficial effects:
all data collected by different sensors at different time points are input as one data of an input layer, so that the intelligence degree of the intelligent irrigation system is obviously improved, the intellectualization of the irrigation system is realized, and the purposes of saving manpower, saving water resources and efficiently irrigating are achieved.
Drawings
The scope of the present disclosure may be better understood by reading the following detailed description of exemplary embodiments in conjunction with the accompanying drawings. Wherein the included drawings are:
fig. 1 is a schematic flow chart of an irrigation method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of an irrigation method according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of an irrigation method according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of an irrigation device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail with reference to the accompanying drawings, the described embodiments should not be construed as limiting the present invention, and all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
To the extent that a similar description of "first/second/third" appears in this document, and where the description below refers to the term "first/second/third" merely to distinguish between similar items and not to imply a particular order of presentation of the items, it is to be understood that "first/second/third" may, where permissible, be interchanged of a particular order or sequence so that embodiments of the invention described herein may be practiced otherwise than as specifically illustrated or described herein.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein is for the purpose of describing embodiments of the invention only and is not intended to be limiting of the invention.
Based on the problems in the related art, the embodiments of the present invention provide an irrigation method, which is applied to an electronic device, where the electronic device may be a computer, a mobile terminal, and the like, and the functions implemented by the control method provided by the embodiments of the present invention may be implemented by a processor of the electronic device calling a program code, where the program code may be stored in a computer storage medium.
An embodiment of the present invention provides an irrigation method, and fig. 1 is a schematic flow chart illustrating an implementation of the irrigation method according to the embodiment of the present invention, as shown in fig. 1, including the following steps.
Step S101: first data collected by a humidity sensor, a temperature sensor and a light sensor at a first preset time interval are respectively obtained.
Step S201: a metadata vector is determined based on the first data.
In particular, the metadata vector includes a humidity sensor vector, a temperature sensor vector, and a light sensor vector.
Step S301: and under the condition that the metadata vector is input into a pre-established prediction model and then irrigation is determined to be needed, controlling an irrigation system to irrigate according to the irrigation quantity output by the prediction model.
Based on the above, the irrigation method based on the neural network provided by the invention inputs all data acquired by different sensors at different time points as one piece of data of the input layer, so that the intelligence degree of the intelligent irrigation system is obviously improved, the intelligence of the irrigation system is realized, and the purposes of saving manpower, saving water resources and efficiently irrigating are achieved.
In some embodiments, said determining a metadata vector based on said first data comprises:
respectively determining the difference value between the humidity sensor values of every two adjacent moments in the first data of the humidity sensor to obtain first equal difference value data of the humidity sensor;
a humidity sensor vector is determined based on the first arithmetic difference data and a last moment sensor value in the first data of the humidity sensor.
Based on the method, all data collected by different sensors at different time points are input as one piece of data of an input layer, and a group of new humidity data can be obtained by sliding a time point backwards, including time change, so that the model can adapt to environmental change, the intelligence degree of the model is improved, and water resources are reasonably utilized.
In some embodiments, said determining a metadata vector based on said first data comprises:
respectively determining the difference value between the temperature sensor values of every two adjacent moments in the first data of the temperature sensors to obtain second equal-grade difference value data of the temperature sensors;
determining the temperature sensor vector based on the second equal difference data and the last moment sensor value in the first data of the temperature sensor.
Based on the method, all data collected by different sensors at different time points are input as one piece of data of an input layer, and a group of new temperature data including time change can be obtained by sliding a time point backwards, so that the model can adapt to environmental change, the intelligence degree of the model is improved, and water resources are reasonably utilized.
In some embodiments, said determining a metadata vector based on said first data comprises:
respectively determining the difference value between the optical sensor values of every two adjacent moments in the first data of the optical sensor to obtain third equal difference value data of the optical sensor;
determining the light sensor vector based on the third isodyne data and a last moment sensor value in the first data of the light sensor.
Based on the method, all data collected by different sensors at different time points are input as one piece of data of an input layer, and a group of new light data can be obtained by sliding a time point backwards, including time change, so that a model can adapt to environmental change, the intelligence degree of the model is improved, and water resources are reasonably utilized.
In some embodiments, the method further comprises:
acquiring water consumption data in real time;
and controlling the irrigation system to stop irrigating when the water consumption data reaches the irrigation amount output by the prediction model.
Based on the method, the water consumption data is monitored in real time, the intelligent control system stops irrigation, and the purposes of saving manpower and water resources and efficiently irrigating are achieved.
In some embodiments, the method further comprises:
respectively acquiring second data acquired by the humidity sensor, the temperature sensor and the optical sensor at a second preset time interval;
determining a sample metadata vector based on the second data;
generating training data based on the sample metadata vector, whether irrigation is needed and the mapping relation between the irrigation quantity;
the predictive model is derived based on the training data.
In particular, the sample metadata vector includes a sample humidity sensor vector, a sample temperature sensor vector, and a sample light sensor vector.
Based on the above, the irrigation method based on the neural network provided by the invention inputs all data acquired by different sensors at different time points as one piece of data of an input layer to train the neural network, so that the intelligence degree of the intelligent irrigation system is obviously improved, and the intelligence of the irrigation system is realized.
In some embodiments, said deriving said predictive model based on said training data comprises:
dividing the training data into a training set and a test set;
inputting the training set into a neural network model for training, and using the test set to test the accuracy of the neural network model;
and determining the neural network model as the prediction model under the condition that the accuracy of the neural network model meets the requirement.
Based on the neural network, the irrigation method based on the neural network provided by the invention uses the neural network, so that the intelligence degree of the intelligent irrigation system is obviously improved, and the intelligence of the irrigation system is realized.
Fig. 2 and fig. 3 are a specific implementation flow of an irrigation method based on a neural network according to an embodiment of the present invention.
The embodiment is provided with a sensor module (comprising a humidity sensor, a temperature sensor and an illumination sensor), a control module and an irrigation module. The sensor module integrates a plurality of sensors into a whole, and is convenient to install. The underground part is provided with a humidity sensor, and the overground part is provided with a temperature sensor and an illumination sensor. It should be noted that a plurality of sensor modules may be disposed, but the disposing of the plurality of sensor modules requires special processing to avoid the occurrence of single-point failure or uneven illumination. The server module is connected to the sensor and the irrigation nozzle and used as a carrier of the operation control software system. The irrigation module consists of an electric control water valve, an electronic water meter and a rotary irrigation spray head.
As shown in fig. 2, the model training process used by the intelligent irrigation system is as follows.
S11: data of each sensor (only one of each sensor) in the experimental environment is collected and stored. The main information of the acquired data comprises recording time T, a value X of a humidity sensor, a value Y of temperature sensor data and a value Z of a light sensor, and six continuous times of data acquired every half hour form a group and serve as an acquired data unit.
S12: preprocessing acquired data before training: processing missing values: and discarding the data aiming at the missing recording time. For the missing sensor data, 6 pieces of data before and after the time point of using the missing value (data acquired by each sensor) were used as samples, and the missing value was filled by taking the median thereof.
And (3) format arrangement: and the data is arranged into data with a unified format, so that the subsequent processing is facilitated.
S13: and distinguishing the processed data. The method comprises the following steps of dividing the training set into a training set and a testing set, wherein the training set is used for training a model, and the testing set is used for verifying whether the trained model meets the standard.
S14: and (5) carrying out RBF training by taking the training set as an input layer. The data recording the time of humidity sensor, temperature sensor and light sensor tm are respectively Xm、Ym、ZmM 6 × (1,2, 3.), a set of data of the humidity sensor is obtained [ X × (1,2, 3.) ]m-5,Xm-4,Xm-3,Xm-2,Xm-1,Xm]Is equal to the difference and added with tmTime sensor value XmTo obtain a vector TXm:
[Xm-4-Xm-5,Xm-3-Xm-4,Xm-2-Xm-3,Xm-1-Xm-2,Xm-Xm-1,Xm]。
In the same way, the vector T of the temperature sensor is obtainedYmAnd a photosensor vector TZm:
[Ym-4-Ym-5,Ym-3-Ym-4,Ym-2-Ym-3,Ym-1-Ym-2,Ym-Ym-1,Ym],
[Zm-4-Zm-5,Zm-3-Zm-4,Zm-2-Zm-3,Zm-1-Zm-2,Zm-Zm-1,Zm]。
The purpose of this is to make the data closer to real environmental changes, reflecting to some extent their variability. Thus obtaining a metadata vector Mm={TXm,TYm,TZmAnd then training by using an RBF neural network according to the mapping relation between the sensor data and the irrigation quantity to obtain a training result.
Specifically, a BP neural network can be used in the RBF training process, and during training, the BP neural network can be self-adaptively memorized in the weight of the neural network by learning rules among self-extracted data, so that the RBF training method has good self-learning and self-adaptive capabilities. In addition, the RBF is a feedforward neural network with excellent performance and has global approximation capability, so that the problem of partial optimal solution of the BP network is solved, the RBF can better approximate to a real environment during training, and the change of the real environment is reflected.
S15: and (4) testing and evaluating the trained data by using the test set, and judging whether the accuracy meets the specified standard or not. If not, the model is parameter-adjusted and the process returns to S14. If yes, the next step is carried out.
S16: and after the file data generated in the training process is arranged, packaging an interface and compiling an irrigation system program.
As shown in fig. 3, the overall operation of the irrigation system is as follows.
S21: data of each sensor is collected at intervals, and the interval period is 30 minutes.
S22: and uploading the data acquired in the previous step, and storing the data in the system for the next judgment of the system.
S23: the system judges irrigation once per hour, calculates whether irrigation is carried out or not, continuously calculates the irrigation quantity N if irrigation is needed, and continues to the next step. If irrigation is not required, the process returns to step S21.
It should be noted that "three hours" here is the front-to-back span of a group of data times, and "thirty minutes" is the interval between two adjacent time points in the group of data. The "three hours" depends on the number of time points and the interval of adjacent time points of each set of data. Too long an interval may not represent "environmental variability"; too short an interval tends to make the data dimension too high, i.e. too many variables for a single input data. In the present invention, they may be controlled within a certain reasonable range.
S24: the system sends an irrigation instruction to the electric control water valve to start irrigation.
S25: during the irrigation period, the system collects water consumption data continuously fed back by the electronic water meter.
S26: and calculating and judging whether the specified amount to be irrigated is reached, if so, carrying out the next step, and if not, returning to the previous step.
S27: the system sends an instruction to stop irrigation to the electrically controlled water valve and then returns to step S21.
Based on the above, the irrigation method based on the neural network provided by the invention inputs all data acquired by different sensors at different time points as one piece of data of the input layer, so that the intelligence degree of the intelligent irrigation system is obviously improved, the intelligence of the irrigation system is realized, and the purposes of saving manpower, saving water resources and efficiently irrigating are achieved.
The invention also provides an irrigation device based on the neural network. Fig. 4 is a schematic structural diagram of an irrigation device based on a neural network according to an embodiment of the present invention. As shown in fig. 4, the neural network-based irrigation apparatus 500 includes the following modules.
The acquiring module 501 is configured to acquire first data acquired by the humidity sensor, the temperature sensor, and the light sensor at a first preset time interval, respectively.
A determining module 502 for determining a metadata vector based on the first data.
In particular, the metadata vector includes a humidity sensor vector, a temperature sensor vector, and a light sensor vector.
And the control module 503 is configured to, when it is determined that irrigation is required after the metadata vector is input into the pre-established prediction model, control the irrigation system to irrigate with the irrigation quantity output by the prediction model.
Based on the above, the irrigation device based on the neural network provided by the invention inputs all data acquired by different sensors at different time points as one piece of data of the input layer, so that the intelligence degree of the intelligent irrigation system is obviously improved, the intellectualization of the irrigation system is realized, and the purposes of saving manpower, saving water resources and efficiently irrigating are achieved.
It should be noted that, in the embodiment of the present invention, if the neural network-based irrigation method is implemented in the form of a software functional module and is sold or used as a standalone product, it may also be stored in a computer-readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a magnetic disk, or an optical disk. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
Accordingly, an embodiment of the present invention provides a storage medium having a computer program stored thereon, wherein the computer program is used for implementing the steps in the control method provided in the above embodiment when being executed by a processor.
The embodiment of the invention also provides the electronic equipment. Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. As shown in fig. 5, the electronic device 600 includes: a processor 601, at least one communication bus 602, a user interface 603, at least one external communication interface 604, memory 605.
Wherein the communication bus 602 may be configured to enable connective communication between these components.
The user interface 603 may comprise a display screen, and the external communication interface 604 may comprise a standard wired interface and a wireless interface, among others. The processor 601 is configured to execute a program of the irrigation method stored in the memory to implement the steps of the neural network-based irrigation method provided in the above embodiments.
The above description of the display device and storage medium embodiments is similar to the description of the method embodiments above, with similar beneficial effects as the method embodiments. For technical details not disclosed in the embodiments of the computer device and the storage medium of the present invention, reference is made to the description of the embodiments of the method of the present invention for understanding.
Here, it should be noted that: the above description of the storage medium and device embodiments is similar to the description of the method embodiments above, with similar advantageous effects as the method embodiments. For technical details not disclosed in the embodiments of the storage medium and the apparatus according to the invention, reference is made to the description of the embodiments of the method according to the invention.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in various embodiments of the present invention, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention. The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units; can be located in one place or distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as a removable Memory device, a Read Only Memory (ROM), a magnetic disk, or an optical disk.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on this understanding, the technical solutions of the embodiments of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a controller to execute all or part of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a magnetic or optical disk, or other various media that can store program code.
The above description is only an embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the present invention, and all such changes or substitutions are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.
Claims (10)
1. A neural network-based irrigation method, comprising:
respectively acquiring first data acquired by a humidity sensor, a temperature sensor and a light sensor at a first preset time interval;
determining a metadata vector based on the first data, wherein the metadata vector comprises a humidity sensor vector, a temperature sensor vector, and a light sensor vector;
and under the condition that the metadata vector is input into a pre-established prediction model and then irrigation is determined to be needed, controlling an irrigation system to irrigate according to the irrigation quantity output by the prediction model.
2. The method of claim 1, wherein determining a metadata vector based on the first data comprises:
respectively determining the difference value between the humidity sensor values of every two adjacent moments in the first data of the humidity sensor to obtain first equal difference value data of the humidity sensor;
a humidity sensor vector is determined based on the first arithmetic difference data and a last moment sensor value in the first data of the humidity sensor.
3. The method of claim 1, wherein determining a metadata vector based on the first data comprises:
respectively determining the difference value between the temperature sensor values of every two adjacent moments in the first data of the temperature sensors to obtain second equal-grade difference value data of the temperature sensors;
determining the temperature sensor vector based on the second equal difference data and the last moment sensor value in the first data of the temperature sensor.
4. The method of claim 1, wherein determining a metadata vector based on the first data comprises:
respectively determining the difference value between the optical sensor values of every two adjacent moments in the first data of the optical sensor to obtain third equal difference value data of the optical sensor;
determining the light sensor vector based on the third isodyne data and a last moment sensor value in the first data of the light sensor.
5. The method of claim 1, further comprising:
acquiring water consumption data in real time;
and controlling the irrigation system to stop irrigating when the water consumption data reaches the irrigation amount output by the prediction model.
6. The method of claim 1, further comprising:
respectively acquiring second data acquired by the humidity sensor, the temperature sensor and the optical sensor at a second preset time interval;
determining a sample metadata vector based on the second data, wherein the sample metadata vector comprises a sample humidity sensor vector, a sample temperature sensor vector, and a sample light sensor vector;
generating training data based on the sample metadata vector, whether irrigation is needed and the mapping relation between the irrigation quantity;
the predictive model is derived based on the training data.
7. The method of claim 6, wherein deriving the predictive model based on the training data comprises:
dividing the training data into a training set and a test set;
inputting the training set into a neural network model for training, and using the test set to test the accuracy of the neural network model;
and determining the neural network model as the prediction model under the condition that the accuracy of the neural network model meets the requirement.
8. An irrigation device based on a neural network, comprising:
the acquisition module is used for respectively acquiring first data acquired by the humidity sensor, the temperature sensor and the optical sensor at a first preset time interval;
a determination module to determine a metadata vector based on the first data, wherein the metadata vector includes a humidity sensor vector, a temperature sensor vector, and a light sensor vector;
and the control module is used for controlling the irrigation system to irrigate according to the irrigation quantity output by the prediction model under the condition that the metadata vector is input into the pre-established prediction model and then the irrigation is determined to be needed.
9. A storage medium, characterized in that it stores a program which, when executed by a processor, performs the method of any one of the preceding claims 1 to 7.
10. An electronic device, characterized in that the electronic device comprises a memory and a processor, the memory having stored thereon a computer program that is run by the processor to perform a method that can be implemented as claimed in any one of the preceding claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111589819.2A CN114451257B (en) | 2021-12-23 | 2021-12-23 | Irrigation method and device based on neural network, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111589819.2A CN114451257B (en) | 2021-12-23 | 2021-12-23 | Irrigation method and device based on neural network, storage medium and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114451257A true CN114451257A (en) | 2022-05-10 |
CN114451257B CN114451257B (en) | 2023-04-07 |
Family
ID=81406259
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111589819.2A Active CN114451257B (en) | 2021-12-23 | 2021-12-23 | Irrigation method and device based on neural network, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114451257B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115380806A (en) * | 2022-08-08 | 2022-11-25 | 中国电信股份有限公司 | Multi-stage irrigation method and device, electronic equipment and storage medium |
CN118285305A (en) * | 2024-04-01 | 2024-07-05 | 淮阴工学院 | Spraying irrigation control method and device and Internet of things system |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012123877A1 (en) * | 2011-03-14 | 2012-09-20 | Idus Controls Ltd. | An irrigation control device using an artificial neural network |
CN106707757A (en) * | 2017-01-23 | 2017-05-24 | 中国农业大学 | Dynamic regulation and control method and system for irrigation time |
CN108886937A (en) * | 2018-06-14 | 2018-11-27 | 福建农林大学 | A kind of terraced fields water and fertilizer irrigation pressure adaptive regulating system based on sensor network |
CN109006412A (en) * | 2018-09-18 | 2018-12-18 | 北京农业智能装备技术研究中心 | A kind of chamber crop irrigation decision prior-warning device and method |
CN109452146A (en) * | 2018-11-21 | 2019-03-12 | 北京农业智能装备技术研究中心 | Water-saving Irrigation of Winter Wheat decision-making technique, control device and control system |
CN109845625A (en) * | 2018-12-12 | 2019-06-07 | 珠江水利委员会珠江水利科学研究院 | A kind of multidimensional parameter crops intelligent irrigation control method neural network based |
CN110084367A (en) * | 2019-04-19 | 2019-08-02 | 安徽农业大学 | A kind of Forecast of Soil Moisture Content method based on LSTM deep learning model |
CN110741914A (en) * | 2019-11-05 | 2020-02-04 | 浙江大学 | Rice field automatic water-saving irrigation system and method based on recurrent neural network |
CN112270124A (en) * | 2020-10-23 | 2021-01-26 | 河海大学 | Real-time irrigation method and system |
KR20210015508A (en) * | 2019-08-02 | 2021-02-10 | 서울대학교산학협력단 | Vertical environment control system in greenhouse using artificial neural network and method thereof |
CN112753542A (en) * | 2021-01-07 | 2021-05-07 | 南昌易融邦企业服务有限公司 | Automatic plant watering system based on Internet of things |
CN113141940A (en) * | 2021-06-01 | 2021-07-23 | 中国农业科学院蔬菜花卉研究所 | Intelligent water precise irrigation control system and method for fruit and vegetable cultivation in sunlight greenhouse |
-
2021
- 2021-12-23 CN CN202111589819.2A patent/CN114451257B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012123877A1 (en) * | 2011-03-14 | 2012-09-20 | Idus Controls Ltd. | An irrigation control device using an artificial neural network |
CN106707757A (en) * | 2017-01-23 | 2017-05-24 | 中国农业大学 | Dynamic regulation and control method and system for irrigation time |
CN108886937A (en) * | 2018-06-14 | 2018-11-27 | 福建农林大学 | A kind of terraced fields water and fertilizer irrigation pressure adaptive regulating system based on sensor network |
CN109006412A (en) * | 2018-09-18 | 2018-12-18 | 北京农业智能装备技术研究中心 | A kind of chamber crop irrigation decision prior-warning device and method |
CN109452146A (en) * | 2018-11-21 | 2019-03-12 | 北京农业智能装备技术研究中心 | Water-saving Irrigation of Winter Wheat decision-making technique, control device and control system |
CN109845625A (en) * | 2018-12-12 | 2019-06-07 | 珠江水利委员会珠江水利科学研究院 | A kind of multidimensional parameter crops intelligent irrigation control method neural network based |
CN110084367A (en) * | 2019-04-19 | 2019-08-02 | 安徽农业大学 | A kind of Forecast of Soil Moisture Content method based on LSTM deep learning model |
KR20210015508A (en) * | 2019-08-02 | 2021-02-10 | 서울대학교산학협력단 | Vertical environment control system in greenhouse using artificial neural network and method thereof |
CN110741914A (en) * | 2019-11-05 | 2020-02-04 | 浙江大学 | Rice field automatic water-saving irrigation system and method based on recurrent neural network |
CN112270124A (en) * | 2020-10-23 | 2021-01-26 | 河海大学 | Real-time irrigation method and system |
CN112753542A (en) * | 2021-01-07 | 2021-05-07 | 南昌易融邦企业服务有限公司 | Automatic plant watering system based on Internet of things |
CN113141940A (en) * | 2021-06-01 | 2021-07-23 | 中国农业科学院蔬菜花卉研究所 | Intelligent water precise irrigation control system and method for fruit and vegetable cultivation in sunlight greenhouse |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115380806A (en) * | 2022-08-08 | 2022-11-25 | 中国电信股份有限公司 | Multi-stage irrigation method and device, electronic equipment and storage medium |
CN118285305A (en) * | 2024-04-01 | 2024-07-05 | 淮阴工学院 | Spraying irrigation control method and device and Internet of things system |
Also Published As
Publication number | Publication date |
---|---|
CN114451257B (en) | 2023-04-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114451257B (en) | Irrigation method and device based on neural network, storage medium and electronic equipment | |
JP2024529887A (en) | Device energy usage assessment | |
CN107655212B (en) | Heat treatment method and apparatus | |
CN102208050B (en) | Carry out performance monitoring to wind turbine and identify the system and method for upgrading | |
CA3166446A1 (en) | Method and apparatus for predicting power consumption, device and readiable storage medium | |
WO2013163460A1 (en) | Energy disaggregation techniques for low resolution whole-house energy consumption data | |
CN115333100B (en) | Roof photovoltaic power generation power cooperative control method and system | |
CN108154258B (en) | Method and device for predicting load of air source heat pump, storage medium and processor | |
KR101660102B1 (en) | Apparatus for water demand forecasting | |
JP2007199862A (en) | Energy demand predicting method, predicting device, program and recording medium | |
CN109344967B (en) | Intelligent electric meter life cycle prediction method based on artificial neural network | |
CN116632838B (en) | Method and device for analyzing electric energy supply of power generation enterprise | |
CN107818380B (en) | Information processing method and server | |
US20190335688A1 (en) | Methods and systems for optimizing and monitoring groundwater and solar energy usage | |
CN117937497A (en) | Calculation force load balancing method and device | |
Sinha | Short term load forecasting using artificial neural networks | |
US20240169127A1 (en) | Simulation of carbon emissions | |
KR101867222B1 (en) | Non-Intrusive Appliance Load Monitoring Method and Device using Influence of Complex Sensors on State of Appliance | |
KR102383012B1 (en) | Terminal and contorl method thereof for more accurately predicting the amount of power generation of renewable energy generator by simultaneously performing hourly trend prediction and seaonal trend prediction | |
CN116227899A (en) | Cell house energy consumption prediction method and device, electronic equipment and readable storage medium | |
CN113723717A (en) | Method, device, equipment and readable storage medium for predicting short-term load before system day | |
US11442442B2 (en) | Sensor event coverage and energy conservation | |
KR20210020442A (en) | Power Consumption Estimation Algorithm Considering Users' Usage Characteristics | |
CN117996863B (en) | Sagging control method and device for photovoltaic power supply, computer equipment and medium | |
CN115202202B (en) | Electric equipment control method and system based on artificial intelligence algorithm |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |