Equipment state detection system based on PCR instrument
By using Hilbert transform and gradient boosting tree model and other technical means in the PCR equipment status detection system, key features are extracted and model parameters are optimized, which solves the problem of insufficient detection accuracy and robustness of the existing system and achieves Efficient and accurate monitoring and early warning of PCR equipment status.
Patent Information
- Application Number
- CN202411237963.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-05
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-09-05
AI Technical Summary
The existing equipment status detection system based on PCR instrument cannot effectively capture complex data patterns, has low status detection accuracy, weak anti-overfitting ability, cannot dynamically monitor the implicit status changes of the equipment, and lacks robustness and stability. Unable to cope with multiple complex failure modes and operating conditions.
A system including data collection, cleaning processing, feature extraction, status detection, parameter optimization, interpretation classification, status identification, real-time monitoring, abnormal warning, status reporting and system maintenance modules is designed. Key features are extracted through Hilbert transformation. Data, build a gradient boosting tree model, optimize model parameters, use the firefly algorithm to monitor implicit state changes, and provide real-time monitoring and early warning functions.
It improves the accuracy of equipment status detection and anti-overfitting capabilities, ensures good generalization performance on new data, dynamically monitors the hidden status of equipment, enhances the robustness and stability of the system, and can cope with a variety of complex failure modes and operating status.
Smart Images

Figure CN118779592A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of equipment status detection, and in particular to an equipment status detection system based on a PCR instrument. Background Art
[0002] The PCR instrument is a key device widely used in molecular biology for amplifying DNA sequences. Due to its importance in medical diagnosis, scientific research and biotechnology, it is particularly important to ensure the stable operation of the PCR instrument and detect equipment failures in a timely manner. Existing equipment status detection systems mostly rely on traditional methods, such as vibration analysis and temperature monitoring. Although these methods are effective, they often seem to be powerless when faced with complex failure modes and data processing. As the core equipment of molecular biology experiments, the operating status of the PCR instrument directly affects the accuracy and reliability of the experimental results. Therefore, establishing an efficient equipment status detection system is of great significance to ensure the smooth progress of the experiment and extend the service life of the equipment.
[0003] After searching, Chinese patent number CN201310708126.X discloses a device status monitoring system based on a PCR instrument. Although this invention can realize efficient management and allocation of PCR instruments, making the utilization of equipment more efficient, it cannot capture complex data patterns, the accuracy of status detection is low, and the system's anti-overfitting ability is low, and it cannot guarantee good generalization performance on new data; in addition, the existing device status detection system based on a PCR instrument cannot dynamically monitor the implicit state changes of the equipment, the system has low robustness and stability, and cannot cope with a variety of complex fault modes and operating states. For this reason, we propose a device status detection system based on a PCR instrument. Summary of the invention
[0004] The purpose of the present invention is to solve the defects in the prior art and to propose a device status detection system based on a PCR instrument.
[0005] In order to achieve the above object, the present invention adopts the following technical solutions: A device status detection system based on a PCR instrument, comprising a data collection module, a cleaning processing module, a feature extraction module, a status detection module, a parameter optimization module, an explanation classification module, a status recognition module, a real-time monitoring module, an abnormal warning module, a status report generation module, a data archiving module and a system maintenance module; The data collection module is used to obtain the operating data of the PCR instrument in real time.
[0006] As a further embodiment of the present invention, the operating data of the PCR instrument specifically includes temperature, pressure, current, voltage, heating rate, cooling rate, temperature uniformity, temperature accuracy, number of cycles, sample amount, reaction time, system noise and humidity.
[0007] The cleaning processing module is used to process the collected data into signal data required for subsequent analysis and modeling; The feature extraction module is used to extract key feature data from the preprocessed data.
[0008] As a further solution of the present invention, the specific steps of extracting time-frequency features in the feature extraction module are as follows: Step 1: Initialize each set of signal data and traverse each data point of the signal data. Initialize each set of signal data and traverse each data point of the signal data. ,in Representative in the Time point Signal data value, record the current data point and its adjacent points and , and detect local maximum and local minimum values based on the collected data points, and record the positions and corresponding values of each group of local maximum points and local minimum points; Step 2: Construct a sequence of local maximum and minimum points, exclude pseudo-extreme points caused by noise or data anomalies, and then use spline interpolation to connect all local maxima and minima to construct the upper envelope. With lower envelope , and calculate the mean of the upper and lower envelopes, and subtract the mean from the original signal data to obtain the corresponding detail component ; Step 3: If If the IMF condition is satisfied and the local mean of its envelope is zero at any point, it is regarded as an IMF component Otherwise, Treat it as new signal data, and re-find local extreme points and calculate new detail components to decompose new IMF components. Repeat the decomposition steps of IMF components until all IMF components are decomposed. Step 4: For each group Perform Hilbert transform and construct analytical signal based on the transform result, through instantaneous frequency and instantaneous amplitude The time-frequency characteristics of the signal are characterized by the changes in , each group of data is standardized, and the covariance matrix of the standardized data is calculated. At the same time, the covariance matrix is eigenvalue decomposed to obtain the corresponding eigenvalues and eigenvectors, and the eigenvectors corresponding to multiple groups of the largest eigenvalues are selected as new basis vectors, and the original data are projected onto these basis vectors to obtain the key feature data after dimensionality reduction.
[0009] As a further solution of the present invention, the specific calculation formula of the mean value in step 2 is as follows: ; In the formula, Represents the mean of the upper and lower envelopes; represents the upper envelope; represents the lower envelope; The specific calculation formula of the detail component in step 2 is as follows: ; In the formula, Represents detail weight; Represents the original signal data; The specific calculation formula of the Hilbert transform in step 4 is as follows: ; In the formula, Representative Hilbert transform of an IMF; represents the normalization factor; represents the Cauchy principal value; Representative signal At various points throughout the timeframe; Representatives Make tiny increments that add up point by point; The specific construction formula of the analytical signal in step 4 is as follows: ; In the formula, represents the instantaneous amplitude; represents an imaginary unit and satisfies ; Represents the instantaneous phase.
[0010] The state detection module includes a model building unit and a depth optimization unit; Among them, the model building unit is used to build a preliminary equipment status detection model to identify the general operating status of the PCR instrument; the deep optimization unit is used to optimize the equipment status detection model.
[0011] As a further solution of the present invention, the specific steps of constructing the device status detection model of the model construction unit are as follows: Step 1: Collect temperature change rate, pressure change rate, vibration frequency, instantaneous power and extracted key feature data, and integrate them into a feature data set. Then divide the feature data set into a training set and a test set, initialize a constant model, and then set the number of trees, maximum tree depth and learning rate hyperparameters of the gradient boosting tree model. Step 2: For each sample in the training set, calculate the current model prediction value The negative gradient of , the calculated negative gradient is used as the new target variable, a new training data set is constructed for fitting, all features and all possible split points are traversed, the reduction of the loss function of each split point is calculated, and the split point that can minimize the loss function is selected; Step 3: According to the selected split point, the data is divided into a left child node and a right child node. For each child node, the process of selecting the split point and creating nodes is recursively repeated. When the number of samples in the node is less than the preset minimum number of sample splits, the split is stopped, and the mean of the negative gradient in each node is used as the predicted value of each leaf node to complete the construction of the new decision tree. Step 4: Add the prediction results of the new decision tree to the prediction results of the current model and multiply it by the learning rate to update the model. Repeat the new decision tree construction and model update until the preset number of training times is reached. Use the test set data to verify the trained gradient boosting tree model and evaluate the model's performance indicators such as accuracy, precision, recall, and F1 score. Step 5: Extract features from the new data and input them into the trained status detection model. The model is used to predict the extracted features to obtain the status detection results of the equipment. The results are visualized and fed back to the staff.
[0012] The parameter optimization module is used to collect the equipment status detection model operation information in real time and optimize the model parameters.
[0013] As a further solution of the present invention, the specific steps of optimizing the model parameters of the parameter optimization module are as follows: Step I: The parameter optimization module collects the parameter information of the state detection model and determines the value range of each parameter. It randomly generates values within the value range of each parameter. parameters, generate a random number uniformly distributed in the interval [0,1] ; Step II: Map the generated random number to the value range of the parameter and calculate the The candidate solution parameter values , for each candidate solution, generate multiple parameter values to form a complete candidate solution vector, and repeat steps Ⅰ to Ⅱ until multiple groups of candidate solutions within a preset upper limit range are generated to form an initial population; Step III: Calculate the fitness value of each candidate solution, optimize the model parameters, and sort all candidate solutions from small to large according to the fitness value. Select the first three individuals with the smallest fitness value from the sorted candidate solutions as the best individuals in the current population, and record the best fitness values and positions of the three individuals. Step IV: Use the three best individuals found , as well as Indicates that the current state detection model parameters are calculated and , as well as The distance vector between , as well as The position and distance vector of , as well as The position of the current parameter is updated; Step V: Repeat the iteration to update the model parameters until the maximum number of iterations is reached or the convergence condition is met. After the iteration, the parameter position with the smallest fitness value is output, which is the optimal model parameter, and the original model parameters are replaced by the original parameters. At the same time, the state detection model operation information is collected in real time and the parameters are updated.
[0014] The explanation and classification module is used to handle uncertainty and ambiguity in state detection and to explain and classify the detection results.
[0015] As a further solution of the present invention, the specific steps of uncertainty and fuzziness processing of the explanation classification module are as follows: Step ①: Extract feature data or detection results from the state detection model, and classify the state of the equipment into "normal", "warning" and "fault". For each input and output variable, define the corresponding fuzzy set, and define the membership function for each fuzzy set; Step ②: Randomly generate a certain number of fuzzy rule sets, each group of individuals represents a combination of fuzzy rules, calculate the fitness value according to the matching degree between the output of fuzzy logic and the actual equipment state, select excellent individuals according to the fitness value, and retain the fuzzy rule combination with high fitness value to enter the next generation; Step ③: Randomly select two individuals to perform crossover operation to generate new fuzzy rule combinations, then perform mutation operation on multiple groups of individuals to randomly change the fuzzy rules to increase the diversity of the population, and add the new individuals generated by crossover and mutation to the population to update the fuzzy rule combinations in the population; Step ④: Convert the input variable value into a fuzzy value through the membership function, and then build a fuzzy rule base based on the initial population and optimization results. Use fuzzy logic reasoning rules to obtain the output membership of each rule through synthetic reasoning and membership calculation. Defuzzify the fuzzy reasoning result and convert it into a specific output value, and generate the state classification of each test result based on the output value.
[0016] As a further solution of the present invention, the specific calculation formula for the defuzzification process in step ④ is as follows: ; In the formula, Represents fuzzy sets At output value The degree of membership of the place; Represents the final defuzzified output value; Represents possible output variable values.
[0017] The state recognition module is used to monitor the implicit state changes of the PCR instrument.
[0018] As a further solution of the present invention, the specific steps of implicit state change monitoring of the state recognition module are as follows: Step 1: Define a set of hidden states according to the different operating states of the equipment, select the groups of observation variables corresponding to the equipment states, and form an observation sequence based on the collected observation variables. According to historical data or expert experience, set the probability of the system belonging to each hidden state at the initial moment. , and the sum of the initial state probabilities of each hidden state is 1, and the state transition probability matrix is initialized at the same time And the observation probability matrix ; Step 2: Randomly generate multiple sets of candidate parameter sets , use the forward algorithm to calculate the log-likelihood value of the observation sequence of each candidate parameter set, and obtain the final log-likelihood value through recursive calculation. Then, each group of final log-likelihood values is regarded as a firefly, and the position of each firefly corresponds to a set of candidate parameter sets; Step 3: Calculate the number of fireflies based on the log-likelihood value Fireflies The attraction of each firefly group is calculated, and the Euclidean distance between each group of fireflies is calculated. The position of each firefly is updated according to the attraction and random factors, and the corresponding candidate parameter set is detected in real time after the position of each firefly is updated. If the updated position of the firefly exceeds the allowable range, the reflective boundary condition or the cyclic boundary condition is used to adjust it back to the preset range; Step 4: Perform multiple iterations for all fireflies, repeat the process of calculating fitness values and updating positions. In each iteration, update the positions of all fireflies according to the log-likelihood value and attractiveness of the current firefly, and recalculate the fitness value. When the log-likelihood value converges to the preset threshold, stop the iteration, and extract the candidate parameter set corresponding to the firefly position with the highest log-likelihood value as the optimal parameter combination; Step 5: Calculate at time Status is And observe from time 1 to time The probability of each observation sequence is calculated as the forward probability, and then the probability of Status is And observe the time +1 to time The probability of each observation sequence is calculated and used as the backward probability. Then, each state is calculated at time The probability and each pair of adjacent states at time and +1, re-estimate the parameter combination according to the obtained probability information, repeat the parameter estimation step until the preset number of iterations is reached, and compare the log-likelihood value of the optimal parameter combination with the secondary optimized parameter combination, and select the highest log-likelihood value as the optimal parameter; Step 6: Initialization time =1, through the formula Calculate at time =1 when reaching the state The probability of the highest probability path, where represents the initial state probability, Represents in state Observed Observed The probability of =1 Arrival state The previous state index of the optimal path, whose state index is initialized to 0; Step 7: Calculate in each subsequent time step At the end, the state The probability of the highest probability path , and record the arrival status at each moment The previous state index of the optimal path, determining the last time step The optimal termination state of the algorithm is determined, and the final optimal state is determined at the same time. Starting from the termination state, the path is traced back to determine the hidden state sequence, and the hidden state sequence is converted into the corresponding device state sequence, and the device states at different times are output.
[0019] As a further embodiment of the present invention, the probability of the highest probability path in step 7 is The specific calculation formula is as follows: ; In the formula, Represents at the moment At the end, the state The probability of the highest probability path; Represents the state Transfer to state probability; Represents in state Observed Observed probability.
[0020] The real-time monitoring module is used to provide a user interface for real-time monitoring of the operating status of the PCR instrument, and to display key parameters and test results; The abnormal warning module is used to send out a warning signal in time when an abnormal state is detected, and notify the staff through SMS and email; The status reporting module is used to regularly generate equipment status detection reports, recording equipment operation conditions, detection results and maintenance suggestions in detail; The data archiving module is used to classify and store the collected operation data and test results and establish a historical database; The system maintenance module is used to manage system user rights and record operation logs.
[0021] Compared with the prior art, the present invention has the following beneficial effects: 1. After extracting various key feature data of the PCR instrument through Hilbert transform, the present invention constructs a feature data set, then divides the feature data set into a training set and a test set, initializes a constant model, and then sets various hyperparameters of the gradient boosting tree model. For each sample in the training set, the negative gradient of the current model prediction value is calculated, and the calculated negative gradient is used as a new target variable. A new training data set for fitting is constructed and a decision tree is constructed to update the model. The new decision tree construction and model updating are repeated until a preset number of training times is reached. The trained gradient boosting tree model is verified using the test set data. The parameter optimization module collects the parameter information of the state detection model, and determines the value range of each parameter. A value is randomly generated within the value range of each parameter, and the gray wolf algorithm is used to re-train the model. The model parameters are updated repeatedly until the maximum number of iterations is reached or the convergence conditions are met. After the iteration, the parameter position with the smallest fitness value is output, which is the optimal model parameter, and the original parameters are replaced by the original model parameters. At the same time, the state detection model operation information is collected in real time, and the parameters are updated. Features are extracted from the new data and input into the trained state detection model. The extracted features are predicted by the model to obtain the state detection results of the equipment, and the results are visualized and fed back to the staff. It can effectively capture complex data patterns, improve the accuracy of state detection, and has strong anti-overfitting ability, ensuring the good generalization performance of the model on new data, which helps to further optimize and improve the detection model, effectively avoid local optimal traps, and significantly improve the efficiency of model parameter optimization.
[0022] 2. The present invention defines a group of hidden states according to different operating states of the device, selects groups of observation variables corresponding to the device state, and forms an observation sequence based on the collected observation variables. According to historical data or expert experience, the probability of the system belonging to each hidden state at the initial moment is set, and the state transition probability matrix and the observation probability matrix are initialized at the same time. Multiple sets of candidate parameter sets are randomly generated, and the final log-likelihood value is obtained by using a forward algorithm and recursive calculation. After that, the final log-likelihood value of each group is regarded as a firefly, and the attraction between each firefly is calculated based on the log-likelihood value. The position of each firefly is updated according to the attraction and random factors, and the process of calculating the fitness value and updating the position is repeated. When the log-likelihood value converges to a preset threshold, the iteration is stopped, and the firefly with the highest log-likelihood value is extracted. The candidate parameter set corresponding to the firefly position is taken as the optimal parameter combination, the forward probability and the backward probability are calculated, the parameter combination is re-estimated according to the obtained probability information, and the parameter estimation step is repeated until the preset number of iterations is reached, and the log-likelihood value of the optimal parameter combination is compared with the secondary optimized parameter combination, the highest log-likelihood value is selected as the optimal parameter, and the final optimal state is determined. Starting from the terminal state, the path is backtracked to determine the hidden state sequence, and the hidden state sequence is converted into the corresponding device state sequence, and the device state at different times is output. It can dynamically monitor the implicit state changes of the equipment, provide real-time state evaluation, improve the robustness and stability of the system, and can cope with a variety of complex failure modes and operating conditions, while improving the accuracy and reliability of implicit state prediction. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention.
[0024] Figure 1 This is a system block diagram of a device status detection system based on a PCR instrument proposed by the present invention. DETAILED DESCRIPTION
[0025] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Example 1
[0026] Reference Figure 1 , a device status detection system based on PCR instrument, including data collection module, cleaning processing module, feature extraction module, status detection module, parameter optimization module, explanation classification module, status recognition module, real-time monitoring module, abnormal warning module, status report generation module, data archiving module and system maintenance module.
[0027] The data collection module is used to obtain the operating data of the PCR instrument in real time.
[0028] It should be further explained that the operating data of the PCR instrument specifically include temperature, pressure, current, voltage, heating rate, cooling rate, temperature uniformity, temperature accuracy, number of cycles, sample amount, reaction time, system noise and humidity; The normal range of the above temperature is 4 。 C to 98 ° C; pressure refers to the air pressure inside the PCR instrument, and the normal range is usually around 101.3 kPa; current refers to the current intensity of the PCR instrument when it is working, and the normal range is between 0.5A-2A, and its specific value varies depending on the equipment model and workload; the normal range of voltage is 220V or 110V, depending on the voltage standard of the specific equipment and the country of use; the normal range of heating rate is 1 ° C / sec to 5 ° C / sec; the normal range of cooling rate is 1 ° C / sec to 3 ° C / sec; Temperature uniformity refers to the temperature consistency of each reaction well of the PCR instrument, and its normal value range is ±0.5 ° C; temperature accuracy refers to the deviation between the set temperature and the actual temperature of the PCR instrument, and its normal value range is ±0.25 ° C or less; the number of cycles refers to the number of thermal cycles required for the PCR experiment, and its normal value range is 20 to 40 cycles; the sample amount refers to the volume of the sample in each reaction tube, and its normal value range is 10μl to 100μl; the reaction time refers to the time of each PCR cycle stage, and its normal value range is denaturation stage: 30 seconds to 1 minute, annealing stage: 30 seconds to 1 minute, and extension stage: 1 minute per kilobase pair; the system noise refers to the noise level generated when the PCR instrument is running, and its normal value range is below 60 decibels; the humidity refers to the humidity of the working environment of the PCR instrument, and its normal value range is between 20% and 80%.
[0029] The cleaning processing module is used to process the collected data into signal data required for subsequent analysis and modeling; the feature extraction module is used to extract key feature data from the preprocessed data.
[0030] Specifically, initialize each group of signal data and traverse each data point of the signal data ,in Representative in the Time point Signal data value, record the current data point and its adjacent points and , and detect local maximum and local minimum values based on the collected data points, record the positions and corresponding values of each group of local maximum and local minimum points, construct local maximum point sequence and local minimum point sequence, and exclude pseudo extreme points caused by noise or data anomalies, and then use spline interpolation to connect all local maximum and minimum values respectively to construct the upper envelope With lower envelope , and calculate the mean of the upper and lower envelopes, and subtract the mean from the original signal data to obtain the corresponding detail component ,like If the IMF condition is satisfied and the local mean of its envelope is zero at any point, it is regarded as an IMF component Otherwise, Treat it as new signal data, and re-find local extreme points and calculate new detail components to decompose new IMF components. Repeat the decomposition steps of IMF components until all IMF components are decomposed. For each group Perform Hilbert transform and construct analytical signal based on the transform result, through instantaneous frequency and instantaneous amplitude The time-frequency characteristics of the signal are characterized by the changes in , each group of data is standardized, and the covariance matrix of the standardized data is calculated. At the same time, the covariance matrix is eigenvalue decomposed to obtain the corresponding eigenvalues and eigenvectors, and the eigenvectors corresponding to multiple groups of the largest eigenvalues are selected as new basis vectors, and the original data are projected onto these basis vectors to obtain the key feature data after dimensionality reduction.
[0031] In this embodiment, the specific calculation formula of the mean is as follows: ; In the formula, Represents the mean of the upper and lower envelopes; represents the upper envelope; represents the lower envelope; The specific calculation formula of detail component is as follows: ; In the formula, Represents detail weight; Represents the original signal data; The specific calculation formula of Hilbert transform is as follows: ; In the formula, Representative Hilbert transform of an IMF; represents the normalization factor; represents the Cauchy principal value; Representative signal At various points throughout the timeframe; Representatives Make tiny increments that add up point by point; The specific construction formula of the analytical signal is as follows: ; In the formula, represents the instantaneous amplitude; represents an imaginary unit and satisfies ; Represents the instantaneous phase.
[0032] The status detection module includes a model building unit and a deep optimization unit; wherein the model building unit is used to build a preliminary equipment status detection model to identify the general operating status of the PCR instrument; the deep optimization unit is used to optimize the equipment status detection model.
[0033] Specifically, the temperature change rate, pressure change rate, vibration frequency, instantaneous power and key feature data are collected and integrated into a feature data set. The feature data set is then divided into a training set and a test set. A constant model is initialized, and the number of trees, the maximum depth of the tree and the learning rate hyperparameters of the gradient boosting tree model are set. For each sample in the training set, the current model prediction value is calculated. The negative gradient of the model is calculated, and the calculated negative gradient is used as the new target variable to construct a new training data set for fitting. All features and all possible splitting points are traversed, the reduction of the loss function of each splitting point is calculated, and the splitting point that can minimize the loss function is selected. According to the selected splitting point, the data is divided into a left child node and a right child node. For each child node, the process of selecting splitting points and creating nodes is recursively repeated. When the number of samples in the node is less than the preset minimum number of sample splits, the splitting is stopped, and the mean of the negative gradient in each node is used as the predicted value of each leaf node to complete the construction of the new decision tree. The prediction result of the new decision tree is added to the prediction result of the current model and multiplied by the learning rate to update the model. The new decision tree construction and model update are repeated until the preset number of training times is reached. The trained gradient boosting tree model is verified using the test set data to evaluate the model's performance indicators of accuracy, precision, recall and F1 score. Features are extracted from the new data and input into the trained state detection model. The extracted features are predicted by the model to obtain the state detection results of the equipment, and the results are visualized and fed back to the staff.
[0034] The parameter optimization module is used to collect equipment status detection model operation information in real time and optimize model parameters.
[0035] Specifically, the parameter optimization module collects the parameter information of the state detection model, determines the value range of each parameter, and randomly generates a value within the value range of each parameter. parameters, generate a random number uniformly distributed in the interval [0,1] , map the generated random number to the value range of the parameter, and calculate the The candidate solution parameter values , for each candidate solution, generate multiple parameter values to form a complete candidate solution vector, repeat steps I to II until multiple groups of candidate solutions with a preset upper limit range are generated to form an initial population, calculate the fitness value of each candidate solution, optimize the model parameters, and sort all candidate solutions from small to large according to the fitness value, select the first three individuals with the smallest fitness value from the sorted candidate solutions as the optimal individuals in the current population, record the best fitness values and positions of the three individuals, and use , as well as Indicates that the current state detection model parameters are calculated and , as well as The distance vector between , as well as The position and distance vector of , as well as The current parameters are updated according to the position, and the model parameters are updated repeatedly until the maximum number of iterations is reached or the convergence condition is met. After the iteration, the parameter position with the smallest fitness value is output, which is the optimal model parameter, and the original parameters are replaced by the original model parameters. At the same time, the state detection model operation information is collected in real time and the parameters are updated. Example 2
[0036] Reference Figure 1 , a device status detection system based on PCR instrument, including data collection module, cleaning processing module, feature extraction module, status detection module, parameter optimization module, explanation classification module, status recognition module, real-time monitoring module, abnormal warning module, status report generation module, data archiving module and system maintenance module.
[0037] The explanation and classification module is used to deal with the uncertainty and ambiguity in state detection and to explain and classify the detection results.
[0038] Specifically, feature data or detection results are extracted from the state detection model, and the state of the equipment is classified into "normal", "warning" and "fault". For each input and output variable, a corresponding fuzzy set is defined, and a membership function is defined for each fuzzy set. A certain number of fuzzy rule sets are randomly generated, and each group of individuals represents a combination of fuzzy rules. The fitness value is calculated according to the degree of matching between the output of the fuzzy logic and the actual equipment state. Excellent individuals are selected according to the fitness value, and the fuzzy rule combination with a high fitness value is retained to enter the next generation. Two individuals are randomly selected for crossover operation to generate a new fuzzy rule combination, and then mutation operations are performed on multiple groups of individuals to randomly change the fuzzy rules to increase the diversity of the population, and the new individuals generated by crossover and mutation are added to the population, and the fuzzy rule combination in the population is updated. The input variable value is converted into a fuzzy value through a membership function. Then, according to the initial population and the optimization result, a fuzzy rule base is constructed, and the fuzzy logic reasoning rule is used to obtain the output membership of each rule through synthetic reasoning and membership calculation. The fuzzy reasoning result is defuzzified and converted into a specific output value, and the state classification of each detection result is generated according to the output value.
[0039] In this embodiment, the specific calculation formula for defuzzification processing is as follows: ; In the formula, Represents fuzzy sets At output value The degree of membership of the place; Represents the final defuzzified output value; Represents possible output variable values.
[0040] The state recognition module is used to monitor the implicit state changes of the PCR instrument.
[0041] Specifically, according to the different operating states of the equipment, a set of hidden states is defined, and the groups of observation variables corresponding to the equipment states are selected. The observation sequence is formed based on the collected observation variables. According to historical data or expert experience, the probability of the system belonging to each hidden state at the initial moment is set. , and the sum of the initial state probabilities of each hidden state is 1, and the state transition probability matrix is initialized at the same time And the observation probability matrix , randomly generate multiple sets of candidate parameter sets , use the forward algorithm to calculate the log-likelihood value of the observation sequence of each candidate parameter set, and obtain the final log-likelihood value through recursive calculation. Then, regard each group of final log-likelihood values as a firefly, and the position of each firefly corresponds to a set of candidate parameter sets. According to the log-likelihood value, calculate the firefly Fireflies The attraction of each firefly is calculated, and the Euclidean distance between each group of fireflies is calculated. The position of each firefly is updated according to the attraction and random factors, and the corresponding candidate parameter set is detected in real time after the position of each firefly is updated. Whether it is within the preset parameter range, if the updated firefly position exceeds the allowable range, the reflection boundary condition or the cyclic boundary condition is used to adjust it back to the preset range, and multiple iterations are performed on all fireflies, and the process of calculating the fitness value and updating the position is repeated. In each round of iteration, the positions of all fireflies are updated according to the logarithmic likelihood value and attraction of the current firefly, and the fitness value is recalculated. When the logarithmic likelihood value converges to the preset threshold, the iteration is stopped, and the candidate parameter set corresponding to the firefly position with the highest logarithmic likelihood value is extracted as the optimal parameter combination, and the optimal parameter combination is calculated at time Status is And observe from time 1 to time The probability of each observation sequence is calculated as the forward probability, and then the probability of Status is And observe the time +1 to time The probability of each observation sequence is calculated and used as the backward probability. Then, each state is calculated at time The probability and each pair of adjacent states at time and +1, re-estimate the parameter combination according to the obtained probability information, repeat the parameter estimation step until the preset number of iterations is reached, and compare the log-likelihood value of the optimal parameter combination with the secondary optimized parameter combination, select the highest log-likelihood value as the optimal parameter, and initialize the time =1, through the formula Calculate at time =1 when reaching the state The probability of the highest probability path, where represents the initial state probability, Represents in state Observed Observed The probability of =1 Arrival state The previous state index of the optimal path is initialized to 0 and is calculated in turn at each subsequent time step. At the end, the state The probability of the highest probability path , and record the arrival status at each moment The previous state index of the optimal path, determining the last time step The optimal termination state of the algorithm is determined, and the final optimal state is determined at the same time. Starting from the termination state, the path is traced back to determine the hidden state sequence, and the hidden state sequence is converted into the corresponding device state sequence, and the device states at different times are output.
[0042] In this embodiment, the probability of the highest probability path is The specific calculation formula is as follows: ; In the formula, Represents at the moment At the end, the state The probability of the highest probability path; Represents the state Transfer to state probability; Represents in state Observed Observed probability.
[0043] The real-time monitoring module is used to provide a user interface for real-time monitoring of the operating status of the PCR instrument, displaying key parameters and test results; the abnormal warning module is used to issue a warning signal in a timely manner when an abnormal state is detected, and notify the staff through text messages and emails; the status report module is used to regularly generate equipment status detection reports, recording in detail the equipment operation status, test results and maintenance suggestions; the data archiving module is used to classify and store the collected operation data and test results, and establish a historical database; the system maintenance module is used to manage the user permissions of the system and record operation logs.
Claims
1. A device status detection system based on a PCR instrument, characterized in that: It includes data collection module, cleaning processing module, feature extraction module, state detection module, parameter optimization module, explanation classification module, state recognition module, real-time monitoring module, abnormal warning module, state report generation module, data archiving module and system maintenance module; The data collection module is used to obtain the operation data of the PCR instrument in real time; The cleaning processing module is used to process the collected data into signal data required for subsequent analysis and modeling; The feature extraction module is used to extract key feature data from the preprocessed data; The state detection module includes a model building unit and a depth optimization unit; The model building unit is used to build a preliminary device status detection model to identify the general operating status of the PCR instrument; the deep optimization unit is used to optimize the device status detection model; The parameter optimization module is used to collect the equipment status detection model operation information in real time and optimize the model parameters; The explanation and classification module is used to handle uncertainty and ambiguity in state detection and to explain and classify the detection results; The state recognition module is used to monitor the implicit state changes of the PCR instrument; The real-time monitoring module is used to provide a user interface for real-time monitoring of the operating status of the PCR instrument, and to display key parameters and test results; The abnormal warning module is used to send out a warning signal in time when an abnormal state is detected, and notify the staff through SMS and email; The status reporting module is used to regularly generate equipment status detection reports, recording equipment operation conditions, detection results and maintenance suggestions in detail; The data archiving module is used to classify and store the collected operation data and test results and establish a historical database; The system maintenance module is used to manage the user rights of the system and record operation logs.
2. A device status detection system based on a PCR instrument according to claim 1, characterized in that: The specific steps of time-frequency feature extraction in the feature extraction module are as follows: Step 1: Initialize each set of signal data and traverse each data point of the signal data ,in Representative in the Time point Signal data value, record the current data point and its adjacent points and , and detect local maximum and local minimum values based on the collected data points, and record the positions and corresponding values of each group of local maximum points and local minimum points; Step 2: Construct a sequence of local maximum and minimum points, exclude pseudo-extreme points caused by noise or data anomalies, and then use spline interpolation to connect all local maxima and minima to construct the upper envelope. With lower envelope , and calculate the mean of the upper and lower envelopes, and subtract the mean from the original signal data to obtain the corresponding detail component ; Step 3: If If the IMF condition is satisfied and the local mean of its envelope is zero at any point, it is regarded as an IMF component Otherwise, Treat it as new signal data, and re-find local extreme points and calculate new detail components to decompose new IMF components. Repeat the decomposition steps of IMF components until all IMF components are decomposed. Step 4: For each group Perform Hilbert transform and construct analytical signal based on the transform result, through instantaneous frequency and instantaneous amplitude The time-frequency characteristics of the signal are characterized by the changes in , each group of data is standardized, and the covariance matrix of the standardized data is calculated. At the same time, the covariance matrix is eigenvalue decomposed to obtain the corresponding eigenvalues and eigenvectors, and the eigenvectors corresponding to multiple groups of the largest eigenvalues are selected as new basis vectors, and the original data are projected onto these basis vectors to obtain the key feature data after dimensionality reduction.
3. A device status detection system based on a PCR instrument according to claim 2, characterized in that: The specific calculation formula of the mean value in step 2 is as follows: ; In the formula, Represents the mean of the upper and lower envelopes; represents the upper envelope; represents the lower envelope; The specific calculation formula of the detail component in step 2 is as follows: ; In the formula, Represents detail weight; Represents the original signal data; The specific calculation formula of the Hilbert transform in step 4 is as follows: ; In the formula, Representative Hilbert transform of an IMF; represents the normalization factor; represents the Cauchy principal value; Representative signal At various points throughout the timeframe; Representatives Make tiny increments that add up point by point; The specific construction formula of the analytical signal in step 4 is as follows: ; In the formula, represents the instantaneous amplitude; represents an imaginary unit and satisfies ; Represents the instantaneous phase.
4. The device status detection system based on a PCR instrument according to claim 2, characterized in that: The specific steps of constructing the device status detection model of the model construction unit are as follows: Step 1: Collect temperature change rate, pressure change rate, vibration frequency, instantaneous power and extracted key feature data, and integrate them into a feature data set. Then divide the feature data set into a training set and a test set, initialize a constant model, and then set the number of trees, maximum tree depth and learning rate hyperparameters of the gradient boosting tree model. Step 2: For each sample in the training set, calculate the current model prediction value The negative gradient of , the calculated negative gradient is used as the new target variable, a new training data set is constructed for fitting, all features and all possible split points are traversed, the reduction of the loss function of each split point is calculated, and the split point that can minimize the loss function is selected; Step 3: According to the selected split point, the data is divided into a left child node and a right child node. For each child node, the process of selecting the split point and creating nodes is recursively repeated. When the number of samples in the node is less than the preset minimum number of sample splits, the split is stopped, and the mean of the negative gradient in each node is used as the predicted value of each leaf node to complete the construction of the new decision tree. Step 4: Add the prediction results of the new decision tree to the prediction results of the current model and multiply it by the learning rate to update the model. Repeat the new decision tree construction and model update until the preset number of training times is reached. Use the test set data to verify the trained gradient boosting tree model and evaluate the model's performance indicators such as accuracy, precision, recall, and F1 score. Step 5: Extract features from the new data and input them into the trained status detection model. The model is used to predict the extracted features to obtain the status detection results of the equipment. The results are visualized and fed back to the staff.
5. A device status detection system based on a PCR instrument according to claim 4, characterized in that: The specific steps of the parameter optimization module model parameter optimization are as follows: Step I: The parameter optimization module collects the parameter information of the state detection model and determines the value range of each parameter. It randomly generates values within the value range of each parameter. parameters, generate a random number uniformly distributed in the interval [0,1] ; Step II: Map the generated random number to the value range of the parameter and calculate the The candidate solution parameter values , for each candidate solution, generate multiple parameter values to form a complete candidate solution vector, and repeat steps Ⅰ to Ⅱ until multiple groups of candidate solutions within a preset upper limit range are generated to form an initial population; Step III: Calculate the fitness value of each candidate solution, optimize the model parameters, and sort all candidate solutions from small to large according to the fitness value. Select the first three individuals with the smallest fitness value from the sorted candidate solutions as the best individuals in the current population, and record the best fitness values and positions of the three individuals. Step IV: Use the three best individuals found , as well as Indicates that the current state detection model parameters are calculated and , as well as The distance vector between , as well as The position and distance vector of , as well as The position of the current parameter is updated; Step V: Repeat the iteration to update the model parameters until the maximum number of iterations is reached or the convergence condition is met. After the iteration, the parameter position with the smallest fitness value is output, which is the optimal model parameter, and the original model parameters are replaced by the original parameters. At the same time, the state detection model operation information is collected in real time and the parameters are updated.
6. The device status detection system based on PCR instrument according to claim 4, characterized in that: The specific steps of uncertainty and fuzziness processing of the explained classification module are as follows: Step ①: Extract feature data or detection results from the state detection model, and classify the state of the equipment into "normal", "warning" and "fault". For each input and output variable, define the corresponding fuzzy set, and define the membership function for each fuzzy set; Step ②: Randomly generate a certain number of fuzzy rule sets, each group of individuals represents a combination of fuzzy rules, calculate the fitness value according to the matching degree between the output of fuzzy logic and the actual equipment state, select excellent individuals according to the fitness value, and retain the fuzzy rule combination with high fitness value to enter the next generation; Step ③: Randomly select two individuals to perform crossover operation to generate new fuzzy rule combinations, then perform mutation operation on multiple groups of individuals to randomly change the fuzzy rules to increase the diversity of the population, and add the new individuals generated by crossover and mutation to the population to update the fuzzy rule combinations in the population; Step ④: Convert the input variable value into a fuzzy value through the membership function, and then build a fuzzy rule base based on the initial population and optimization results. Use fuzzy logic reasoning rules to obtain the output membership of each rule through synthetic reasoning and membership calculation. Defuzzify the fuzzy reasoning result and convert it into a specific output value, and generate the state classification of each test result based on the output value.
7. A device status detection system based on a PCR instrument according to claim 6, characterized in that: The specific calculation formula for the defuzzification process in step ④ is as follows: ; In the formula, Represents fuzzy sets At output value The degree of membership of the place; Represents the final defuzzified output value; Represents possible output variable values.
8. The device status detection system based on PCR instrument according to claim 6, characterized in that: The specific steps of implicit state change monitoring of the state recognition module are as follows: Step 1: Define a set of hidden states according to the different operating states of the equipment, select the groups of observation variables corresponding to the equipment states, and form an observation sequence based on the collected observation variables. According to historical data or expert experience, set the probability of the system belonging to each hidden state at the initial moment. , and the sum of the initial state probabilities of each hidden state is 1, and the state transition probability matrix is initialized at the same time And the observation probability matrix ; Step 2: Randomly generate multiple sets of candidate parameter sets , use the forward algorithm to calculate the log-likelihood value of the observation sequence of each candidate parameter set, and obtain the final log-likelihood value through recursive calculation. Then, each group of final log-likelihood values is regarded as a firefly, and the position of each firefly corresponds to a set of candidate parameter sets; Step 3: Calculate the number of fireflies based on the log-likelihood value Fireflies The attraction of each firefly group is calculated, and the Euclidean distance between each group of fireflies is calculated. The position of each firefly is updated according to the attraction and random factors, and the corresponding candidate parameter set is detected in real time after the position of each firefly is updated. If the updated position of the firefly exceeds the allowable range, the reflective boundary condition or the cyclic boundary condition is used to adjust it back to the preset range; Step 4: Perform multiple iterations for all fireflies, repeat the process of calculating fitness values and updating positions. In each iteration, update the positions of all fireflies according to the log-likelihood value and attractiveness of the current firefly, and recalculate the fitness value. When the log-likelihood value converges to the preset threshold, stop the iteration, and extract the candidate parameter set corresponding to the firefly position with the highest log-likelihood value as the optimal parameter combination; Step 5: Calculate at time Status is And observe from time 1 to time The probability of each observation sequence is calculated as the forward probability, and then the probability of Status is And observe the time +1 to time The probability of each observation sequence is calculated and used as the backward probability. Then, each state is calculated at time The probability and each pair of adjacent states at time and +1, re-estimate the parameter combination according to the obtained probability information, repeat the parameter estimation step until the preset number of iterations is reached, and compare the log-likelihood value of the optimal parameter combination with the secondary optimized parameter combination, and select the highest log-likelihood value as the optimal parameter; Step 6: Initialization time =1, through the formula Calculate at time =1 when reaching the state The probability of the highest probability path, where represents the initial state probability, Represents in state Observed Observed The probability of =1 Arrival state The previous state index of the optimal path, whose state index is initialized to 0; Step 7: Calculate in each subsequent time step At the end, the state The probability of the highest probability path , and record the arrival status at each moment The previous state index of the optimal path, determining the last time step The optimal termination state of the algorithm is determined, and the final optimal state is determined at the same time. Starting from the termination state, the path is traced back to determine the hidden state sequence, and the hidden state sequence is converted into the corresponding device state sequence, and the device states at different times are output.
Citation Information
Patent Citations
Device state monitoring system based on PCR instrument
CN103728939A
Pollution source online monitoring system and detection equipment operation and maintenance condition control method thereof
CN107450427A
Instrument state monitoring method, device and system
CN111444882A
Kit for detecting PDX model mouse cell infiltration state through dual fluorescent quantitative PCR (Polymerase Chain Reaction)
CN112899351A
Power production equipment state detection and fault analysis method and system
CN117874670A
Cited By
Equipment state detection method and system for PCR (Polymerase Chain Reaction)
CN121705871A
