Digital analysis software robot system and method for environmental pollution warning in pharmaceutical production

Through the digital intelligent analysis software robot system for environmental pollution warning in pharmaceutical production, multi-variable analysis and Bayesian network and other technologies are used to establish a production environment pollution relationship model, which solves the problem of lack of automation and intelligent analysis in the existing technology and realizes pharmaceutical production. Real-time monitoring and risk warning of the production environment improves the safety and efficiency of the production environment.

CN118534861BActive Publication Date: 2024-10-08ZHEJIANG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410994909.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-10-08
Estimated Expiration
2044-07-24

AI Technical Summary

Technical Problem

Existing microbial detection technology in pharmaceutical production environments lacks automated processing capabilities and cannot achieve rapid response and real-time warning. It cannot identify hidden high-risk factors and potential risks, cannot perform intelligent analysis and learning, and cannot monitor microbial levels in real time, leading to omissions and errors.

Method used

We provide a digital intelligent analysis software robot system for environmental pollution warning in pharmaceutical production. By collecting and preprocessing data, we use multivariate analysis methods and Bayesian network analysis and other technologies to establish a production environment pollution relationship model and optimize the control scope of key factors. Risk warning and control decision-making, realizing automated and process-based intelligent analysis of data.

Benefits of technology

It has realized automation and process-based intelligent analysis of data in the pharmaceutical production environment, can quickly adapt to task changes, conduct independent learning and adaptation, has high-level automation and process optimization, can identify potential risks and early warnings in real time, and improved the safety of the production environment. and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118534861B_ABST
    Figure CN118534861B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of intelligent data analysis and identification, specifically to a digital intelligent analysis software robot system and method for drug production environmental pollution warning; the method collects data on drug production environmental quality indicators and production environmental pollution factors, obtains the process of drug production process through macro process analysis, and sequentially performs multi-analysis analysis on each process involving drug production environmental quality indicators to obtain key indicators; locates the production environmental pollution factors under the key indicators and takes the union to obtain the main factor set; identifies the key factors through multi-analysis; confirms the key factor set through multivariate analysis; establishes a production environmental pollution relationship model; optimizes the control range of key production environmental pollution factors based on the model; and makes risk warning or control decisions based on the control range. The present invention sets the behavior of the software robot system through programming, quickly adapts to different tasks and environments, and uses algorithms and artificial intelligence technologies to autonomously learn and make intelligent decisions based on environmental conditions and input data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent data analysis and identification, and specifically to a digital intelligent analysis software robot system and method for drug production environment pollution warning. Background Art

[0002] At present, commonly used microbial detection technologies and methods include fluorescence quantitative PCR technology, loop-mediated isothermal amplification technology, droplet digital PCR technology, gene chip technology, fluorescently labeled phage technology, enzyme-linked immunosorbent assay technology, immunochromatography, latex agglutination method, electrical impedance method, ATP meter fluorescence detection method, radiometric measurement technology, microbial matrix-assisted laser desorption / time-of-flight mass spectrometry analysis method, near-infrared spectroscopy detection technology, hyperspectral imaging technology and surface-enhanced Raman spectroscopy detection technology.

[0003] The common functional modules of the analysis software corresponding to the above detection technology methods mainly include starting the software, creating a new experiment, instrument calibration, setting detection parameters, running the instrument, sample analysis and data analysis. The existing system lacks automated processing capabilities and cannot achieve rapid response and problem solving. Its software functions require manual participation to achieve time-consuming and labor-intensive, and are prone to omissions and errors. On the other hand, existing monitoring tools cannot process large amounts of data in real time, cannot provide real-time warnings and rapid responses, and lack intelligent analysis and learning capabilities. They cannot identify hidden high-risk factors and potential risks. Medical environmental microbial monitoring requires real-time, continuous and dynamic detection of microbial levels, and the creation of optimization models to analyze data. Finally, information on microorganisms and key influencing factors is obtained at the same time to provide early warnings and forecasts of microorganisms.

[0004] In summary, there is an urgent need to develop an automated, process-based digital analysis software robot system and method for pharmaceutical production environment pollution warning that has model optimization, data mining, and microbial early warning and forecasting functions. Summary of the invention

[0005] In order to overcome the problems existing in the prior art, the purpose of the present invention is to provide a digital analysis software robot system and method for drug production environment pollution warning.

[0006] To achieve the above object, the present invention provides the following technical solution: a digital intelligent analysis method for drug production environment pollution warning, comprising the following steps:

[0007] S1: Collect data on drug production environment quality index Y and production environment pollution factor X, pre-process the collected data, and generate an analysis report;

[0008] S2: Perform macro process analysis on the drug manufacturing process to obtain all processes. Combined with the analysis report, process capability analysis, stability analysis and Pareto analysis are performed on the drug production environment quality index Y involved in all processes. The union of the results of the three analysis methods is taken as the key index Y. vn ; n represents the number of key indicators, n=1,2,……n.

[0009] S3: Use factor analysis, RF risk filtering analysis and C&E matrix analysis to locate key indicator Y vn The production environment pollution factor X under the above conditions is taken as the main factor X pointed out by the factor analysis, RF risk filtering analysis and C&E matrix analysis results. mi The union of vn The main factor set; i represents the number of main factors in the main factor set, i=1, 2,… i.

[0010] S4: Analyze the key indicator Y through Bayesian network analysis, Pareto analysis and FMEA method respectively vn The corresponding main factors X mi The relationship between them is analyzed by Bayesian network analysis, Pareto analysis and FMEA method, and the key factor X is obtained. cj The union of is defined as the key factor set; j represents the number of key factors in the key factor set, j=1, 2, … j.

[0011] S5: Use multivariate analysis to verify and confirm each key factor X cj , establish key factor X cj and key indicator Y vn The production environment pollution relationship model between them;

[0012] S6: Based on the production environment pollution relationship model, optimize the key factor X cj within the control scope, and make risk warnings or control decisions.

[0013] The present invention is further configured as follows: Step S1 specifically comprises the following steps:

[0014] S11: Use data acquisition equipment to repeatedly measure the pharmaceutical production environment to obtain the original data of pharmaceutical production environment quality index Y and production environment pollution factor X. Save the original data in an appropriate format, such as CSV, TXT or a dedicated file format. The pharmaceutical production environment quality index Y is a measure of the sensory shape, physical, chemical and biological quality of the atmosphere, water, soil and other environmental media involved in the production environment, such as the degree of microbial contamination, water cleanliness and other indicators. The production environment pollution factor X is personnel, hygiene habits, training level and various process parameters such as state parameters, process parameters, quality control parameters, material parameters in the pharmaceutical production and manufacturing process.

[0015] S12: Perform data preprocessing, and perform background correction, baseline correction, smoothing, regularization, and peak detection denoising on the raw data in sequence. Background correction is to remove fluorescence background and noise using polynomial fitting, Savitzky-Golay filtering, or other methods. Baseline correction is to adjust the spectral baseline to make it flat to eliminate the influence of baseline drift. Signal smoothing is to use smoothing algorithms (such as Savitzky-Golay smoothing, moving average smoothing) to reduce noise and enhance signal quality. Regularization is normalization, and through standardization or normalization, the signal intensity is made comparable between different measurements, such as maximum normalization and area normalization. Peak detection and denoising is to use algorithms (such as the second-order derivative method) to detect characteristic peaks in the spectrum and remove possible abnormal peaks and noise.

[0016] S13: Store the preprocessed data in a centralized database and perform data annotation, data sharing and backup. A relational database such as MySQL, PostgreSQL, etc. can be used, or a NoSQL database can be used to store unstructured or semi-structured data.

[0017] S14: Data analysis and visualization, using data analysis software such as MATLAB, Python's SciPy and NumPy libraries to conduct in-depth analysis of preprocessed data. Multivariate analysis methods such as principal component analysis (PCA) and partial least squares regression (PLSR) were used for pattern recognition and analysis. Graphical tools such as Origin, GraphPad Prism, Python's Matplotlib and Seaborn libraries were used to visualize the spectrogram data.

[0018] S15: Automated report generation: Use a report generation tool (such as Jupyter Notebook, LaTeX) to automatically generate an analysis report, wherein the analysis report includes a spectrum, statistical data, and analysis results.

[0019] The present invention is further configured as follows: the Bayesian network analysis specifically comprises the following steps:

[0020] S411: Manually construct key indicator Y vn With the main factor X mi The initial network structure determines the key indicator Y based on domain knowledge vn Corresponding main factor X mi the causal relationship between them;

[0021] S412: using a structure learning algorithm to learn the network structure from the data, and adjusting and optimizing the network structure; the structure learning algorithm is a PC algorithm, GES or MMHC;

[0022] S413: Determine the main factor X mi The directed edges between them indicate the direction of causal relationships and exclude unreasonable causal relationships based on domain knowledge and theoretical models;

[0023] S414: Calculate the probability of each causal relationship and arrange them in order from large to small. The top 20% of the factors in the main factor set are the key factors X. cj .

[0024] The present invention is further configured as follows: the Pareto analysis specifically comprises the following steps:

[0025] S421: Use correlation analysis or regression analysis to calculate each main factor X mi For key indicator Y vn Contribution of

[0026] S422: Arrange the contribution from large to small, and use R language to draw a Pareto chart. The main factors X in the top 20% of the Pareto chart mi The key factor X cj .

[0027] The present invention is further configured as follows: the FMEA method (failure mode and effect analysis) comprises the following steps:

[0028] S431: Set up an FMEA team and define the FMEA analysis scope to cover the entire production process, from raw material receipt to finished product packaging; the FMEA team includes experts from quality control, production, equipment maintenance, material management and other related departments;

[0029] S432: Key indicator Y vn The main factor X mi as a potential failure mode;

[0030] S433: Determine the impact of potential failure modes, and the FMEA team will evaluate each failure mode on the key indicator Y vnThe potential impact of the failure mode and its severity S are determined; the cause of the potential failure mode is determined and its frequency of occurrence is evaluated O; the existing control measures are clearly defined, and the existing control measures are listed to evaluate their ability to detect potential failure modes D;

[0031] S434: Calculate the Risk Priority Number (RPN) for each potential failure mode:

[0032] RPN = S × O × D;

[0033] The three items with the highest RPN values, or the main factors X corresponding to the potential failure modes with the top 20% RPN values mi , determine the key factors to be addressed first cj .

[0034] It should be noted that if the number of potential failure modes is less than 10, or the RPN values ​​are highly concentrated on a few failure modes, the three with the highest RPN values ​​are preferred as the key factors X. cj ; If the number of failure modes is more than 10, or the RPN value distribution is relatively even, the RPN value ranking in the top 20% is preferred as the key factor X cj .

[0035] The present invention is further configured as follows: Step S5 specifically comprises:

[0036] S51: Targeting key factor X cj Collect data and pre-process the collected data. First, clean the data, process missing values ​​and standardize the cleaned data.

[0037] S52: Establish ANCOVA model and set key indicator Y vn is the dependent variable, and each key factor X in the key factor set cj is the independent variable, controlling for other covariates;

[0038] S53: Perform analysis of covariance using statistical software;

[0039] S54: For each independent variable, calculate the F value and the corresponding p value; if p If the value is less than the preset significance level, the independent variable is confirmed as the final key factor X cj , participate in step S55; if p If the value is greater than the preset significance level, the key factor X corresponding to the independent variable is screened out. cj ;

[0040] S55: Use a machine learning method to establish a production environment pollution relationship model. The machine learning method can use regression analysis, artificial neural network (ANN), decision tree and other machine learning methods to establish the model.

[0041] The present invention is further configured as follows: Step S6 specifically includes setting the key indicator Y based on the production environment pollution relationship model. vn The expected range of a key factor X can be obtained by performing optimization calculation cj The control scope of key factors is to monitor the key factors in real time. cj , according to the key indicator Y vn The optimization goal corresponds to the key factor X cj The calculation result of the feasible interval is that if the key factor X cj If the fluctuation exceeds the control range, a risk warning will be issued.

[0042] The present invention is further configured as follows: according to the key factor X given by the production environment pollution relationship model cj The scope of control, make control decisions, and ensure that the key factors X cj The present invention also relates to a drug production environment pollution warning digital intelligent analysis software robot system, which is used in conjunction with the above-mentioned drug production environment pollution warning digital intelligent analysis method, including:

[0043] The data collection component is used to collect data on drug production environment quality index Y and production environment pollution factor X, and send them to the big data processing module;

[0044] The big data processing module receives the data sent by the acquisition component, performs data preprocessing, uses machine learning technology and statistical methods to intelligently analyze and learn the data, extract key features and identify potential risk factors;

[0045] The early warning module, based on the results of the big data processing module, realizes the key factor X based on real-time data and preset rules. cj Real-time early warning and forecast of risk information;

[0046] The display module is used for human-computer interaction and for displaying the forecast risk information of the early warning module.

[0047] In summary, the beneficial effects of the above technical solution of the present invention are as follows:

[0048] The present invention provides a digital intelligent analysis method for drug production environmental pollution warning, which can set the behavior of the software robot system through programming. This flexibility enables the software robot to quickly adapt to different tasks and environments. It overcomes the defects of traditional automation technology that uses hardware control and fixed programs to perform tasks, has relatively low flexibility, and any changes may require redesign and adjustment of physical devices.

[0049] Secondly, using advanced algorithms and artificial intelligence technology, software robotic systems are able to learn and adapt autonomously, and can make intelligent decisions based on environmental conditions and input data.

[0050] Software robotics systems have good connectivity and integration capabilities and can be easily integrated with various software systems and data sources to achieve a higher level of automation and process optimization. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for describing the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0052] Figure 1 Flowchart of the digital analysis method for environmental pollution warning in pharmaceutical production.

[0053] Figure 2 This is the processing flow from signal source to raw data. DETAILED DESCRIPTION

[0054] In order to enable those skilled in the art to better understand the technical solution of the present invention, the technical solution of the present invention is clearly and completely described below in conjunction with the accompanying drawings of the present invention. Based on the embodiments in this application, other similar embodiments obtained by ordinary technicians in this field without making creative work should all fall within the scope of protection of this application. In addition, the directional words mentioned in the following embodiments, such as "up", "down", "left", "right", etc., are only reference to the directions of the accompanying drawings. Therefore, the directional words used are used to illustrate rather than limit the invention.

[0055] The present invention will be further described below in conjunction with the accompanying drawings and preferred embodiments.

[0056] Embodiment 1:

[0057] like Figure 1 As shown in the figure, a preferred embodiment of the present invention is a digital intelligent analysis method for environmental pollution warning of drug production, comprising the following steps:

[0058] S1: Collect data on drug production environment quality index Y and production environment pollution factor X, pre-process the collected data, and generate an analysis report;

[0059] S11: Use data acquisition equipment to perform repeated measurements of the pharmaceutical production environment to obtain the original data of pharmaceutical production environment quality index Y and production environment pollution factor X. Save the original data in an appropriate format, such as CSV, TXT or a dedicated file format.

[0060] The pharmaceutical production environment quality index Y is a measure of the sensory shape, physical, chemical and biological quality of the atmosphere, water, soil and other environmental media involved in the production environment, such as the degree of microbial contamination, water cleanliness and other indicators. The production environment pollution factor X is personnel, hygiene habits, training level and various process parameters such as state parameters, process parameters, quality control parameters, material parameters in the pharmaceutical production and manufacturing process.

[0061] The specific process of obtaining raw data is to select a suitable sample according to the detection target. The sample can be solid, liquid or gas. Pre-treatment steps such as grinding, dissolving, diluting, and extracting are performed according to the needs of the sample. Select a suitable excitation signal source according to the detection technology, such as laser, electron beam, fluorescence, etc. Adjust the power, wavelength or energy of the signal source to ensure that the signal source is suitable for the detection needs of the target sample. The excitation signal source interacts with the sample to produce a detectable signal. This process varies depending on the technology, for example: Raman spectroscopy: The laser interacts with the sample molecules to produce Raman scattered light. Mass spectrometry: The sample molecules are ionized to produce gas-phase ions. Fluorescence spectroscopy: Excite the sample to produce characteristic fluorescence. Signal collection and transmission: Use an appropriate detector to collect the generated signal. Common detectors include CCD, photomultiplier tube (PMT), electron multiplier, etc. The signal collected by the detector is transmitted to the data acquisition system. This usually involves converting optical or electrical signals into digital signals. The transmitted signal is amplified, digitized, and stored as raw data using an analog-to-digital converter (ADC) and a signal processor. The above signal source to raw data processing flow can be referred to. Figure 2 .

[0062] S12: Perform data preprocessing, and perform background correction, baseline correction, smoothing, regularization and peak detection denoising on the raw data in sequence.

[0063] Background correction is to remove fluorescence background and noise using polynomial fitting, Savitzky-Golay filtering or other methods.

[0064] Baseline correction is to adjust the spectral baseline to make it flat in order to eliminate the influence of baseline drift.

[0065] Signal smoothing uses smoothing algorithms such as Savitzky-Golay smoothing and moving average smoothing to reduce noise and enhance signal quality.

[0066] Regularization is normalization. Through standardization or normalization, the signal intensity is made comparable between different measurements, such as maximum normalization and area normalization.

[0067] Peak detection and denoising uses algorithms, such as the second-order derivative method, to detect characteristic peaks in the spectrum and remove possible abnormal peaks and noise.

[0068] S13: Store the preprocessed data in a centralized database and perform data annotation, data sharing and backup. A relational database such as MySQL, PostgreSQL, etc. can be used, or a NoSQL database can be used to store unstructured or semi-structured data.

[0069] S14: Data analysis and visualization, using data analysis software such as MATLAB, Python's SciPy and NumPy libraries to conduct in-depth analysis of preprocessed data. Multivariate analysis methods such as principal component analysis (PCA) and partial least squares regression (PLSR) were used for pattern recognition and quantitative analysis. Graphical tools such as Origin, GraphPad Prism, Python's Matplotlib and Seaborn libraries were used to visualize the spectrogram data.

[0070] S15: Automated report generation: Use report generation tools, such as Jupyter Notebook and LaTeX, to automatically generate analysis reports, which include spectra, statistical data, and analysis results.

[0071] S2: Perform macro-process analysis on the drug production process to obtain all the processes in the drug production process. Combined with the analysis report, process capability analysis, stability analysis and Pareto analysis are performed on the drug production environment quality index Y involved in all the processes. The union of the results of the three analysis methods is defined as the key index Y. vn ;

[0072] In this embodiment, the process capability analysis is performed by calculating the Cp, Cpk, Pp, and Ppk values, where Cp is the short-term potential capability of the process and Cpk is the short-term actual capability of the process. The calculation formula is:

[0073] ;

[0074] ;

[0075] Where, USL and LSL are the upper and lower specification limits, σ ​​is the process standard deviation, and μ is the process mean.

[0076] Pp is the long-term potential capacity of the process, and Ppk is the long-term actual capacity of the process. The calculation formula is:

[0077] ;

[0078] ;

[0079] Among them, σ total is the overall standard deviation. Usually, the values ​​of Cp, Cpk, Pp and Ppk should be greater than 1.33, indicating that the current process capability is good for the environmental quality indicator. Lower than 1.33 indicates that the current process capability is insufficient for the environmental quality indicator, and there are large fluctuations or variations. Furthermore, it is generally believed that when Ppk>1.67, the current process has good performance for the environmental quality indicator; when Ppk is between 1.33 and 1.67, the current process performance is acceptable for the environmental quality indicator, but there is room for improvement; and when Ppk<1.33, the current process performance is poor for the environmental quality indicator, and it is necessary to improve the level of control and reduce fluctuations or variations.

[0080] The stability analysis specifically uses control charts to perform process capability analysis. First, it is clear that the goal is to perform process capability analysis on the pharmaceutical production environment quality indicator Y. List the environmental indicators that need to be monitored, such as temperature, humidity, cleanliness, etc. Select a suitable control chart based on the data type and distribution obtained in step S1. For example, for continuous data, you can choose an X̅-R chart (mean-range chart) or an X̅-S chart (mean-standard deviation chart). Calculate the center line (CL) of the control chart, which is the average of all sample means. Calculate the control limits: upper control limit (UCL) and lower control limit (LCL), usually using the ±3 standard deviation method. Draw the data points and mark the control limits, and check whether any data points exceed the control limits. The pharmaceutical production environment quality indicator Y with a large fluctuation range of the control chart is the key indicator Y vn The large fluctuation range of the control chart can be judged by the following parameters:

[0081] 1. Number of times exceeding the control limit: If more than a certain proportion (e.g. 5%) of the data points of a certain indicator exceed the control limit (UCL or LCL), it is judged as a large fluctuation range. Usually, the 3-sigma rule is used, that is, the number of data points exceeding the range of ±3 standard deviations.

[0082] 2. Range or standard deviation: Calculate the range or standard deviation in each time period. If the range or standard deviation of an indicator exceeds 1.5 times the upper quartile, it is defined as a large fluctuation range.

[0083] 3. Process capability index: Calculate the process capability index (Cp) and process capability performance index (Cpk). If the Cpk value is low, such as below 1.0, it indicates a large fluctuation range and an unstable production process.

[0084] 4. Control chart rules: According to the standard rules of control charts (such as Shewhart control chart rules and Westgard rules), identify indicators with large fluctuations. If an indicator shows abnormal patterns continuously within a certain period of time, such as 7 points rising or falling continuously, the indicator is considered to have a large fluctuation range.

[0085] The Pareto analysis specifically counts and calculates the occurrence frequency of each drug production environment quality indicator Y to the overall production environment quality indicator; the occurrence frequencies are arranged in descending order, and a Pareto chart is drawn using R language. The first 20% of the factors in the Pareto chart are key indicators Y vn .

[0086] S3: Use factor analysis, RF risk filtering analysis and C&E matrix analysis to locate key indicator Y vn The production environment pollution factor X under the above conditions is taken as the main factor X pointed out by the factor analysis, RF risk filtering analysis and C&E matrix analysis results. mi The union of vn The main factor set; i represents the number of main factors in the main factor set, i=1, 2,… i.

[0087] The factor analysis can be performed by using the 5WHY method, fishbone diagram analysis, CEDAC method, story tree method or tree diagram analysis. In this embodiment, the factor analysis uses the fishbone diagram analysis method to analyze the main factors X. mi The assessment team will analyze the reasons and list the main bones, and then extend the small bone factors based on the main bone factors.

[0088] For example, the backbone includes: people, environment, equipment, materials, methods, processes and building facilities.

[0089] Small bones among personnel include: poor hygiene habits of operators, inadequate prevention and control training, and frequent entry and exit of personnel in clean areas that increase the risk of contamination.

[0090] Small bones in the environment include: air quality, temperature and humidity control, cleaning and disinfection, and improper selection of disinfectants.

[0091] Small bones in the equipment include: unreasonable equipment design, improper equipment maintenance, failure of the filtration system or failure to replace it in time.

[0092] Small bones in the materials include: raw material contamination and unclean consumables.

[0093] The minor faults in the method include: incomplete or non-strict implementation of operating procedures, unscientific or inadequate implementation of cleaning and disinfection procedures, unreliable sampling and detection methods or insufficient detection frequency.

[0094] Small bones in the process include: unreasonable process flow, increased contamination risk, lax monitoring of key control points, management loopholes, and failure to thoroughly clean equipment and environment during batch switching.

[0095] Small bones in building facilities include: unreasonable clean area design, insufficient maintenance of building facilities, and improper waste disposal, which lead to the breeding and spread of microorganisms.

[0096] The assessment team recorded the frequency of each factor in the ossicles, scored the severity of each factor, and ranked them respectively; the factors ranked in the top 20% in frequency and the top 20% in severity were defined as the main factors X. mi .

[0097] The RF risk filtering analysis is specifically to determine the key indicator Y in the process by brainstorming, historical data analysis, expert opinions, etc. vn Potential factors. Evaluate potential factors, including the probability of occurrence, impact, and detectability of potential factors. Establish a risk matrix and classify potential factors according to the probability of occurrence and impact. Commonly used matrices are 3x3 or 5x5, with the horizontal axis representing the probability of occurrence and the vertical axis representing the impact. Calculate the risk priority number (RPN): For each potential factor, calculate its risk priority number (RPN), the formula is: RPN = probability of occurrence × impact × detectability. Sort each factor according to its RPN value. The three items with the highest RPN values, or the potential factors corresponding to the potential failure modes with the top 20% RPN values, determine the main factors X that should be prioritized. mi .

[0098] The C&E matrix analysis method is specifically as follows: Determine the key indicator Y to be analyzed vn , for the key indicator Y vn Conduct micro-analysis of the corresponding process, list the key outputs of the specific steps of the process, and list all input variables that may affect the key outputs based on the key outputs, which can be obtained through brainstorming, historical data, expert opinions, etc. Assign weights to each key output and score each input variable. The weights can be determined through expert scoring, statistical analysis, etc.

[0099] Construct a C&E matrix: For each key output and input variable, determine the relationship between them and assign each relationship an importance score. The commonly used score range is 1 to 10, with 1 indicating the least impact and 10 indicating the greatest impact. Calculate its total score using the formula:

[0100] Total score = ∑ (weight × score);

[0101] Sort the potential causes from high to low according to the total score. The three with the highest total score, or the top 20% of potential factors, determine the main factors to be addressed first. mi .

[0102] Take the defective rate of a product as an example. First, define the key outputs that need to be focused on during the drug production process and assign weights to each output. For example: purity weight: 5; solubility weight: 3; stability weight: 4; packaging integrity weight: 2.

[0103] Through expert opinion statistics and historical data, the input variables that affect key outputs are identified as raw material quality, production equipment status, operator skills, and environmental conditions.

[0104] The rating range is 1 to 10. Please fill in the rating of each reason for the effect. The results are shown in Table 1:

[0105] Table 1 C&E matrix analysis results

[0106]

[0107] According to the total score results, the quality of raw materials, the status of production equipment and process parameters are selected as the main factors X mi .

[0108] Finally, the main factor X pointed out by the results of factor analysis, RF risk filtering analysis and C&E matrix analysis is selected mi The union of vn The main set of factors.

[0109] S4: Analyze the key indicator Y through Bayesian network analysis, Pareto analysis and FMEA method respectively vn The corresponding main factors X mi The relationship between them is analyzed by Bayesian network analysis, Pareto analysis and FMEA method, and the key factor X is obtained. cj The union of is defined as the key factor set; j represents the number of key factors in the key factor set, j=1, 2, … j.

[0110] The Bayesian network analysis specifically includes the following steps:

[0111] S411: Manually construct key indicator Y vn With the main factor X mi The initial network structure determines the key indicator Y based on domain knowledge vn Corresponding main factor X mi the causal relationship between them;

[0112] S412: using a structure learning algorithm to learn the network structure from the data, and adjusting and optimizing the network structure; the structure learning algorithm is a PC algorithm, GES or MMHC;

[0113] S413: Determine the main factor X mi The directed edges between them indicate the direction of causal relationships and exclude unreasonable causal relationships based on domain knowledge and theoretical models;

[0114] S414: Calculate the probability of each causal relationship and arrange them in order from large to small. The top 20% of the factors in the main factor set are the key factors X. cj .

[0115] The Pareto analysis is specifically as follows:

[0116] S421: Use correlation analysis or regression analysis to calculate each main factor X mi For key indicator Y vn The contribution of; the analysis process can refer to the following procedures:

[0117] # Sample data;

[0118] Factor <- c("Training level", "Personal hygiene score", "Equipment cleaning frequency", "Disinfection method", "Environmental air quality", "Temperature and humidity records", "Operation procedure implementation", "Quality management implementation");

[0119] Contribution <- c(25, 20, 15, 10, 10, 8, 7, 5);

[0120] # Create a data frame;

[0121] data<- data.frame(factor, contribution);

[0122] # Sort by contribution;

[0123] data<- data[order(-data$contribution),];

[0124] # Calculate the cumulative contribution;

[0125] data$ cumulative contribution <- cumsum(data$ contribution);

[0126] # Display the results.

[0127] S422: Arrange the contribution from large to small, and use R language to draw a Pareto chart. The main factors X in the top 20% of the Pareto chart mi The key factor X cjTo draw a Pareto chart using R language, please refer to the following program:

[0128] # Load necessary libraries;

[0129] library(ggplot2);

[0130] # Draw a Pareto chart;

[0131] ggplot(data, aes(x = reorder(factor, -contribution), y = contribution)) +;

[0132] geom_bar(stat = "identity", fill = "steelblue") +;

[0133] geom_line(aes(y = cumulative contribution), group = 1, color = "red") +;

[0134] geom_point(aes(y = cumulative contribution), color = "red") +;

[0135] scale_y_continuous(sec.axis = sec_axis(~ ., name = "Cumulative Contribution (%)"))+;

[0136] labs(x = "Factor", y = "Contribution (%)", title = "Pareto Analysis - Microbial Contamination Factors") +;

[0137] theme_minimal().

[0138] The FMEA method includes the following steps:

[0139] S431: Set up an FMEA team and define the FMEA analysis scope to cover the entire production process, from raw material receipt to finished product packaging; the FMEA team includes experts from quality control, production, equipment maintenance, material management and other related departments;

[0140] S432: Key indicator Y vn The main factor X mi as a potential failure mode;

[0141] S433: Determine the impact of potential failure modes, and the FMEA team will evaluate each failure mode on the key indicator Y vnDetermine the severity S based on the potential impact of the failure mode; define the severity level: divide the severity into several levels (e.g. 1 to 10) according to the impact of the failure mode on the product and the patient. Establish scoring criteria: establish specific scoring criteria for each severity level. For example: 1-3 points: slight microbial contamination, which has little impact on product quality and patient safety. 4-6 points: moderate microbial contamination, which may cause product quality problems and require additional control measures. 7-10 points: severe microbial contamination, which may cause product failure or serious threat to patient health.

[0142] Secondly, determine the cause of the potential failure mode and assess its frequency of occurrence. Define the frequency level: divide the frequency of occurrence into several levels (e.g. 1 to 10) according to the possibility of the failure mode. Develop a scoring standard, for example: 1-3 points: microbial contamination that rarely occurs or never occurs. 4-6 points: occasional microbial contamination that requires regular monitoring. 7-10 points: frequent microbial contamination that requires immediate control measures.

[0143] Thirdly, clearly define the existing control measures, list the existing control measures, and evaluate their ability to detect potential failure modes; define the detection capability level: divide the detection capability into several levels (for example, 1 to 10) according to the difficulty of finding failure modes with the existing control measures. Establish scoring criteria: Establish specific scoring criteria for each detection capability level. For example: 1: Very easy to detect (automated monitoring system, real-time detection). 5: Moderately difficult to detect (regular inspection, possible missed detection). 10: Extremely difficult to detect (manual inspection, low detection rate).

[0144] S434: Calculate the Risk Priority Number (RPN) for each potential failure mode:

[0145] RPN = S × O × D;

[0146] The results are shown in Table 2.

[0147] Table 2 FMEA analysis template

[0148]

[0149] The three potential failure modes with the highest RPN values ​​correspond to the main factors X mi , namely material contamination, human operating errors and lax quality management implementation. Identify the key factors to be addressed first. cj .

[0150] Finally, the key factor X obtained by Bayesian network analysis, Pareto analysis and FMEA method is taken cj The union of is defined as the key factor set.

[0151] S5: Use multivariate analysis to verify and confirm each key factor X cj , establish key factor X cj and key indicator Y vn The production environment pollution relationship model between them;

[0152] S51: Targeting key factor X cj Collect data and preprocess the collected data. First, perform data cleaning. First, check for duplicate records in the data set and delete them. Use statistical methods (such as box plots) to identify and handle outliers. You can choose to delete outliers or make corrections. Finally, perform a consistency check: ensure the consistency of the data in format, unit, and range. After the missing values ​​are processed by deleting or filling missing values, the cleaned data is standardized using methods such as Z-score standardization or Min-Max standardization; convert the data to the same scale.

[0153] S52: Establish ANCOVA model and set key indicator Y vn is the dependent variable, and each key factor X in the key factor set cj is the independent variable, controlling for other covariates;

[0154] S53: Perform analysis of covariance using statistical software;

[0155] S54: For each independent variable, calculate the F value and the corresponding p value; if p If the value is less than the preset significance level, the independent variable is confirmed as the final key factor X cj , participate in step S55; if p If the value is greater than the preset significance level, the key factor X corresponding to the independent variable is screened out. cj ;

[0156] The F-statistic is a statistic used to compare the variance of two groups of data and determine whether the two groups of data are significantly different. It is a statistic used in analysis of variance (ANOVA) to detect whether there is a significant difference in the means between different groups.

[0157] ;

[0158] MSB is the between-group variance, that is, the degree of deviation between the means of different groups and the overall mean. MSW is the within-group variance, that is, the degree of deviation between the internal data of each group and the mean of the group.

[0159] pThe p-value represents the probability of the observed result or a more extreme result when the null hypothesis is true. It is used to determine whether to reject the null hypothesis.

[0160] First, define the hypothesis: Null hypothesis (H0): Assume that there is no relationship between the variables. Alternative hypothesis (H1): Assume that there is a relationship between the variables. Then calculate the test statistic (such as t value, F value, etc.). Then look up the distribution table: Based on the calculated test statistic (such as F value) and the corresponding degrees of freedom, look up the corresponding probability value from the statistical distribution table (such as F distribution table). This probability value is p value. p The smaller the value, the stronger the evidence for rejecting the null hypothesis. p If the value is less than the pre-set significance level (for example, 0.05), the null hypothesis is rejected.

[0161] S55: Use machine learning methods to establish a production environment pollution relationship model.

[0162] A variety of machine learning algorithms were selected for comparison, including: Linear Regression, Decision Tree, Random Forest, Support Vector Machine, Gradient Boosting Machine, and Neural Network.

[0163] The key indicator Y vn Corresponding key factor X cj The dataset is divided into training set and test set; k-fold cross validation (e.g. k=5) is used to evaluate the stability of the model and prevent overfitting. The model is trained using the training set. The model performance is evaluated on the test set using indicators such as mean square error (MSE) and coefficient of determination (R²). Hyperparameters are tuned using grid search or random search. Feature importance analysis is used to remove irrelevant or redundant features to improve model performance.

[0164] S6: Based on the production environment pollution relationship model, optimize the key factor X cj within the control scope, and make risk warnings or control decisions.

[0165] Step S6 specifically includes setting the key indicator Y based on the production environment pollution relationship model. vn The expected range of a key factor X can be obtained by performing optimization calculation cj The control scope of key factors is to monitor the key factors in real time.cj , according to the key indicator Y vn The optimization goal corresponds to the key factor X cj The calculation result of the feasible interval is that if the key factor X cj If the fluctuation exceeds the control range, a risk warning will be issued.

[0166] According to the key factor X given by the production environment pollution relationship model cj The scope of control, make control decisions, and ensure that the key factors X cj The scope is within the control range.

[0167] Embodiment 2:

[0168] The drug production environment pollution warning digital intelligent analysis software robot system is used in conjunction with the above-mentioned drug production environment pollution warning digital intelligent analysis method, including:

[0169] The data collection component is used to collect data on drug production environment quality index Y and production environment pollution factor X, and send them to the big data processing module;

[0170] The big data processing module receives the data sent by the acquisition component, performs data preprocessing, uses machine learning technology and statistical methods to intelligently analyze and learn the data, extract key features and identify potential risk factors;

[0171] The early warning module, based on the results of the big data processing module, realizes the key factor X based on real-time data and preset rules. cj Real-time early warning and forecast of risk information;

[0172] The display module is used for human-computer interaction and for displaying the forecast risk information of the early warning module.

[0173] Finally, it should be noted that the above content is only used to illustrate the technical solution of the present invention, rather than to limit the scope of protection of the present invention. Simple modifications or equivalent substitutions of the technical solution of the present invention by ordinary technicians in this field do not deviate from the essence and scope of the technical solution of the present invention.

Claims

1. A digital analysis method for drug production environmental pollution warning, characterized by: The following steps are involved: S1: Collect data on drug production environment quality index Y and production environment pollution factor X, pre-process the collected data, and generate an analysis report; S2: Perform macro process analysis on the drug manufacturing process to obtain all processes. Combined with the analysis report, process capability analysis, stability analysis and Pareto analysis are performed on the drug production environment quality index Y involved in all processes. The union of the results of the three analysis methods is taken as the key index Y. vn ; S3: Use factor analysis, RF risk filtering analysis and C&E matrix analysis to locate key indicator Y vn The production environment pollution factor X under the above situation is taken as the main factor X pointed out by the factor analysis, RF risk filtering analysis and C&E matrix analysis results. mi The union of vn The main set of factors; S4: Analyze the key indicator Y through Bayesian network analysis, Pareto analysis and FMEA method respectively vn The corresponding main factors X mi The relationship between them is analyzed by Bayesian network analysis, Pareto analysis and FMEA method, and the key factor X is obtained. cj The union of is defined as the key factor set; The Bayesian network analysis is specifically as follows: S411: Manually construct key indicator Y vn With the main factor X mi The initial network structure determines the key indicator Y based on domain knowledge vn Corresponding main factor X mi the causal relationship between them; S412: Use structural learning algorithms to learn network structures from data, adjust and optimize network structures; S413: Determine the main factor X mi The directed edges between them indicate the direction of causal relationships and exclude unreasonable causal relationships based on domain knowledge and theoretical models; S414: Calculate the probability of each causal relationship and arrange them in order from large to small. The top 20% of the factors in the main factor set are the key factors X. cj ; The Pareto analysis is specifically as follows: S421: Use correlation analysis or regression analysis to calculate each main factor X in the main factor set mi For key indicator Y vn Contribution of S422: Arrange the contribution from large to small, and use R language to draw a Pareto chart. The main factors X in the top 20% of the Pareto chart mi The key factor X cj ; The FMEA analysis is specifically as follows: S431: Set up a FMEA analysis team and take the entire production process of drug production as the scope of FMEA analysis; S432: Key indicator Y vn The main factor X mi as a potential failure mode; S433: Determine the impact of potential failure modes, and the FMEA team will evaluate each potential failure mode on the key indicator Y vn potential impact, determine its severity S; Determine the causes of potential failure modes and assess their frequency of occurrence O; Identify existing control measures, list existing control measures, and assess their ability to detect potential failure modes D; S434: Calculate the risk priority number RPN for each potential failure mode: RPN=S×O×D The three items with the highest RPN values, or the main factors X corresponding to the potential failure modes with the top 20% RPN values mi , identify the key factors X as priority cj ; S5: Use multivariate analysis to verify and confirm each key factor X cj , establish key factor X cj and key indicator Y vn The production environment pollution relationship model between them; S51: Targeting key factor X cj Collect data and pre-process the collected data. First, clean the data, process missing values ​​and standardize the cleaned data. S52: Establish ANCOVA model and set key indicator Y vn is the dependent variable, and each key factor X in the key factor set cj is the independent variable, controlling for other covariates; S53: Perform analysis of covariance using statistical software; S54: For each independent variable, calculate the F value and the corresponding p value; if p If the value is less than the preset significance level, the independent variable is confirmed as the final key factor X cj , participate in step S55; if p If the value is greater than the preset significance level, the key factor X corresponding to the independent variable is screened out. cj ; S55: Use machine learning methods to establish a production environment pollution relationship model; S6: Based on the production environment pollution relationship model, optimize the key factor X cj within the control scope, and make risk warnings or control decisions.

2. The method for digital analysis of pollution warning in pharmaceutical production environment according to claim 1 is characterized in that: Step S1 specifically includes the following steps: S11: Use data acquisition equipment to repeatedly measure the drug production environment to obtain the original data of drug production environment quality index Y and production environment pollution factor X; S12: Perform data preprocessing, and perform background correction, baseline correction, smoothing, regularization and peak detection denoising on the raw data in sequence; S13: Store the preprocessed data in a centralized database and perform data annotation, data sharing and backup; S14: Use data analysis software to conduct in-depth analysis of preprocessed data, use multivariate analysis methods for pattern recognition and quantitative analysis, and use graphical tools to visualize spectral data; S15: Automatically generate an analysis report using a report generation tool, wherein the analysis report includes a spectrum, statistical data, and analysis results.

3. The method for digital analysis of pollution warning in pharmaceutical production environment according to claim 1 is characterized in that: In step S412, the structure learning algorithm is PC algorithm, GES or MMHC.

4. The method for digital analysis of pollution warning in pharmaceutical production environment according to claim 1 is characterized in that: Step S6 specifically includes setting the key indicator Y based on the production environment pollution relationship model. vn The expected range of a key factor X can be obtained by performing optimization calculation cj The control scope of key factors is to monitor the key factors in real time. cj , according to the key indicator Y vn The optimization goal corresponds to the key factor X cj The calculation result of the feasible interval is that if the key factor X cj If the fluctuation exceeds the control range, a risk warning will be issued.

5. The method for digital analysis of pollution warning in pharmaceutical production environment according to claim 4 is characterized in that: According to the key factor X given by the production environment pollution relationship model cj The scope of control, make control decisions, and ensure that the key factors X cj The scope is within the control range.

6. A drug production environment pollution warning digital intelligent analysis software robot system, used in conjunction with the drug production environment pollution warning digital intelligent analysis method according to any one of claims 1 to 5, characterized in that: include: The data collection component is used to collect data on drug production environment quality index Y and production environment pollution factor X, and send them to the big data processing module; The big data processing module receives the data sent by the acquisition component, performs data preprocessing, uses machine learning technology and statistical methods to intelligently analyze and learn the data, extract key features and identify potential risk factors; The early warning module, based on the results of the big data processing module, realizes the key factor X based on real-time data and preset rules. cj Real-time early warning and forecast of risk information; The display module is used for human-computer interaction and for displaying the forecast risk information of the early warning module.