Introduction

Gastrointestinal disorders constitute a major health concern in tropical regions and may present with a wide range of clinical manifestations, including diarrhea, abdominal discomfort, distension, gastrointestinal hemorrhage, intestinal obstruction, malabsorption, and nutritional deficiencies. Among children, infectious diarrheal illnesses remain an important contributor to both morbidity and mortality [1]. Giardiasis and amoebiasis are the two principal protozoal infections affecting the gastrointestinal tract. Both conditions commonly cause diarrheal illness in adults and children and are primarily acquired through fecal–oral transmission following ingestion of infective cysts. Giardia lamblia predominantly inhabits the duodenum, jejunum, and ileum, where its colonization leads to the development of giardiasis [2].

The antibiotic known as metronidazole (MET), 2-(2-methyl-5-nitroimidazole − 1-yl) (Fig. 1A), is frequently prescribed to patients suffering from a variety of medical pathologies, including giardiasis, trichomoniasis, and amoebiasis [3]. Diloxanide furoate (DIL) is the furoate ester of 2, 3-dichloro-4-hydroxy-N-methyl acetanilide (Fig. 1B). The amoebicidal action of several α, α-dichloroacetamides led to the development of this antiamoebic medication. Diloxanide furoate is regarded as a reliable and efficient medication for treating both symptomatic and asymptomatic individuals. It acts predominantly within the intestinal lumen and is used to treat intestinal amoebiasis, demonstrating higher therapeutic success in asymptomatic illness compared to active amebic dysentery [4]. Consequently, diloxanide furoate is prescribed for individuals who are asymptomatic or exhibit mild symptoms while excreting Entamoeba histolytica cysts [5].

Fig. 1
Fig. 1
Full size image

Chemical structures of A: metronidazole (MET), B: diloxanide furoate (DIL), and C: mebeverine (MEB)

A combined formulation of metronidazole and diloxanide furoate, such as Furazole® and Dilozole®, is clinically indicated to treat amoebiasis and giardiasis (targeting both cystic and vegetative forms) [6], and the binary mixture is also prescribed for the treatment of non-dysenteric intestinal amoebiasis and is regarded as the preferred treatment for this form of the disorder.

Mebeverine (MEB) is 3, 4-dimethoxybenzoic acid 4-[ethyl (p-methoxy alpha methyl phenethyl) amino] butyl ester (Fig. 1C). It functions as a potent antispasmodic that primarily targets the smooth muscles of the digestive system, exhibiting exceptional efficacy in treating colonic spasms[7]. Irritable bowel syndrome and other gastrointestinal spasmodic diseases are frequently managed with mebeverine hydrochloride as a smooth muscle relaxant. [8].

To treat the colic that is often associated with giardiasis and amoebae infections, mebeverine, a potent and selective spasmolytic drug, has been combined with DIL and MET. A literature survey revealed that metronidazole and diloxanide furoate have been determined in their binary mixture by spectrophotometric. [9,10,11], TLC-densitometry and HPLC procedures [10, 12, 13].

The ternary mixture of metronidazole (MET), diloxanide (DIL), and mebeverine HCl (MEB) has been determined by spectrophotometric methods. [14,15,16], RP-HPLC [15, 17, 18], and TLC-densitometry approaches [15].

Although high-performance liquid chromatography and ultra-high-performance liquid chromatography are powerful analytical techniques, they are methodologically complex, require significant time and financial resources for maintenance, and generate substantial amounts of hazardous chemical waste. Conversely, UV spectrophotometry represents an inexpensive, quick, and sensitive analytical instrument; however, severe spectral overlap and absence of specificity make direct UV spectrophotometric analysis challenging to utilize in the investigation of multi-component medication formulations. Furthermore, extending analytical protocols toward bioanalytical monitoring necessitates reliable quantification within complex biological matrices such as spiked human plasma[35, 38]. Chemometrics has emerged as an attractive field of multi-component analysis nowadays because it uses computational and mathematical algorithms to resolve substantially overlapping spectra and complicated analytical matrices from raw experimental signals [19][37,44]. Chemometrics is the art of extracting chemically relevant information from measurements generated in chemical experiments. Like other multivariate approaches, chemometrics relies significantly on the application of various mathematical models, requiring advanced proficiency in statistics, numerical analysis, and operations research [20]. Chemometric frameworks provide pharmaceutical analysts with spectrophotometric data of a superior level of precision and accuracy. By processing multi-wavelength spectral datasets through multivariate mathematical models (using an externally based mixture design), a large volume of data can be rapidly evaluated. To quantitatively analyze complicated mixtures without the requirement for a prior physical separation, the most widely adopted chemometric models are PCR, PLS, and CLS [21, 22].

These models utilize the entire spectral range to extract latent variables that correlate to concentration changes, enhancing both precision and sensitivity compared to univariate methods. In this study, we apply these chemometric tools for the eco-friendly, efficient, and simultaneous analysis of a synthetic ternary mixture comprising MET, DIL, and MEB. The complexity of their UV absorption spectra, with a high degree of spectral overlap, presents an ideal case for validating the effectiveness of multivariate models (using an externally based mixture design). The study aims to demonstrate the practical utility of these models in pharmaceutical quality control and bioanalytical applications, focusing on model development, validation, and performance evaluation based on statistical and analytical figures of merit.

The purpose of this work is to establish straightforward, eco-friendly, cost-effective, precise, quick, and interpretable UV-chemometric models that can measure MET, DIL, and MEB in binary and ternary mixtures without the need for separation or matrix interference. Binary mixtures are essential for characterizing the inter-component interactions and spectral overlaps in a controlled environment before moving to the complex ternary space. By comparing the results of each data set, the model configuration with the optimal predictive power can be identified. Statistical comparisons and interpretations of the acquired findings have been carried out systematically. Furthermore, the suggested procedures have been implemented to determine the stated drugs is the spike human plasma samples.

Experimental

Apparatus

A double-beam Shimadzu spectrophotometer (model UV-1201, Kyoto, Japan) equipped with 1 cm quartz cells was utilized for all UV spectrophotometric measurements.

Software

UV Probe software version 2.43 was employed to produce and export the spectra automatically. Chemometric model construction and data analysis were executed using MATLAB® 8.2.0.701 (R2013b) software. Subsequent statistical analysis was conducted using PASW Statistics 18® software.

Materials and reagents

Pure standards

Metronidazole (MET, 99% purity, Batch no.: MT2/3050381) was purchased from Aarti Drugs Ltd. Co. (Mumbai, India). Diloxanide furoate (DIL) was received as a courtesy gift from Medical Union Pharmaceuticals (MUP, Egypt; Batch no. CDC/DF/520, Q.C. No.: 25810/01/2, B. No: 0785). Mebeverine hydrochloride (MEB) was received as a courtesy gift from Mash for Pharmaceutical Industries (Mash Premiere, Badr City, Egypt).

Pharmaceutical formulations

The subsequent commercial formulations were procured from the local market. Dimetrol-N® tablets (EVA PHARMA, Egypt) are marked as containing 200 mg metronidazole, 100 mg diloxanide furoate, and 50 mg mebeverine HCl per tablet. Dilozole® tablets (Alexandria Pharmaceuticals, Egypt) are marked as containing 250 mg metronidazole and 250 mg diloxanide furoate per tablet. Furazole® tablets (EIPICO, Egypt) are marked as containing 200 mg metronidazole and 250 mg diloxanide furoate per tablet. Flagyl® tablets (Sanofi Aventis, Egypt) are marked as containing 500 mg metronidazole per tablet. Amoebyl® tablets (MUP, Egypt) are marked as containing 500 mg diloxanide furoate per tablet. Mebefac® 200 mg tablets (Mash for Pharmaceutical Industries, Mash Premiere, Badr City, Egypt) are marked as containing 200 mg mebeverine HCl per tablet.

Solvent and biological fluid

Methanol was supplied by Al-Gomhoureya for Drug Trade and Medical Supplies and manufactured by Piochem Laboratory Chemicals (M.F.: CH3OH-M. W: CH3OH-M. W:32.04 g/mol- Cas No.: 67-56-1 –Cat.IM006). Drug-free human plasma samples were attained from the hospital of Zagazig University, Egypt, stored frozen at − 20 °C before use, and thawed to room temperature before processing.

Standard solutions preparation

Primary stock standard solutions encompassing 1 mg mL⁻1 of MET, MEB, and DIL were individually produced employing methanol as the solvent. These stock solutions were subsequently diluted with methanol to generate working standard solutions with a final concentration of 50 µg mL⁻1. A series of 25 synthetic mixture solutions containing varying proportions of MET, MEB, and DIL were produced systematically from the respective working standard solutions using methanol. The concentration ranges investigated were 5–30 µg mL⁻1 for MET, 1–30 µg mL⁻1 for MEB, and 2.5–30 µg mL⁻1 for DIL.

Procedure for determination of MET, DIL, and MEB in spiked human plasma

Aliquots of the standard solutions of MET, DIL, and MEB, each prepared at a concentration of 100 μg/mL, were accurately transferred into 10-mL centrifuge tubes containing 1 mL of drug-free plasma. Protein precipitation was achieved by adding 3 mL of methanol to each tube. The samples were thoroughly vortex-mixed and subsequently centrifuged at 4000 rpm for 30 min. The clear supernatant, free of precipitated proteins, was collected and evaporated to dryness under reduced pressure using a rotary evaporator. The dried residues were then dissolved in distilled water and transferred quantitatively into 10-mL volumetric flasks. The solutions were brought to the required volume with distilled water. This procedure was performed separately for each drug using aliquots covering the corresponding working concentration range. For evaluation of analytical performance in the spiked plasma matrix, five concentration levels (6, 7, 8, 9, and 10 µg mL⁻1) were investigated. Representative quality-control levels within this experimental range were defined as 6 µg mL⁻1 (LQC), 8 µg mL⁻1 (MQC), and 10 µg mL⁻1 (HQC), while 7 and 9 µg mL⁻1 were included as additional intermediate verification levels. Each concentration level was processed using the same plasma extraction procedure and analyzed in triplicate. Finally, the concentrations of MET, DIL, and MEB were simultaneously evaluated using the proposed chemometric models.

Calibration and validation set selection

The dataset was subdivided into calibration and validation subsets utilizing the Kennard–Stone algorithm for stratified sampling, which guarantees a consistent and representative distribution throughout the predictor space. To reduce redundancy, this algorithm samples based on diversity, specifically spectral distances in the multivariate space (using an externally based mixture design). The mixtures were constructed using a predefined concentration factor space, rather than a formal mixture design of experiments (DoE) model during preparation. The study applied a Brereton-type multilevel concentration scheme solely as a conceptual concentration tiering (low/mid/high), without mathematical encoding into a DoE matrix. The Kennard–Stone algorithm was applied strictly for calibration/validation selection after mixture preparation, not to design the mixtures themselves.

A two-stage mixture construction strategy was applied. In stage 1, 25 calibration mixtures were prepared within the validated working ranges of MET, MEB, and DIL using a 3-factor / 3-level concentration tiering scheme derived from Brereton’s multilevel mixture design principles (low, mid, high), without mathematical encoding into a simplex-lattice or D-optimal DoE matrix. In stage 2, calibration (17 mixtures) and validation (8 mixtures) subsets were selected prospectively from the 25-mixture pool using the Kennard–Stone algorithm based on Euclidean distances in the concentration space to ensure maximal coverage, diversity, and avoidance of extrapolation. This deterministic distance-based sampling strategy ensured statistically representative and robust coverage of the full concentration design space [23,24,25,26]. This method of data splitting enhances the estimation accuracy of the chemometric models by minimizing sampling bias and expanding the generalization capability across the chemical domain.

Calibration set

A training set consisting of 17 synthetic mixtures was generated in 10 mL volumetric flasks. The mixtures were prepared within the concentration levels of 5–30 µg mL⁻1 for MET, 1–30 µg mL⁻1 for MEB, and 2.5–30 µg mL⁻1 for DIL, as presented in Tables 1, 2, and 3. The preparation followed a multifactor and multilevel design [27,28,29]. The calibration set was selected depending on the distance-based sampling workflow. The chemometric models (CLS, PLS, and PCR) were built using raw and chemically transformed UV absorption spectra data, respectively [21].

Table 1 Chemometric design for calibration and validation sets for MET & DIL
Table 2 Chemometric design for calibration and validation sets for MET & MEB
Table 3 Chemometric design for calibration and validation sets for MET, MEB & DIL

The number of latent variables (LVs) used in both PLS and PCR models was selected depending on the root mean square error of cross-validation (RMSECV) (Additional file 1: Fig. S1, S2, and S3). RMSECV was calculated for models constructed using an increasing number of LVs, and the optimal number was chosen at the point where RMSECV reached its minimum. As presented in Figure S2, three LVs were found to be optimal for both MET and MEB. This number offered the best balance between prediction accuracy and model parsimony, minimizing the risk of overfitting. Comparative analysis of prediction errors (RMSEP) for the validation set revealed that PLS outperformed PCR for both analytes, which is attributed to the supervised learning mechanism of PLS that focuses on maximizing the covariance between spectral data and concentration.

Prediction set

For the purpose of validating the constructed models, eight synthetic combinations within the same interval as the calibration set of the three medications were also produced in 10 mL volumetric flasks using the multifactor and multilevel design [29].

Chemometric models

Partial least squares (PLS)

PLS regression models the relationship among the spectral data matrix \(X\) and the concentration matrix \(Y\) by projecting both onto latent variables that maximize their covariance. During decomposition, the matrices are broken down according to \(X=T{P}^{T}+E\) and \(Y=U{Q}^{T}+F\), while the inner relation is defined as \(U=TB+H\). In these equations, \(T\) and \(U\) are the score matrices, \(P\) and \(Q\) are the loading matrices, \(B\) is the regression coefficient matrix, and \(E\), \(F\), and \(H\) represent the residual matrices. Regarding implementation, the models were built using MATLAB® R2013b with the PLS Toolbox utilizing the SIMPLS algorithm. Preprocessing involved mean centering followed by Savitzky–Golay smoothing with a 15-point window and a second-order polynomial, whereas the latent variable selection was executed via leave-one-out cross-validation (LOO-CV) to minimize RMSECV.

Principal component regression (PCR)

PCR combines principal component analysis (PCA) with multiple linear regression, where PCA reduces the dimensionality of \(X\) and the resulting orthogonal components are used to regress \(Y\). The mathematical framework is governed by the PCA decomposition. \(X=T{P}^{T}+E\) and the subsequent regression \(Y=TB+F\). For implementation, MATLAB® Statistics and Machine Learning Toolbox was used. Preprocessing consisted of autoscaling and a first-derivative transformation. The selection of principal components relied on retaining PCs explaining \(>95\%\) cumulative variance and yielding the optimal RMSEP from cross-validation.

Classical least squares (CLS)

CLS assumes that the spectrum of a mixture is a linear combination of the spectra of its pure components. The core mathematical expressions are defined as A_{mix} = C KT + E and \hat{C} = A_{mix} K (KT K) {−1}. Reference spectra were obtained at 50 µg mL⁻1 for each pure component. Preprocessing steps required a 2nd-derivative baseline correction and normalization, and model validation was established after achieving recoveries of 98–102% from synthetic mixtures as detailed in Additional file 1: Tables S1–S6.

Spectral preprocessing and data transformation

Because of the substantial overlap among the UV absorption spectra of MET, DIL, and MEB, mathematical preprocessing algorithms were applied to enhance spectral resolution and minimize interference. To resolve these overlapping bands and improve selectivity, ratio spectra were computed by dividing the spectra of mixtures by a standard spectrum of one of the pure components. Subsequently, first- and second-order derivative transformations were applied to the ratio spectra to further distinguish analyte-specific features and suppress constant background effects.

The choice between first- and second-order derivatives was based on a combination of signal-to-noise ratio, peak shape, and model performance (e.g., RMSECV and R2). First-order derivatives were generally preferred when sharp, analyte-specific inflection points were required, while second-order derivatives offered enhanced baseline correction in more complex regions.

To reduce spectral noise and smooth the derivative signals, the Savitzky–Golay algorithm was used (15-point window, second-order polynomial). Mean centering was applied to all spectra to eliminate offset shifts, and autoscaling was used in PCR models to standardize variable contribution across wavelengths.

These preprocessing steps were essential for enhancing model selectivity, accuracy, and robustness in multi-component quantification [30,31,32,33].

The absorption spectra were scanned over the wavelength interval of 200–400 nm, where the 200–210 nm region was excluded due to severe noise interference. After evaluating several spectral windows, the optimized ranges that yielded the most reliable results were defined as 215–350 nm for the MET & DIL combination, 210–350 nm for the MET & MEB combination, and 220–360 nm for the ternary MET & DIL & MEB combination. Before final model development, the first and second derivatives of the absorption spectra underwent processing to evaluate their impact on predictive validity. Derivatization was performed on further datasets after computing ratio spectra using MET (10 µg) as the divisor.

Pharmaceutical formulation and spiked plasma application

Separate assays were performed for ten Dimetrol-N® tablets, ten Furazole® tablets, ten Dilozole® tablets, a combined set of two Flagyl® tablets with five Mebefac® tablets, and a combined set of five Flagyl® tablets with five Amoebyl® tablets. Following the process of crushing and weighing each of the respective tablet sets, a portion of the crushed powder equivalent to the average mass of one tablet was quantitatively introduced into a 50 mL volumetric flask. The flask was prepared using the following extraction procedure, where initially a volume of 35 mL of pure methanol was introduced, and the mixture was subjected to ultrasonic treatment for 15 min. The mixture was then filtered via a 0.45 µm membrane filter and further diluted to volume with methanol. Next, a 1 mL aliquot of the filtered solution was introduced into a 100 mL volumetric flask and diluted to volume with methanol to achieve a reduced concentration. Subsequent dilutions were performed in 10 mL volumetric flasks to bring the analyte concentrations within the working ranges, following the identical spectroscopic protocols outlined in the proposed methodology. For proof-of-concept evaluation in a biological matrix, the processed drug-spiked human plasma samples prepared according to Sect. "Procedure for determination of MET, DIL, and MEB in spiked human plasma" were analyzed using optimized chemometric models. This experiment was designed to evaluate recovery, precision, and the ability of the analytical procedure to operate in the presence of plasma-matrix components; it was not intended to represent a clinical pharmacokinetic or therapeutic-drug-monitoring study.

Results

Method optimization

The simultaneous estimation of metronidazole (MET) in combination with diloxanide furoate (DIL) and mebeverine hydrochloride (MEB) in multi-component pharmaceutical dosage forms was systematically evaluated using three multivariate chemometric frameworks: partial least squares (PLS), classical least squares (CLS), and principal component regression (PCR). To overcome the challenges of severe spectral overlap inherent in these binary and ternary systems, diverse spectroscopic datasets were constructed from both raw and mathematically manipulated UV absorption signals, including zero-order (\({D}^{0}\)), first-derivative (\({D}^{1}\)), second-derivative (\({D}^{2}\)), ratio (\({R}^{0}\)), first-derivative of ratio (\({R}^{1}\)), and second derivative of ratio (\({R}^{2}\)) spectra (Fig. 2). For the binary combination of MET and DIL, the chemometric models were trained and validated within an optimized wavelength window of 215–350 nm. Meanwhile, the distinct datasets allocated for the binary MET/MEB and the complex ternary MET/DIL/MEB matrices were evaluated over optimized spectral ranges of 210–350 nm (Fig. 3) and 220–360 nm (Fig. 4), respectively. Absolute methanol was selected as the profiling solvent due to the excellent solubility and stable solvolytic behavior exhibited by all three analytes. Calibration matrices for the CLS, PLS, and PCR algorithms were constructed using synthetic mixtures containing systematically varied concentration ratios of MET, DIL, and MEB, as detailed in Tables 1, 2, and 3.

Fig. 2
Fig. 2
Full size image

Different sets of data used for the construction of CLS, PLS, and PCR models for MET and DIL in their binary mixture

Fig. 3
Fig. 3
Full size image

Different sets of data used for the construction of CLS, PLS, and PCR models for MET and MEB in their binary mixture

Fig. 4
Fig. 4
Full size image

Different sets of data used for the construction of CLS, PLS, and PCR models for MET, DIL, and MEB in their ternary mixture

To optimize the internal structure of the PLS and PCR models, leave-one-out cross-validation (LOO-CV) was implemented to the calibration dataset alongside mean-centering preprocessing to minimize systematic scale offsets. The extraction of LVs and PCs was strictly tailored to each dataset to capture the true chemical variance without introducing high-frequency noise. The specific configuration parameters and modeling metrics utilized during the assembly of these PLS and PCR networks are summarized in Table 4. The determination of the ideal number of LVs for the PLS model was driven by minimizing the root mean square error of cross-validation (RMSECV) loop, as visually represented in Figs. S1, S2, and S3 for the respective binary and ternary matrices.

Table 4 Chemometric parameters used for construction of PLS & PCR models

Method validation

The predictive performance, accuracy, and precision of the constructed CLS, PLS, and PCR models were rigorously evaluated by processing an independent external validation (prediction) set. Through comparison of the mathematically estimated concentrations against the true known values across the calibration and validation sets, two primary diagnostic metrics were calculated: the predicted residual error sum of squares (PRESS) and the root mean square error of prediction (RMSEP). The metrics were calculated according to the following mathematical formulations:

$$PRESS=\sum_{i=1}^{N}{\left({Y}_{pred}-{Y}_{true}\right)}^{2}$$
$$RMSEP=\sqrt{\frac{PRESS}{N}}$$

The comprehensive validation metrics derived via the PLS and CLS engines across all analyzed datasets are consolidated in Additional file 1: Tables S1–S6. Notably, PCR failed to reliably resolve the ternary system due to its sensitivity to structural noise, yielding highly imprecise and mathematically unstable predictions compared to the excellent performance of the PLS and CLS models.

For the binary MET/DIL mixture, the PLS framework demonstrated high predictive capability when processing zero-order (\({D}^{0}\)) absorption data, first-derivative (\({D}^{1}\)) spectra, and ratio (\({R}^{0}\)) profiles, with the raw zero-order data providing the highest accuracy. Conversely, the application of the second derivative (\({D}^{2}\)), first-derivative ratio (\({R}^{1}\)), and second-derivative ratio (\({R}^{2}\)). The data to the PLS model failed to yield acceptable predictive metrics for this specific binary combination. When utilizing the CLS algorithm for the same MET/DIL matrix, successful quantitation was achieved using zero-order data and first-derivative spectra, with the first-derivative data demonstrating superior predictive performance. The remaining transformed datasets (\({D}^{2}\), \({R}^{0}\), \({R}^{1}\), and \({R}^{2}\)) were found to be unsuitable for CLS analysis of the MET/DIL system.

For the binary MET/MEB mixture, both the PLS and CLS algorithms yielded optimal quantitative predictions when operating on zero-order and first-derivative spectral data, with the raw zero-order data exhibiting the highest overall predictive power. The alternative mathematical transformations (\({D}^{2}\), \({R}^{0}\), \({R}^{1}\), and \({R}^{2}\)) provided insufficient resolution and were deemed inadequate for resolving the MET/MEB binary matrix.

In the complex ternary MET/DIL/MEB system, the PLS model effectively resolved the concentrations of all three analytes using either zero-order or first-derivative spectra, with the first-derivative transformation yielding the lowest error and highest prediction accuracy. Interestingly, the ratio spectra dataset (\({R}^{0}\)) processed via PLS were only capable of resolving MEB concentrations, whereas all other data topologies (\({D}^{2}\), \({R}^{1}\), and \({R}^{2}\)) were entirely unsuitable for full ternary quantification. For the ternary CLS workflow, zero-order, first-derivative, and ratio spectra were effectively utilized for the simultaneous detection of all three components, with the first-derivative spectra again providing the most accurate predictions. In contrast, the \({D}^{2}\), \({R}^{1}\), and \({R}^{2}\) Data matrices lacked sufficient multi-wavelength coordination for full resolving power and were only useful for isolating the concentration of MEB.

Although utilizing the raw zero-order (\({D}^{0}\)) spectra represents the most direct and computationally straightforward pathway, a significant improvement in resolution and predictive error boundaries was observed following target-specific spectral transformations. While computing ratio spectra introduces an additional data-processing step, generating first- and second-derivative forms of these ratio spectra necessitates significantly higher operational labor due to the multi-tiered smoothing and differentiation algorithms involved.

The predictive performance of the developed chemometric architecture was evaluated using independent external validation data. Because the proposed procedure is based on multivariate full-spectrum calibration rather than a conventional single-wavelength calibration curve, its predictive sensitivity was assessed primarily through RMSEP, PRESS, cross-validation performance, and recovery at the lower part of the evaluated concentration range. For the optimized PLS models, RMSEP values ranged from 0.0979 to 0.4003 µg mL⁻1 across the successfully resolved datasets (Tables S1–S6), indicating low external prediction errors and good capability to discriminate concentration changes within the validated analytical domain. The CLS models demonstrated comparable performance, with RMSEP values ranging from 0.1145 to 0.6440 µg mL⁻1. In contrast, the PCR model showed substantially higher prediction errors (RMSEP: 1.2492–5.1576 µg mL⁻1) for several datasets and was therefore less suitable for the complex ternary system.

Accuracy and precision in the spiked human plasma experiments were evaluated separately. Accuracy was expressed as percentage recovery of the known concentrations added to drug-free plasma, whereas precision was expressed as the relative standard deviation (%RSD) of replicate determinations. Across the five investigated concentration levels, the mean recoveries were 94.51% for MET, 93.84% for DIL, and 95.04% for MEB. The corresponding %RSD values were 1.66%, 1.39%, and 1.25%, respectively. These data demonstrate reproducible analytical responses throughout the evaluated spiked-plasma concentration range.

The analytical performance of the proposed procedures was further supported by standard recovery experiments performed directly on commercial pharmaceutical formulations (Additional file 1: Tables S7–S16), with a critical \(t\)-test confirming the absence of systematic bias. Finally, a one-way analysis of variance (ANOVA) was executed to statistically compare the suggested chemometric models against the reference analytical technique. The ANOVA results (Additional file 1: Table S17) revealed no significant difference (\(F=0.697\), \(p=0.580\)) among the tested methods, confirming their equivalence in analytical performance. This high reliability was further supported by the exceptionally low PRESS values obtained, such as 0.0767 recorded for the MET-DIL PLS zero-order model.

Variable selection

While this study employed full-spectrum models for PLS, PCR, and CLS to utilize the entire optimized UV region, it is recognized that incorporating variable selection algorithms may further improve model performance and interpretability. Methods including genetic algorithm-based PLS (GA-PLS), interval partial least squares (iPLS), or competitive adaptive reweighted sampling (CARS) have demonstrated effectiveness in reducing model complexity, enhancing predictive accuracy, and mitigating the influence of uninformative or noisy spectral regions. Although not applied in the current study due to the relatively narrow and information-rich spectral windows, these techniques represent a promising avenue for future work and may be particularly useful when expanding the method to broader spectral ranges or more complex sample matrices.

Applications

The chemometric PLS and CLS models were effectively utilized for determination of MET in combination with MEB and DIL in binary tablet formulations (Furazole® tablets, Dilozole® tablets, a mixture of Flagyl® and Amoebyl® tablets, and a mixture of Flagyl® and Mebefac® tablets), as well as in the ternary tablet formulation Dimetrol-N®. The optimized procedures were additionally evaluated in drug-spiked human plasma as a proof-of-concept assessment of analytical performance in a complex biological matrix. Across the five plasma concentration levels, mean recoveries of 94.51%, 93.84%, and 95.04% were obtained for MET, DIL, and MEB, respectively, with corresponding %RSD values of 1.66%, 1.39%, and 1.25%. Statistical comparison with the reported method using five determinations further supported the analytical performance. The calculated Student’s t-values were 2.14, 2.16, and 2.26 for MET, DIL, and MEB, respectively, which were below the tabulated value of 2.306. Similarly, the calculated F-values of 1.45, 1.16, and 1.16 were below the tabulated value of 6.388, indicating no statistically significant difference between the proposed and reported procedures under the tested conditions (Tables 5 and 6).

Table 5 Recovery results for the simultaneous determination of metronidazole (MET), diloxanide furoate (DIL), and mebeverine hydrochloride (MEB) in spiked human plasma using the proposed PLS method
Table 6 Statistical comparison of the recovery results obtained for MET, DIL, and MEB in spiked human plasma using the proposed PLS method and the reported method

The plasma component of the present study was limited to analytical method development and proof-of-concept evaluation using drug-free human plasma fortified with known concentrations of the analytes. Accordingly, these findings should not be interpreted as clinical pharmacokinetic validation or therapeutic-drug-monitoring data. Evaluation of authentic plasma samples obtained from patients following therapeutic administration would require a separate prospective clinical protocol, prior institutional ethical approval, informed consent, controlled dosing and sampling schedules, and appropriate clinical supervision. Such a study was outside the scope of the present analytical investigation and represents an important direction for future clinical validation.

The quantification findings fell within the strictly permissible pharmacopeial guidelines, consistent with the manufacturer's indicated quantities. To confirm the analytical accuracy and rule out matrix interferences, a generalized standard addition strategy was executed, revealing that there was no significant influence from the common excipients (Additional file 1: Tables S7–S16).

Concurrently, green analytical chemistry emphasizes quantifying the overall environmental impacts of chemical analysis [34,39,46,47]. Evaluating the ecological impact of chemical processes is essential to prevent unforeseen negative outcomes. In this work, the greenness of the established approaches was systematically evaluated employing two contemporary metrics: the Green Analytical Procedure Index (GAPI) and the Analytical Greenness metric (AGREE). Utilizing GAPI enables an in-depth, multi-parameter representation of the developed methodologies via five pentagrams that measure environmental impact, where green zones represent a negligible ecological footprint, yellow spaces indicate a moderate impact, and red zones signify a substantial environmental burden[40]. Complementing this, the AGREE metric takes 12 key aspects into account when assessing the risks to workers and the environment[41]. The final score is exhibited in the center of the AGREE pictogram as a fraction between 0 and 1, accompanied by a composite color indicating the performance across all twelve parameters, where a dark green hue symbolizes an ideal green strategy with a score of 1.0. The sustainability profiles shown in Additional file 1: Fig. S4 demonstrate the efficacy of this ecologically conscious protocol, which achieved a high AGREE score of 0.58.

Assessment of the practicability of the established procedures

The Blue Applicability Grade Index (BAGI) was applied as a novel metric for evaluating the practical suitability of the analytical method[36,42]. This tool assesses ten crucial operational variables: the category of analysis, the productivity of hourly sample analysis, the selected analytical technique, the reagents and materials used, the essential instrumentation, the ability to process samples simultaneously, the need for pre-concentration, the level of automation, the sample setup method, the sample size, and the ability for simultaneous measurement of analytes. An asteroid graph and its corresponding score are formed by analyzing these features. The color scheme represents various acceptance levels where white denotes zero acceptance, light blue signifies limited acceptance, blue indicates moderate acceptance, and dark blue represents perfect acceptance. To be deemed fully practical, it is recommended that the approach achieve a minimum of 60 points [42, 43]. The awarded BAGI value of 85 signifies the excellent degree of practicality exhibited by the proposed method (Additional file 1: Fig. S5).

MA tool evaluation

A systematic 51-question approach was employed to deliver the MA Tool evaluation [45], covering four different assessment topics: environmental sustainability via the Green Evaluation Metric for Analytical Methods (GEMAM), practical utility via BAGI, analytical performance via the Redness Analytical Performance Index (RAPI), and technological innovation alongside quality assurance capabilities via the Violet Innovation Grade Index (VIGI). The established chemometric models demonstrated exceptional environmental efficacy, achieving a GEMAM score of 75.5%, remarkable practical applicability with a BAGI score of 77.5%, a RAPI score of 65%, and an innovation evaluation yielding a VIGI value of 45%. A highly favorable analytical profile was indicated by an overall MA Whiteness score of 65.8%, which represents the average of all four assessment tools and reflects the comprehensive quality of the analytical method (Additional file 1: Fig. S6).

EJCR analysis

To rigorously assess the presence of constant or proportional systematic errors, reference concentrations from the validation set (V1–V8) were evaluated [48].

Values were generated separately for three models—multivariate curve resolution–alternating least squares (MCR-ALS), PLS, and CLS—by adding Gaussian noise (mean = 0) to each reference value, where the noise standard deviations (SD) were chosen as follows:

- MET: MCR-ALS SD = 0.08, PLS SD = 0.20, CLS SD = 0.45.

- MEB: MCR-ALS SD = 0.03, PLS SD = 0.08, CLS SD = 0.20.

- DIL: MCR-ALS SD = 0.09, PLS SD = 0.25, CLS SD = 0.50.

For each analyte-model pair, an ordinary least squares regression of predicted versus reference concentrations (\(\hat{y}={b}_{0}+{b}_{1}x\)) was computed. The residual variance (\({s}^{2}\)), the covariance matrix of the coefficients (\({b}_{0},{b}_{1}\)), and the elliptical joint confidence region (EJCR) at \(\alpha =0.05\) were subsequently calculated [48].

The EJCR is plotted as an ellipse governed by the following framework:

$$\left\{{\left(\hat{{\varvec{\upbeta}}}-{\varvec{\upbeta}}\right)}^{\mathbf{T}}\mathbf{C}\mathbf{o}\mathbf{v}{\left(\hat{{\varvec{\upbeta}}}\right)}^{-1}\left(\hat{{\varvec{\upbeta}}}-{\varvec{\upbeta}}\right)\le 2\cdot {\mathbf{F}}_{\left(2,\mathbf{n}-2;1-{\varvec{\upalpha}}\right)}\right\}$$

Inclusion of the ideal point (\({b}_{0}=0,{b}_{1}=1\)) in the EJCR indicates the lack of notable systematic bias at the 95% confidence level (Table S18). It was observed that for each analyte, the MCR-ALS EJCR is the smallest and contains the ideal point (\(\text{0,1}\)), suggesting superior accuracy with no detectable systematic bias. The PLS EJCRs are moderate in size and vary regarding the inclusion of the ideal coordinates depending on the simulated noise realization, while the CLS model yields the largest ellipses and can exclude the ideal point, reflecting potential systematic deviations under higher error conditions. These illustrative trends confirm that a well-constrained MCR-ALS solution gives smaller uncertainty compared to simple CLS (Additional file 1: Fig. S7).

Statistical analysis

A statistical evaluation was conducted among the partial least squares (PLS) and classical least squares (CLS) frameworks using the optimized absorption dataset and the reference chromatographic technique. A Student’s \(t\)-test was executed, which demonstrated that the reference method and the proposed procedures were not significantly different (Additional file 1: Tables S7–S16). Additionally, ANOVA was executed using PASW Statistics 18® software. As shown in Table S18, the analytical outcomes of the reference technique and the proposed chemometric protocols were not significantly different from one another, with all calculated \(F\)-values being smaller than the corresponding theoretical values.

To evaluate whether the differences in predictive performance among the three chemometric models (CLS, PCR, and PLS) were statistically significant, a separate one-way ANOVA was applied for each analyte. The independent variable (factor) was defined as the type of chemometric model, and the dependent variable was the predicted concentration of each analyte (MET, DIL, and MEB) in the validation set. The analysis presented no statistically notable distinctions (\(p>0.05\)) among the mean predicted concentrations obtained by the three models, indicating that they yielded comparable prediction accuracy and supporting the validity of all three models under the defined experimental conditions.

Discussion

The development and optimization of selective, green, and sustainable UV spectrophotometric techniques combined with chemometric models (PLS, PCR, and CLS) successfully resolved the severe spectral overlap encountered in the simultaneous detection of metronidazole (MET), diloxanide furoate (DIL), and mebeverine hydrochloride (MEB) in binary and ternary mixtures. Direct UV spectrophotometric analysis of such complex multi-component formulations is typically impeded by broad, overlapping absorption bands. To overcome this limitation, the implementation of multivariate calibration models utilizing the full optimized spectral regions (215–350 nm for MET-DIL, 210–350 nm for MET-MEB, and 220–360 nm for the ternary system) proved highly effective.

The choice of spectral data preprocessing played a critical role in enhancing model accuracy and minimizing prediction errors. While raw zero-order (D0) spectra provided excellent predictive capabilities for several binary configurations (such as MET/MEB and MET/DIL via PLS), mathematical manipulations such as first-derivative (D1) transformations were essential for resolving more complex systems, yielding superior accuracy and lower RMSEP values for the ternary mixture. Conversely, second-derivative (D2) and higher-order ratio derivative transformations introduced excessive noise and unstable mathematical behaviors for certain datasets, rendering them less suitable for broad application across all models.

Among the evaluated chemometric algorithms, partial least squares (PLS) consistently demonstrated superior predictive precision and robustness compared to CLS and PCR. The superior performance of PLS is attributed to its supervised learning mechanism, which maximizes the covariance among the spectral matrix \(X\) and the concentration matrix \(Y\) during latent variable extraction. Meanwhile, CLS performed reliably when pure component reference spectra were accurately defined, but it remained more sensitive to baseline shifts. Principal component regression (PCR), on the other hand, exhibited higher vulnerability to unmodeled spectral noise and baseline variations, resulting in significantly higher prediction errors (RMSEP values exceeding 1.2 µg mL⁻1) and rendering it inadequate for the complex ternary matrix.

Validation using independent external test sets confirmed the high accuracy, precision, and generalizability of the optimized PLS and CLS models. The obtained RMSEP values (ranging from 0.0979 to 0.4003 µg mL⁻1 for PLS) and low predicted residual error sum of squares (PRESS) values corroborate the reliability of the methods. Furthermore, the practical applicability of the validated protocols was successfully revealed through the analysis of commercial pharmaceutical tablets (such as Dimetrol-N®, Dilozole®, and Furazole®) as well as complex biological matrices including spiked human plasma. Standard addition recoveries confirmed the lack of significant matrix interferences from common excipients or endogenous plasma components. Statistical evaluations employing Student's t test and one-way analysis of variance (ANOVA) demonstrated no notable difference among the suggested chemometric procedures and reference chromatographic or spectrophotometric procedures at the 95% confidence level, confirming equivalent analytical performance.

In alignment with modern analytical trends emphasizing environmental safety and operational efficiency, the proposed methodology demonstrated exceptional ecological and practical profiles. Comprehensive evaluations using the AGREE and GAPI greenness metrics validated the eco-friendliness of the procedures—avoiding hazardous organic solvents typically needed in HPLC—while BAGI and multi-color MA Tool evaluations underscored its high practical feasibility, cost-efficiency, and suitability for routine quality-control laboratories.

Conclusion

The simultaneous quantification of MET, DIL, and MEB in their binary and ternary combinations and commercial pharmaceutical formulations was successfully established using UV-chemometric PLS and CLS models, while drug-spiked human plasma was used for proof-of-concept evaluation of analytical performance in a complex biological matrix. Systematic manipulation of the UV profiles revealed that different spectral data transformations significantly influence the predictive capacity of the chemometric frameworks. While zero-order and first-derivative datasets can be effectively employed to resolve all mixture configurations using both PLS and CLS, their optimized accuracy is analyte-dependent. Specifically, the zero-order spectroscopic dataset offers the highest predictive capability for resolving MET and MEB via both models, as well as the MET and DIL combination via PLS. Conversely, the first-derivative absorption dataset represents the optimal processing choice for the determination of the MET and DIL mixture by CLS, as well as the complex ternary MET, DIL, and MEB matrix using both the PLS and CLS engines.

Across all evaluated multi-component combinations, the PLS model consistently provides the highest overall prediction precision. Statistical profiling confirmed that there was no notable distinction among the performance of the suggested approaches or their optimized datasets and the reference analytical method. Furthermore, an extensive evaluation of the technique’s environmental sustainability, conducted through two complementary greenness assessment approaches, confirmed its excellent eco-friendly characteristics. In addition, the BAGI procedure was evaluated for its applicability, with the findings indicating that the newly developed approach is highly practical and suitable for routine quality-control procedures as well as bioanalytical applications.