Temperature and humidity combined control system for blueberry anthocyanin extraction and concentration process
Through the temperature and humidity joint control system in the blueberry anthocyanin extraction and concentration process, the problem of unstable temperature and humidity control is solved, a more efficient and stable extraction process is achieved, and product quality and energy utilization efficiency are improved.
Patent Information
- Application Number
- CN202410320007.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-20
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-03-20
AI Technical Summary
In the current extraction process of blueberry anthocyanins, the control of temperature and humidity is not stable enough, which affects product quality, and it relies on manual operation, resulting in low efficiency and waste of energy.
A temperature and humidity joint control system for the blueberry anthocyanin extraction and concentration process was designed. Through stage division, data collection, image analysis and PID controller, the temperature and humidity were monitored and adjusted in real time, and the temperature and humidity conditions at different stages were intelligently matched.
It improves the extraction efficiency and quality of blueberry anthocyanins, reduces manual errors, avoids waste of energy, and makes the extraction process more stable and controllable.
Smart Images

Figure CN118276622B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of temperature and humidity combined control, and more specifically to a temperature and humidity combined control system for a blueberry anthocyanin extraction and concentration process. Background Art
[0002] The preparation method of blueberry anthocyanin includes the following key steps: raw material processing: take blueberries, add 3 times the amount of 30-40℃ warm water for enzymatic hydrolysis at room temperature for 3 hours; this step uses the pectinase of blueberry fruit for pretreatment to prepare for subsequent extraction;
[0003] Extraction process: The extraction is carried out twice. The first time, 7 times the amount of water is added, and the extraction temperature is controlled at 50±5℃ for 1 hour; after filtration, 10 times the amount of water is added to the residue again, and the extraction process is repeated, and the extraction temperature is also controlled at 50±5℃;
[0004] Filtration and concentration: The extract is filtered through a plate and frame filter, and then further filtered using a ceramic membrane filter unit; the filtered liquid is stored in a temporary storage tank, and then enters a nanofiltration membrane unit for concentration until the volume is reduced to 1 / 3 of the original system; then, the concentrate is transferred to a double-effect concentration unit and concentrated under reduced pressure conditions (vacuum degree -0.06 to -0.08Mpa), and the temperature is controlled at 55±5℃ to obtain a thick extract;
[0005] Drying and finished products: The thick extract is spray dried, the inlet temperature of the drying is 170-200°C, and the outlet temperature is controlled at 70-100°C, and finally the blueberry anthocyanin powder is obtained; the extraction rate is between 0.45% and 0.55%; after sieving, it is packaged to obtain the finished product;
[0006] Based on the above-mentioned production process of blueberry anthocyanins, it can be known that the temperature and humidity in the production process of blueberry anthocyanins need to be strictly controlled in order to extract blueberry anthocyanins with stable properties and high color value; however, in the prior art, when blueberry anthocyanins are produced, the temperature and humidity are controlled manually, resulting in the control of temperature and humidity being not stable and accurate enough, affecting the quality stability of blueberry anthocyanins, such as Authorization Announcement No. CN105175463B China The patent discloses the extraction process of blueberry anthocyanins; therefore, an intelligent temperature and humidity control method is urgently needed to increase yield, save energy and ensure product quality;
[0007] In view of this, the present invention proposes a temperature and humidity combined control system for the blueberry anthocyanin extraction and concentration process to solve the above problems. Summary of the invention
[0008] In order to overcome the above-mentioned defects of the prior art and to achieve the above-mentioned purpose, the present invention provides the following technical solution: a temperature and humidity combined control system for the extraction and concentration process of blueberry anthocyanins, comprising:
[0009] A stage division module is used to divide the blueberry anthocyanin extraction process into stages and mark them as blueberry anthocyanin acquisition stages;
[0010] A data collection module, used to collect time data during the blueberry anthocyanin acquisition phase;
[0011] The first stage judgment module is used to analyze the time data and determine whether to generate a preliminary stage switching instruction;
[0012] The image acquisition module acquires an image of blueberry anthocyanins if a preliminary stage switching instruction is generated;
[0013] The second stage judgment module is used to analyze the blueberry anthocyanin image and determine whether to generate a stage switching instruction;
[0014] The third stage judgment module is used to judge the current blueberry anthocyanin acquisition stage according to the number of times the stage switching instruction is generated, and mark it as the current stage;
[0015] Temperature and humidity control module, used to control the temperature and humidity to adapt to the current stage;
[0016] The adjustment module is used to collect temperature and humidity in real time and determine whether to generate an adjustment instruction. If an adjustment instruction is generated, the temperature control signal and the humidity control signal are calculated by the PID controller, and the constant temperature and humidity equipment is controlled to adjust the temperature and humidity according to the temperature control signal and the humidity control signal.
[0017] Furthermore, the blueberry anthocyanin acquisition stage includes an enzymatic hydrolysis stage, an extraction stage, a filtration and concentration stage, and a drying stage; the time data is the duration of each blueberry anthocyanin acquisition stage, and one time data corresponds to one blueberry anthocyanin acquisition stage.
[0018] Furthermore, the method for determining whether to generate a preliminary stage switching instruction includes:
[0019] Count the number of stages n corresponding to the blueberry anthocyanin acquisition stage 1 , n 1 is an integer greater than 1; preset n 2 time thresholds, where n 1 =n 2 , the blueberry anthocyanin acquisition stages correspond one to one with the time threshold;
[0020] Compare the collected time data with the corresponding time threshold;
[0021] If the time data is greater than or equal to the time threshold, a preliminary stage switching instruction is generated;
[0022] If the time data is less than the time threshold, no preliminary stage switching instruction is generated.
[0023] Furthermore, the method for determining whether to generate a phase switching instruction includes:
[0024] If it is determined that any of the enzymatic hydrolysis stage, the extraction stage, or the filtration and concentration stage is completed, a stage switching instruction is generated;
[0025] Methods for judging the completion of the enzymatic hydrolysis stage include:
[0026] Step S101: converting the blueberry anthocyanin image from the BGR color space to the HSV color space and marking it as an HSV image;
[0027] Step S102: extracting the brightness values corresponding to a pixels in the HSV image, where a is the number of pixels in the HSV image;
[0028] Step S103: add the brightness values corresponding to a pixels in sequence, and then divide by a to obtain an average brightness value, and use the average brightness value as the color brightness;
[0029] The expression for color brightness is:
[0030] Where YL is the color brightness, V b is the brightness value corresponding to the b-th pixel, b∈[1,a];
[0031] Step S104: presetting the initial color brightness and the brightness change threshold, subtracting the color brightness from the initial color brightness to obtain a difference, and using the difference as the brightness change amount;
[0032] comparing the brightness change amount with a brightness change threshold;
[0033] If the brightness change is greater than or equal to the brightness change threshold, the enzymatic hydrolysis stage is judged to be completed;
[0034] If the brightness change is less than the brightness change threshold, it is determined that the enzymatic hydrolysis stage is not completed.
[0035] Further, the method for determining whether the extraction stage is completed includes:
[0036] Step S201: graying the blueberry anthocyanins;
[0037] Step S202: Collect the grayscale values corresponding to a pixels;
[0038] Step S203: preset a gray value threshold, compare the gray values corresponding to a pixel points with the gray value threshold respectively, mark the pixel points with gray values greater than or equal to the gray value threshold as filter residue points, and do not mark the pixel points with gray values less than the gray value threshold;
[0039] Step S204: Count the number of filter residue points and calculate the filter residue area;
[0040] The calculation method of filter residue area includes:
[0041] LZ = GS × LM × ξ;
[0042] Where LZ is the filter residue area, GS is the number of filter residue points, LM is the area of a filter residue point, and ξ is the scaling factor;
[0043] The area of a filter residue point is obtained by the resolution of the blueberry anthocyanin image, and the resolution of the blueberry anthocyanin image is obtained by the attribute of the blueberry anthocyanin image; the actual area corresponding to the blueberry anthocyanin image is divided by the area of the blueberry anthocyanin image as a scaling factor;
[0044] Step S205: preset an area threshold TH, and compare and analyze the filter residue area LZ with the area threshold TH;
[0045] If LZ < TH, the extraction phase is judged to be completed;
[0046] If LZ ≥ TH, it is judged that the extraction stage is not completed.
[0047] Further, the method for determining the completion of the filtration and concentration stages includes:
[0048] Step S301: using the trained concentration analysis model to identify the blueberry anthocyanin image, and outputting the recognition result, the recognition result including whether the concentration is completed or not;
[0049] The enrichment analysis model training process includes:
[0050] Collect multiple blueberry anthocyanin images in advance, mark each blueberry anthocyanin image as a training image, annotate the blueberry anthocyanin in each training image, and the annotations include completed concentration and incomplete concentration; convert completed concentration and incomplete concentration into digital annotations respectively; divide the annotated training images into a training set and a test set; use the training set to train the concentration analysis model, and use the test set to test the concentration analysis model; preset an error threshold, and when the mean of the prediction errors of all training images in the test set is less than the error threshold, output the concentration analysis model; the concentration analysis model is a convolutional neural network model;
[0051] Step S302: If the recognition result is that concentration is completed, it is determined that the filtering and concentration stages are completed;
[0052] If the identification result is that the concentration is not completed, it is determined that the filtering and concentration stages are not completed.
[0053] Furthermore, the method for determining the current blueberry anthocyanin acquisition stage includes:
[0054] Count the number of times the phase switching instructions are generated;
[0055] If only one stage switching instruction is generated, the current stage is determined to be the extraction stage;
[0056] If two stage switching instructions are generated, it is determined that the current stage is the filtering and concentration stage;
[0057] If three stage switching instructions are generated, it is determined that the current stage is the drying stage.
[0058] Further, the method of controlling the temperature and humidity to be adapted to the current stage includes:
[0059] Different digital labels are set in advance for each blueberry anthocyanin acquisition stage and marked as stage labels;
[0060] Set the stage label - temperature and humidity mapping table, obtain the corresponding stage label according to the current stage, and then obtain the corresponding temperature and humidity according to the stage label, and control the constant temperature and humidity equipment to adjust according to the obtained temperature and humidity.
[0061] Furthermore, the method for determining whether to generate an adjustment instruction includes:
[0062] Collect electromagnetic radiation intensity and vibration;
[0063] Calculate the corresponding actual temperature and actual humidity according to the electromagnetic radiation intensity and vibration;
[0064] The expression of actual temperature is: T = T' + ω 1 ×DC+ω 2 ×ZD;
[0065] Where T is the actual temperature, T' is the real-time temperature, DC is the electromagnetic radiation intensity, ZD is the vibration, ω 1 ,ω 2 is the preset weight coefficient;
[0066] The expression of actual humidity is: S = S' + ω 3 ×DC+ω 4 ×ZD;
[0067] In the formula, S is the actual temperature, S' is the real-time temperature, ω 3 ,ω 4 is the preset proportional coefficient;
[0068] The adjustment instructions include temperature adjustment instructions and humidity adjustment instructions;
[0069] The temperature obtained from the stage label-temperature and humidity mapping table is marked as the target temperature, and the humidity obtained from the stage label-temperature and humidity mapping table is marked as the target humidity;
[0070] Compare the actual temperature with the target temperature; if the actual temperature is equal to the target temperature, no temperature adjustment instruction is generated; if the actual temperature is not equal to the target temperature, a temperature adjustment instruction is generated;
[0071] The actual humidity is compared with the target humidity; if the actual humidity is equal to the target humidity, no humidity adjustment instruction is generated; if the actual humidity is not equal to the target humidity, a humidity adjustment instruction is generated.
[0072] Furthermore, the calculation method of the temperature control signal includes:
[0073] If a temperature adjustment instruction is generated, the target temperature is subtracted from the actual temperature to obtain a temperature difference, which is used as a temperature error;
[0074] According to the temperature difference, a simulated annealing algorithm is used to obtain first PID parameters, where the first PID parameters include a first proportional gain, a first integral gain, and a first differential gain;
[0075] The method for obtaining the first PID parameter includes:
[0076] Step a: Preset initialization temperature T max , minimum temperature T min , cooling coefficient δ and maximum number of iterations And let the current temperature T = T max ;
[0077] Step b: randomly setting a feasible solution χ, the feasible solution χ is the first PID parameter, obtaining a first PID parameter range, the first PID parameter range includes a first proportional gain range, a first integral gain range and a first differential gain range, and the first PID parameter range is the range of the feasible solution χ;
[0078] Step c: determine the fitness function;
[0079] The expression of fitness function is: f = T′-T″;
[0080] Where T′ is the target temperature and T″ is the predicted temperature;
[0081] Methods for obtaining predicted temperature include:
[0082] The first PID parameter and temperature error corresponding to the feasible solution χ are used as analysis data; the analysis data are input into the trained temperature prediction model to predict the corresponding predicted temperature;
[0083] The training process of the temperature prediction model includes:
[0084] Predicted temperatures corresponding to M groups of analysis data are collected in advance, and the analysis data and the corresponding predicted temperatures are converted into a corresponding set of feature vectors;
[0085] Each group of feature vectors is used as the input of the temperature prediction model. The temperature prediction model uses a group of predicted temperatures corresponding to each group of analysis data as output, and uses the actual predicted temperature corresponding to each group of analysis data as the prediction target, where the actual predicted temperature is the predicted temperature corresponding to the analysis data collected in advance; minimizing the sum of prediction errors of all analysis data is used as the training target; the temperature prediction model is trained until the sum of prediction errors reaches convergence and the training is stopped; the temperature prediction model is a deep neural network model;
[0086] Step d: Calculate the fitness f corresponding to the feasible solution χ; take the feasible solution χ as the current point, perform random perturbations in the neighborhood of the current point, obtain a new feasible solution χ′, and calculate the fitness f′ corresponding to the new feasible solution χ′;
[0087] Step e: Calculate the fitness difference f″, the expression of the fitness difference f″ is f″=ff′;
[0088] If the fitness difference f″>0, let χ=χ′, that is, assign the value of the new feasible solution χ′ to the feasible solution χ; if the fitness difference f″≤0, calculate the probability p′, and let χ=χ′ according to the probability p′; the expression of probability p′ is:
[0089] Step f: Repeat steps d to e until the number of loops reaches the maximum number of iterations. When , the loop ends and enters step g;
[0090] Step g: Set the current temperature T = T × δ, that is, cool down the current temperature in step a, and assign the value after cooling to the current temperature; set the maximum number of iterations The value of the maximum number of iterations after the reduction is assigned to the maximum number of iterations;
[0091] Step h: Repeat steps d to g until the current temperature T < T min When , the loop ends, and the first PID parameter corresponding to the feasible solution χ is obtained;
[0092] Calculating a temperature control signal according to the acquired first PID parameter and the temperature error;
[0093]
[0094] Where KZ(t) is the temperature control signal, WC(t) is the temperature error, BL is the first proportional gain, JF is the first integral gain, WF is the first differential gain, and t is the current time;
[0095] The calculation method of humidity control signal includes:
[0096] If a humidity adjustment instruction is generated, the target humidity is subtracted from the actual humidity to obtain the humidity difference, and the temperature difference is used as the humidity error;
[0097] According to the humidity difference, a simulated annealing algorithm is used to obtain the second PID parameters, the second PID parameters including a second proportional gain, a second integral gain and a second differential gain; the method for obtaining the second PID parameters is consistent with the method for obtaining the first PID parameters;
[0098] Calculating a humidity control signal according to the acquired second PID parameter and the humidity error;
[0099]
[0100] Wherein, KZ′(t) is the humidity control signal, WC′(t) is the humidity error, BL′ is the second proportional gain, JF′ is the second integral gain, WF′ is the second differential gain, and t is the current time.
[0101] Technical effects and advantages of the temperature and humidity combined control system for the blueberry anthocyanin extraction and concentration process of the present invention:
[0102] By collecting time data and blueberry anthocyanin images, and judging whether the blueberry anthocyanin acquisition stage has changed, the current blueberry anthocyanin acquisition stage can be accurately obtained, and the temperature and humidity control strategy can be adjusted to intelligently match the temperature and humidity corresponding to the blueberry anthocyanin acquisition stage, thereby improving the extraction efficiency and quality of blueberry anthocyanins, avoiding energy waste, and reducing the possibility of manual operation errors; in addition, the temperature and humidity can be monitored in real time, and the simulated annealing algorithm combined with the PID controller can be used for real-time feedback adjustment, making the blueberry anthocyanin extraction process more stable and controllable. BRIEF DESCRIPTION OF THE DRAWINGS
[0103] Figure 1 This is a schematic diagram of a temperature and humidity combined control system for the blueberry anthocyanin extraction and concentration process according to Example 1 of the present invention;
[0104] Figure 2 This is a flow chart of the temperature and humidity combined control method for the blueberry anthocyanin extraction and concentration process according to Example 2 of the present invention;
[0105] Figure 3 This is a schematic diagram of an electronic device according to Embodiment 3 of the present invention;
[0106] Figure 4 This is a schematic diagram of a storage medium according to Embodiment 4 of the present invention. DETAILED DESCRIPTION
[0107] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0108] Embodiment 1:
[0109] See also Figure 1 As shown, the temperature and humidity combined control system for the blueberry anthocyanin extraction and concentration process described in this embodiment includes a stage division module, a data acquisition module, a first stage judgment module, an image acquisition module, a second stage judgment module, a third stage judgment module, a temperature and humidity control module, and an adjustment module; each module is connected by wired and / or wireless means to realize data transmission between modules;
[0110] A stage division module is used to divide the blueberry anthocyanin extraction process into stages and mark them as blueberry anthocyanin acquisition stages;
[0111] The blueberry anthocyanin acquisition stages include enzymatic hydrolysis, extraction, filtration and concentration, and drying.
[0112] A data collection module, used to collect time data during the blueberry anthocyanin acquisition phase;
[0113] The time data is the duration of each blueberry anthocyanin acquisition stage. When the blueberry anthocyanin acquisition stage changes (i.e., the blueberry anthocyanin acquisition stage enters the next stage), the time data is recollected, and one time data corresponds to one blueberry anthocyanin acquisition stage;
[0114] The time data is acquired by a time sensor installed on a blueberry anthocyanin acquisition device. When the blueberry anthocyanin acquisition stage changes, the time sensor starts to collect time data. When the blueberry anthocyanin acquisition stage changes again, the time sensor stops collecting time data, resets the time data, and restarts collecting time data. Exemplarily, when entering the enzymatic hydrolysis stage, the time sensor starts collecting time data. When the enzymatic hydrolysis stage ends, that is, entering the extraction stage, the time sensor resets the time data collected in the enzymatic hydrolysis stage and re-collects time data in the extraction stage. Blueberry anthocyanin acquisition devices such as ceramic membrane filter units, nanofiltration membrane units, dual-effect concentration units, spray dryers, etc., randomly select a blueberry anthocyanin acquisition device from which a time sensor is installed.
[0115] The first stage judgment module analyzes the time data to determine whether to generate a preliminary stage switching instruction;
[0116] The method for determining whether to generate a preliminary stage switching instruction includes:
[0117] Count the number of stages n corresponding to the blueberry anthocyanin acquisition stage 1 , n 1 is an integer greater than 1; preset n 2 time thresholds, where n 1 =n 2 , the blueberry anthocyanin acquisition stages correspond one to one with the time threshold;
[0118] It should be noted that the time threshold is obtained by a person skilled in the art who records the duration of each blueberry anthocyanin acquisition stage multiple times during the historical blueberry anthocyanin extraction process, and takes the average of multiple durations of a blueberry anthocyanin acquisition stage as the time threshold corresponding to the blueberry anthocyanin acquisition stage, and so on to obtain the time threshold corresponding to each blueberry anthocyanin acquisition stage;
[0119] Compare the collected time data with the corresponding time threshold;
[0120] If the time data is greater than or equal to the time threshold, it is preliminarily determined that the blueberry anthocyanin acquisition stage enters the next stage, and a preliminary stage switching instruction is generated;
[0121] If the time data is less than the time threshold, it is determined that the blueberry anthocyanin acquisition stage has not entered the next stage, and no preliminary stage switching instruction is generated;
[0122] The image acquisition module acquires an image of blueberry anthocyanins if a preliminary stage switching instruction is generated;
[0123] The blueberry anthocyanin image is acquired by an image sensor, and the image sensor is installed on the last blueberry anthocyanin acquisition device in each blueberry anthocyanin acquisition stage; a plurality of blueberry anthocyanin acquisition devices are required in each blueberry anthocyanin acquisition stage, and an image sensor is installed on the last blueberry anthocyanin acquisition device in each blueberry anthocyanin acquisition stage to acquire the blueberry anthocyanin image, so as to determine whether the blueberry anthocyanin acquisition stage can enter the next stage;
[0124] The second stage judgment module analyzes the blueberry anthocyanin image and determines whether to generate a stage switching instruction;
[0125] The method for determining whether to generate a phase switching instruction includes:
[0126] If it is determined that any of the enzymatic hydrolysis stage, the extraction stage, or the filtration and concentration stage is completed, it means that the blueberry anthocyanin acquisition stage needs to enter the next stage, and a stage switching instruction is generated;
[0127] Methods for judging the completion of the enzymatic hydrolysis stage include:
[0128] Step S101: converting the blueberry anthocyanin image from the BGR color space to the HSV color space and marking it as an HSV image;
[0129] Step S102: extracting the brightness values corresponding to a pixels in the HSV image, where a is the number of pixels in the HSV image;
[0130] Step S103: add the brightness values corresponding to a pixels in sequence, and then divide by a to obtain an average brightness value, and use the average brightness value as the color brightness;
[0131] The expression for color brightness is:
[0132] Where YL is the color brightness, V b is the brightness value corresponding to the b-th pixel, b∈[1,a];
[0133] Step S104: presetting the initial color brightness and the brightness change threshold, subtracting the color brightness from the initial color brightness to obtain a difference, and using the difference as the brightness change amount;
[0134] comparing the brightness change amount with a brightness change threshold;
[0135] If the brightness change is greater than or equal to the brightness change threshold, it means that after enzymatic hydrolysis, the color brightness corresponding to the blueberry anthocyanin image meets the requirement, and it is judged that the enzymatic hydrolysis stage is completed;
[0136] If the brightness change is less than the brightness change threshold, it means that after enzymatic hydrolysis, the color brightness corresponding to the blueberry anthocyanin image does not meet the requirement, the duration of the enzymatic hydrolysis stage is insufficient, and it is judged that the enzymatic hydrolysis stage is not completed;
[0137] It should be noted that the initial color brightness is determined by a person skilled in the art, during the historical blueberry anthocyanin extraction process, before the enzymatic hydrolysis stage, by collecting blueberry anthocyanin images multiple times and obtaining the corresponding color brightness, and taking the average of the multiple color brightnesses as the initial color brightness; the brightness change threshold is also determined by a person skilled in the art, during the historical blueberry anthocyanin extraction process, after the enzymatic hydrolysis stage is completed, by collecting blueberry anthocyanin images multiple times and obtaining the corresponding color brightness, and taking the average of the multiple color brightnesses minus the initial color brightness as the brightness change threshold;
[0138] Methods for determining the completion of the extraction phase include:
[0139] Step S201: graying the blueberry anthocyanins;
[0140] Step S202: Collect the grayscale values corresponding to a pixels;
[0141] Step S203: preset a gray value threshold, compare the gray values corresponding to a pixel points with the gray value threshold respectively, mark the pixel points with gray values greater than or equal to the gray value threshold as filter residue points, and do not mark the pixel points with gray values less than the gray value threshold;
[0142] It should be noted that the gray value threshold is determined by a person skilled in the art during the historical blueberry anthocyanin extraction process. Before the extraction stage begins, multiple blueberry anthocyanin images are collected and grayed, and the gray values of the pixels corresponding to each filter residue in each blueberry anthocyanin image are used as an analysis set, and the average of the lowest gray values in the multiple analysis sets is used as the gray value threshold;
[0143] Step S204: Count the number of filter residue points and calculate the filter residue area;
[0144] The calculation method of filter residue area includes:
[0145] LZ = GS × LM × ξ;
[0146] Where LZ is the filter residue area, GS is the number of filter residue points, LM is the area of a filter residue point, and ξ is the scaling factor;
[0147] The area of a filter residue point is obtained by the resolution of the blueberry anthocyanin image, and the resolution of the blueberry anthocyanin image is obtained by the attribute of the blueberry anthocyanin image; the actual area corresponding to the blueberry anthocyanin image is divided by the area of the blueberry anthocyanin image as a scaling factor, and the actual area corresponding to the blueberry anthocyanin image and the area of the blueberry anthocyanin image are both measured and obtained by a person skilled in the art;
[0148] Step S205: preset an area threshold TH, and compare and analyze the filter residue area LZ with the area threshold TH;
[0149] If LZ < TH, it means that the residue has been filtered and the extraction stage is completed;
[0150] If LZ ≥ TH, it means that the residue has not been completely filtered, and it is judged that the extraction stage is not completed;
[0151] It should be noted that the area threshold TH is obtained by a person skilled in the art during the historical blueberry anthocyanin extraction process. After the extraction stage is completed, multiple blueberry anthocyanin images are collected and grayed, and the filter residue area corresponding to each blueberry anthocyanin image is calculated, and the average of the multiple filter residue areas is used as the area threshold TH;
[0152] Methods for determining the completion of the filtration and concentration stages include:
[0153] Step S301: using the trained concentration analysis model to identify the blueberry anthocyanin image, and outputting the identification result, the identification result including whether the concentration is completed or not;
[0154] The specific training process of the enrichment analysis model includes:
[0155] Collect multiple blueberry anthocyanin images in advance, mark each blueberry anthocyanin image as a training image, annotate the blueberry anthocyanin in each training image, and the annotations include concentration completion and concentration incomplete; convert the concentration completion and concentration incomplete into digital annotations, for example, convert the concentration completion into 0, and convert the concentration incomplete into 1; divide the annotated training images into a training set and a test set, use 70% of the training images as the training set, and use 30% of the training images as the test set; use the training set to train the concentration analysis model, and use the test set to test the concentration analysis model; preset an error threshold, and when the mean of the prediction errors of all training images in the test set is less than the error threshold, output the concentration analysis model; wherein the calculation formula for the mean prediction error is: Where Z P is the prediction error, P is the number of the training image, α P is the predicted annotation corresponding to the Pth group of training images, μ P is the actual annotation corresponding to the Pth group of training images, U is the number of training images in the test set; the error threshold is preset according to the accuracy required by the concentration analysis model;
[0156] The above-mentioned enrichment analysis model is specifically a convolutional neural network model;
[0157] Step S302: If the identification result is that the concentration is completed, it means that the blueberry anthocyanin liquid has been concentrated under reduced pressure to obtain a thick extract, and it is determined that the filtration and concentration stages are completed;
[0158] If the identification result is that the concentration is not completed, it means that the blueberry anthocyanin liquid has been concentrated under reduced pressure conditions, but a thick extract has not been obtained, and it is judged that the filtration and concentration stages are not completed;
[0159] The third stage judgment module judges the current blueberry anthocyanin acquisition stage according to the number of times the stage switching instruction is generated, and marks it as the current stage;
[0160] Methods for determining the current stage of blueberry anthocyanin acquisition include:
[0161] The enzymatic hydrolysis stage is the first stage and does not need to be identified. When the system receives the enzymatic hydrolysis stage start instruction input by a person skilled in the art, it means that the person skilled in the art has placed the blueberry on the blueberry anthocyanin acquisition device and is in the enzymatic hydrolysis stage;
[0162] Count the number of times the phase switching instructions are generated;
[0163] If only one stage switching instruction is generated, it means that only the enzymatic hydrolysis stage is completed, and the current stage is judged to be the extraction stage;
[0164] If two stage switching instructions are generated, it means that the enzymatic hydrolysis stage and the extraction stage are completed, and the current stage is judged to be the filtration and concentration stage;
[0165] If three stage switching instructions are generated, it means that the enzymatic hydrolysis stage, the extraction stage, and the filtration and concentration stage are completed, and the current stage is judged to be the drying stage;
[0166] Temperature and humidity control module, controls the temperature and humidity to adapt to the current stage;
[0167] Methods for controlling temperature and humidity to suit the current stage include:
[0168] A person skilled in the art sets different numerical labels for each blueberry anthocyanin acquisition stage in advance and marks them as stage labels. For example, the enzymatic hydrolysis stage is set to 10, the extraction stage is set to 20, the filtration and concentration stage is set to 30, and the drying stage is set to 40;
[0169] Set the stage label-temperature and humidity mapping table, obtain the corresponding stage label according to the current stage, and then obtain the corresponding temperature and humidity according to the stage label, and control the constant temperature and humidity equipment to adjust according to the obtained temperature and humidity;
[0170] The stage label-temperature and humidity mapping table is stored in the database and may be a two-dimensional mapping table, which includes the stage label and the temperature and humidity corresponding to the stage label; according to the acquired stage label, the corresponding temperature and humidity may be acquired through the stage label-temperature and humidity mapping table;
[0171] The method for setting the stage label-temperature and humidity mapping table is as follows: in the historical blueberry anthocyanin extraction process, the technicians in this field sequentially operate the blueberry anthocyanins at different blueberry anthocyanin acquisition stages according to a plurality of preset temperatures and humidity, sequentially record the operation conditions of the blueberry anthocyanins, and use the temperature and humidity corresponding to the best operation conditions as the temperature and humidity corresponding to the blueberry anthocyanin acquisition stage; the operation conditions include enzymolysis efficiency, extraction effect, concentration effect, blueberry anthocyanin product quality, etc.; according to the stage label corresponding to the blueberry anthocyanin acquisition stage, different stage labels are set with the corresponding temperature and humidity to form a stage label-temperature and humidity mapping table;
[0172] The adjustment module collects temperature and humidity in real time and determines whether to generate an adjustment instruction. If an adjustment instruction is generated, the temperature control signal and the humidity control signal are calculated by the PID controller, and the constant temperature and humidity equipment are controlled to adjust the temperature and humidity according to the temperature control signal and the humidity control signal;
[0173] The temperature collected in real time is marked as the real-time temperature, which is obtained by the temperature sensor installed in each blueberry anthocyanin acquisition device; the humidity collected in real time is marked as the real-time humidity, which is obtained by the humidity sensor installed in each blueberry anthocyanin acquisition device;
[0174] The method for determining whether to generate an adjustment instruction includes:
[0175] Collect electromagnetic radiation intensity and vibration;
[0176] The electromagnetic radiation intensity is the electromagnetic radiation intensity of the blueberry anthocyanin extraction room, which is the place where the blueberry anthocyanin extraction process is carried out; the electromagnetic radiation intensity is obtained by the electromagnetic field sensor installed in the blueberry anthocyanin extraction room; the temperature sensor and the humidity sensor are located in a strong electromagnetic field, and the electromagnetic radiation will cause the electronic components inside the temperature sensor and the humidity sensor to generate heat, thereby affecting the measurement values of the temperature sensor and the humidity sensor;
[0177] The vibration is the vibration of the blueberry anthocyanin acquisition device corresponding to the current stage; the vibration is acquired by a vibration sensor installed in each blueberry anthocyanin acquisition device; the vibration may affect some components inside the temperature sensor and the humidity sensor, thereby affecting the values collected by the temperature sensor and the humidity sensor;
[0178] Calculate the corresponding actual temperature and actual humidity according to the electromagnetic radiation intensity and vibration;
[0179] The expression of actual temperature is: W=W′+ω 1 ×DC+ω 2 ×ZD;
[0180] Where W is the actual temperature, W' is the real-time temperature, DC is the electromagnetic radiation intensity, ZD is the vibration, ω 1 ,ω 2 is the preset weight coefficient;
[0181] The specific value of the weight coefficient in the formula can be set according to the actual situation. The weight coefficient reflects the influence of the electromagnetic radiation intensity and vibration on the measured value of the temperature sensor. Those skilled in the art can preset the corresponding weight coefficient according to the actual influence of the electromagnetic radiation intensity and vibration on the measured value of the temperature sensor, so as to accurately obtain the actual temperature corresponding to the blueberry anthocyanin acquisition stage; the calculation of the actual temperature is a dimensionless calculation;
[0182] The expression of actual humidity is: S = S' + ω 3 ×DC+ω 4 ×ZD;
[0183] In the formula, S is the actual temperature, S' is the real-time temperature, ω 3 ,ω 4 is the preset proportional coefficient;
[0184] The specific value of the proportionality coefficient in the formula can be set according to the actual situation. The proportionality coefficient reflects the influence of the electromagnetic radiation intensity and vibration on the measured value of the humidity sensor. Those skilled in the art can preset the corresponding proportionality coefficient according to the actual influence of the electromagnetic radiation intensity and vibration on the measured value of the humidity sensor, so as to accurately obtain the actual humidity corresponding to the blueberry anthocyanin acquisition stage; the calculation of the actual humidity is a dimensionless calculation;
[0185] The adjustment instructions include temperature adjustment instructions and humidity adjustment instructions;
[0186] The temperature obtained from the stage label-temperature and humidity mapping table is marked as the target temperature, and the humidity obtained from the stage label-temperature and humidity mapping table is marked as the target humidity;
[0187] The actual temperature is compared with the target temperature; if the actual temperature is equal to the target temperature, no temperature adjustment instruction is generated, indicating that the temperature corresponding to the blueberry anthocyanin acquisition stage meets the requirement and no other operations are required; if the actual temperature is not equal to the target temperature, a temperature adjustment instruction is generated, indicating that the temperature corresponding to the blueberry anthocyanin acquisition stage does not meet the requirement and the temperature needs to be adjusted;
[0188] The actual humidity is compared with the target humidity; if the actual humidity is equal to the target humidity, no humidity adjustment instruction is generated, indicating that the humidity corresponding to the blueberry anthocyanin acquisition stage meets the requirement and no other operations are required; if the actual humidity is not equal to the target humidity, a humidity adjustment instruction is generated, indicating that the humidity corresponding to the blueberry anthocyanin acquisition stage does not meet the requirement and the humidity needs to be adjusted;
[0189] The calculation method of the temperature control signal includes:
[0190] If a temperature adjustment instruction is generated, the target temperature is subtracted from the actual temperature to obtain a temperature difference, which is used as a temperature error;
[0191] According to the temperature difference, a simulated annealing algorithm is used to obtain first PID parameters, where the first PID parameters include a first proportional gain, a first integral gain, and a first differential gain;
[0192] The method for obtaining the first PID parameter includes:
[0193] Step a: Preset initialization temperature Tmax , minimum temperature T min , cooling coefficient δ and maximum number of iterations And let the current temperature T = T max ;
[0194] Step b: randomly setting a feasible solution χ, the feasible solution χ is the first PID parameter, obtaining a first PID parameter range, the first PID parameter range includes a first proportional gain range, a first integral gain range and a first differential gain range, the first PID parameter range is obtained according to the technical parameters of the PID controller, and the first PID parameter range is the range of the feasible solution χ;
[0195] Step c: determine the fitness function;
[0196] The expression of fitness function is: f = T′-T″;
[0197] Where T′ is the target temperature and T″ is the predicted temperature;
[0198] Methods for obtaining predicted temperature include:
[0199] The first PID parameter and temperature error corresponding to the feasible solution χ are used as analysis data; the analysis data are input into the trained temperature prediction model to predict the corresponding predicted temperature;
[0200] The specific training process of the temperature prediction model includes:
[0201] Predicted temperatures corresponding to M groups of analysis data are collected in advance, and the analysis data and the corresponding predicted temperatures are converted into a corresponding set of feature vectors;
[0202] Each set of feature vectors is used as the input of the temperature prediction model. The temperature prediction model uses a set of predicted temperatures corresponding to each set of analysis data as output, and uses the actual predicted temperature corresponding to each set of analysis data as the prediction target. The actual predicted temperature is the predicted temperature corresponding to the analysis data collected in advance. The training target is to minimize the sum of the prediction errors of all analysis data. The calculation formula of the prediction error is Z K =(α K -μ K ) 2 , where Z K is the prediction error, K is the group number of the eigenvector corresponding to the analysis data, α K is the predicted temperature corresponding to the Kth group of analysis data, μ K is the actual predicted temperature corresponding to the Kth group of analysis data; the temperature prediction model is trained until the sum of the prediction errors reaches convergence and the training is stopped;
[0203] The above-mentioned temperature prediction model is specifically a deep neural network model;
[0204] It should be noted that the predicted temperature corresponding to the analysis data is obtained by a technician in the field during the historical blueberry anthocyanin extraction process. During the temperature adjustment, multiple groups of different analysis data are collected, and the corresponding temperature control signal is calculated under the conditions of each group of analysis data. The constant temperature and humidity equipment is controlled in turn according to the multiple temperature control signals to adjust the temperature, and the adjusted temperature is recorded in turn. The adjusted temperature is the predicted temperature corresponding to the analysis data;
[0205] Step d: Calculate the fitness f corresponding to the feasible solution χ; take the feasible solution χ as the current point, perform random perturbations in the neighborhood of the current point, obtain a new feasible solution χ′, and calculate the fitness f′ corresponding to the new feasible solution χ′;
[0206] Step e: Calculate the fitness difference f″, the expression of the fitness difference f″ is f″=ff′;
[0207] If the fitness difference f″>0, let χ=χ′, that is, assign the value of the new feasible solution χ′ to the feasible solution χ; if the fitness difference f″≤0, calculate the probability p′, and let χ=χ′ according to the probability p′; the expression of probability p′ is:
[0208] Step f: Repeat steps d to e until the number of loops reaches the maximum number of iterations. When , the loop ends and enters step g;
[0209] Step g: Set the current temperature T = T × δ, that is, cool down the current temperature in step a, and assign the value after cooling to the current temperature; set the maximum number of iterations That is, assign the value of the maximum number of iterations after the reduction to the maximum number of iterations; if the maximum number of iterations after the reduction is not an integer, the maximum number of iterations after the reduction is rounded up so that the maximum number of iterations after the reduction is an integer;
[0210] Step h: Repeat steps d to g until the current temperature T < T min When , the loop ends, and the first PID parameter corresponding to the feasible solution χ is obtained;
[0211] It should be noted that the initialization temperature T max , minimum temperature T min , cooling coefficient δ and maximum number of iterations As preset parameters, the preset parameters are provided by a technician in this field. In the historical blueberry anthocyanin extraction process, when a temperature adjustment instruction is generated, for the same temperature error, multiple groups of different preset parameters are pre-set in sequence, and the first PID parameter is obtained by using the simulated annealing algorithm in sequence. The corresponding temperature control signal is calculated according to the obtained multiple groups of first PID parameters, and the constant temperature and humidity equipment is controlled in sequence to adjust the temperature according to the multiple temperature control signals. The preset parameter corresponding to the adjusted temperature closest to the target temperature is used as the preset parameter corresponding to the temperature error, and the preset parameters corresponding to multiple temperature errors are obtained by analogy. The mean values of the multiple preset parameters (i.e., the initialization temperature mean, the minimum temperature mean, the cooling coefficient mean, and the maximum number of iterations mean) are used as the initialization temperature T preset in step a. max , minimum temperature T min , cooling coefficient δ and maximum number of iterations
[0212] Calculating a temperature control signal according to the acquired first PID parameter and the temperature error;
[0213]
[0214] Where KZ(t) is the temperature control signal, WC(t) is the temperature error, BL is the first proportional gain, JF is the first integral gain, WF is the first differential gain, and t is the current time;
[0215] The method for obtaining the current time t includes: installing a timer inside the blueberry anthocyanin extraction chamber, when the blueberry anthocyanin extraction process starts, the timer also starts to collect time, when the PID controller calculates the temperature control signal and the humidity control signal, the current time t is obtained from the timer, and when the blueberry anthocyanin extraction process ends, the timer also stops collecting time;
[0216] The calculation method of humidity control signal includes:
[0217] If a humidity adjustment instruction is generated, the target humidity is subtracted from the actual humidity to obtain the humidity difference, and the temperature difference is used as the humidity error;
[0218] According to the humidity difference, a simulated annealing algorithm is used to obtain the second PID parameters, the second PID parameters including a second proportional gain, a second integral gain and a second differential gain; the method for obtaining the second PID parameters is consistent with the method for obtaining the first PID parameters;
[0219] Calculating a humidity control signal according to the acquired second PID parameter and the humidity error;
[0220]
[0221] Where KZ′(t) is the humidity control signal, WC′(t) is the humidity error, BL′ is the second proportional gain, JF′ is the second integral gain, WF′ is the second differential gain, and t is the current time;
[0222] This embodiment can accurately obtain the current blueberry anthocyanin acquisition stage by collecting time data and blueberry anthocyanin images and judging whether the blueberry anthocyanin acquisition stage has changed, and adjust the temperature and humidity control strategy to intelligently match the temperature and humidity corresponding to the blueberry anthocyanin acquisition stage, thereby improving the extraction efficiency and extraction quality of blueberry anthocyanins, avoiding energy waste, and reducing the possibility of manual operation errors; in addition, the temperature and humidity can be monitored in real time, and the simulated annealing algorithm combined with the PID controller can be used for real-time feedback adjustment, so that the extraction process of blueberry anthocyanins is more stable and controllable;
[0223] Embodiment 2:
[0224] See also Figure 2 As shown, the part not described in detail in this embodiment is described in Example 1, and a method for combined temperature and humidity control in the process of extracting and concentrating anthocyanins from blueberry is provided, which comprises:
[0225] The blueberry anthocyanin extraction process is divided into stages and labeled as blueberry anthocyanin acquisition stages;
[0226] Collecting time data during the blueberry anthocyanin acquisition phase;
[0227] Analyze the time data to determine whether to generate a preliminary stage switching instruction;
[0228] If the preliminary stage switching instruction is generated, the blueberry anthocyanin image is collected;
[0229] Analyze the blueberry anthocyanin image to determine whether to generate a phase switching instruction;
[0230] According to the number of times the stage switching instruction is generated, the current blueberry anthocyanin acquisition stage is determined and marked as the current stage;
[0231] Control the temperature and humidity to suit the current stage;
[0232] The temperature and humidity are collected in real time to determine whether an adjustment instruction is generated. If an adjustment instruction is generated, the temperature control signal and the humidity control signal are calculated by the PID controller. According to the temperature control signal and the humidity control signal, the constant temperature and humidity equipment is controlled to adjust the temperature and humidity.
[0233] Furthermore, the blueberry anthocyanin acquisition stage includes an enzymatic hydrolysis stage, an extraction stage, a filtration and concentration stage, and a drying stage; the time data is the duration of each blueberry anthocyanin acquisition stage, and one time data corresponds to one blueberry anthocyanin acquisition stage.
[0234] Furthermore, the method for determining whether to generate a preliminary stage switching instruction includes:
[0235] Count the number of stages n corresponding to the blueberry anthocyanin acquisition stage 1 , n 1 is an integer greater than 1; preset n 2 time thresholds, where n 1 =n 2 , the blueberry anthocyanin acquisition stages correspond one to one with the time threshold;
[0236] Compare the collected time data with the corresponding time threshold;
[0237] If the time data is greater than or equal to the time threshold, a preliminary stage switching instruction is generated;
[0238] If the time data is less than the time threshold, no preliminary stage switching instruction is generated.
[0239] Furthermore, the method for determining whether to generate a phase switching instruction includes:
[0240] If it is determined that any of the enzymatic hydrolysis stage, the extraction stage, or the filtration and concentration stage is completed, a stage switching instruction is generated;
[0241] Methods for judging the completion of the enzymatic hydrolysis stage include:
[0242] Step S101: converting the blueberry anthocyanin image from the BGR color space to the HSV color space and marking it as an HSV image;
[0243] Step S102: extracting the brightness values corresponding to a pixels in the HSV image, where a is the number of pixels in the HSV image;
[0244] Step S103: add the brightness values corresponding to a pixels in sequence, and then divide by a to obtain an average brightness value, and use the average brightness value as the color brightness;
[0245] The expression for color brightness is:
[0246] Where YL is the color brightness, V b is the brightness value corresponding to the b-th pixel, b∈[1,a];
[0247] Step S104: presetting the initial color brightness and the brightness change threshold, subtracting the color brightness from the initial color brightness to obtain a difference, and using the difference as the brightness change amount;
[0248] comparing the brightness change amount with a brightness change threshold;
[0249] If the brightness change is greater than or equal to the brightness change threshold, the enzymatic hydrolysis stage is judged to be completed;
[0250] If the brightness change is less than the brightness change threshold, it is determined that the enzymatic hydrolysis stage is not completed.
[0251] Further, the method for determining whether the extraction stage is completed includes:
[0252] Step S201: graying the blueberry anthocyanins;
[0253] Step S202: Collect the grayscale values corresponding to a pixels;
[0254] Step S203: preset a gray value threshold, compare the gray values corresponding to a pixel points with the gray value threshold respectively, mark the pixel points with gray values greater than or equal to the gray value threshold as filter residue points, and do not mark the pixel points with gray values less than the gray value threshold;
[0255] Step S204: Count the number of filter residue points and calculate the filter residue area;
[0256] The calculation method of filter residue area includes:
[0257] LZ = GS × LM × ξ;
[0258] Where LZ is the filter residue area, GS is the number of filter residue points, LM is the area of a filter residue point, and ξ is the scaling factor;
[0259] The area of a filter residue point is obtained by the resolution of the blueberry anthocyanin image, and the resolution of the blueberry anthocyanin image is obtained by the attribute of the blueberry anthocyanin image; the actual area corresponding to the blueberry anthocyanin image is divided by the area of the blueberry anthocyanin image as a scaling factor;
[0260] Step S205: preset an area threshold TH, and compare and analyze the filter residue area LZ with the area threshold TH;
[0261] If LZ < TH, the extraction phase is judged to be completed;
[0262] If LZ ≥ TH, it is judged that the extraction stage is not completed.
[0263] Further, the method for determining the completion of the filtration and concentration stages includes:
[0264] Step S301: using the trained concentration analysis model to identify the blueberry anthocyanin image, and outputting the recognition result, the recognition result including whether the concentration is completed or not;
[0265] The enrichment analysis model training process includes:
[0266] Collect multiple blueberry anthocyanin images in advance, mark each blueberry anthocyanin image as a training image, annotate the blueberry anthocyanin in each training image, and the annotations include completed concentration and incomplete concentration; convert completed concentration and incomplete concentration into digital annotations respectively; divide the annotated training images into a training set and a test set; use the training set to train the concentration analysis model, and use the test set to test the concentration analysis model; preset an error threshold, and when the mean of the prediction errors of all training images in the test set is less than the error threshold, output the concentration analysis model; the concentration analysis model is a convolutional neural network model;
[0267] Step S302: If the recognition result is that concentration is completed, it is determined that the filtering and concentration stages are completed;
[0268] If the identification result is that the concentration is not completed, it is determined that the filtering and concentration stages are not completed.
[0269] Furthermore, the method for determining the current blueberry anthocyanin acquisition stage includes:
[0270] Count the number of times the phase switching instructions are generated;
[0271] If only one stage switching instruction is generated, the current stage is determined to be the extraction stage;
[0272] If two stage switching instructions are generated, it is determined that the current stage is the filtering and concentration stage;
[0273] If three stage switching instructions are generated, it is determined that the current stage is the drying stage.
[0274] Further, the method of controlling the temperature and humidity to be adapted to the current stage includes:
[0275] Different digital labels are set in advance for each blueberry anthocyanin acquisition stage and marked as stage labels;
[0276] Set the stage label - temperature and humidity mapping table, obtain the corresponding stage label according to the current stage, and then obtain the corresponding temperature and humidity according to the stage label, and control the constant temperature and humidity equipment to adjust according to the obtained temperature and humidity.
[0277] Furthermore, the method for determining whether to generate an adjustment instruction includes:
[0278] Collect electromagnetic radiation intensity and vibration;
[0279] Calculate the corresponding actual temperature and actual humidity according to the electromagnetic radiation intensity and vibration;
[0280] The expression of actual temperature is: T = T' + ω 1 ×DC+ω 2 ×ZD;
[0281] Where T is the actual temperature, T' is the real-time temperature, DC is the electromagnetic radiation intensity, ZD is the vibration, ω 1 ,ω 2 is the preset weight coefficient;
[0282] The expression of actual humidity is: S = S' + ω 3 ×DC+ω 4 ×ZD;
[0283] In the formula, S is the actual temperature, S' is the real-time temperature, ω 3 ,ω 4 is the preset proportional coefficient;
[0284] The adjustment instructions include temperature adjustment instructions and humidity adjustment instructions;
[0285] The temperature obtained from the stage label-temperature and humidity mapping table is marked as the target temperature, and the humidity obtained from the stage label-temperature and humidity mapping table is marked as the target humidity;
[0286] Compare the actual temperature with the target temperature; if the actual temperature is equal to the target temperature, no temperature adjustment instruction is generated; if the actual temperature is not equal to the target temperature, a temperature adjustment instruction is generated;
[0287] The actual humidity is compared with the target humidity; if the actual humidity is equal to the target humidity, no humidity adjustment instruction is generated; if the actual humidity is not equal to the target humidity, a humidity adjustment instruction is generated.
[0288] Furthermore, the calculation method of the temperature control signal includes:
[0289] If a temperature adjustment instruction is generated, the target temperature is subtracted from the actual temperature to obtain a temperature difference, which is used as a temperature error;
[0290] According to the temperature difference, a simulated annealing algorithm is used to obtain first PID parameters, where the first PID parameters include a first proportional gain, a first integral gain, and a first differential gain;
[0291] The method for obtaining the first PID parameter includes:
[0292] Step a: Preset initialization temperature T max , minimum temperature T min , cooling coefficient δ and maximum number of iterations And let the current temperature T = T max ;
[0293] Step b: randomly setting a feasible solution χ, the feasible solution χ is the first PID parameter, obtaining a first PID parameter range, the first PID parameter range includes a first proportional gain range, a first integral gain range and a first differential gain range, and the first PID parameter range is the range of the feasible solution χ;
[0294] Step c: determine the fitness function;
[0295] The expression of fitness function is: f = T′-T″;
[0296] Where T′ is the target temperature and T″ is the predicted temperature;
[0297] Methods for obtaining predicted temperature include:
[0298] The first PID parameter and temperature error corresponding to the feasible solution χ are used as analysis data; the analysis data are input into the trained temperature prediction model to predict the corresponding predicted temperature;
[0299] The training process of the temperature prediction model includes:
[0300] Predicted temperatures corresponding to M groups of analysis data are collected in advance, and the analysis data and the corresponding predicted temperatures are converted into a corresponding set of feature vectors;
[0301] Each group of feature vectors is used as the input of the temperature prediction model. The temperature prediction model uses a group of predicted temperatures corresponding to each group of analysis data as output, and uses the actual predicted temperature corresponding to each group of analysis data as the prediction target, where the actual predicted temperature is the predicted temperature corresponding to the analysis data collected in advance; minimizing the sum of prediction errors of all analysis data is used as the training target; the temperature prediction model is trained until the sum of prediction errors reaches convergence and the training is stopped; the temperature prediction model is a deep neural network model;
[0302] Step d: Calculate the fitness f corresponding to the feasible solution χ; take the feasible solution χ as the current point, perform random perturbations in the neighborhood of the current point, obtain a new feasible solution χ′, and calculate the fitness f′ corresponding to the new feasible solution χ′;
[0303] Step e: Calculate the fitness difference f″, the expression of the fitness difference f″ is f″=ff′;
[0304] If the fitness difference f″>0, let χ=χ′, that is, assign the value of the new feasible solution χ′ to the feasible solution χ; if the fitness difference f″≤0, calculate the probability p′, and let χ=χ′ according to the probability p′; the expression of probability p′ is:
[0305] Step f: Repeat steps d to e until the number of loops reaches the maximum number of iterations. When , the loop ends and enters step g;
[0306] Step g: Set the current temperature T = T × δ, that is, cool down the current temperature in step a, and assign the value after cooling to the current temperature; set the maximum number of iterations The value of the maximum number of iterations after the reduction is assigned to the maximum number of iterations;
[0307] Step h: Repeat steps d to g until the current temperature T < T min When , the loop ends, and the first PID parameter corresponding to the feasible solution χ is obtained;
[0308] Calculating a temperature control signal according to the acquired first PID parameter and the temperature error;
[0309]
[0310] Where KZ(t) is the temperature control signal, WC(t) is the temperature error, BL is the first proportional gain, JF is the first integral gain, WF is the first differential gain, and t is the current time;
[0311] The calculation method of humidity control signal includes:
[0312] If a humidity adjustment instruction is generated, the target humidity is subtracted from the actual humidity to obtain the humidity difference, and the temperature difference is used as the humidity error;
[0313] According to the humidity difference, a simulated annealing algorithm is used to obtain the second PID parameters, the second PID parameters including a second proportional gain, a second integral gain and a second differential gain; the method for obtaining the second PID parameters is consistent with the method for obtaining the first PID parameters;
[0314] Calculating a humidity control signal according to the acquired second PID parameter and the humidity error;
[0315]
[0316] Wherein, KZ′(t) is the humidity control signal, WC′(t) is the humidity error, BL′ is the second proportional gain, JF′ is the second integral gain, WF′ is the second differential gain, and t is the current time.
[0317] Embodiment 3:
[0318] See also Figure 3As shown, according to another aspect of the present application, an electronic device 500 is also provided. The electronic device 500 may include one or more processors and one or more memories. The memories store computer readable codes, and when the computer readable codes are executed by one or more processors, the temperature and humidity combined control method for the blueberry anthocyanin extraction and concentration process as described above can be executed.
[0319] The method or system according to the embodiment of the present application can also be used by Figure 3 The electronic device architecture shown in FIG. Figure 3 As shown, the electronic device 500 may include a bus 501, one or more CPUs 502, ROM 503, RAM 504, a communication port 505 connected to a network, an input / output 506, a hard disk 507, etc. The storage device in the electronic device 500, such as ROM 503 or hard disk 507, may store the temperature and humidity combined control method for the blueberry anthocyanin extraction and concentration process provided in the present application. Furthermore, the electronic device 500 may also include a user interface 508. Of course, Figure 3 The architecture shown is only exemplary and can be omitted according to actual needs when implementing different devices. Figure 3 One or more components of an electronic device are shown.
[0320] Embodiment 4:
[0321] See also Figure 4 As shown, a computer-readable storage medium 600 according to an embodiment of the present application is shown. Computer-readable instructions are stored on the computer-readable storage medium 600. When the computer-readable instructions are executed by the processor, the temperature and humidity combined control method for the blueberry anthocyanin extraction and concentration process according to the embodiment of the present application described with reference to the above figures can be executed. The storage medium 600 includes, but is not limited to, for example, volatile memory and / or non-volatile memory. Volatile memory may include, for example, random access memory (RAM) and cache memory (cache), etc. Non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc.
[0322] In addition, according to the embodiments of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the present application provides a non-transitory machine-readable storage medium, which stores machine-readable instructions, and the machine-readable instructions can be executed by a processor to execute instructions corresponding to the method steps provided in the present application, for example: a temperature and humidity combined control method for blueberry anthocyanin extraction and concentration process. When the computer program is executed by a central processing unit (CPU), the above functions defined in the method of the present application are executed.
[0323] The above embodiments can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented by software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center through a wired network or a wireless network. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.
[0324] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the present invention can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0325] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0326] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the units is only one, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0327] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0328] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0329] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
[0330] Finally: The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A temperature and humidity combined control system for the extraction and concentration of blueberry anthocyanins, characterized in that: include: A stage division module is used to divide the blueberry anthocyanin extraction process into stages and mark them as blueberry anthocyanin acquisition stages; the blueberry anthocyanin acquisition stage includes an enzymatic hydrolysis stage, an extraction stage, a filtration and concentration stage, and a drying stage; A data collection module, used to collect time data in the blueberry anthocyanin acquisition stage; the time data is the duration of each blueberry anthocyanin acquisition stage, and one time data corresponds to one blueberry anthocyanin acquisition stage; The first stage judgment module is used to analyze the time data and determine whether to generate a preliminary stage switching instruction; The method for determining whether to generate a preliminary stage switching instruction includes: Count the number of stages n1 corresponding to the blueberry anthocyanin acquisition stage, where n1 is an integer greater than 1; preset n2 time thresholds, where n1=n2, and the blueberry anthocyanin acquisition stage corresponds to the time threshold one by one; Compare the collected time data with the corresponding time threshold; If the time data is greater than or equal to the time threshold, a preliminary stage switching instruction is generated; If the time data is less than the time threshold, no preliminary stage switching instruction is generated; The image acquisition module acquires an image of blueberry anthocyanins if a preliminary stage switching instruction is generated; The second stage judgment module is used to analyze the blueberry anthocyanin image and determine whether to generate a stage switching instruction; the method for determining whether to generate a stage switching instruction includes: If it is determined that any of the enzymatic hydrolysis stage, the extraction stage, or the filtration and concentration stage is completed, a stage switching instruction is generated; Methods for judging the completion of the enzymatic hydrolysis stage include: Step S101: converting the blueberry anthocyanin image from the BGR color space to the HSV color space and marking it as an HSV image; Step S102: extracting the brightness values corresponding to a pixels in the HSV image, where a is the number of pixels in the HSV image; Step S103: add the brightness values corresponding to a pixels in sequence, and then divide by a to obtain an average brightness value, and use the average brightness value as the color brightness; The expression for color brightness is: Where YL is the color brightness, V b is the brightness value corresponding to the b-th pixel, b∈[1,a]; Step S104: presetting the initial color brightness and the brightness change threshold, subtracting the color brightness from the initial color brightness to obtain a difference, and using the difference as the brightness change amount; comparing the brightness change amount with a brightness change threshold; If the brightness change is greater than or equal to the brightness change threshold, the enzymatic hydrolysis stage is judged to be completed; If the brightness change is less than the brightness change threshold, it is determined that the enzymatic hydrolysis stage is not completed; Methods for determining the completion of the extraction phase include: Step S201: graying the blueberry anthocyanins; Step S202: Collect the grayscale values corresponding to a pixels; Step S203: preset a gray value threshold, compare the gray values corresponding to a pixel points with the gray value threshold respectively, mark the pixel points with gray values greater than or equal to the gray value threshold as filter residue points, and do not mark the pixel points with gray values less than the gray value threshold; Step S204: Count the number of filter residue points and calculate the filter residue area; The calculation method of filter residue area includes: LZ = GS × LM × ξ; Where LZ is the filter residue area, GS is the number of filter residue points, LM is the area of a filter residue point, and ξ is the scaling factor; The area of a filter residue point is obtained by the resolution of the blueberry anthocyanin image, and the resolution of the blueberry anthocyanin image is obtained by the attribute of the blueberry anthocyanin image; the actual area corresponding to the blueberry anthocyanin image is divided by the area of the blueberry anthocyanin image as a scaling factor; Step S205: preset an area threshold TH, and compare and analyze the filter residue area LZ with the area threshold TH; If LZ < TH, the extraction phase is judged to be completed; If LZ ≥ TH, the extraction phase is judged to be incomplete; Methods for determining the completion of the filtration and concentration stages include: Step S301: using the trained concentration analysis model to identify the blueberry anthocyanin image, and outputting the identification result, the identification result including whether the concentration is completed or not; The training process of the enrichment analysis model includes: Collect multiple blueberry anthocyanin images in advance, mark each blueberry anthocyanin image as a training image, annotate the blueberry anthocyanin in each training image, and the annotations include completed concentration and incomplete concentration; convert completed concentration and incomplete concentration into digital annotations respectively; divide the annotated training images into a training set and a test set; use the training set to train the concentration analysis model, and use the test set to test the concentration analysis model; preset an error threshold, and when the mean of the prediction errors of all training images in the test set is less than the error threshold, output the concentration analysis model; the concentration analysis model is a convolutional neural network model; Step S302: If the recognition result is that concentration is completed, it is determined that the filtering and concentration stages are completed; If the identification result is that the concentration is not completed, it is judged that the filtering and concentration stages are not completed; The third stage judgment module is used to judge the current blueberry anthocyanin acquisition stage according to the number of times the stage switching instruction is generated, and mark it as the current stage; the method for judging the current blueberry anthocyanin acquisition stage includes: Count the number of times the phase switching instructions are generated; If only one stage switching instruction is generated, the current stage is determined to be the extraction stage; If two stage switching instructions are generated, it is determined that the current stage is the filtering and concentration stage; If three stage switching instructions are generated, it is determined that the current stage is the drying stage; Temperature and humidity control module, used to control the temperature and humidity to adapt to the current stage; The adjustment module is used to collect temperature and humidity in real time and determine whether to generate an adjustment instruction. If an adjustment instruction is generated, the temperature control signal and the humidity control signal are calculated by the PID controller, and the constant temperature and humidity equipment is controlled to adjust the temperature and humidity according to the temperature control signal and the humidity control signal.
2. The temperature and humidity combined control system for the blueberry anthocyanin extraction and concentration process according to claim 1, characterized in that: The method for controlling the temperature and humidity to adapt to the current stage includes: Different digital labels are set in advance for each blueberry anthocyanin acquisition stage and marked as stage labels; Set the stage label - temperature and humidity mapping table, obtain the corresponding stage label according to the current stage, and then obtain the corresponding temperature and humidity according to the stage label, and control the constant temperature and humidity equipment to adjust according to the obtained temperature and humidity.
3. The temperature and humidity combined control system for the blueberry anthocyanin extraction and concentration process according to claim 2, characterized in that: The temperature collected in real time is marked as the real-time temperature, and the humidity collected in real time is marked as the real-time humidity; The method for determining whether to generate an adjustment instruction includes: Collect electromagnetic radiation intensity and vibration; Calculate the corresponding actual temperature and actual humidity according to the electromagnetic radiation intensity and vibration; The expression of actual temperature is: T = T' + ω1 × DC + ω2 × ZD; Where T is the actual temperature, T′ is the real-time temperature, DC is the electromagnetic radiation intensity, ZD is the vibration, ω1 and ω2 are the preset weight coefficients; The expression of actual humidity is: S = S' + ω3 × DC + ω4 × ZD; In the formula, S is the actual temperature, S′ is the real-time temperature, ω3 and ω4 are the preset proportional coefficients; The adjustment instructions include temperature adjustment instructions and humidity adjustment instructions; The temperature obtained from the stage label-temperature and humidity mapping table is marked as the target temperature, and the humidity obtained from the stage label-temperature and humidity mapping table is marked as the target humidity; Compare the actual temperature with the target temperature; if the actual temperature is equal to the target temperature, no temperature adjustment instruction is generated; if the actual temperature is not equal to the target temperature, a temperature adjustment instruction is generated; The actual humidity is compared with the target humidity; if the actual humidity is equal to the target humidity, no humidity adjustment instruction is generated; if the actual humidity is not equal to the target humidity, a humidity adjustment instruction is generated.
4. The temperature and humidity combined control system for the blueberry anthocyanin extraction and concentration process according to claim 3, characterized in that: The calculation method of the temperature control signal includes: If a temperature adjustment instruction is generated, the target temperature is subtracted from the actual temperature to obtain a temperature difference, which is used as a temperature error; According to the temperature difference, a simulated annealing algorithm is used to obtain first PID parameters, where the first PID parameters include a first proportional gain, a first integral gain, and a first differential gain; The method for obtaining the first PID parameter includes: Step a: Preset initialization temperature T max , minimum temperature T min , cooling coefficient δ and maximum number of iterations And let the current temperature T = T max ; Step b: randomly setting a feasible solution χ, the feasible solution χ is the first PID parameter, obtaining a first PID parameter range, the first PID parameter range includes a first proportional gain range, a first integral gain range and a first differential gain range, and the first PID parameter range is the range of the feasible solution χ; Step c: determine the fitness function; The expression of fitness function is: f = T′-T″; Where T′ is the target temperature and T″ is the predicted temperature; Methods for obtaining predicted temperature include: The first PID parameter and temperature error corresponding to the feasible solution χ are used as analysis data; the analysis data are input into the trained temperature prediction model to predict the corresponding predicted temperature; The training process of the temperature prediction model includes: Predicted temperatures corresponding to M groups of analysis data are collected in advance, and the analysis data and the corresponding predicted temperatures are converted into a corresponding set of feature vectors; Each group of feature vectors is used as the input of the temperature prediction model. The temperature prediction model uses a group of predicted temperatures corresponding to each group of analysis data as output, and uses the actual predicted temperature corresponding to each group of analysis data as the prediction target, where the actual predicted temperature is the predicted temperature corresponding to the analysis data collected in advance; minimizing the sum of prediction errors of all analysis data is used as the training target; the temperature prediction model is trained until the sum of prediction errors reaches convergence and the training is stopped; the temperature prediction model is a deep neural network model; Step d: Calculate the fitness f corresponding to the feasible solution χ; take the feasible solution χ as the current point, perform random perturbations in the neighborhood of the current point, obtain a new feasible solution χ′, and calculate the fitness f′ corresponding to the new feasible solution χ′; Step e: Calculate the fitness difference f″, the expression of the fitness difference f″ is f″=ff′; If the fitness difference f″>0, let χ=χ′, that is, assign the value of the new feasible solution χ′ to the feasible solution χ; if the fitness difference f″≤0, calculate the probability p′, and let χ=χ′ according to the probability p′; the expression of probability p′ is: Step f: Repeat steps d to e until the number of loops reaches the maximum number of iterations. When , the loop ends and enters step g; Step g: Set the current temperature T = T × δ, that is, cool down the current temperature in step a, and assign the value after cooling to the current temperature; set the maximum number of iterations The value of the maximum number of iterations after the reduction is assigned to the maximum number of iterations; Step h: Repeat steps d to g until the current temperature T < T min When , the loop ends, and the first PID parameter corresponding to the feasible solution χ is obtained; Calculating a temperature control signal according to the acquired first PID parameter and the temperature error; Where KZ(t) is the temperature control signal, WC(t) is the temperature error, BL is the first proportional gain, JF is the first integral gain, WF is the first differential gain, and t is the current time; The calculation method of the humidity control signal includes: If a humidity adjustment instruction is generated, the target humidity is subtracted from the actual humidity to obtain the humidity difference, and the temperature difference is used as the humidity error; According to the humidity difference, a simulated annealing algorithm is used to obtain the second PID parameters, the second PID parameters including a second proportional gain, a second integral gain and a second differential gain; the method for obtaining the second PID parameters is consistent with the method for obtaining the first PID parameters; Calculating a humidity control signal according to the acquired second PID parameter and the humidity error; Wherein, KZ′(t) is the humidity control signal, WC′(t) is the humidity error, BL′ is the second proportional gain, JF′ is the second integral gain, WF′ is the second differential gain, and t is the current time.
Citation Information
Patent Citations
Extraction process of blueberry anthocyanins
CN105175463B
New wild blueberry anthocyanin extraction and purification method
CN104109403A
Preparation method of blueberry anthocyanin
CN107011309A
Color card for determining maturity level of blueberry fruit
CN109374538A
Method for extracting blueberry anthocyanins
CN111116689A
