Statistical Process Control 10 of 11
On this page

Statistical Process Control

2.9 Censored Data Control Chart

Chapter 9 of 10 8 min read

Censored data occurs when information about one or more values ​​in a data set is partially known, often due to limitations in measurement methods (detection limits) or data collection restrictions. The main types of data censorship are: right censorship, left censorship and interval censorship.

Right censoring occurs when the event of interest is not observed until the end of the experiment. Left censoring occurs when the onset of the phenomenon is unknown, that is, the value of the event has already exceeded a threshold before observation. Finally, interval censoring occurs when the event happens (fails) within a specific time interval, but the exact time is not observed.

2.9.1 Cleaning Validation

Cleaning validation is understood as documented evidence that the hygiene procedures for equipment, utensils and production areas are consistent, reproducible and effective in removing waste, in order to avoid cross-contamination between subsequent batches.

Its central objective is to ensure that physical-chemical residues (such as active ingredients, excipients and cleaning agents) and microbiological residues are reduced to pre-determined and scientifically justified levels, ensuring product quality, patient safety and regulatory compliance.

Cleaning validation constitutes a fundamental requirement of Good Manufacturing Practices (GMP) and must be conducted in accordance with an approach based on the process life cycle, as established by ANVISA’s RDC nº 658/2022.

This cycle generally comprises the steps of:

  • development and definition of the cleaning strategy;
  • initial qualification and validation;
  • continuous checking and maintenance of control status.

The cleaning validation process is based on two complementary and mandatory analytical fronts:

  • physical-chemical evaluation;
  • microbiological assessment, both essential for a comprehensive assessment of the risk of contamination.

2.9.2 Physical-Chemical Waste

In the context of physicochemical waste, the objective is to ensure that residues of active ingredients (APIs), excipients, process intermediates and cleaning agents are removed to acceptable levels previously established based on toxicological criteria, visual limits, solubility and worst case.

A cleaning process is considered effective when the residual levels found are consistently below pre-defined acceptance limits, demonstrating adequate control of the risk of cross-contamination.

Data related to limits of detection (LD) and limits of quantification (LQ) are fundamental for the validation of analytical methods and for the correct interpretation of results in low concentration analyses.

  • The limit of detection (LD) represents the lowest concentration of an analyte that can be detected, but not necessarily quantified accurately. and accuracy acceptable;
  • The limit of quantification (LQ) corresponds to the lowest concentration that can be quantified with acceptable precision and accuracy.

These parameters are determined experimentally and are especially relevant in activities such as:

  • quality control of medicines;
  • toxicology;
  • environmental analyses;
  • validation of industrial processes. In these areas, the ability to detect and quantify trace contaminants is essential to ensure the safety, effectiveness and compliance of products.

2.9.3 Processing of Censored Data

During the execution of a sampling plan considering LD and LQ, it is common for incomplete or censored data to occur.

Key scenarios include:

  • results below the LD, in which there is insufficient analytical evidence to detect the analyte;
  • results between LD and LQ, in which the analyte is detected but cannot be quantified with accuracy and precision;
  • results with interval censorship, when the value is between two known limits, but without an exact value determined.

In this context, it is important to consider that:

  • Not all measurements are fully observed, with part of the data made up of censored observations;
  • Analytical uncertainty must be considered, especially near the limits of quantification;
  • Censored data still carries relevant information, contributing to the assessment of the capacity and consistency of the cleaning process;
  • Improper exclusion of this data can lead to bias in the evaluation of the process.
  • It is recommended to use appropriate statistical approaches for processing censored data.

Example 2.9.3.1 - Treatment of censored data censored by Maximum Likelihood

A robust statistical approach for treating censored data is the use of parametric methods based on maximum likelihood (Maximum Likelihood Estimation). This approach allows the partial information contained in the censored observations to be adequately incorporated, avoiding biases resulting from inadequate simplifications.

Consider the data below, obtained from a cleaning process for a certain piece of equipment. Consider the limits: $LD = 0,0114$ and $LQ=0,0379$.

Sampling Point Concentration (ug/mL)
Lid 0.03096 <LQ
Parede 0.02644 <LQ
Fundo 0.05426 0.05426
Agitador 0.02969 <LD

Table 2.9.1: Example of interval censored data

In this context:

  • Tampa and Parede measurements are censored, between LD and LQ;
  • The Agitator measurement is censored and is between 0 and LD;
  • The Background measurement is an observed (uncensored) value.

To apply appropriate statistical methods, data can be restructured in terms of lower and upper censoring limits:

LI LS
0.0114 0.0379
0.0114 0.0379
0.05426 0.05426
0.0114 0.0379

Table 2.9.2: Example of interval censored data with its limits

To validate the cleaning process, you want to estimate:

  • The probability of exceeding the acceptance threshold;
  • The performance index of the cleaning process;
  • The probabilistic behavior of the cleaning process, through a representative probability distribution.

Choosing an appropriate probability distribution is a critical step in analysis. Parametric models allow for more accurate inferences when the distribution assumption is valid. Using an inappropriate model may result in gross errors in risk estimates, compromising the completion of validation.

Among the most used distributions for this type of analysis, the following stand out:

  • Weibull
  • Exponential
  • gamma
  • Log-normal
  • Normal
  • Logistics

The parametric maximum likelihood method is a statistical method used to estimate the parameters of a probability distribution. Based on the results obtained by the sample, this method chooses the distribution and possible values ​​of its parameters using the metric of greatest likelihood (possibility).

The uncensored likelihood function is given by: $$L(\theta | x_1, \dots, x_n) = \displaystyle \prod^n_{i=1} f(x_i, \theta),$$ being $f(x_i, \theta)$ the probability density function.

In the case of censorship, the likelihood function is divided into two parts:

$$L(\theta | x_1, \dots, x_n) = \displaystyle \prod^{n_c}{i=1} [F(LS_I, \theta) - F(LI_i, \theta)] \prod^m{j=1} f(x_m, \theta),$$

in which $m$ corresponds to the total number of uncensored observations and $n_c$ corresponds to the total number of observations with interval censorship.

The maximum likelihood estimator is given by: $$L(\hat{\theta} | x_1, \dots, x_n) = \underset{\theta}{\text{max}} \ L(\theta, x_1, \dots, x_n)$$

2.9.4 Control chart

The assessment of the stability of a cleaning process must be carried out using appropriate control charts, which allow monitoring the variability over time and identify relevant deviations. The graph must represent the following limits:

  • Limit of Acceptance (LSE);
  • Upper Control Limit (LSC);
  • Central Limit (LC)
  • Lower Control Limit (LIC), when applicable;
  • Limit of Quantification (LQ);
  • Detection Limit (LD);
  • Alert Threshold (LA), if desired.

In cleaning processes, it is common for data to present positive asymmetry, with concentration close to zero and a long tail to the right. In these cases, the direct application of methods based on normal distribution may be inappropriate. Although the classical statistical control criterion uses µ ± 3σ (six sigma interval) — covering approximately 99.73$\char37$ of variability under normality — for non-normal distributions, it is recommended to use approaches based on quantiles of the distribution fitted to the data.

Figura 2.9.1

Figure 2.9.1: Visualization of data with positive skewness and quantiles.

The calculation of control limits can be done using the following quantiles of the estimated distribution:

  • Lower Control Limit - LIC (q1): quantile of the specific distribution with 0.135$\char37$;
  • Central Limit - LC (q2): quantile of the specific distribution with 50$\char37$ (median);
  • Upper Control Limit - LSC (q3): quantile of the specific distribution with 99.865$\char37$.

2.9.5 Example

Consider the data below, obtained from a filling process cleaning process. Consider the limits:

  • $LD = 0,5$
  • $LQ=1$
  • $LSE = 2$

Waste data from a Filling Machine:

Data
1.7
1
0.9
0.5
1.4
0.1
0.4
1.1
1.2
0.8
1.3
1.1
1.5
0.7

Table 2.9.3: Example data

To apply appropriate statistical methods, data can be restructured in terms of lower and upper censoring limits:

LI LS
1.7 1.7
1.0 1.0
0.5 1.0
0.5 1.0
1.4 1.4
0.0 0.5
0.0 0.5
1.1 1.1
1.2 1.2
0.5 1.0
1.3 1.3
1.1 1.1
1.5 1.5
0.5 1.0

Table 2.9.4: Restructured data with interval censoring and its limits

To choose the data distribution, an adjustment was made with the different possible distributions, evaluating them using the AIC and BIC metrics. Furthermore, the survival curve estimated by the Kaplan-Meier method was plotted and visually compared with the theoretical survival curve of each distribution to validate the goodness of fit.

Distributions AIC BIC loglik
weibull 27.36273 28.64085 -11.68137
exponential 37.78532 38.42437 -17.89266
gamma 29.01491 30.29302 -12.50745
lognormal 30.44837 31.72648 -13.22418
normal 27.27745 28.55556 -11.63872
logistics 27.86149 29.13960 -11.93074

Table 2.9.5: AIC and BIC metrics for each distribution

Figura 2.9.2

Figure 2.9.2: Survival curve estimated by the Kaplan-Meier method compared to the fits of theoretical distributions to the data.

The distribution chosen was the normal distribution, with the estimated parameters:

Parameter Estimate Standard Error Lower Limit Upper Limit
mean 1.0071729 0.4099179 0.2037486 1.8105972
sd 0.3988453 0.3011393 -0.1913768 0.9890674

Table 2.9.6: Parameter estimation

Percentile Quantile Standard Error Lower limit Upper Limit
1 0.10000 0.4960321 0.5826909 -0.64602112 1.638085
2 0.20000 0.6714962 0.4970726 -0.30274813 1.645741
3 0.30000 0.7980182 0.4496677 -0.08331421 1.679351
4 0.40000 0.9061266 0.4222708 0.07849105 1.733762
5 0.50000 1.0071729 0.4099179 0.20374856 1.810597
6 0.60000 1.1082192 0.4115749 0.30154714 1.914891
7 0.70000 1.2163276 0.4286494 0.37619021 2.056465
8 0.80000 1.3428496 0.4663187 0.42888163 2.256817
9 0.90000 1.5183137 0.5425990 0.45483925 2.581788
10 0.95000 1.6632150 0.6200260 0.44798640 2.878444
11 0.96000 1.7054258 0.6443274 0.44256736 2.968284
12 0.97000 1.7573186 0.6750664 0.43421269 3.080424
3 0.98000 1.8263010 0.7172039 0.42060720 3.231995
14 0.99000 1.9350258 0.7860418 0.39441205 3.475639
15 0.99865 2.2036996 0.9650798 0.31217787 4.095221

Table 2.9.7: Distribution percentiles

The calculation of control limits can be done using the following quantiles of the estimated distribution:

  • Lower Control Limit - LIC (q1) quantile $0.135\char37$: $$LIC = 0.5671716 $$
  • Central Limit - LC (q2) quantile 50$\char37$ (median): $$LC = 1.0071729$$
  • Upper Control Limit - LSC (q3) quantile 99.865$\char37$: $$LSC = 2.2036996$$
  • Alert Threshold - LA quantile 0.135$\char37$: $$LA = 1.6632150$$

Figura 2.9.3

Figure 2.9.3: Example probability density function

Figura 2.9.4

Figure 2.9.4: Control Chart

↑