Automatic optimization method for high content extraction of ergosterol
By establishing a virtual extraction model and using real-time spectral matching technology, the extraction parameters of ergosterol are dynamically adjusted, solving the problems of low extraction efficiency and insufficient safety in existing processes. This achieves efficient and stable ergosterol extraction and separation, and improves the level of intelligent production.
Patent Information
- Application Number
- CN202611635565.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-22
- Publication Date
- 2026-11-20
AI Technical Summary
The existing ergosterol extraction process parameters are fixed, making it difficult to adapt to changes in different batches of raw materials. This leads to decreased extraction efficiency, increased energy consumption, and fluctuations in product quality. Furthermore, the thermal safety control capabilities are insufficient, making it impossible to achieve full-process linkage optimization.
A virtual extraction model was established, and extraction parameters were adjusted in real time through spectral state fingerprint matching and depth soft measurement model. Heat flux density was monitored by a high-frequency pressure sensor to dynamically optimize heating power. Ergosterol and impurities were separated through independent component analysis to achieve synergistic optimization control of the entire process.
It improves the stability and prediction accuracy of ergosterol extraction, reduces the risk of scorching and boiling, enhances energy utilization efficiency and final product quality, and strengthens the level of intelligent production.
Smart Images

Figure CN123142784A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of chemical raw material extraction technology, specifically to an automated and optimized method for high-content ergosterol extraction. Background Technology
[0002] Ergosterol is an important component of the cell membranes of edible and medicinal fungi and some fungi, and also an important precursor for the preparation of vitamin D2. It possesses various biological activities, including antioxidant, immunomodulatory, and anti-inflammatory effects, and has wide applications in medicine, health foods, functional foods, and biopharmaceuticals. With the increasing demand for high-value utilization of natural active ingredients, achieving efficient and high-purity extraction of ergosterol has become an important research direction in the field of natural product processing. Currently, ergosterol extraction mostly uses organic solvents such as ethanol and methanol for reflux extraction, ultrasonic-assisted extraction, or microwave-assisted extraction, combined with filtration and concentration processes to obtain the target product. Existing production processes are usually controlled based on pre-set temperature, pressure, and extraction time. Process parameters are largely determined by human experience or historical experimental results, making it difficult to adjust in real time according to changes in raw material composition and the state of the extraction process. When different batches of raw materials have differences in maturity, moisture content, cell wall structure, or initial ergosterol content, fixing process parameters can easily lead to decreased extraction efficiency, increased energy consumption, and fluctuations in product quality. Furthermore, traditional extraction control typically focuses only on the extraction vessel itself, lacking coordinated optimization for subsequent processes such as filtration and concentration. Information between each process unit is independent, making it impossible to achieve integrated control across the entire process. Simultaneously, if the wall surface approaches the critical heat flux density during heating, localized overheating, scorching, or violent boiling can easily occur, affecting not only ergosterol activity but also potentially reducing equipment operational safety. Existing methods mainly rely on fixed safety margin control, failing to dynamically adjust heating strategies based on actual thermodynamic conditions. Therefore, establishing an automated optimization method for high-content ergosterol extraction, achieving intelligent optimization control throughout the entire extraction process, has become a crucial technical problem urgently needing to be solved in this field.
[0003] A search revealed that Chinese patent CN116143860A discloses a method for efficiently extracting ergosterol. While this invention effectively improves the purity and yield of ergosterol, thus providing a raw material guarantee for the mass production of vitamin D2, it relies too heavily on offline detection. This results in low adaptability to different batches of raw materials, poor extraction stability, low prediction accuracy and generalization ability, high risks of scorching and boiling, poor thermal safety control, and low energy utilization efficiency, ultimately reducing the quality of the final extracted product. Therefore, we propose an automated optimization method for high-content ergosterol extraction. Summary of the Invention
[0004] The purpose of this invention is to overcome the shortcomings of the existing technology and provide an automated and optimized method for high-content ergosterol extraction.
[0005] This invention proposes an automated and optimized method for high-content ergosterol extraction. The technical solution adopted to solve the technical problem is as follows:
[0006] P1. Establish a virtual extraction model and build a baseline state library: Collect spectral data and process operation data of historical high-quality extraction batches, build a gold extraction trajectory library, and form a spectral state fingerprint library by combining the feature vectors corresponding to different extraction stages. At the same time, establish a virtual extraction model and initialize each controller.
[0007] P2. Real-time acquisition of ergosterol extraction information and establishment of spectral state fingerprint: Real-time acquisition of spectral information of the extract using transmission and reflection fiber optic spectral probes, and simultaneous acquisition of various process parameters, dimensionality reduction and compression of the original spectrum to generate spectral state fingerprints at the corresponding time.
[0008] P3. Extraction stage identification and trajectory self-calibration based on spectral state fingerprint: The real-time generated spectral state fingerprint is matched with the gold extraction trajectory library to obtain the similarity between the current extraction trajectory and the gold extraction trajectory, and the extraction time or temperature gradient is automatically adjusted according to the path offset direction.
[0009] P4. Construct a virtual sensor and predict ergosterol extraction yield: After trajectory correction, establish a virtual sensor for ergosterol yield based on the current process variables, and predict the current equivalent ergosterol extraction yield in real time. At the same time, adapt to different raw material batches through transfer learning.
[0010] P5. Real-time identification of critical heat flux density state and dynamic optimization of safety boundary: High-frequency pressure sensor is used to collect pressure pulsation signal on the extraction vessel wall during the extraction process, to determine in real time whether the heating wall is close to the critical heat flux density state, and to dynamically optimize the heating power in combination with real-time yield prediction results.
[0011] P6. Separate the release process of each component and enhance the selective extraction of ergosterol: Based on the real-time spectral fingerprint, extract the characteristic spectral ranges corresponding to ergosterol and impurities respectively, then separate each independent release source, and establish ergosterol release curve and impurity release curve respectively, while dynamically adjusting the low-frequency perturbation parameters of extraction pressure or temperature.
[0012] P7. Based on the state information, perform virtual prediction and control sequence experiments: integrate the state information output from each step in real time, update the virtual extraction model, optimize each process unit, generate the optimal control scheme, apply the predicted optimal control strategy to the actual equipment, and continuously correct the model parameters using real-time feedback.
[0013] As a further aspect of the present invention, the specific steps for collecting spectral data and process operation data of historical high-quality extraction batches, constructing a gold extraction trajectory library, and forming a spectral state fingerprint library by combining the feature vectors corresponding to different extraction stages, while simultaneously establishing a virtual extraction model, are as follows:
[0014] S1.1: Based on the past records of staff, select multiple consecutive high-quality historical extraction batches as modeling objects, and collect spectral data and process operation data of the entire extraction process of each high-quality batch at a uniform sampling frequency, and form a complete original extraction sequence in chronological order. Then, synchronize all operation data according to a uniform time axis, and match all types of data one by one. Subsequently, connect the data of all moments of the same batch in chronological order to form the complete extraction trajectory of the batch.
[0015] S1.2: Calculate the similarity between each historical extraction trajectory, cluster the extraction trajectories with similarity higher than the preset threshold, and extract the cluster center as the golden extraction trajectory. Then, according to the device calibration parameters, remove the abnormal sampling points in each golden extraction trajectory. At the same time, use neighborhood interpolation to restore the continuously missing data, and then normalize the various types of information in each golden extraction trajectory.
[0016] S1.3: Divide each gold extraction trajectory into multiple continuous extraction sequences according to a preset fixed time window, and then form a two-dimensional input matrix from the continuous spectra in each extraction sequence. Extract local spectral peak features step by step through multi-layer one-dimensional convolution. After each layer of one-dimensional convolution is completed, perform max pooling on the output local spectral peak features. Then input the final local spectral peak features into the decoder and reconstruct the original spectrum.
[0017] S1.4: Statistically calculate the reconstruction error between the reconstructed spectrum and the original spectrum. If the reconstruction error is higher than the preset threshold, adjust the one-dimensional convolution and pooling parameters, and perform spectrum reconstruction and error statistics again until the reconstruction error converges to the preset range. After training, based on the final parameters, reconstruct the spectral data in the historical high-quality extraction batch and use it as the state fingerprint.
[0018] S1.5: Arrange the state fingerprints extracted from all historical high-quality batches in chronological order and correspond them point by point with the corresponding gold extraction trajectory to establish a complete spectral state fingerprint library. Extract the concentration change law of the target component during the extraction process from historical high-quality batches, and statistically analyze the relationship between ergosterol concentration and concentration change in the extract of each historical high-quality batch. Then, extract the characteristic modes of flow field, temperature field and concentration field based on CFD offline simulation results, and establish a virtual extraction model using the order reduction method.
[0019] As a further aspect of the present invention, the spectral data and process operation data mentioned in S1.1 specifically include information such as transmission spectrum, reflection spectrum, temperature, pressure, flow rate, stirring speed, and sampling time.
[0020] As a further aspect of the present invention, the specific steps described in P3 for obtaining the similarity between the current extraction trajectory and the gold extraction trajectory, and for automatically adjusting the extraction time or temperature gradient according to the path offset direction, are as follows:
[0021] S2.1: After completing the real-time spectral state fingerprint generation, read the multiple spectral state fingerprints generated at the current time, construct the local extraction state trajectory of the current extraction process, and then re-mark the number of each state point in the extraction state trajectory according to the time order, and record the sampling time corresponding to each state point.
[0022] S2.2: After completing the construction of the current extraction state trajectory, extract the gold extraction trajectory for the corresponding time period from the gold extraction trajectory library. Then, calculate the distance between any two state points in the current extraction state trajectory and the gold extraction trajectory. Then, form a distance matrix from all the distances. Then, using the upper left corner of the distance matrix as the starting point and the lower right corner as the ending point, search for each matching path step by step.
[0023] S2.3: Calculate the cumulative matching cost of each matching path and select the matching path with the smallest cumulative matching cost as the optimal matching path. Then, calculate the average matching distance between the current trajectory and the gold extraction trajectory based on the cumulative matching cost of the optimal matching path. Then, convert the average matching distance into trajectory similarity through the exponential mapping function. If the trajectory similarity is lower than the preset threshold, it is determined that the current extraction trajectory status is inconsistent with the corresponding gold extraction trajectory. Otherwise, it is considered consistent.
[0024] S2.4: After the judgment is completed, compare each matching point of the gold extraction trajectory with the current extraction state trajectory, and calculate the time difference between each matching point to obtain the time offset of each matching point. Then, based on the obtained time offset, calculate the average offset direction and offset stability of the entire extraction state trajectory. Generate the extraction time correction value according to the average offset direction, and then generate the temperature gradient correction value according to the offset stability.
[0025] As a further aspect of the present invention, the specific steps described in P4 for establishing a virtual sensor for ergosterol yield based on the current process variables and predicting the current equivalent extraction yield of ergosterol in real time are as follows:
[0026] S3.1: Integrate the continuous collection of operation data and trajectory calibration results from historical batches according to a fixed time window to obtain multiple sets of training samples. At the same time, collect the actual ergosterol extraction yield obtained by laboratory testing for each training sample. Then, based on LSTM, GRU and self-attention mechanism, establish a deep soft measurement model.
[0027] S3.2: Input each training sample into the depth soft measurement model, and use the LSTM branch to read the data of each training sample in different time windows in chronological order. Through the gating mechanism, the long-term dynamic laws in the extraction process are obtained. Then, the same training samples are input into the GRU network, and the local dynamic features are obtained through the GRU network layer by layer. Then, the LSTM output and the GRU output are concatenated to form the fusion feature. Then, the importance score of each time position is calculated according to the fusion feature. Then, the fusion features are weighted and fused according to the importance score of each fusion feature to obtain the comprehensive feature. The output layer is used to perform nonlinear mapping on the comprehensive feature to obtain the predicted equivalent ergosterol extraction yield at the current time.
[0028] S3.3: Based on the equivalent ergosterol extraction yield of the predicted yield and the actual ergosterol extraction yield, the training loss of the deep soft measurement model is calculated. If the training loss is higher than the preset threshold, the parameters of the deep soft measurement model are updated by gradient descent. The deep soft measurement model is iterated and updated repeatedly until the model training loss converges to within the preset threshold.
[0029] S3.4: Collect all running data within the current time window, input them into the trained deep soft measurement model according to the same data organization method as in the training phase, and sequentially extract long-term features using LSTM, extract local features using GRU, and fuse features using self-attention. Output the final equivalent ergosterol extraction yield prediction value at the current time, and perform exponential smoothing on each of the continuously output equivalent ergosterol extraction yield prediction values to generate a smoothed equivalent ergosterol extraction yield prediction value.
[0030] It should be further explained that the long-term dynamic laws mentioned in S3.1 include temperature changes, pressure changes, and concentration accumulation.
[0031] As a further aspect of the present invention, the specific steps for dynamically optimizing the heating power in real time, based on the real-time yield prediction results, as described in P5, are as follows:
[0032] S4.1: Obtain the real-time equivalent ergosterol extraction yield prediction value output at the current moment, and use the yield prediction value as a thermal safety constraint. Then, synchronously correlate the yield prediction value with the heating power, extraction pressure and temperature information at the corresponding moment to establish a unified thermal safety monitoring data window. Then, continuously collect the pressure signals generated during the formation, growth, coalescence and detachment of bubbles through the high-frequency response pressure sensor arranged on the inner wall of the extraction vessel.
[0033] S4.2: Calculate the average pressure at each acquisition moment, then calculate the difference between the original pressure signal and the average pressure at each moment to obtain the pressure pulsation value at the corresponding sampling moment, and then rearrange the obtained continuous pressure pulsation values according to the preset delay time to obtain the bubble dynamics evolution trajectory in the current extraction process.
[0034] S4.3: Calculate the proportion of the distance between any two state vectors in the current bubble dynamics evolution trajectory that is less than each preset statistical radius. Then, based on the proportion of each statistical radius, establish a corresponding double logarithmic relationship to obtain the correlation dimension of each statistical radius. Collect the initial distance between each collection point in the bubble dynamics evolution trajectory and take the collection point with the shortest initial distance as the nearest neighbor of the corresponding collection point.
[0035] S4.4: Based on the bubble dynamics evolution trajectory, obtain the final distance between each sampling point and its nearest neighbor after time evolution. Based on the initial distance and the final distance, calculate the maximum Lyapunov exponent for each sampling point. Then, based on the correlation dimension of the current bubble dynamics evolution trajectory and the maximum Lyapunov exponent, calculate the corresponding thermal safety status evaluation value and calculate the difference between it and the preset evaluation threshold to obtain the thermal safety margin.
[0036] S4.5: If the thermal safety margin is >0, it means that there is a corresponding thermal safety margin between the current wall and the critical heat flux density. Conversely, it means that the current wall surface is close to the critical heat flux density and the heating power needs to be optimized immediately. At the same time, a comprehensive objective function is established based on the current real-time yield prediction value and the thermal safety margin. Then, the candidate heating power is repeatedly updated using the acquisition function until the comprehensive objective function value is minimized and the equivalent ergosterol extraction yield is ≥ thermal safety constraint.
[0037] As a further aspect of the present invention, the specific steps described in P6 for extracting the characteristic spectral ranges corresponding to ergosterol and impurities, then separating each independent release source, and establishing ergosterol release curves and impurity release curves respectively, while dynamically adjusting the low-frequency perturbation parameters of extraction pressure or temperature, are as follows:
[0038] S5.1: After the spectral state fingerprint library is constructed, the spectral state fingerprint corresponding to the current moment is collected, and the spectral state fingerprint is restored to the corresponding spectral feature space to obtain the complete continuous spectral features of the current extract. Then, based on the pre-established spectral state fingerprint library, the real-time spectrum is scanned band by band, and the position, peak width and peak area of each component characteristic peak are marked. According to the ergosterol standard characteristic band and impurity standard characteristic band in the spectral state fingerprint library, the real-time spectrum is windowed, and the local baseline correction is performed on each of the intercepted real-time spectral features.
[0039] S5.2: Combine the corrected spectral features of each component corresponding to multiple consecutive sampling times into a mixed signal matrix, then center the mixed signal matrix, and then use the independent component analysis algorithm to decouple the mixed signal matrix to obtain the independent release source corresponding to each component. Then, calculate the independent source negative entropy of each independent release source, and then separate the ergosterol release signal and the release signals of each impurity based on the independent source negative entropy.
[0040] S5.3: After signal separation is completed, the corresponding relationships of each separated component are identified based on the historical calibration database. Then, the release curves corresponding to ergosterol and impurities are extracted respectively, and their respective release kinetic models are established to obtain the release rate of ergosterol and the release rate of impurities during the extraction process. At the same time, based on the release rate of ergosterol and the release rate of impurities, the selectivity index of the current extraction process is calculated, and then the selectivity index is processed by moving average within multiple consecutive time windows.
[0041] S5.4: Plot the corresponding index curves of the processed selectivity index in chronological order. When the selectivity index shows a decrease, obtain the latest disturbance frequency by comparing the current smoothed selectivity index with the preset target selectivity index, and then superimpose it on the current set value. After that, recalculate the subsequent selectivity index.
[0042] The beneficial effects of this invention are:
[0043] This invention collects spectral information and process operation data throughout the entire extraction process, constructs an extraction trajectory under a unified time axis, and obtains the gold extraction trajectory through trajectory clustering. After anomaly correction, missing data compensation, and normalization processing of the gold trajectory, a convolutional autoencoder is used to extract intrinsic spectral features, establishing a spectral state fingerprint database. Simultaneously, a virtual extraction model is constructed by combining an extraction kinetics model and a CFD order reduction model. During actual extraction, the spectra of the extractant and operational data are collected in real time to generate the current spectral state fingerprint, which is then matched with the gold extraction trajectory using the DTW algorithm. The extraction time and temperature gradient are automatically adjusted based on the trajectory offset direction. Subsequently, historical operational data and experimental yield are used to construct training samples. A deep soft measurement model is established using LSTM, GRU, and self-attention mechanisms to achieve online prediction of ergosterol extraction yield, and transfer learning is incorporated to adapt to different raw material batches. Based on real-time yield prediction results, high-frequency pressure pulsation signals from the extraction vessel are collected. The correlation dimension and maximum Lyapunov exponent are calculated through phase space reconstruction to determine the critical heat flux density state in real time and dynamically adjust the heating power. Simultaneously, ergosterol and impurity release signals are separated by spectral feature interval identification and ICA algorithm to establish a release kinetic model. Low-frequency perturbation parameters are adjusted according to the selectivity index. Finally, the extraction, separation, and concentration processes are synergistically optimized by combining virtual extraction model and distributed model predictive control. This avoids the feedback lag problem caused by offline detection in traditional methods, improves the adaptability of different batches of raw materials, enhances extraction stability, improves prediction accuracy and generalization ability, reduces the risks of scorching and boiling, improves thermal safety control capabilities, improves energy utilization efficiency, reduces simultaneous dissolution of impurities, improves the quality of the final extracted product, and enhances the level of intelligent production. Attached Figure Description
[0044] The present invention will now be further described with reference to the accompanying drawings.
[0045] Figure 1 A framework diagram of an automated optimization method for high-content ergosterol extraction. Detailed Implementation
[0046] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0047] Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0048] See Figure 1This invention provides an automated and optimized method for high-content ergosterol extraction. The method includes the following steps:
[0049] A virtual extraction model was established, and a baseline state library was constructed: spectral data and process operation data of historical high-quality extraction batches were collected to construct a gold extraction trajectory library, and the feature vectors corresponding to different extraction stages were combined to form a spectral state fingerprint library. At the same time, a virtual extraction model was established, and each controller was initialized.
[0050] Specifically, based on past records of staff, multiple consecutive high-quality historical extraction batches were selected as modeling objects. For each high-quality batch, spectral data and process operation data were collected throughout the extraction process at a uniform sampling frequency, forming a complete original extraction sequence in chronological order. All operational data were then synchronized according to a unified timeline, and various data types were mapped one-to-one. Subsequently, data from all moments within the same batch were connected in chronological order to form the complete extraction trajectory for that batch. The similarity between historical extraction trajectories was statistically analyzed, and extraction trajectories with similarity exceeding a preset threshold were clustered, with cluster centers extracted as the gold extraction trajectories. Then, abnormal sampling points in each gold extraction trajectory were removed according to equipment calibration parameters, and neighbor interpolation was used to recover continuously missing data. Various information types in each gold extraction trajectory were normalized, and each gold extraction trajectory was divided into multiple consecutive extraction sequences according to a preset fixed time window. The continuous spectra in each extraction sequence were then combined into a two-dimensional input matrix, and progressive extraction was performed through multi-layer one-dimensional convolution. Local spectral peak shape features are extracted, and after one-dimensional convolution processing at each layer, the output local spectral peak shape features are subjected to max pooling. Then, the final local spectral peak shape features are input into the decoder to reconstruct the original spectrum. The reconstruction error between the reconstructed spectrum and the original spectrum is statistically analyzed. If the reconstruction error is higher than a preset threshold, the one-dimensional convolution and pooling parameters are adjusted, and spectral reconstruction and error statistics are performed again until the reconstruction error converges to a preset range. After training, based on the final parameters, the spectral data in historical high-quality extraction batches are reconstructed and used as state fingerprints. The state fingerprints extracted from all historical high-quality batches are arranged in chronological order and correspond point by point with the corresponding golden extraction trajectory to establish a complete spectral state fingerprint library. The concentration change law of the target component during the extraction process is extracted from historical high-quality batches, and the relationship between the ergosterol concentration and concentration change in the extract of each historical high-quality batch is statistically analyzed. Then, the characteristic modes of the flow field, temperature field, and concentration field are extracted based on the CFD offline simulation results, and a virtual extraction model is established using a reduction method.
[0051] Real-time acquisition of ergosterol extraction information and establishment of spectral state fingerprint: Real-time acquisition of spectral information of the extract using transmission and reflection fiber optic spectral probes, and simultaneous acquisition of various process parameters, dimensionality reduction and compression of the original spectrum to generate spectral state fingerprints at the corresponding time.
[0052] It should be further explained that after the gold extraction trajectory library and virtual extraction model are established, the transmission fiber optic spectral probes installed on both sides of the extraction vessel and the reflection fiber optic spectral probe on the top are activated. The two types of probes work synchronously to continuously monitor the extractant online and collect two spectral data streams synchronously according to a unified sampling period. Time alignment and fusion processing are performed based on a unified timestamp to form a complete real-time raw spectrum. Simultaneously, operating parameters such as extraction temperature, extraction pressure, circulation flow rate, heating power, liquid level, and stirring speed are collected. Then, outlier removal, missing value compensation, noise filtering, and normalization are performed on various types of data. Subsequently, the processed spectral data is sent to a convolutional autoencoder network. The encoder extracts deep features such as local peak shape, peak width, peak position drift, and background changes in the spectrum layer by layer, gradually compressing them into low-dimensional intrinsic feature vectors. The decoder then reconstructs the spectrum, and the network parameters are continuously adjusted based on the reconstruction error. After the network calculation is completed, the output low-dimensional features are defined as the spectral state fingerprint at the current moment. Then, the spectral state fingerprints at each sampling moment are continuously generated in chronological order to form a continuous state trajectory.
[0053] Transmission spectroscopy is mainly used to obtain the overall absorption characteristics inside the extract, which can accurately reflect the overall concentration changes of ergosterol and alcohol-soluble impurities. Reflectance spectroscopy mainly reflects the surface state of the extract and local scattering information, which can effectively compensate for spectral distortion caused by changes in turbidity, bubble disturbance and suspended particles. In addition, the obtained spectral fingerprint not only contains the characteristic peak information of ergosterol, but also integrates the comprehensive influence of impurity release, solvent composition changes and temperature and pressure changes on the spectrum, so it can comprehensively characterize the current extraction state.
[0054] Extraction stage identification and trajectory self-calibration based on spectral state fingerprint: The real-time generated spectral state fingerprint is matched with the gold extraction trajectory library to obtain the similarity between the current extraction trajectory and the gold extraction trajectory, and the extraction time or temperature gradient is automatically adjusted according to the path offset direction.
[0055] Specifically, after generating the real-time spectral state fingerprint, multiple spectral state fingerprints generated at the current moment are read, and a local extraction state trajectory for the current extraction process is constructed. Then, the numbers of each state point in the extraction state trajectory are re-marked according to time sequence, and the sampling time corresponding to each state point is recorded. After completing the construction of the current extraction state trajectory, the corresponding time period's gold extraction trajectory is extracted from the gold extraction trajectory library. The distance between any two state points in the current extraction state trajectory and the gold extraction trajectory is then calculated. All distances are then combined into a distance matrix. Using the upper left corner of the distance matrix as the starting point and the lower right corner as the ending point, each matching path is searched step by step. The cumulative matching cost of each matching path is calculated, and the matching path with the minimum cumulative matching cost is selected as the... The optimal matching path is determined, and then the average matching distance between the current trajectory and the gold extraction trajectory is calculated based on the cumulative matching cost of the optimal matching path. The average matching distance is then converted into trajectory similarity using an exponential mapping function. If the trajectory similarity is lower than a preset threshold, the current extraction trajectory state is considered inconsistent with the corresponding gold extraction trajectory; otherwise, they are considered consistent. After the judgment, each matching point of the gold extraction trajectory and the current extraction state trajectory is compared, and the time difference between each matching point is calculated to obtain the time offset of each matching point. Then, based on the obtained time offsets, the average offset direction and offset stability of the entire extraction state trajectory are calculated. An extraction time correction value is generated based on the average offset direction, and a temperature gradient correction value is generated based on the offset stability.
[0056] Construct a virtual sensor to predict ergosterol extraction yield: After trajectory correction, establish a virtual sensor for ergosterol yield based on the current process variables, and predict the current equivalent extraction yield of ergosterol in real time. At the same time, adapt to different raw material batches through transfer learning.
[0057] Specifically, the continuous collection of operational data and trajectory calibration results from historical batches are integrated according to fixed time windows to obtain multiple sets of training samples. Simultaneously, the actual ergosterol extraction yield obtained from laboratory tests corresponding to each training sample is collected. Then, a depth soft measurement model is established based on LSTM, GRU, and self-attention mechanisms. Each training sample is input into the depth soft measurement model, and the LSTM branch is used to sequentially read data from different time windows within each training sample. Through a gating mechanism, long-term dynamic patterns during the extraction process are obtained. Then, identical training samples are input into a GRU network, which processes the data layer by layer to obtain local dynamic features. The LSTM output and GRU output are then concatenated to form a fusion feature. Subsequently, the importance score of each time position is calculated based on the fusion feature, and then the fusion features are weighted and fused according to their importance scores to obtain a comprehensive result. The system integrates features and uses the output layer to perform nonlinear mapping on the integrated features to obtain the predicted equivalent ergosterol extraction yield at the current time. Based on the predicted equivalent ergosterol extraction yield and the actual ergosterol extraction yield, the training loss of the deep soft measurement model is calculated. If the training loss is higher than a preset threshold, the parameters of the deep soft measurement model are updated using gradient descent. The deep soft measurement model is iteratively updated repeatedly until the model training loss converges to the preset threshold. All running data within the current time window are collected and input into the already trained deep soft measurement model according to the same data organization method as the training stage. The model is then processed sequentially through LSTM long-term feature extraction, GRU local feature extraction, and self-attention feature fusion to output the final predicted equivalent ergosterol extraction yield at the current time. The continuously output predicted equivalent ergosterol extraction yields are then exponentially smoothed to generate smoothed predicted equivalent ergosterol extraction yields.
[0058] Real-time identification of critical heat flux density state and dynamic optimization of safety boundary: High-frequency pressure sensor is used to collect pressure pulsation signal of the extraction vessel wall during the extraction process, to determine in real time whether the heating wall is close to the critical heat flux density state, and to dynamically optimize the heating power in combination with real-time yield prediction results.
[0059] Specifically, the real-time equivalent ergosterol extraction yield prediction value is obtained at the current moment, and this yield prediction value is used as a thermal safety constraint. Then, the yield prediction value is synchronously correlated with the heating power, extraction pressure, and temperature information at the corresponding moment to establish a unified thermal safety monitoring data window. Next, high-frequency response pressure sensors arranged on the inner wall of the extraction vessel continuously collect pressure signals generated during bubble formation, growth, coalescence, and detachment. The average pressure at each collection moment is statistically analyzed, and the difference between the original pressure signal and the average pressure at each moment is calculated to obtain the pressure pulsation value at the corresponding sampling moment. The obtained continuous pressure pulsation values are then rearranged according to a preset delay time to obtain the bubble dynamics evolution trajectory during the current extraction process. The proportion of any two state vectors in the current bubble dynamics evolution trajectory whose distance is less than each preset statistical radius is statistically analyzed. Then, based on the proportion of each statistical radius, a corresponding double logarithmic relationship is established to obtain the correlation dimension of each statistical radius. The initial distances between each sampling point in the bubble dynamics evolution trajectory are collected, and the sampling point with the shortest initial distance is taken as the nearest neighbor of the corresponding sampling point. According to the bubble dynamics evolution trajectory, the final distance between each sampling point and its nearest neighbor after time evolution is obtained. Based on the initial distance and the final distance, the maximum Lyapunov exponent of each sampling point is calculated. Then, based on the correlation dimension of the current bubble dynamics evolution trajectory and the maximum Lyapunov exponent, the corresponding thermal safety status evaluation value is calculated, and the difference between it and the preset evaluation threshold is calculated to obtain the thermal safety margin. If the thermal safety margin is >0, it means that there is a corresponding thermal safety margin at the critical heat flux density. Otherwise, it means that the current wall is close to the critical heat flux density and the heating power needs to be optimized immediately. At the same time, a comprehensive objective function is established based on the current real-time yield prediction value and the thermal safety margin. Then, the candidate heating power is repeatedly updated using the sampling function until the comprehensive objective function value is minimized and the equivalent ergosterol extraction yield is ≥ thermal safety constraint.
[0060] Separate the release process of each component and enhance the selective extraction of ergosterol: Based on the real-time spectral fingerprint, extract the characteristic spectral ranges corresponding to ergosterol and impurities respectively, then separate each independent release source, and establish ergosterol release curve and impurity release curve respectively, while dynamically adjusting the low-frequency perturbation parameters of extraction pressure or temperature.
[0061] Specifically, after the spectral state fingerprint database is constructed, the spectral state fingerprint corresponding to the current moment is collected, and the spectral state fingerprint is restored to the corresponding spectral feature space to obtain the complete continuous spectral features of the current extract. Then, based on the pre-established spectral state fingerprint database, the real-time spectrum is scanned band by band, and the position, peak width, and peak area of each component's characteristic peak are marked. According to the ergosterol standard characteristic band and impurity standard characteristic band in the spectral state fingerprint database, the real-time spectrum is windowed, and local baseline correction is performed on each captured real-time spectral feature. The corrected spectral features of each component corresponding to multiple consecutive sampling moments are combined into a mixed signal matrix, which is then centered. Subsequently, an independent component analysis algorithm is used to decouple the mixed signal matrix to obtain the independent release sources corresponding to each component. Finally, the independent release sources are statistically analyzed. The independent source negative entropy is used to separate the ergosterol release signal and the release signals of each impurity based on the negative entropy of each independent source. After the signal separation is completed, the corresponding relationship of each separated component is identified according to the historical calibration database. Then, the release curves corresponding to ergosterol and impurities are extracted respectively, and their respective release kinetic models are established to obtain the release rate of ergosterol and the release rate of impurities during the extraction process. At the same time, the selectivity index of the current extraction process is calculated based on the release rate of ergosterol and the release rate of impurities. Then, the selectivity index is processed by moving average within multiple consecutive time windows. The processed selectivity index is plotted according to the time sequence. When the selectivity index shows a decrease, the latest perturbation frequency is obtained by comparing the current smoothed selectivity index with the preset target selectivity index and superimposed on the current set value. Then, the subsequent selectivity index is recalculated.
[0062] It should be further explained that as the negative entropy increases, the individual release sources gradually become statistically independent, and eventually the ergosterol release signal and the release signals of each impurity can be recovered separately.
[0063] Based on the state information, a virtual prediction and control sequence experiment is performed: the state information output from each step is integrated in real time, the virtual extraction model is updated, and each process unit is optimized to generate the optimal control scheme. The predicted optimal control strategy is then applied to the actual equipment, while the model parameters are continuously corrected using real-time feedback.
[0064] Further explanation of this invention is that, after completing spectral state identification, trajectory correction, extraction yield prediction, thermal safety evaluation, and selective enhancement control, the real-time state information obtained at each stage is synchronously transmitted to the virtual extraction model. This includes data such as the current spectral state fingerprint, predicted extraction yield, thermal safety evaluation index, selectivity index, and real-time operating parameters of the extraction equipment. The virtual extraction model updates the flow field, temperature field, concentration field, and heat transfer state inside the extraction vessel in real time, generating a virtual extraction process synchronized with the actual equipment. Subsequently, the entire production process is divided into an extraction unit, a solid-liquid separation unit, a concentration unit, and a post-processing unit. The system comprises multiple subsystems, each configured with an independent Model Predictive Controller (MPC). Each controller simulates the process response resulting from changes in different control variables within the prediction time domain, based on its own equipment status. The system then uses the lowest total energy consumption, highest total ergosterol yield, optimal production cycle time, and best equipment operational stability as comprehensive optimization objectives. Candidate control strategies submitted by each controller are evaluated uniformly, and the optimal control scheme for the entire production process is calculated. After optimization, the control scheme is loaded into a virtual extraction model for virtual operation, predicting changes in extraction efficiency, concentration efficiency, equipment load, and product quality over a future period. If the prediction results meet the preset control objectives, the control parameters are sent to the field equipment for execution. If the prediction reveals problems such as increased energy consumption, equipment exceeding limits, or decreased yield, the control scheme is revised and virtual verification is performed again until the optimal control strategy is obtained. After the control strategy is executed, the field equipment continuously provides new operational data, and the virtual extraction model continuously adjusts its parameters based on the feedback results, achieving continuous synchronous updates between the virtual extraction model and the real equipment.
[0065] The foregoing has provided a detailed description of one embodiment of the present invention, but this description is merely a preferred embodiment and should not be construed as limiting the scope of the invention. All equivalent variations and modifications made within the scope of the claims of this invention should still fall within the patent coverage of this invention.
Claims
1. An automated and optimized method for high-content ergosterol extraction, characterized in that, Includes the following steps: P1. Establish a virtual extraction model and build a baseline state library: Collect spectral data and process operation data of historical high-quality extraction batches, build a gold extraction trajectory library, and form a spectral state fingerprint library by combining the feature vectors corresponding to different extraction stages. At the same time, establish a virtual extraction model and initialize each controller. P2. Real-time acquisition of ergosterol extraction information and establishment of spectral state fingerprint: Real-time acquisition of spectral information of the extract using transmission and reflection fiber optic spectral probes, and simultaneous acquisition of various process parameters, dimensionality reduction and compression of the original spectrum to generate spectral state fingerprints at the corresponding time. P3. Extraction stage identification and trajectory self-calibration based on spectral state fingerprint: The real-time generated spectral state fingerprint is matched with the gold extraction trajectory library to obtain the similarity between the current extraction trajectory and the gold extraction trajectory, and the extraction time or temperature gradient is automatically adjusted according to the path offset direction. P4. Construct a virtual sensor and predict ergosterol extraction yield: After trajectory correction, establish a virtual sensor for ergosterol yield based on the current process variables, and predict the current equivalent ergosterol extraction yield in real time. At the same time, adapt to different raw material batches through transfer learning. P5. Real-time identification of critical heat flux density state and dynamic optimization of safety boundary: High-frequency pressure sensor is used to collect pressure pulsation signal on the extraction vessel wall during the extraction process, to determine in real time whether the heating wall is close to the critical heat flux density state, and to dynamically optimize the heating power in combination with real-time yield prediction results. P6. Separate the release process of each component and enhance the selective extraction of ergosterol: Based on the real-time spectral fingerprint, extract the characteristic spectral ranges corresponding to ergosterol and impurities respectively, then separate each independent release source, and establish ergosterol release curve and impurity release curve respectively, while dynamically adjusting the low-frequency perturbation parameters of extraction pressure or temperature. P7. Based on the state information, perform virtual prediction and control sequence experiments: integrate the state information output from each step in real time, update the virtual extraction model, optimize each process unit, generate the optimal control scheme, apply the predicted optimal control strategy to the actual equipment, and continuously correct the model parameters using real-time feedback.
2. The automated and optimized method for high-content ergosterol extraction according to claim 1, characterized in that, The specific steps described in P1 for collecting spectral data and process operation data of historical high-quality extraction batches, constructing a gold extraction trajectory library, and forming a spectral state fingerprint library by combining the feature vectors corresponding to different extraction stages, while establishing a virtual extraction model, are as follows: S1.1: Based on the past records of staff, select multiple consecutive high-quality historical extraction batches as modeling objects, and collect spectral data and process operation data of the entire extraction process of each high-quality batch at a uniform sampling frequency, and form a complete original extraction sequence in chronological order. Then, synchronize all operation data according to a uniform time axis, and match all types of data one by one. Subsequently, connect the data of all moments of the same batch in chronological order to form the complete extraction trajectory of the batch. S1.2: Calculate the similarity between each historical extraction trajectory, cluster the extraction trajectories with similarity higher than the preset threshold, and extract the cluster center as the golden extraction trajectory. Then, according to the device calibration parameters, remove the abnormal sampling points in each golden extraction trajectory. At the same time, use neighborhood interpolation to restore the continuously missing data, and then normalize the various types of information in each golden extraction trajectory. S1.3: Divide each gold extraction trajectory into multiple continuous extraction sequences according to a preset fixed time window, and then form a two-dimensional input matrix from the continuous spectra in each extraction sequence. Extract local spectral peak features step by step through multi-layer one-dimensional convolution. After each layer of one-dimensional convolution is completed, perform max pooling on the output local spectral peak features. Then input the final local spectral peak features into the decoder and reconstruct the original spectrum. S1.4: Statistically calculate the reconstruction error between the reconstructed spectrum and the original spectrum. If the reconstruction error is higher than the preset threshold, adjust the one-dimensional convolution and pooling parameters, and perform spectrum reconstruction and error statistics again until the reconstruction error converges to the preset range. After training, based on the final parameters, reconstruct the spectral data in the historical high-quality extraction batch and use it as the state fingerprint. S1.5: Arrange the state fingerprints extracted from all historical high-quality batches in chronological order and correspond them point by point with the corresponding gold extraction trajectory to establish a complete spectral state fingerprint library. Extract the concentration change law of the target component during the extraction process from historical high-quality batches, and statistically analyze the relationship between ergosterol concentration and concentration change in the extract of each historical high-quality batch. Then, extract the characteristic modes of flow field, temperature field and concentration field based on CFD offline simulation results, and establish a virtual extraction model using the order reduction method.
3. The automated and optimized method for high-content ergosterol extraction according to claim 1, characterized in that, The specific steps described in P3 for obtaining the similarity between the current extraction trajectory and the gold extraction trajectory, and for automatically adjusting the extraction time or temperature gradient based on the path offset direction, are as follows: S2.1: After completing the real-time spectral state fingerprint generation, read the multiple spectral state fingerprints generated at the current time, construct the local extraction state trajectory of the current extraction process, and then re-mark the number of each state point in the extraction state trajectory according to the time order, and record the sampling time corresponding to each state point. S2.2: After completing the construction of the current extraction state trajectory, extract the gold extraction trajectory for the corresponding time period from the gold extraction trajectory library. Then, calculate the distance between any two state points in the current extraction state trajectory and the gold extraction trajectory. Then, form a distance matrix from all the distances. Then, using the upper left corner of the distance matrix as the starting point and the lower right corner as the ending point, search for each matching path step by step. S2.3: Calculate the cumulative matching cost of each matching path and select the matching path with the smallest cumulative matching cost as the optimal matching path. Then, calculate the average matching distance between the current trajectory and the gold extraction trajectory based on the cumulative matching cost of the optimal matching path. Then, convert the average matching distance into trajectory similarity through the exponential mapping function. If the trajectory similarity is lower than the preset threshold, it is determined that the current extraction trajectory status is inconsistent with the corresponding gold extraction trajectory. Otherwise, it is considered consistent. S2.4: After the judgment is completed, compare each matching point of the gold extraction trajectory with the current extraction state trajectory, and calculate the time difference between each matching point to obtain the time offset of each matching point. Then, based on the obtained time offset, calculate the average offset direction and offset stability of the entire extraction state trajectory. Generate the extraction time correction value according to the average offset direction, and then generate the temperature gradient correction value according to the offset stability.
4. The automated and optimized method for high-content ergosterol extraction according to claim 3, characterized in that, The specific steps described in P4 for establishing a virtual sensor for ergosterol yield based on current process variables and predicting the current equivalent extraction yield of ergosterol in real time are as follows: S3.1: Integrate the continuous collection of operation data and trajectory calibration results from historical batches according to a fixed time window to obtain multiple sets of training samples. At the same time, collect the actual ergosterol extraction yield obtained by laboratory testing for each training sample. Then, based on LSTM, GRU and self-attention mechanism, establish a deep soft measurement model. S3.2: Input each training sample into the depth soft measurement model, and use the LSTM branch to read the data of each training sample in different time windows in chronological order. Through the gating mechanism, the long-term dynamic laws in the extraction process are obtained. Then, the same training samples are input into the GRU network, and the local dynamic features are obtained through the GRU network layer by layer. Then, the LSTM output and the GRU output are concatenated to form the fusion feature. Then, the importance score of each time position is calculated according to the fusion feature. Then, the fusion features are weighted and fused according to the importance score of each fusion feature to obtain the comprehensive feature. The output layer is used to perform nonlinear mapping on the comprehensive feature to obtain the predicted equivalent ergosterol extraction yield at the current time. S3.3: Based on the equivalent ergosterol extraction yield of the predicted yield and the actual ergosterol extraction yield, the training loss of the deep soft measurement model is calculated. If the training loss is higher than the preset threshold, the parameters of the deep soft measurement model are updated by gradient descent. The deep soft measurement model is iterated and updated repeatedly until the model training loss converges to within the preset threshold. S3.4: Collect all running data within the current time window, input them into the trained deep soft measurement model according to the same data organization method as in the training phase, and sequentially extract long-term features using LSTM, extract local features using GRU, and fuse features using self-attention. Output the final equivalent ergosterol extraction yield prediction value at the current time, and perform exponential smoothing on each of the continuously output equivalent ergosterol extraction yield prediction values to generate a smoothed equivalent ergosterol extraction yield prediction value.
5. The automated and optimized method for high-content ergosterol extraction according to claim 4, characterized in that, The specific steps described in P5 for dynamically optimizing the heating power by determining in real time whether the heated wall surface is close to the critical heat flux density state and combining it with the real-time yield prediction results are as follows: S4.1: Obtain the real-time equivalent ergosterol extraction yield prediction value output at the current moment, and use the yield prediction value as a thermal safety constraint. Then, synchronously correlate the yield prediction value with the heating power, extraction pressure and temperature information at the corresponding moment to establish a unified thermal safety monitoring data window. Then, continuously collect the pressure signals generated during the formation, growth, coalescence and detachment of bubbles through the high-frequency response pressure sensor arranged on the inner wall of the extraction vessel. S4.2: Calculate the average pressure at each acquisition moment, then calculate the difference between the original pressure signal and the average pressure at each moment to obtain the pressure pulsation value at the corresponding sampling moment, and then rearrange the obtained continuous pressure pulsation values according to the preset delay time to obtain the bubble dynamics evolution trajectory in the current extraction process. S4.3: Calculate the proportion of the distance between any two state vectors in the current bubble dynamics evolution trajectory that is less than each preset statistical radius. Then, based on the proportion of each statistical radius, establish a corresponding double logarithmic relationship to obtain the correlation dimension of each statistical radius. Collect the initial distance between each collection point in the bubble dynamics evolution trajectory and take the collection point with the shortest initial distance as the nearest neighbor of the corresponding collection point. S4.4: Based on the bubble dynamics evolution trajectory, obtain the final distance between each sampling point and its nearest neighbor after time evolution. Based on the initial distance and the final distance, calculate the maximum Lyapunov exponent for each sampling point. Then, based on the correlation dimension of the current bubble dynamics evolution trajectory and the maximum Lyapunov exponent, calculate the corresponding thermal safety status evaluation value and calculate the difference between it and the preset evaluation threshold to obtain the thermal safety margin. S4.5: If the thermal safety margin is >0, it means that there is a corresponding thermal safety margin between the current wall and the critical heat flux density. Conversely, it means that the current wall surface is close to the critical heat flux density and the heating power needs to be optimized immediately. At the same time, a comprehensive objective function is established based on the current real-time yield prediction value and the thermal safety margin. Then, the candidate heating power is repeatedly updated using the acquisition function until the comprehensive objective function value is minimized and the equivalent ergosterol extraction yield is ≥ thermal safety constraint.
6. The automated and optimized method for high-content ergosterol extraction according to claim 2, characterized in that, The specific steps described in P6 for extracting the characteristic spectral ranges corresponding to ergosterol and impurities, separating the independent release sources, establishing ergosterol release curves and impurity release curves, and dynamically adjusting the low-frequency perturbation parameters of extraction pressure or temperature are as follows: S5.1: After the spectral state fingerprint library is constructed, the spectral state fingerprint corresponding to the current moment is collected, and the spectral state fingerprint is restored to the corresponding spectral feature space to obtain the complete continuous spectral features of the current extract. Then, based on the pre-established spectral state fingerprint library, the real-time spectrum is scanned band by band, and the position, peak width and peak area of each component characteristic peak are marked. According to the ergosterol standard characteristic band and impurity standard characteristic band in the spectral state fingerprint library, the real-time spectrum is windowed, and the local baseline correction is performed on each of the intercepted real-time spectral features. S5.2: Combine the corrected spectral features of each component corresponding to multiple consecutive sampling times into a mixed signal matrix, then center the mixed signal matrix, and then use the independent component analysis algorithm to decouple the mixed signal matrix to obtain the independent release source corresponding to each component. Then, calculate the independent source negative entropy of each independent release source, and then separate the ergosterol release signal and the release signals of each impurity based on the independent source negative entropy. S5.3: After signal separation is completed, the corresponding relationships of each separated component are identified based on the historical calibration database. Then, the release curves corresponding to ergosterol and impurities are extracted respectively, and their respective release kinetic models are established to obtain the release rate of ergosterol and the release rate of impurities during the extraction process. At the same time, based on the release rate of ergosterol and the release rate of impurities, the selectivity index of the current extraction process is calculated, and then the selectivity index is processed by moving average within multiple consecutive time windows. S5.4: Plot the corresponding index curves of the processed selectivity index in chronological order. When the selectivity index shows a decrease, obtain the latest disturbance frequency by comparing the current smoothed selectivity index with the preset target selectivity index, and then superimpose it on the current set value. After that, recalculate the subsequent selectivity index.
Citation Information
Patent Citations
Method for efficiently extracting ergosterol
CN116143860A
