A method for identifying cigar tobacco leaf drying process stages based on incremental learning
The incremental learning method is used to deal with data noise and outliers in the tobacco leaf drying process, and a cyclic meta-classifier model is constructed to solve the problems of poor data quality and poor performance of one-time learning algorithms in the existing technology, and realize the tobacco leaf curing process. High-precision identification and optimization of the drying process.
Patent Information
- Application Number
- CN202210033559.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-12
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2042-01-12
AI Technical Summary
There are many data features imported into the model through image processing during the existing tobacco leaf drying process, and noise and data anomalies are frequent, resulting in poor data quality. Moreover, the one-time learning training algorithm performs generally when the data is noisy, making it difficult to be applied to actual production.
Using a method based on incremental learning, tobacco leaf images and related data are collected every 60 minutes for preprocessing and feature extraction. The random forest algorithm is used to fill in missing values and handle outliers. The embedding method is used to select features, combined with the SGD logical classification algorithm. Incremental training builds a cyclic meta-classifier model to achieve real-time identification and optimization of the drying process.
It improves the accuracy of model judgment and training efficiency, eases the workload of tobacco farmers, optimizes the tobacco leaf drying process, and improves tobacco leaf quality and economic benefits.
Smart Images

Figure CN114359697B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of tobacco leaf air-drying, and in particular relates to a method for identifying cigar tobacco leaf air-drying process stages based on incremental learning. Background Art
[0002] At present, cigar tobacco leaf curing refers to the process in which the tobacco leaves are gradually dried after harvest and the chemical composition of the tobacco leaves gradually changes. It is an important process for the formation of the appearance quality and internal quality of cigar tobacco leaves. From a physiological point of view, curing is mainly a hunger metabolism process, which is a process of coordination between the dehydration and drying of tobacco leaves and the changes in internal chemical substances. Among them, as the most expensive part of cigar tobacco, the cured wrapper is dark brown and uniform in color. The tobacco leaves are thin, oily, elastic, and have thin and smooth veins. The total alkaloids, total nitrogen and chlorine contents are all reduced, the potassium content, potassium-chlorine ratio and nitrogen-alkali ratio are slightly increased, and the combustibility is improved. However, in the traditional air-drying process, the quality of the tobacco leaves after curing is greatly affected by the environment, and it is easy to have uneven color, rough tissue structure, thick leaves, poor elasticity, etc. In addition, in terms of process execution, it is necessary to rely on tobacco farmers to make subjective judgments on the air-drying process of tobacco leaves through their senses. The quality of tobacco leaves often depends on the farmers' air-drying experience. There is a lack of mature air-drying technology and supporting air-drying facilities. The research on intelligent air-drying equipment is at a blank stage. Once there is a quality problem, the data information during the air-drying process cannot be used to analyze the air-drying process, which hinders the improvement of the air-drying process.
[0003] With the rapid development of machine learning technology, intelligence has gradually become the direction of transformation in various fields, and automatic intelligent technology has also shown excellent results in industrial applications. Therefore, the present invention takes advantage of machine learning, collects various data generated by the cigar wrapper part of cigar tobacco leaves during the drying process in the drying room for the CX-026 tobacco variety, and constructs a prediction model for the tobacco drying process stage to ensure high-precision identification of the drying process stage during the drying process, thereby achieving real-time control and adjustment of the drying process, which will greatly promote the relief of tobacco farmers' workload, improve tobacco drying efficiency, optimize tobacco drying process, improve tobacco drying quality and increase the economic benefits of tobacco.
[0004] Theoretically, the data collected during the tobacco leaf drying process are mainly divided into two categories, namely structured data and unstructured data, which mainly include: drying room temperature, drying room humidity, tobacco leaf water loss, tobacco leaf images and other data. Conventional tobacco leaf image processing needs to pay attention to the changes in leaf color and area and changes in veins of tobacco leaves. Among them, the color feature data of the leaf color is mainly collected in two color spaces, RGB (Red Green Blue) and HSV (Hue Saturation Value), and the various feature data of leaf texture are mainly collected in terms of leaf veins. This means that there are many data features imported into the model, and as the amount of data extracted during the drying process increases, the number of noise and data anomalies also increases, resulting in poor data quality. In addition, the existing research on tobacco leaf drying process recognition uses one-time learning and training algorithms. These algorithms perform generally when there is a lot of data noise and are difficult to apply to actual production.
[0005] Through the above analysis, the problems and defects of the prior art are as follows:
[0006] (1) The existing tobacco leaf image processing method in the tobacco leaf drying process imports a large number of data features into the model, and the number of noise and data anomalies also increases, resulting in poor data quality.
[0007] (2) Existing research on tobacco leaf drying process identification all uses one-time learning and training algorithms. These algorithms perform poorly when there is a lot of data noise and are difficult to apply to actual production.
[0008] The difficulty of solving the above problems and defects is:
[0009] Currently, due to problems with data and modeling ideas, one-time learning and training algorithms perform poorly in complex data sets, and the performance of the model is limited.
[0010] The significance of solving the above problems and defects is:
[0011] The algorithm is used to preprocess the initial data set extracted from the drying room to reduce the serious impact of a large amount of noise on model learning, improve the model training efficiency, and reduce the model training cost. The processed feature data helps to improve the accuracy of model judgment, relieve the workload of tobacco farmers and improve the efficiency of tobacco leaf drying in the actual production process. In addition, with the development of model fusion technology, the use of a multi-stage model training mode can effectively optimize the model training process and improve the model's prediction performance. Summary of the invention
[0012] In view of the problems existing in the prior art, the present invention provides a method for identifying the stages of cigar tobacco leaf drying process based on incremental learning.
[0013] The present invention is implemented as follows: a method for identifying the stages of cigar tobacco leaf drying process based on incremental learning comprises:
[0014] Step 1: collect drying images of the wrapper part of cigar tobacco leaves from the drying room every 60 minutes according to a fixed time period, and collect dry-bulb and wet-bulb temperature data and water loss sensor data in the drying room at the same time, and upload them to the cloud platform database using a transmission device to obtain the original data set for model training; pre-process the collected images to improve the image quality;
[0015] Step 2: Perform RGB, HSV and texture feature value extraction operations on the image processed in step 1 to convert the tobacco leaf image into structured data, and then form a feature set with the dry-bulb and wet-bulb temperature data and the water loss sensor data;
[0016] Step 3: After preprocessing missing values and outliers using the random forest algorithm on the feature set processed in step 2, digitally encode the process stage of the tobacco leaves in the image, and store the digital code in the database;
[0017] Step 4: Use the Embedded algorithm to perform feature selection on the data set processed in step 3 to obtain a feature set, and perform standardization operations on all data to make the data dimensionless to form an initial data set;
[0018] Step 5: Divide the data set of a single drying batch in the initial data set into multiple streaming data sets, and use the corresponding drying process stage codes as training labels. According to the incremental training mode, use the SGD logical classification algorithm to model the feature data of a single drying batch, and obtain the first-layer base classifier after training.
[0019] Step 6: Taking the drying batch as a unit, continue to use the SGD logical classification model as the meta-classifier of the second layer, build a loop to sequentially input the feature data of the entire drying batch in the initial data set into the model, and after incremental training, obtain the trained SGD logical classification model;
[0020] Step seven: collect the structured data and unstructured data in the drying room in real time, process them through steps one to four, and input them into the trained SGD logic classification model to obtain the recognition result. At the same time, the model uses the data increment to learn again and continuously improve the recognition accuracy.
[0021] Furthermore, in the step 1, when preprocessing the collected image, a median filtering nonlinear smoothing algorithm and a dark channel defogging algorithm are used.
[0022] Furthermore, the feature set in step 2 includes the R, G, H, texture contrast, and texture homogeneity feature values in the tobacco leaf image processed in step 1, which together with the dry-bulb and wet-bulb temperature data and the water loss sensor data constitute a feature set.
[0023] Furthermore, in step three, in the digital encoding of the process stage of the tobacco leaves in the image, the tobacco leaf drying process is divided into four process stages, including the withering stage, the yellowing stage, the browning stage, and the dry tendon stage. The processed target image is labeled with the process stages, corresponding to numbers 0 to 3, and stored in the database.
[0024] Furthermore, when preprocessing missing values in step three, all data features are traversed, starting from the feature with the least missing values, and the random forest algorithm is used to fill in the missing values. When filling in a feature, the missing values of other features are first replaced with 0. After each regression prediction is completed, the predicted value is placed in the original feature matrix, and then the next feature is filled in.
[0025] Furthermore, when performing feature selection on the data set in step 4, the Embedded embedding method is used to first train the feature set using the random forest algorithm to obtain the weight coefficient of each feature, and then select features from large to small according to the weight coefficient.
[0026] Furthermore, the training operation of the first layer base classifier in step 5 is:
[0027] By dividing the initial data set into a single drying batch, N batches of drying data sets can be obtained. The data in each drying batch is divided into 50 units to obtain a total of m streaming data sets a1, a2...am, and the corresponding drying process stage codes are used as training labels.
[0028] Using the SGD logical classification algorithm, in accordance with the incremental training mode, streaming data sets a1, a2...am are imported in sequence to train the SGD logical classification model. The SGD logical classification model parameters are automatically adjusted according to the grid search method, and the model regularization method is L2, the regularization strength is 1, the maximum number of iterations is 100, the classification type is multinomial, the optimization method is saga, and the number of CPU threads is -1.
[0029] Furthermore, the training operation of the second layer base classifier in step six is:
[0030] The feature set of N drying batches is divided into training set data and test set data in a ratio of 8:2;
[0031] Taking the drying batch as the unit, continue to use the SGD logical classification model as the second-layer meta-classifier, build a loop to input the feature data of the entire drying batch in the initial data set into the model in turn, and after incremental training, obtain the trained SGD logical classification model. According to the learning curve, determine that the regularization method is L2, the regularization strength is 1, the maximum number of iterations is 80, the classification type is multinomial, the optimization method is saga, the number of CPU threads is -1, and the training of the incremental learning model is completed.
[0032] Combining all the above technical solutions, the advantages and positive effects of the present invention are as follows:
[0033] 1. In terms of data processing, in view of the fact that tobacco leaf data has many missing values, the random forest algorithm is used to predict the missing values of tobacco leaf data, filling a large amount of effective information for tobacco leaf data features, and improving the accuracy of subsequent model predictions; and the Embedded method is used to accurately measure the model utility itself, obtain the weight coefficient of each feature, delete irrelevant features and features without discrimination, solve the problem of a large amount of noise in the drying data, and improve the efficiency of model training;
[0034] 2. In terms of model training, the fusion model based on incremental learning first divides a single drying batch into multiple streaming data sets, and trains the SGD logical classification model using the incremental training mode. Then, the model fusion technology is used to take each drying batch as the training unit, and the SGD logical classification model is continued to be used for incremental learning to identify the tobacco leaf drying process stage, thereby realizing real-time and rapid judgment of the drying process stage. At the same time, the model uses subsequent data increments to learn again and continuously improve the recognition accuracy, so as to improve the tobacco leaf drying process, optimize the tobacco leaf drying process, alleviate the work pressure of tobacco farmers, and realize remote, intelligent and precise drying.
[0035] The present invention proposes a fusion model based on the SGD logic classification algorithm and an incremental learning mode to identify the tobacco leaf air-drying process stages. The model can pre-process and select features of the data in combination with the characteristics of the air-drying data collected in the air-drying room. Through the incremental training learning mode, the accuracy of judging the air-drying process stages is gradually improved, the tobacco leaf air-drying process is optimized, the work pressure of tobacco farmers is relieved, and the economic benefits of tobacco leaves are improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0037] Figure 1It is a flow chart of a method for identifying cigar tobacco leaf drying process stages based on incremental learning provided by an embodiment of the present invention.
[0038] Figure 2 It is a relationship diagram between missing value filling and regression prediction times provided by an embodiment of the present invention.
[0039] Figure 3 It is a comparison chart of the effects of the missing value processing method provided by the embodiment of the present invention.
[0040] Figure 4 It is a learning curve diagram of the feature selection model parameters provided by an embodiment of the present invention.
[0041] Figure 5 It is a flowchart of the incremental learning model training provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0043] In view of the problems existing in the prior art, the present invention provides a method for identifying the stages of cigar tobacco leaf drying process based on incremental learning. The present invention is described in detail below in conjunction with the accompanying drawings.
[0044] like Figure 1 As shown, the method for identifying the cigar tobacco leaf drying process stage based on incremental learning provided by the embodiment of the present invention includes:
[0045] S101, collecting drying images of the wrapper part of cigar tobacco leaves from the drying room every 60 minutes according to a fixed time period, and collecting dry-bulb and wet-bulb temperature data and water loss sensor data in the drying room, and uploading them to the cloud platform database by using a transmission device to obtain an original data set for model training; pre-processing the collected images to improve image quality;
[0046] S102, performing RGB, HSV and texture feature value extraction operations on the image processed in step 1, converting the tobacco leaf image into structured data, and then forming a feature set with the dry-bulb and wet-bulb temperature data and the water loss sensor data;
[0047] S103, after preprocessing missing values and abnormal values of the feature set after the processing in step 2 using a random forest algorithm, digitally encode the process stage of the tobacco leaves in the image, and store the digital code in a database;
[0048] S104, using the Embedded algorithm to perform feature selection on the data set processed in step 3 to obtain a feature set, and perform standardization operations on all data to make the data dimensionless to form an initial data set;
[0049] S105, dividing the data set of a single drying batch in the initial data set into multiple streaming data sets, and using the corresponding drying process stage codes as training labels, and using the SGD logical classification algorithm in an incremental training mode to model the feature data of the single drying batch, and obtaining a first-layer base classifier after training;
[0050] S106, taking the drying batch as a unit, continue to use the SGD logical classification model as the meta-classifier of the second layer, build a loop to sequentially input the feature data of the entire drying batch in the initial data set into the model, and after incremental training, obtain the trained SGD logical classification model;
[0051] S107, the structured data and unstructured data collected in the drying room in real time are processed through steps 1 to 4 and then input into the trained SGD logic classification model to obtain the recognition result. At the same time, the model uses the data increment to learn again to continuously improve the recognition accuracy.
[0052] The present invention is further described below in conjunction with embodiments.
[0053] S1. Collect structured data from various sensors arranged in the air-drying room with a collection cycle of 60 minutes, and then combine it with the tobacco leaf images taken by the camera to form an original data set. Since the original data set contains structured data and unstructured data, the data set is preprocessed:
[0054] The steps for preprocessing the data set are as follows:
[0055] S11, using the median filter nonlinear smoothing algorithm to remove noise from the tobacco leaf drying image. For any pixel in the image, calculate the median grayscale value of all pixels in a square with a side length of 3 near the pixel, and determine the value as the pixel value of the pixel to be processed.
[0056] S12. During the tobacco leaf drying process, the temperature difference in the drying room is large, which causes the collected tobacco leaf images to be fogged. The dark channel defogging algorithm is used to determine the minimum filter radius r as 5 to eliminate the fogging phenomenon and correct the color of the tobacco leaf drying image.
[0057] S13, converting tobacco leaf images into structured data. During the drying process, the color of tobacco leaves will change from green to yellow-brown. Based on the principle of three primary colors, a fixed area in the tobacco leaf image is selected, and the values of the three color components R (red), G (green), and B (blue) in the area are collected, and then normalized as RGB color feature data.
[0058] S14. Based on the RGB-HSV formula, the tobacco leaf image is converted from the RGB color space to the HSV color space, and the H (hue), S (saturation), and V (value) component values of the image are collected as HSV color feature data.
[0059] S15. During the drying process, the main veins of tobacco leaves turn yellow and the leaves curl after the leaves become muscular. After the leaves are completely dried, the leaves curl completely. Therefore, the gray-level co-occurrence matrix is used to calculate the texture data of the tobacco leaves during the drying process, mainly including the texture energy (Energy), texture entropy (Entropy), texture contrast (Contrast) and texture homogeneity (Homogeneity) of the tobacco leaves as texture feature data.
[0060] S2. Obtain the feature data set in step S1, merge it with the structured data collected in the drying room in chronological order, obtain a drying feature data set including R color component, G color component, B color component, H color component, S color component, V color component, texture contrast, texture homogeneity, texture energy, texture entropy, dry-bulb and wet-bulb temperatures, and water loss sensor data, and store it in a database.
[0061] S3, obtain the data in the feature set in step S24, perform data preprocessing operations, and improve the quality of the data. The specific method is:
[0062] S31. Missing value processing. The initial data set collected from the drying room contains a large number of missing eigenvalues. The relationship between the drying data feature matrix and the coded label is used to convert the label and the feature matrix. The random forest algorithm is used to fill in the missing values in the feature matrix, and the features with missing values in the initial data set are traversed. Start filling in the feature with the least missing values. Each time a feature is filled in, the missing values of other features are replaced with 0. After each regression prediction, the predicted value of the random forest model is filled in the original feature matrix, and then the next feature is filled in. After each filling, the number of features with missing values is reduced by one, that is, after each cycle, the number of features that need to be filled with 0 is getting smaller and smaller. When it comes to the last feature, there are no other features that need to be filled with 0. Figure 1As shown in FIG. 1 , the number of features containing missing values in the data missing value processing of this embodiment decreases monotonically with the number of regression predictions. The method of predicting missing values using random forest regression can significantly reduce the mean square error of the data set, such as Figure 2 As shown in the figure, compared with the method of filling missing values with mean and special values, the method of filling missing values with random forest regression can effectively make up for the missing information of data and improve the accuracy of model training.
[0063] S32, outlier processing. Obtain the data processed in step S31, use the Min-Max Scaling method to normalize the data so that the data obeys the normal distribution, then capture the data outliers according to the 3σ rule, and correct the outliers in combination with the functional relationship of the previous and next data.
[0064] S33. Data feature selection.
[0065] Using the Embedded method, the random forest algorithm is first used to train the feature set to obtain the weight coefficients of each feature. These weight coefficients represent the contribution and importance of the data features to the model training. Since the random forest is a model that uses penalty items, as the regularization penalty increases, the weight coefficients corresponding to the data features in the constructed model decrease accordingly. As the regularization penalty item is continuously increased, the weight coefficients of some features will be more easily reduced to 0, that is, these features have no contribution to the model training. Such features are deleted and features with large weight coefficients are retained. Based on the contribution evaluation, features are selected from large to small according to the weight coefficients, and irrelevant features and non-discriminatory features are removed to effectively improve the effectiveness of model training.
[0066] Based on the feature_importance interface in the random forest model, the learning curve is used to find the optimal feature importance threshold and filter out the best feature value of the drying data. Figure 3 As shown, in the data feature selection of this embodiment, as the parameter threshold continues to increase, the overall effect of the model shows a trend of first gradually increasing and then slowly decreasing. More and more features are eliminated, and the loss of data information also increases accordingly. However, at around 0.1029, the model can achieve an effect close to 0.98, so the value in this range is selected as the parameter threshold to be passed into the data feature selection model.
[0067] S34, data standardization. The data processed in step S33 is standardized using the Z-Score standardization method to make the data obey the standard normal distribution.
[0068] S35, encoding tobacco leaf airing process stages. The tobacco leaf airing process in this embodiment is divided into four process stages: withering, yellowing, browning and dry tendons. The target image processed by steps S11 and S12 is labeled with the four process stages, corresponding to numbers 0-3 respectively, and saved in the tobacco leaf airing information database processed by step S33 according to the correspondence between the image and the data.
[0069] S4, divide the data set of a single drying batch in the initial data set into multiple streaming data sets, and use the corresponding drying process stage code as the training label, and use the SGD logical classification algorithm in the incremental training mode to model the feature data of a single drying batch, and obtain the first-layer base classifier after training. The training operation of the first-layer model is as follows:
[0070] By dividing the initial data set into N batches of drying data sets, the data in each drying batch is divided into 50 units to obtain streaming data sets a1, a2, ... a m There are m in total, and their corresponding drying process stage codes are used as training labels;
[0071] Using the SGD logical classification algorithm, we import streaming data sets a1, a2, ...a in turn according to the incremental training mode. m , train the SGD logical classification model. According to the learning curve, determine the model's regularization method as L2, regularization strength as 1, maximum number of iterations as 100, classification type as multinomial, optimization method as saga, and number of CPU threads as -1;
[0072] S5. Taking the drying batch as the unit, continue to use the SGD logical classification model as the meta-classifier of the second layer, build a loop to input the feature data of the entire drying batch in the initial data set into the model in turn, and obtain the trained SGD logical classification model after incremental training. The training operation of the second layer model is as follows:
[0073] The feature sets of N drying batches are divided into training set data and test set data in a ratio of 8:2.
[0074] Based on the predict_fit interface in the SGD logical classification model, the model is incrementally trained by inputting a single drying batch data in sequence. According to the learning curve, the regularization method is determined to be L2, the regularization strength is 1, the maximum number of iterations is 80, the classification type is multinomial, the optimization method is saga, and the number of CPU threads is -1.
[0075] S6. The structured data and unstructured data collected in the air-drying room in real time are input into the trained incremental learning model after being processed in steps S1, S2 and S3 to obtain recognition results. At the same time, the model uses the data increment to learn again, so as to improve the accuracy of judging the air-drying process stage, optimize the tobacco air-drying process, relieve the work pressure of tobacco farmers, and improve the economic benefits of tobacco leaves.
[0076] It should be noted that the embodiments of the present invention can be implemented by hardware, software, or a combination of software and hardware. The hardware part can be implemented using dedicated logic; the software part can be stored in a memory and executed by an appropriate instruction execution system, such as a microprocessor or dedicated design hardware. It can be understood by a person of ordinary skill in the art that the above-mentioned devices and methods can be implemented using computer executable instructions and / or contained in a processor control code, such as a carrier medium such as a disk, CD or DVD-ROM, a programmable memory such as a read-only memory (firmware), or a data carrier such as an optical or electronic signal carrier. Such code is provided on the carrier medium. The device and its modules of the present invention can be implemented by hardware circuits such as very large-scale integrated circuits or gate arrays, semiconductors such as logic chips, transistors, etc., or programmable hardware devices such as field programmable gate arrays, programmable logic devices, etc., can also be implemented by software executed by various types of processors, and can also be implemented by a combination of the above-mentioned hardware circuits and software, such as firmware.
[0077] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any modifications, equivalent substitutions and improvements made by any technician familiar with the technical field within the technical scope disclosed by the present invention and within the spirit and principle of the present invention should be covered by the protection scope of the present invention.
Claims
1. A method for identifying the stages of cigar tobacco leaf drying process based on incremental learning, characterized in that: The incremental learning-based cigar tobacco leaf drying process stage identification method includes: Step 1: collect drying images of the wrapper part of cigar tobacco leaves from the drying room every 60 minutes according to a fixed time period, and collect dry-bulb and wet-bulb temperature data and water loss sensor data in the drying room at the same time, and upload them to the cloud platform database using a transmission device to obtain the original data set for model training; pre-process the collected images to improve the image quality; Step 2: Perform RGB, HSV and texture feature value extraction operations on the image processed in step 1 to convert the tobacco leaf image into structured data, and then form a feature set with the dry-bulb and wet-bulb temperature data and the water loss sensor data; Step 3: After preprocessing missing values and outliers using the random forest algorithm on the feature set processed in step 2, digitally encode the process stage of the tobacco leaves in the image, and store the digital code in the database; Step 4: Use the Embedded algorithm to perform feature selection on the data set processed in step 3 to obtain a feature set, and perform standardization operations on all data to make the data dimensionless to form an initial data set; Step 5: Divide the data set of a single drying batch in the initial data set into multiple streaming data sets, and use the corresponding drying process stage codes as training labels. According to the incremental training mode, use the SGD logical classification algorithm to model the feature data of a single drying batch, and obtain the first-layer base classifier after training. Step 6: Taking the drying batch as a unit, continue to use the SGD logical classification model as the meta-classifier of the second layer, build a loop to sequentially input the feature data of the entire drying batch in the initial data set into the model, and after incremental training, obtain the trained SGD logical classification model; Step seven: collect the structured data and unstructured data in the drying room in real time, process them through steps one to four, and input them into the trained SGD logic classification model to obtain the recognition result. At the same time, the model uses the data increment to learn again and continuously improve the recognition accuracy.
2. The cigar tobacco leaf drying process stage identification method based on incremental learning according to claim 1, characterized in that: When preprocessing the collected image in the step 1, a median filtering nonlinear smoothing algorithm and a dark channel defogging algorithm are used.
3. The incremental learning-based cigar tobacco air-drying process stage identification method according to claim 1, characterized in that: The feature set in step 2 includes the R, G, H, texture contrast, and texture homogeneity feature values in the tobacco leaf image processed in step 1, which together with the dry-bulb and wet-bulb temperature data and the water loss sensor data constitute the feature set.
4. The method for identifying cigar tobacco leaf drying process stages based on incremental learning according to claim 1, characterized in that: In step three, in which the process stage of the tobacco leaves in the image is digitally encoded, the tobacco leaf drying process is divided into four process stages, including the withering stage, the yellowing stage, the browning stage, and the dry tendon stage. The processed target image is labeled with the process stages, corresponding to numbers 0 to 3, and stored in the database.
5. The method for identifying cigar tobacco leaf drying process stages based on incremental learning according to claim 1, characterized in that: When preprocessing missing values in step 3, traverse all data features, start with the feature with the least missing values, and use the random forest algorithm to fill in the missing values. When filling in a feature, first replace the missing values of other features with 0. After each regression prediction is completed, put the predicted value into the original feature matrix, and then continue to fill in the next feature.
6. The incremental learning-based cigar tobacco air-drying process stage identification method according to claim 1, characterized in that: When performing feature selection on the data set in step 4, the Embedded embedding method is used. The feature set is first trained using the random forest algorithm to obtain the weight coefficient of each feature, and then the features are selected from large to small according to the weight coefficient.
7. The method for identifying cigar tobacco leaf drying process stages based on incremental learning according to claim 1, characterized in that: The training operation of the first layer base classifier in step 5 is: By dividing the initial data set into a single drying batch, N batches of drying data sets can be obtained. The data in each drying batch is divided into 50 units to obtain a total of m streaming data sets a1, a2...am, and the corresponding drying process stage codes are used as training labels. Use the SGD logical classification algorithm and import streaming data sets a1, a2...am in sequence according to the incremental training mode to train the SGD logical classification model. Automatically adjust the SGD logical classification model parameters according to the grid search method. According to the learning curve, the model's regularization method is L2, the regularization strength is 1, the maximum number of iterations is 100, the classification type is multinomial, the optimization method is saga, and the number of CPU threads is -1.
8. The method for identifying cigar tobacco leaf drying process stages based on incremental learning according to claim 1, characterized in that: The training operation of the second layer base classifier in step 6 is: The feature set of N drying batches is divided into training set data and test set data in a ratio of 8:2; Taking the drying batch as the unit, continue to use the SGD logical classification model as the second-layer meta-classifier, build a loop to input the feature data of the entire drying batch in the initial data set into the model in turn, and after incremental training, obtain the trained SGD logical classification model. According to the learning curve, determine that the regularization method is L2, the regularization strength is 1, the maximum number of iterations is 80, the classification type is multinomial, the optimization method is saga, the number of CPU threads is -1, and the training of the incremental learning model is completed.
9. A computer program product stored on a computer-readable medium, comprising a computer-readable program, which, when executed on an electronic device, provides a user input interface to implement the method for identifying the stages of a cigar leaf drying process based on incremental learning as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium storing instructions, which, when executed on a computer, enable the computer to execute the method for identifying cigar tobacco leaf drying process stages based on incremental learning as claimed in any one of claims 1 to 7.
