Weak seedling identification and elimination method and system based on visual algorithm
By integrating multiple sensors for data acquisition and processing, and using visual algorithms to align and feature extraction of multi-source data, the problem of insufficient alignment capabilities of multi-source data is solved, and the accuracy of weak seedling identification and farmland management efficiency are improved.
Patent Information
- Application Number
- CN202411082392.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-08
- Publication Date
- 2024-11-15
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the prior art, the alignment and correction capabilities of multi-source data are insufficient, resulting in unsatisfactory identification results, affecting farmland management and crop yield improvement.
Multi-source data acquisition is carried out through the integration of image sensors, humidity sensors and temperature sensors, denoising and enhancing processing, calibration and missing value filling, alignment processing is performed using timestamps and spatial positioning, and combining convolutional neural networks and multi-source fusion networks for Feature extraction and fusion, input weak seedling recognition model for identification.
Accurate alignment and efficient correction of multi-source data are achieved, improving the accuracy of weak seedling identification and farmland management efficiency.
Smart Images

Figure HDA0004984128750000011 
Figure HDA0004984128750000021
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of weak seedling identification, and in particular to a method and system for identifying and eliminating weak seedlings based on a visual algorithm. Background Art
[0002] Existing farmland management technologies have made significant progress in improving crop yield and quality, but there are still some shortcomings. Traditional weak seedling identification methods mainly rely on a single data source, such as image data, which limits the recognition effect. A single data source has poor robustness in the face of environmental changes. For example, factors such as lighting changes, shadows, and vegetation occlusions will affect the quality of image data and analysis results. The application of multi-source data fusion technology can solve these problems to a certain extent, but the current multi-source data processing capabilities are still insufficient. Data alignment and correction in the multi-source data fusion process is a complex problem. The data acquisition frequency and spatiotemporal distribution of different sensors are often different, and accurate temporal and spatial alignment is required to ensure effective data fusion. Existing multi-source data processing technologies have limited capabilities in this regard, which often leads to inaccurate data alignment, affecting fusion effects and subsequent analysis.
[0003] In summary, the existing technology has technical problems such as insufficient alignment and correction capabilities of multi-source data, inability to fully utilize sensor data such as humidity and temperature for comprehensive analysis, resulting in unsatisfactory recognition effects, which further affects farmland management and crop yield improvement. Summary of the invention
[0004] The purpose of this application is to provide a method and system for identifying and eliminating weak seedlings based on visual algorithms, so as to solve the technical problems in the prior art that due to insufficient alignment and correction capabilities of multi-source data, sensor data such as humidity and temperature cannot be fully utilized for comprehensive analysis, resulting in unsatisfactory recognition effects, further affecting farmland management and crop yield improvement.
[0005] In view of the above problems, the present application provides a method and system for identifying and eliminating weak seedlings based on visual algorithms.
[0006] In the first aspect, the present application provides a method for identifying and eliminating weak seedlings based on a visual algorithm, which is implemented through a weak seedling identification and elimination system based on a visual algorithm, including: integrating image sensors, humidity sensors and temperature sensors to collect multi-source data in the field to obtain image data, humidity data and temperature data; denoising and enhancing the image data to obtain image preprocessing data, calibrating and filling missing values of the humidity data and the temperature data to obtain humidity preprocessing data and temperature preprocessing data; aligning the image preprocessing data, the humidity preprocessing data and the temperature preprocessing data through timestamp and spatial positioning to obtain multi-source aligned data; extracting features from the image aligned data in the multi-source aligned data through a convolutional neural network to obtain image features, extracting features from the humidity aligned data and the temperature aligned data in the multi-source aligned data through statistical analysis to obtain humidity features and temperature features; using a multi-source fusion network to fuse the image features, the humidity features and the temperature features, inputting the fused features into a weak seedling identification model for identification to obtain weak seedling identification data; and eliminating weak seedlings based on the weak seedling identification data.
[0007] In the second aspect, the present application also provides a weak seedling identification and elimination system based on a visual algorithm, which is used to execute the weak seedling identification and elimination method based on a visual algorithm as described in the first aspect, including: a multi-source data acquisition module, which is used to integrate image sensors, humidity sensors and temperature sensors to perform multi-source data acquisition in the field to obtain image data, humidity data and temperature data; a preprocessing module, which is used to denoise and enhance the image data to obtain image preprocessing data, calibrate the humidity data and the temperature data and fill in missing values to obtain humidity preprocessing data and temperature preprocessing data; an alignment processing module, which is used to align the image preprocessing data and the temperature preprocessing data through timestamps and spatial positioning. The humidity preprocessed data and the temperature preprocessed data are aligned to obtain multi-source aligned data; a feature extraction module, the feature extraction module is used to extract features of the image alignment data in the multi-source aligned data through a convolutional neural network to obtain image features, and to extract features of the humidity alignment data and the temperature alignment data in the multi-source aligned data through statistical analysis to obtain humidity features and temperature features; a weak seedling identification module, the weak seedling identification module is used to use a multi-source fusion network to perform feature fusion on the image features, the humidity features and the temperature features, and input the fused features into a weak seedling identification model for identification to obtain weak seedling identification data; a weak seedling elimination module, the weak seedling elimination module is used to eliminate weak seedlings based on the weak seedling identification data.
[0008] One or more technical solutions provided in this application have at least the following technical effects or advantages:
[0009] The image data, humidity data and temperature data are collected in the field by integrating image sensors, humidity sensors and temperature sensors; the image data are denoised and enhanced to obtain image preprocessing data; the humidity data and the temperature data are calibrated and missing values are filled to obtain humidity preprocessing data and temperature preprocessing data; the image preprocessing data, the humidity preprocessing data and the temperature preprocessing data are aligned by timestamp and spatial positioning to obtain multi-source aligned data; the image alignment data in the multi-source aligned data are feature extracted by convolutional neural network to obtain image features; the humidity alignment data and the temperature alignment data in the multi-source aligned data are feature extracted by statistical analysis to obtain humidity features and temperature features; the image features, the humidity features and the temperature features are feature fused by a multi-source fusion network, the fused features are input into a weak seedling recognition model for recognition, and weak seedling recognition data are obtained; weak seedlings are eliminated based on the weak seedling recognition data to achieve the technical goals of accurate alignment and efficient correction of multi-source data, and to achieve the technical effects of improving the accuracy of weak seedling recognition and improving farmland management efficiency.
[0010] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented according to the contents of the specification, and in order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are specifically cited below. It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easy to understand through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In order to more clearly illustrate the technical solutions in the present application or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only exemplary, and for ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0012] Figure 1 This is a flow chart of the weak seedling identification and elimination method based on visual algorithm in this application;
[0013] Figure 2 This is a structural diagram of the weak seedling identification and elimination system based on visual algorithm in this application.
[0014] Description of reference numerals:
[0015] Multi-source data acquisition module 11, pre-processing module 12, alignment processing module 13, feature extraction module 14, weak seedling identification module 15, weak seedling elimination module 16. DETAILED DESCRIPTION
[0016] This application provides a method and system for identifying and eliminating weak seedlings based on visual algorithms, which solves the technical problem in the prior art that due to the insufficient alignment and correction capabilities of multi-source data, it is impossible to fully utilize sensor data such as humidity and temperature for comprehensive analysis, resulting in unsatisfactory recognition results, which further affects farmland management and crop yield improvement. The technical goal of achieving accurate alignment and efficient correction of multi-source data is achieved, achieving the technical effect of improving the accuracy of weak seedling identification and improving farmland management efficiency.
[0017] Below, the technical solutions in the present application will be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments of the present application. It should be understood that the present application is not limited to the example embodiments described herein. Based on the embodiments of the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application. It should also be noted that, for the convenience of description, only the parts related to the present application are shown in the accompanying drawings, rather than all of them.
[0018] For example, please refer to the attached Figure 1 The present application provides a weak seedling identification and elimination method based on a visual algorithm, which is applied to a weak seedling identification and elimination system based on a visual algorithm, and specifically includes the following steps:
[0019] Step 1: Integrate image sensors, humidity sensors and temperature sensors to collect multi-source data in the field to obtain image data, humidity data and temperature data.
[0020] Specifically, integrated image sensors, humidity sensors, and temperature sensors perform multi-source data collection in the field to obtain image data, humidity data, and temperature data. By deploying multiple sensors in the field, multiple aspects of the crop growth environment can be monitored in real time. Image sensors capture visual information of crops, such as shape, color, and size; humidity sensors measure the moisture content in the soil; and temperature sensors record ambient temperature. The data collected by different sensors complement each other, providing a comprehensive, multi-dimensional crop growth environment data set, which not only helps to fully understand the crop growth status, but also provides basic information for subsequent analysis and processing. Through the integrated collection of multi-source data, crop growth conditions can be more accurately monitored and evaluated, leading to more effective farmland management and crop protection.
[0021] Step 2: De-noise and enhance the image data to obtain image preprocessing data, calibrate and fill missing values on the humidity data and the temperature data to obtain humidity preprocessing data and temperature preprocessing data.
[0022] Specifically, the image data is denoised and enhanced to obtain image preprocessing data. Image denoising is to remove noise from the image through an algorithm to make the image clearer, thereby reducing the interference of noise on subsequent analysis. Common denoising algorithms include Gaussian filtering and median filtering. After that, image enhancement is performed to improve the contrast and brightness of the image and make the details in the image more obvious. Image enhancement technology can use methods such as histogram equalization or Laplace enhancement to obtain higher quality image preprocessing data. Humidity data and temperature data are calibrated and missing value filled to obtain humidity preprocessing data and temperature preprocessing data. Sensor data calibration is to adjust the data to eliminate systematic errors and random errors by comparing the output of the sensor with the standard value. Common calibration methods include linear regression and polynomial regression. Missing value filling is to fill the missing data that may appear in the data acquisition process through interpolation or prediction model to ensure the integrity of the data. Common filling methods include linear interpolation and Kriging interpolation. The humidity preprocessing data and temperature preprocessing data obtained by processing are more accurate and complete, providing a reliable data basis for subsequent analysis.
[0023] Step three: aligning the image preprocessing data, the humidity preprocessing data and the temperature preprocessing data through time stamp and spatial positioning to obtain multi-source aligned data.
[0024] Specifically, a timestamp is added to each data point to record its specific collection time to ensure the consistency of data from different sensors in the time dimension. Then, the specific location of each sensor in the field is obtained by configuring a spatial positioning module (such as GPS), and the spatial information is associated with the sensor data to ensure the consistency of the data in the spatial dimension. Next, the timestamp information is used to time-align the data collected at different times, and the data in the same time window are paired and synchronized. Finally, combined with the spatial positioning information, the data is spatially corrected and registered to ensure the precise alignment of various sensor data in space. Through the dual alignment processing of time and space, the generated multi-source aligned data can comprehensively reflect the multi-dimensional information of the field environment, providing a unified and consistent data foundation for subsequent multimodal data fusion and analysis.
[0025] Step 4: Perform feature extraction on the image alignment data in the multi-source alignment data through a convolutional neural network to obtain image features, and perform feature extraction on the humidity alignment data and the temperature alignment data in the multi-source alignment data through statistical analysis to obtain humidity features and temperature features.
[0026] Specifically, the image alignment data is input into a convolutional neural network (CNN), which contains multiple convolutional layers and pooling layers to extract local and global features of the image. The convolutional layer convolves the image with convolution kernels of different sizes to extract low-level features such as edges and textures. Subsequently, the convolution output is reduced in dimension through the pooling layer to reduce the computational complexity and retain the main features. After multiple layers of convolution and pooling operations, the extracted features are finally integrated and high-level features are extracted in the fully connected layer to obtain image features. Image features can effectively represent important information in the image and provide high-quality input data for subsequent analysis and processing.
[0027] Next, the humidity-aligned data and the temperature-aligned data are subjected to time series analysis to extract time domain features, such as mean, variance, autocorrelation coefficient, etc., to reflect the basic pattern of data changes over time. Then, frequency domain analysis methods, such as Fourier transform, are applied to extract frequency domain features to capture the periodicity and frequency components of the data. In addition, the wavelet transform method can be used to obtain time-frequency domain features to reflect the changing patterns of data at different scales. Through the comprehensive feature extraction method, the humidity features and temperature features obtained can fully describe the dynamic changes of humidity and temperature data, providing rich information for multimodal data fusion and comprehensive analysis.
[0028] Step 5: Use a multi-source fusion network to fuse the image features, the humidity features and the temperature features, input the fused features into a weak seedling recognition model for recognition, and obtain weak seedling recognition data.
[0029] Specifically, a multi-source fusion network is constructed, which is designed to process and fuse data from different sensors. Feature fusion methods can include feature weighting, feature splicing, or joint representation learning based on deep learning. In feature weighting, different weights are assigned to each feature according to its importance to optimize the fusion effect. Feature splicing is to directly splice feature vectors from different sources into a larger feature vector. By fusing image features, humidity features, and temperature features, a comprehensive fused feature vector is generated.
[0030] Next, the fused features are input into the weak seedling identification model for identification. The weak seedling identification model can use deep learning algorithms, such as long short-term memory networks (LSTM), convolutional neural networks (CNN), or hybrid models. First, the weak seedling identification model is trained, and the model is supervised and learned using a labeled data set to optimize the model parameters so that it can accurately identify weak seedlings. Then, the fused features are input into the trained recognition model, and the model outputs the weak seedling identification results through a comprehensive analysis of the features. Finally, based on the output results of the model, weak seedling identification data is generated, which contains the identified weak seedlings and related information.
[0031] Step six: Eliminate weak seedlings based on the weak seedling identification data.
[0032] Specifically, the identified weak seedling positions and related information are extracted from the weak seedling identification data, including the specific position coordinates of the weak seedlings and the recognition confidence. Then, based on the position information, the automated mechanical equipment in the field, such as a robotic arm or lawn mower, is controlled for precise positioning. The mechanical equipment will move to the designated position to perform the weak seedling removal operation.
[0033] Next, the culling process can be carried out in a variety of ways, such as physical removal, chemical treatment or mechanical cutting. Physical removal refers to the manual or automatic mechanical pulling out of weak seedlings. Chemical treatment can use selective herbicides, which are sprayed directly on weak seedlings. Mechanical cutting uses a cutting device to cut off the roots of weak seedlings.
[0034] Next, when performing the culling operation, the working status of the mechanical equipment is monitored in real time to ensure the accuracy and safety of the culling process. In addition, through the feedback mechanism, the result data after culling is recorded for subsequent analysis and optimization, and the weak seedling identification model and culling strategy are adjusted and improved to improve the effect and efficiency of future operations.
[0035] The weak seedling identification and elimination method based on visual algorithm is applied to the weak seedling identification and elimination system based on visual algorithm, which can achieve the technical goals of accurate alignment and efficient correction of multi-source data, and achieve the technical effects of improving the accuracy of weak seedling identification and improving farmland management efficiency.
[0036] Furthermore, the present application also includes:
[0037] The image data is subjected to noise removal by using an image denoising algorithm to obtain denoised image data; the denoised image data is subjected to image quality enhancement to obtain the image preprocessing data; the humidity data and the temperature data are subjected to data calibration by using a sensor calibration algorithm to obtain calibrated humidity data and calibrated temperature data; the calibrated humidity data and the calibrated temperature data are interpolated and filled to obtain the humidity preprocessing data and the temperature preprocessing data.
[0038] Specifically, the image data is denoised using an image denoising algorithm to obtain denoised image data. The image denoising algorithm analyzes the noise pattern in the image and removes unnecessary noise and clutter in the image, thereby improving the clarity and quality of the image. Commonly used denoising algorithms include Gaussian filtering, median filtering, and wavelet transform. Multiple algorithms can effectively reduce image noise caused by uneven light, sensor failure, etc., making the image purer and providing high-quality basic data for subsequent image processing and feature extraction.
[0039] Then, the denoised image data is enhanced to obtain image preprocessing data. After image denoising, further application of image quality enhancement technology can improve the contrast, brightness and detail performance of the image. Image enhancement technology includes histogram equalization, adaptive histogram equalization and Laplace enhancement methods, which can improve the visual effect of the image, make the details of the image more prominent and the edges clearer, thereby providing richer information for subsequent image analysis and feature extraction.
[0040] Next, the sensor calibration algorithm is applied to calibrate the humidity data and the temperature data to obtain calibrated humidity data and calibrated temperature data. In actual use, the sensor may be affected by environmental changes, usage time and other factors, resulting in data deviation. Therefore, it is necessary to calibrate the humidity and temperature data using the sensor calibration algorithm. Common calibration methods include linear regression, polynomial regression and neural network calibration, etc. This method can establish a calibration model based on the historical data and reference data of the sensor, eliminate the systematic error and random error in the sensor data, and obtain more accurate humidity and temperature data.
[0041] Next, the calibration humidity data and calibration temperature data are interpolated and filled to obtain humidity preprocessing data and temperature preprocessing data. Sensor data may be missing during the acquisition process, for example, due to sensor failure or data transmission interruption. In order to obtain continuous and complete humidity and temperature data, an interpolation algorithm is applied to fill the missing data. Commonly used interpolation methods include linear interpolation, spline interpolation, and Kriging interpolation. This method can reasonably predict and fill the missing data based on the trend and distribution law of existing data points to ensure the continuity and integrity of the data.
[0042] Image denoising and image quality enhancement improve the clarity and visual effect of the image, providing a high-quality data foundation for subsequent image analysis and feature extraction. At the same time, sensor calibration and data interpolation filling eliminate errors and omissions in humidity and temperature data, ensuring the accuracy and integrity of sensor data. The preprocessing step provides a reliable foundation for multimodal data fusion, ensuring the accuracy and reliability of subsequent data fusion and weak seedling identification.
[0043] Furthermore, the present application also includes:
[0044] Adding a timestamp to the image sensor, humidity sensor and temperature sensor, and associating the image preprocessing data, humidity preprocessing data and temperature preprocessing data through the image sensor, humidity sensor and temperature sensor to obtain image preprocessing data, humidity preprocessing data and temperature preprocessing data marked with an acquisition time; serializing the image preprocessing data, humidity preprocessing data and temperature preprocessing data according to the acquisition time to obtain serialized image preprocessing data, serialized humidity data and serialized temperature data; aligning the serialized image preprocessing data, serialized humidity preprocessing data and serialized temperature preprocessing data within a time window and adding them to the multi-source alignment data.
[0045] Specifically, during the data collection process, a timestamp is added to the data collected by each sensor to record the specific collection time of the data, ensuring the consistency and comparability of data from different sensors in the time dimension. The addition of timestamps is achieved through the time recording function of the sensor itself or an external synchronization signal, binding the collected image, humidity and temperature data with the corresponding time information. The generated preprocessed data not only contains the respective measurement values, but also contains accurate time information, providing a time basis for subsequent data fusion and analysis.
[0046] Next, the image preprocessing data, humidity preprocessing data, and temperature preprocessing data are serialized according to the attached timestamps. Serialization refers to arranging data in chronological order to form a time series, arranging data at different time points in chronological order to ensure the continuity and consistency of the data in the time dimension. Through serialization, the temporal variation of data can be better captured, laying the foundation for subsequent time series analysis and multimodal data alignment.
[0047] Finally, the serialized image preprocessing data, serialized humidity preprocessing data, and serialized temperature preprocessing data are aligned within the time window to ensure that the data from different sensors can match and correlate with each other within the same time window. A time window is defined to pair and synchronize the data within the window. For example, if the timestamps of the image data and sensor data are within the same time window, the multi-source data are considered to be collected simultaneously and aligned. The aligned dataset contains multi-source data collected within the same time window, providing a unified time reference for subsequent multimodal data fusion and comprehensive analysis.
[0048] By attaching timestamps to image sensors, humidity sensors, and temperature sensors, and associating the timestamps with preprocessed data, the consistency of the data in the time dimension can be ensured. Subsequently, through serialization processing, the data is sorted according to the acquisition time to form a continuous time series, further ensuring the temporal continuity of the data. Finally, within the defined time window, the serialized data is aligned to generate an aligned data set containing multi-source data, which not only ensures the temporal consistency and continuity of the data, but also provides a reliable time reference and a unified data foundation for subsequent multimodal data fusion.
[0049] Furthermore, the present application also includes:
[0050] A positioning module is configured for the image sensor, humidity sensor and temperature sensor to obtain image sensor spatial information, humidity sensor spatial information and temperature sensor spatial information; the image sensor spatial information, humidity sensor spatial information and temperature sensor spatial information are associated with the image preprocessing data spatial position, humidity preprocessing data spatial position and temperature preprocessing data spatial position obtained based on the positioning module, and spatial correction is performed according to the installation height and tilt angle of the sensor to obtain the spatial data of the image preprocessing data, humidity preprocessing data and temperature preprocessing data; according to the spatial data of the image preprocessing data, the image preprocessing data of adjacent areas are spliced to form a field image; according to the spatial data, the field image, humidity preprocessing data and temperature preprocessing data are spatially registered to obtain a three-dimensional spatial model through integration, and added to the multi-source alignment data.
[0051] Specifically, a positioning module is configured for the image sensor, humidity sensor, and temperature sensor to obtain the image sensor spatial information, humidity sensor spatial information, and temperature sensor spatial information. The purpose of configuring the positioning module is to obtain the specific position of each sensor in three-dimensional space. The positioning module usually includes a GPS module, an inertial measurement unit (IMU), or other spatial positioning technologies to record the spatial coordinates of the sensor. Through the positioning module, the spatial information of the image sensor, humidity sensor, and temperature sensor can be accurately determined, including their position, installation height, and direction.
[0052] Next, the spatial information of the image sensor, the spatial information of the humidity sensor, and the spatial information of the temperature sensor are associated with the spatial position of the image preprocessing data, the spatial position of the humidity preprocessing data, and the spatial position of the temperature preprocessing data obtained based on the positioning module, and spatial correction is performed according to the installation height and tilt angle of the sensor to obtain the spatial data of the image preprocessing data, the humidity preprocessing data, and the temperature preprocessing data. The spatial information of the sensor is associated with the spatial position of the preprocessing data, and the data is spatially corrected by calculating the installation height, tilt angle, and other factors of the sensor, ensuring that the data collected by the sensor can accurately reflect its actual position in space. The correction operation may include coordinate transformation, geometric correction, and image reprojection, so that the final data is accurately aligned in space, thereby obtaining accurate spatial data.
[0053] Next, the image preprocessing data of adjacent areas are stitched together to form a field image based on the spatial data of the image preprocessing data. The image data of different areas are stitched together using the spatial data of the corrected image preprocessing data to cover a larger area. Image stitching techniques such as feature matching, image registration, and stitching algorithms are usually involved to merge the image data of adjacent areas into a continuous field image. The stitched field image can provide a comprehensive perspective, displaying the visual information of the entire field area, and providing overall image data for subsequent analysis and processing.
[0054] Next, according to the spatial data, the field images, humidity preprocessed data, and temperature preprocessed data are spatially registered, integrated to obtain a three-dimensional spatial model, and added to the multi-source aligned data. The field images, humidity preprocessed data, and temperature preprocessed data are spatially registered using spatial data to ensure that different types of data are correctly aligned in three-dimensional space. The process of spatial registration includes mapping these data into a unified three-dimensional coordinate system so that various types of data can accurately correspond in space, and then integrating all data to form a complete three-dimensional spatial model, providing detailed spatial information and data views. Finally, the three-dimensional spatial model is added to the multi-source aligned data, providing a unified spatial framework for comprehensive analysis and further processing.
[0055] The spatial information of the sensor is obtained by configuring the positioning module, and the pre-processed data is spatially corrected in combination with the installation height and tilt angle of the sensor to ensure the accuracy of the data in space. Subsequently, the field image is formed by splicing the image data, and spatial registration is performed based on the spatial data to integrate and form a three-dimensional spatial model, ensuring the accurate alignment of the image data, humidity data, and temperature data in space, providing an accurate spatial basis for the comprehensive analysis of multi-source data.
[0056] Furthermore, the present application also includes:
[0057] The convolutional neural network is established, including a convolution layer, a pooling layer and a fully connected layer; multi-scale convolution is performed on the image alignment data through the convolution layer to extract edge features and texture features of the image; pooling is performed on the image alignment data through the pooling layer to obtain low-dimensional image alignment data; one-dimensional vector expansion is performed on the low-dimensional image alignment data, and high-dimensional features are extracted through the fully connected layer to obtain the image features.
[0058] Specifically, a convolutional neural network is established, including convolutional layers, pooling layers, and fully connected layers. The construction process of a convolutional neural network (CNN) first includes defining its basic structure, namely, convolutional layers, pooling layers, and fully connected layers. Convolutional layers are used to extract local features of an image, pooling layers are used to reduce data dimensions and computational complexity, and fully connected layers are used to integrate features extracted by previous layers for higher-level feature representation. Select appropriate convolution kernel size, pooling method (such as maximum pooling or average pooling), activation function (such as ReLU), and optimization algorithm (such as Adam), and set the number of network layers and the number of neurons in each layer to build a convolutional neural network suitable for image feature extraction.
[0059] Next, the image alignment data is subjected to multi-scale convolution through a convolution layer to extract the edge features and texture features of the image. The function of the convolution layer is to perform convolution operations on the image through convolution kernels of different sizes to extract local features of the image. Multi-scale convolution refers to feature extraction using convolution kernels of different sizes to capture different details and patterns in the image. Through multi-scale convolution, the edge features and texture features of the image can be extracted, which plays an important role in image recognition and analysis. The convolution operation can be regarded as filtering the image. The convolution kernel slides on the image and generates a feature map by performing a dot product operation with the local area of the image.
[0060] Next, the image alignment data is pooled through the pooling layer to obtain low-dimensional image alignment data. The main function of the pooling layer is to reduce the dimension of the feature map output by the convolution layer, reduce the size of the feature map, and retain the main feature information. Commonly used pooling methods include maximum pooling and average pooling. Maximum pooling is to take the maximum value within the pooling window, and average pooling is to take the average value within the pooling window. Through the pooling operation, the dimension of the data can be effectively reduced, the amount of calculation and memory consumption can be reduced, and the robustness of the features can be enhanced. The data after pooling is called low-dimensional image alignment data, which provides a simplified feature representation for the subsequent fully connected layer processing.
[0061] Next, the low-dimensional image alignment data is expanded into a one-dimensional vector, and the high-dimensional features are extracted through the fully connected layer to obtain the image features. The low-dimensional image alignment data obtained after pooling needs to be expanded into a one-dimensional vector, that is, the multi-dimensional feature map is converted into a one-dimensional vector for easy processing by the fully connected layer. The fully connected layer consists of multiple neurons, each of which is connected to all neurons in the previous layer. High-level features are extracted through weighted summation and activation function operations. The high-dimensional features combine the local features extracted by the convolutional layer and the pooling layer to form a more comprehensive feature representation, which provides important input for subsequent classification or recognition tasks.
[0062] The process of establishing a convolutional neural network includes defining convolutional layers, pooling layers, and fully connected layers. The convolutional layers perform multi-scale convolution on the image alignment data to extract edge and texture features. The pooling layers perform dimensionality reduction to obtain low-dimensional image alignment data. The fully connected layers perform high-dimensional feature extraction on the expanded one-dimensional vectors, which together form a complete convolutional neural network and provide a powerful tool for efficient extraction and recognition of image features.
[0063] Furthermore, the present application also includes:
[0064] Through the time series analysis method, the time domain features and frequency domain features of the humidity aligned data and the temperature aligned data are extracted to obtain multi-scale features; the multi-scale features are subjected to dimensionality reduction processing and clustering is performed to obtain cluster features; the cluster features are selected using a support vector machine to output the humidity features and the temperature features.
[0065] Specifically, through the time series analysis method, the time domain features and frequency domain features of the humidity aligned data and the temperature aligned data are extracted to obtain multi-scale features. When the time series analysis method is applied to the humidity and temperature aligned data, the time domain features, such as mean, variance, autocorrelation coefficient, etc., are first calculated to describe the change law of the data in the time dimension. At the same time, the Fourier transform is used to convert the time series data into the frequency domain, and the frequency domain features, such as the main frequency, power spectrum density, etc., are extracted to capture the periodicity and frequency components of the data. Through the comprehensive analysis of the time domain and frequency domain, multi-scale features can be obtained to fully reflect the change characteristics of the humidity and temperature data.
[0066] Then, the multi-scale features are subjected to dimensionality reduction processing and clustering is performed to obtain cluster features. Multi-scale features are usually of high dimensionality, and direct use for analysis may lead to increased computational complexity, so dimensionality reduction processing is required. Dimensionality reduction methods include principal component analysis (PCA) and linear discriminant analysis (LDA), which reduce the dimension of features while retaining the main feature information. After dimensionality reduction processing, the features are clustered and similar features are clustered into the same class using algorithms such as K-means or hierarchical clustering to generate cluster features. Cluster features represent groups with similar change patterns in humidity and temperature data, providing a basis for further feature selection.
[0067] Next, support vector machines are used to select cluster features and output humidity features and temperature features. Support vector machines (SVM) are an effective feature selection tool that can evaluate the importance of each feature by training a classification model. The specific steps include: first, using cluster features as input, training the SVM model, and evaluating the importance of features through the weight coefficients of the model. Then, the most important features are selected based on the weight coefficients, and features that contribute less to the classification are eliminated. Through this process, the most representative humidity and temperature features can be screened out to ensure that the features used in subsequent analysis and modeling have high discrimination and representativeness.
[0068] The time domain and frequency domain features of humidity and temperature alignment data are extracted through time series analysis method to obtain multi-scale features. Then, the multi-scale features are reduced in dimension and clustered features are obtained through cluster analysis. Finally, support vector machine is used to select cluster features and screen out the most important humidity and temperature features, ensuring that the features extracted from the original data are efficient and representative, providing a solid foundation for subsequent data fusion and analysis.
[0069] Furthermore, the present application also includes:
[0070] Construct the multi-source fusion network, use feature weighting in the multi-source fusion network to perform feature splicing on the image features, the humidity features and the temperature features to obtain fusion features; use the long short-term memory network to construct the weak seedling recognition model, input the fusion features into the weak seedling recognition model, output the weak seedling recognition result, and perform confidence evaluation. If the confidence threshold is met, the weak seedling recognition data is obtained.
[0071] Specifically, a multi-source fusion network is constructed, and feature weighting is used in the multi-source fusion network to perform feature splicing on the image features, humidity features, and temperature features to obtain fusion features. The construction of a multi-source fusion network first requires the design of a structure so that data from different sources can be effectively combined. Feature weighting is a key step in the fusion process. By assigning different weights to features from different sources, more important features can be emphasized and unimportant features can be weakened. The feature weighting method can be based on feature importance assessment, using prior knowledge or automatically learning weights through training networks. The weighted image features, humidity features, and temperature features are spliced to generate a fusion feature containing multiple information. The fusion feature contains the data of each sensor and provides a comprehensive input for the subsequent recognition process.
[0072] Next, the weak seedling identification model is constructed using a long short-term memory network, the fused features are input into the weak seedling identification model, the weak seedling identification result is output, and a confidence assessment is performed. If the confidence threshold is met, the weak seedling identification data is obtained. Long short-term memory network (LSTM) is a special recursive neural network suitable for processing and predicting data based on time series. The LSTM network can capture long-term dependencies in time series and effectively model feature time series data. When constructing a weak seedling identification model, it is first necessary to design the architecture of the LSTM network, including an input layer, multiple LSTM layers, and an output layer. The fused features are used as input and input into the LSTM network to extract and analyze the time series features. The output layer of the network will generate a weak seedling identification result with a confidence score. Confidence assessment refers to the assessment of the confidence of the recognition result. If the confidence exceeds the preset threshold, the recognition result is considered to be reliable, and the final weak seedling identification data is output.
[0073] By building a multi-source fusion network, feature weighting and feature splicing, the image features, humidity features and temperature features are fused together to form a comprehensive fusion feature. Then, a weak seedling recognition model is built using a long short-term memory network (LSTM), and the fusion features are input into the model to generate weak seedling recognition results. The recognition results that meet the confidence threshold are screened out through confidence evaluation, and finally the weak seedling recognition data is obtained, ensuring that data from different sources can be effectively fused, and accurate recognition and evaluation are performed through advanced time series models, providing a solid technical foundation for the accurate identification of weak seedlings.
[0074] In summary, the weak seedling identification and elimination method based on visual algorithm provided in this application has the following technical effects:
[0075] The image data, humidity data and temperature data are collected in the field by integrating image sensors, humidity sensors and temperature sensors; the image data are denoised and enhanced to obtain image preprocessing data; the humidity data and the temperature data are calibrated and missing values are filled to obtain humidity preprocessing data and temperature preprocessing data; the image preprocessing data, the humidity preprocessing data and the temperature preprocessing data are aligned by timestamp and spatial positioning to obtain multi-source aligned data; the image alignment data in the multi-source aligned data are feature extracted by convolutional neural network to obtain image features; the humidity alignment data and the temperature alignment data in the multi-source aligned data are feature extracted by statistical analysis to obtain humidity features and temperature features; the image features, the humidity features and the temperature features are feature fused by a multi-source fusion network, the fused features are input into a weak seedling recognition model for recognition, and weak seedling recognition data are obtained; weak seedlings are eliminated based on the weak seedling recognition data to achieve the technical goals of accurate alignment and efficient correction of multi-source data, and to achieve the technical effects of improving the accuracy of weak seedling recognition and improving farmland management efficiency.
[0076] Embodiment 2: Based on the weak seedling identification and elimination method based on visual algorithm in the previous embodiment, the present application also provides a weak seedling identification and elimination system based on visual algorithm, please refer to the attached Figure 2 ,include:
[0077] A multi-source data acquisition module 11 is used to integrate image sensors, humidity sensors and temperature sensors to perform multi-source data acquisition in the field to obtain image data, humidity data and temperature data; a preprocessing module 12 is used to perform denoising and enhancement processing on the image data to obtain image preprocessing data, calibrate the humidity data and the temperature data and fill in missing values to obtain humidity preprocessing data and temperature preprocessing data; an alignment processing module 13 is used to align the image preprocessing data, the humidity preprocessing data and the temperature preprocessing data through timestamps and spatial positioning to obtain multi-source data. Alignment data; a feature extraction module 14, the feature extraction module 14 is used to perform feature extraction on the image alignment data in the multi-source alignment data through a convolutional neural network to obtain image features, and perform feature extraction on the humidity alignment data and the temperature alignment data in the multi-source alignment data through statistical analysis to obtain humidity features and temperature features; a weak seedling identification module 15, the weak seedling identification module 15 is used to perform feature fusion on the image features, the humidity features and the temperature features using a multi-source fusion network, and input the fused features into a weak seedling identification model for identification to obtain weak seedling identification data; a weak seedling elimination module 16, the weak seedling elimination module 16 is used to eliminate weak seedlings based on the weak seedling identification data.
[0078] Furthermore, the preprocessing module 12 in the weak seedling identification and elimination system based on visual algorithm is also used for:
[0079] The image data is subjected to noise removal by using an image denoising algorithm to obtain denoised image data; the denoised image data is subjected to image quality enhancement to obtain the image preprocessing data; the humidity data and the temperature data are subjected to data calibration by using a sensor calibration algorithm to obtain calibrated humidity data and calibrated temperature data; the calibrated humidity data and the calibrated temperature data are interpolated and filled to obtain the humidity preprocessing data and the temperature preprocessing data.
[0080] Furthermore, the alignment processing module 13 in the weak seedling identification and elimination system based on visual algorithm is also used for:
[0081] Adding a timestamp to the image sensor, humidity sensor and temperature sensor, and associating the image preprocessing data, humidity preprocessing data and temperature preprocessing data through the image sensor, humidity sensor and temperature sensor to obtain image preprocessing data, humidity preprocessing data and temperature preprocessing data marked with an acquisition time; serializing the image preprocessing data, humidity preprocessing data and temperature preprocessing data according to the acquisition time to obtain serialized image preprocessing data, serialized humidity data and serialized temperature data; aligning the serialized image preprocessing data, serialized humidity preprocessing data and serialized temperature preprocessing data within a time window and adding them to the multi-source alignment data.
[0082] Furthermore, the alignment processing module 13 in the weak seedling identification and elimination system based on visual algorithm is also used for:
[0083] A positioning module is configured for the image sensor, humidity sensor and temperature sensor to obtain image sensor spatial information, humidity sensor spatial information and temperature sensor spatial information; the image sensor spatial information, humidity sensor spatial information and temperature sensor spatial information are associated with the image preprocessing data spatial position, humidity preprocessing data spatial position and temperature preprocessing data spatial position obtained based on the positioning module, and spatial correction is performed according to the installation height and tilt angle of the sensor to obtain the spatial data of the image preprocessing data, humidity preprocessing data and temperature preprocessing data; according to the spatial data of the image preprocessing data, the image preprocessing data of adjacent areas are spliced to form a field image; according to the spatial data, the field image, humidity preprocessing data and temperature preprocessing data are spatially registered to obtain a three-dimensional spatial model through integration, and added to the multi-source alignment data.
[0084] Furthermore, the feature extraction module 14 in the weak seedling identification and elimination system based on visual algorithm is also used for:
[0085] The convolutional neural network is established, including a convolution layer, a pooling layer and a fully connected layer; multi-scale convolution is performed on the image alignment data through the convolution layer to extract edge features and texture features of the image; pooling is performed on the image alignment data through the pooling layer to obtain low-dimensional image alignment data; one-dimensional vector expansion is performed on the low-dimensional image alignment data, and high-dimensional features are extracted through the fully connected layer to obtain the image features.
[0086] Furthermore, the feature extraction module 14 in the weak seedling identification and elimination system based on visual algorithm is also used for:
[0087] Through the time series analysis method, the time domain features and frequency domain features of the humidity aligned data and the temperature aligned data are extracted to obtain multi-scale features; the multi-scale features are subjected to dimensionality reduction processing and clustering is performed to obtain cluster features; the cluster features are selected using a support vector machine to output the humidity features and the temperature features.
[0088] Furthermore, the weak seedling identification module 15 in the weak seedling identification and elimination system based on visual algorithm is also used for:
[0089] Construct the multi-source fusion network, use feature weighting in the multi-source fusion network to perform feature splicing on the image features, the humidity features and the temperature features to obtain fusion features; use the long short-term memory network to construct the weak seedling recognition model, input the fusion features into the weak seedling recognition model, output the weak seedling recognition result, and perform confidence evaluation. If the confidence threshold is met, the weak seedling recognition data is obtained.
[0090] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The weak seedling identification and elimination method based on visual algorithm and the specific examples in the aforementioned embodiment 1 are also applicable to the weak seedling identification and elimination system based on visual algorithm in this embodiment. Through the aforementioned detailed description of the weak seedling identification and elimination method based on visual algorithm, those skilled in the art can clearly understand the weak seedling identification and elimination system based on visual algorithm in this embodiment, so for the sake of brevity of the specification, it will not be described in detail here. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method part.
[0091] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
[0092] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application belong to the scope of the present application and its equivalent technology, the present application is also intended to include these modifications and variations.
Claims
1. A method for identifying and eliminating weak seedlings based on a visual algorithm, characterized in that: include: Integrate image sensors, humidity sensors and temperature sensors to collect multi-source data in the field to obtain image data, humidity data and temperature data; Performing denoising and enhancement processing on the image data to obtain image preprocessing data, and performing calibration and missing value filling on the humidity data and the temperature data to obtain humidity preprocessing data and temperature preprocessing data; Performing alignment processing on the image preprocessing data, the humidity preprocessing data and the temperature preprocessing data through time stamp and spatial positioning to obtain multi-source alignment data; Performing feature extraction on the image alignment data in the multi-source alignment data by using a convolutional neural network to obtain image features, and performing feature extraction on the humidity alignment data and the temperature alignment data in the multi-source alignment data by using statistical analysis to obtain humidity features and temperature features; A multi-source fusion network is used to fuse the image features, the humidity features and the temperature features, and the fused features are input into a weak seedling recognition model for recognition to obtain weak seedling recognition data; Weak seedlings are eliminated based on the weak seedling identification data.
2. The method for identifying and eliminating weak seedlings based on a visual algorithm as claimed in claim 1, characterized in that: The denoising and enhancing processing is performed on the image data to obtain image preprocessing data, and the humidity data and the temperature data are calibrated and missing value filled to obtain humidity preprocessing data and temperature preprocessing data, including: De-noising the image data using an image denoising algorithm to obtain de-noised image data; Performing image quality enhancement on the denoised image data to obtain the image preprocessing data; Applying a sensor calibration algorithm to perform data calibration on the humidity data and the temperature data to obtain calibrated humidity data and calibrated temperature data; The calibrated humidity data and the calibrated temperature data are interpolated and padded to obtain the humidity preprocessed data and the temperature preprocessed data.
3. The method for identifying and eliminating weak seedlings based on a visual algorithm as claimed in claim 1, characterized in that: Performing alignment processing on the image preprocessing data by using a timestamp includes: Adding a timestamp to the image sensor, humidity sensor and temperature sensor, and associating the image preprocessing data, humidity preprocessing data and temperature preprocessing data through the image sensor, humidity sensor and temperature sensor to obtain the image preprocessing data, humidity preprocessing data and temperature preprocessing data marked with the acquisition time; Serializing the image preprocessing data, the humidity preprocessing data, and the temperature preprocessing data according to the acquisition time to obtain serialized image preprocessing data, serialized humidity data, and serialized temperature data; The serialized image preprocessing data, the serialized humidity preprocessing data and the serialized temperature preprocessing data are aligned within a time window and added to the multi-source alignment data.
4. The method for identifying and eliminating weak seedlings based on a visual algorithm as claimed in claim 1, characterized in that: Performing alignment processing on the image preprocessing data, the humidity preprocessing data and the temperature preprocessing data through spatial positioning includes: Configuring a positioning module for the image sensor, humidity sensor and temperature sensor to obtain image sensor spatial information, humidity sensor spatial information and temperature sensor spatial information; By associating the image sensor spatial information, humidity sensor spatial information and temperature sensor spatial information with the image preprocessing data spatial position, humidity preprocessing data spatial position and temperature preprocessing data spatial position obtained based on the positioning module, spatial correction is performed according to the installation height and tilt angle of the sensor to obtain the spatial data of the image preprocessing data, humidity preprocessing data and temperature preprocessing data; According to the spatial data of the image preprocessing data, the image preprocessing data of adjacent areas are spliced to form a field image; According to the spatial data, the field image, humidity preprocessing data and temperature preprocessing data are spatially registered, integrated to obtain a three-dimensional spatial model, and added to the multi-source alignment data.
5. The method for identifying and eliminating weak seedlings based on a visual algorithm as claimed in claim 1, characterized in that: The extracting features of the image alignment data in the multi-source alignment data by using a convolutional neural network to obtain image features includes: Establishing the convolutional neural network, including a convolutional layer, a pooling layer and a fully connected layer; Performing multi-scale convolution on the image alignment data through the convolution layer to extract edge features and texture features of the image; Performing pooling processing on the image alignment data through the pooling layer to obtain low-dimensional image alignment data; The low-dimensional image alignment data is expanded into a one-dimensional vector, and high-dimensional features are extracted through the fully connected layer to obtain the image features.
6. The method for identifying and eliminating weak seedlings based on a visual algorithm as claimed in claim 1, characterized in that: The step of extracting features of the humidity alignment data and the temperature alignment data in the multi-source alignment data through statistical analysis to obtain humidity features and temperature features includes: By using a time series analysis method, time domain features and frequency domain features are extracted from the humidity alignment data and the temperature alignment data to obtain multi-scale features; Performing dimensionality reduction processing on the multi-scale features, and performing clustering to obtain cluster features; A support vector machine is used to perform feature selection on the cluster features, and the humidity features and temperature features are output.
7. The method for identifying and eliminating weak seedlings based on a visual algorithm as claimed in claim 1, characterized in that: The multi-source fusion network is used to fuse the image features, the humidity features and the temperature features, and the fused features are input into the weak seedling recognition model for recognition to obtain weak seedling recognition data, including: Constructing the multi-source fusion network, and using feature weighting in the multi-source fusion network to perform feature splicing on the image feature, the humidity feature, and the temperature feature to obtain a fusion feature; The weak seedling identification model is constructed using a long short-term memory network, the fusion features are input into the weak seedling identification model, the weak seedling identification result is output, and a confidence assessment is performed. If the confidence threshold is met, the weak seedling identification data is obtained.
8. The weak seedling identification and elimination system based on visual algorithm is characterized by: The steps for implementing the method for identifying and eliminating weak seedlings based on a visual algorithm as described in any one of claims 1 to 7 include: A multi-source data acquisition module, wherein the multi-source data acquisition module is used to integrate an image sensor, a humidity sensor and a temperature sensor to perform multi-source data acquisition in the field to obtain image data, humidity data and temperature data; A preprocessing module, the preprocessing module is used to perform denoising and enhancement processing on the image data to obtain image preprocessing data, calibrate and fill missing values on the humidity data and the temperature data to obtain humidity preprocessing data and temperature preprocessing data; An alignment processing module, the alignment processing module is used to align the image preprocessing data, the humidity preprocessing data and the temperature preprocessing data through time stamp and spatial positioning to obtain multi-source alignment data; A feature extraction module, wherein the feature extraction module is used to perform feature extraction on the image alignment data in the multi-source alignment data through a convolutional neural network to obtain image features, and to perform feature extraction on the humidity alignment data and the temperature alignment data in the multi-source alignment data through statistical analysis to obtain humidity features and temperature features; A weak seedling identification module, wherein the weak seedling identification module is used to perform feature fusion on the image features, the humidity features and the temperature features using a multi-source fusion network, input the fused features into a weak seedling identification model for identification, and obtain weak seedling identification data; A weak seedling elimination module is used to eliminate weak seedlings based on the weak seedling identification data.
Citation Information
Cited By
Tunnel wall detection method, device, equipment and medium
CN120976731A
Tomato seedling cultivation system and use method thereof
CN121153506A
