Next Article in Journal
Pyrazolo[1,5-a]pyrimidine as a Prominent Framework for Tropomyosin Receptor Kinase (Trk) Inhibitors—Synthetic Strategies and SAR Insights
Next Article in Special Issue
A Theoretical Exploration of the Photoinduced Breaking Mechanism of the Glycosidic Bond in Thymine Nucleotide
Previous Article in Journal
Enrichment of Fruit Peels’ Nutritional Value by Solid-State Fermentation with Aspergillus ibericus and Rhizopus oryzae
Previous Article in Special Issue
The Role of Ovalbumin in Manganese Homeostasis during Chick Embryogenesis: An EPR Spectroscopic Study
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

QCL Infrared Spectroscopy Combined with Machine Learning as a Useful Tool for Classifying Acetaminophen Tablets by Brand

by
José A. Martínez-Trespalacios
1,
Daniel E. Polo-Herrera
2,
Tamara Y. Félix-Massa
3,
Samuel P. Hernandez-Rivera
3,
Joaquín Hernandez-Fernandez
1,2,4,
Fredy Colpas-Castillo
2 and
John R. Castro-Suarez
5,*
1
Mechanical Engineering Program, School of Engineering, Universidad Tecnológica de Bolívar, Parque Industrial y Tecnológico Carlos Vélez Pombo, Cartagena 130001, Colombia
2
Chemistry Program, Department of Natural and Exact Sciences, San Pablo Campus, University of Cartagena, Cartagena 130015, Colombia
3
Center for Chemical Sensors and Chemical Imaging and Surface Analysis Center, Department of Chemistry, University of Puerto Rico, Mayaguez, PR 00681, USA
4
Department of Natural and Exact Science, Universidad de la Costa, Barranquilla 080002, Colombia
5
Área Básicas Exactas, Universidad del Sinú, Seccional Cartagena, Cartagena 130015, Colombia
*
Author to whom correspondence should be addressed.
Molecules 2024, 29(15), 3562; https://doi.org/10.3390/molecules29153562
Submission received: 15 June 2024 / Revised: 18 July 2024 / Accepted: 23 July 2024 / Published: 28 July 2024
(This article belongs to the Special Issue Molecular Spectroscopy in Applied Chemistry)

Abstract

:
The development of new methods of identification of active pharmaceutical ingredients (API) is a subject of paramount importance for research centers, the pharmaceutical industry, and law enforcement agencies. Here, a system for identifying and classifying pharmaceutical tablets containing acetaminophen (AAP) by brand has been developed. In total, 15 tablets of 11 brands for a total of 165 samples were analyzed. Mid-infrared vibrational spectroscopy with multivariate analysis was employed. Quantum cascade lasers (QCLs) were used as mid-infrared sources. IR spectra in the spectral range 980–1600 cm−1 were recorded. Five different classification methods were used. First, a spectral search through correlation indices. Second, machine learning algorithms such as principal component analysis (PCA), support vector classification (SVC), decision tree classifier (DTC), and artificial neural network (ANN) were employed to classify tablets by brands. SNV and first derivative were used as preprocessing to improve the spectral information. Precision, recall, specificity, F1-score, and accuracy were used as criteria to evaluate the best SVC, DEE, and ANN classification models obtained. The IR spectra of the tablets show characteristic vibrational signals of AAP and other APIs present. Spectral classification by spectral search and PCA showed limitations in differentiating between brands, particularly for tablets containing AAP as the only API. Machine learning models, specifically SVC, achieved high accuracy in classifying AAP tablets according to their brand, even for brands containing only AAP.

1. Introduction

The detection of chemical substances in different solid, liquid, or gaseous matrices has always been of interest to research groups. These substances of interest may be active pharmaceutical ingredients (APIs) in pharmaceutical formulations that, if misused, could harm people. Recently, the United States Food and Drug Administration (US FDA) and the World Health Organization (WHO) have raised the alarm about the increase in counterfeit drugs in the world that are being distributed in the market as legal drugs, with over-the-counter drugs being the most susceptible to this drug trafficking. These counterfeit drugs may contain no active ingredient, be in poor condition, or be contaminated. However, these drugs may have the right active ingredient but the wrong dosage. Whatever the case, these counterfeit drugs are illegal and can be harmful to your health [1,2].
In 2017, the WHO estimated that 10.5% of medications worldwide are either subpar or fake. As per a report, the incidence of counterfeit medicines was around 13.6% in low- and middle-income countries (LMICs) [3]. Asia, specifically India, leads in the production of counterfeit medicines, with approximately 35–75% of fake medicines being produced in India. However, as per the reports of the Pharmaceutical Security Institute (PSI), a not-for-profit membership organization, the maximum percentage of counterfeit drugs seized was higher in North America, followed by Asia–Pacific [2,4]. Developing nations are home to a sizable part of the counterfeit drugs being circulated in the world. As per the data from WHO, every 1 in 10 medicinal products in developing countries is counterfeit or spurious [5].
Counterfeiting is not limited to vaccines alone. Counterfeited versions of essential items needed during the COVID-19 pandemic, such as face masks, PPE kits, N95 masks, gloves, sanitizers, and diagnostic kits, along with medicines such as antivirals, chloroquine, paracetamol, and vitamin C, were also abundant in the market [6]. The illegal market for drugs increased by more than 400% at the end of 2021 [7].
Acetaminophen (AAP), or paracetamol, is one of the most widely used active ingredients in pharmaceutical formulations. AAP is commonly used as an analgesic and antipyretic to relieve pain and reduce fever. It is specifically prescribed to treat various conditions such as headaches, muscle aches, arthritis, back pain, toothaches, colds, and fevers. During COVID-19, the volume of requests for paracetamol increased by more than 110%. Thus, the indication of its use as an anti-inflammatory drug, the lack of a prescription, and the ease in procuring it led, in some cases, to lethal consequences. AAP overdose remains the leading cause of death or transplantation due to acute liver failure in many parts of the world. The amount supplied to the patient is of utmost importance; an insufficient amount could prolong the treatment of a given condition and, even worse, too much could have adverse consequences for the patient’s health. Due to its easy availability without prescription, deliberate consumption or overdosage can happen. Overdoses of AAP are associated with liver toxicity and renal failure. Liver toxicity begins with AAP plasma levels in the range of 120 µgmL−1 4 h after ingestion, and severe damage occurs with plasma levels up to 200 µgmL−1 4 h after ingestion [8,9].
Many analytical methods have been used and proposed by the scientific community for the determination of AAP, both for pharmaceutical formulations and biological samples. Among them, chromatographic [10,11] and optical (UV-VIS) [12,13] methods are the most widely used. Other analytical methods, such as electrochemical [14,15], have been recently reported by the scientific community. These techniques are efficient in terms of reproducibility and low detection limits. However, in their chemical analysis process, sample preparation steps are carried out, lengthening the analysis time and making their use in the field difficult.
Vibrational spectroscopic techniques such as Raman spectroscopy and infrared spectroscopy have been frequently used for the analysis of active ingredients in pharmaceutical products [16,17]. Within the infrared, near-infrared spectroscopy has been widely used in pharmaceutical applications [18,19], especially for the determination of AAP in solid and liquid pharmaceutical formulations [20].
Some contributions that have made use of vibrational spectroscopy for the analysis of AAP are R. Szostak et al. [21] who proposed the determination of acetylsalicylic acid and acetaminophen in pharmaceuticals by partial least squares (PLS) and principal component regression (PCR) treatment of Fourier transform (FT)–Raman spectroscopic data. The proposed method was tested on powdered samples. The relative standard error of predictions (RSEPs) was calculated for both calibration and prediction datasets. These values ranged from 0.7% to 2.0% for the calibration set and from 0.8% to 2.3% for the prediction set across the different PLS models.
M. Khanmohammadi et al. [22] carried out a spectroscopy method based on Fourier transform near-infrared (FT-NIR) spectroscopy and chemometric techniques to classify paracetamol preparations according to polymorphic changes. These studies were carried out on standard samples and paracetamol preparations (acetaminophen tablets). M. Mallah et al. [23] developed a method for the quantification of paracetamol in solid formulations using transmission FTIR spectroscopy with KBr pellets. The spectral region of 1800–1000 cm−1 was utilized for the quantification of paracetamol content, achieving a regression coefficient (R2) of 0.999. The limits of detection and quantification using FTIR spectroscopy were 0.005 mg g−1 and 0.018 mg g−1, respectively. O. O. Oloyede. et al. [24] highlighted a screening methodology through the combination of spectroscopic (Raman/FTIR) and X-ray diffraction techniques with PCA as a predictive screening tool to investigate and verify latent chemical information of pharmaceutical solid drugs. The developed FTIR/Raman–PCA models present no evidence of drug falsification in 12 paracetamol brands but correlate similar brands based on characteristic vibrational and absorption modes of the API (AAP form I).
As technology advances, instruments can generate a large amount of information with multivariate data in a short time. This has led to advanced analysis tools being used to extract as much information as possible. Here, machine learning (ML) has played an important role when traditional chemometrics methods such as PCA yield unsatisfactory results.
ML is a subfield of artificial intelligence (AI) focused on programing computers to learn and improve automatically without explicit instructions. It leverages algorithms that analyze data and use the insights to make predictions and solve problems. ML solves problems in chemistry through the analysis of large datasets generated by analytical instruments and experiments. Models are built to understand the relationships between various chemical variables and to predict important properties or behaviors. Complexity is reduced by extracting relevant information from noisy or overwhelming data, and experimental design is improved while making data analysis more efficient [25,26].
ML is useful when the objective is to classify chemicals according to their brand, thus verifying whether a given product belongs to the manufacturer shown on the label. Some published studies are T. Chao et al. [27] who applied near-infrared (NIR) spectroscopy for the identification of six different brands of detergent powder. Both extreme learning machine (ELM) and its ensemble (EELM) were used for constructing predictive models. A total of 180 samples belonging to six different brands were prepared for the experiment. The model from the EELM algorithm achieved 100% accuracy on both the training and test sets, which was superior to the model from the ELM algorithm.
Z. Hongguang et al. [28] applied near-infrared (NIR) spectroscopy for the rapid classification of five different brands of washing powder. Chemometric calibrations, including partial least square discriminant analysis (PLS-DA), back propagation neural network (BP-NN), and least square support vector machine (LS-SVM), were investigated. Principal components (PCs) were extracted as inputs of BP-NN and LS-SVM models. As for the comparison of the three investigated models, both the BP-NN model and the LS-SVM model successfully classified all samples in the validation set according to their brands. However, the PLS-DA model failed to achieve 100% of classification accuracy.
When IR spectroscopy is used on poorly reflecting or very thick samples, there is inherently a significant loss of light if the source is not tightly focused, as in the case of a Globar, requiring a more complex array of optical components. In addition, the light source must be modulated by an interferometer to enable Fourier transform infrared spectroscopy (FTIR), which reduces the light output. The practical importance of brightness should not be overlooked in optical metrology, especially in spectroscopic measurements. The brightness of a light source directly affects the spectral power incident on the sample unit area. For mid-IR spectroscopy, this means that, according to the Beer–Lambert–Bouguer law, the light–matter interaction path lengths can be extended, preventing total light attenuation and allowing more molecules to be studied. However, these complications are circumvented with an MIR laser [29,30,31].
Quantum cascade laser (QCL) spectroscopy is a technique that uses quantum cascade lasers as a light source for infrared spectroscopy. Quantum cascade lasers are semiconductor lasers that emit in the mid- to far-infrared region of the electromagnetic spectrum. Unlike conventional lasers, which are based on electron-hole recombination, QCLs use intersubband transitions within the conduction band of a semiconductor material [32].
IR spectroscopy using traditional sources can have limited sensitivity for low-concentration impurities and APIs. This is due to the limited penetration depth in thick or highly scattering tablets. In contrast, quantum cascade laser spectroscopy can penetrate deeper into the sample, allowing analysis of API distribution and potential inhomogeneities within the tablet. QCL spectroscopy can offer higher sensitivity, allowing the detection and quantification of trace amounts of substances. This advantage is particularly beneficial when dealing with complex pharmaceutical formulations where overlapping spectra can be problematic [33].
The use of QCL spectroscopy firstly provides enhanced sensitivity and specificity through high intensity and narrow linewidth emission, resulting in laser source brightness several orders of magnitude higher than thermal emitters. This high specificity is essential for distinguishing between similar compounds and accurately identifying molecular species. Second, it provides wavelength tunability for selective and targeted analysis. Third, it gives an improved signal-to-noise ratio due to the QCL’s coherent, high-intensity output and rapid scanning capabilities for real-time monitoring. The mid-infrared spectra can be acquired up to 1000 times faster with the same detected light intensity, the same detector noise level, and without loss of SNR using the tunable quantum cascade laser compared to the FTIR approach using synchrotron or supercontinuum light. Finally, it presents a compact, robust, and efficient design suitable for portable and field applications [30,34].
This research will propose new methodological strategies that, when applied, would contribute to solving problems associated with the identification and classification of chemicals present in different matrices. Having an analytical method based on infrared spectroscopy for the detection of active pharmaceutical ingredients (in our case AAP) combined with ML is of interest to the pharmaceutical industry and law enforcement agencies. It allows easy and fast molecular information to be obtained to determine whether an API is present in a certain pharmaceutical product and whether it belongs to a brand declared on the label. Using the proposed method will make it possible to know whether the drug is present as a desired product or whether it is a counterfeit drug.

2. Results and Discussion

2.1. Infrared Spectra Analysis of AAP

Figure 1 shows the spectra of AAP. The spectra were taken using a back reflection geometry employing a LaserScan spectrophotometer. Figure 1A shows the IR spectra of tablets containing AAP as the sole API; additionally, it shows the spectra of standard (pure) AAP using QCL (black spectrum) and ATR-FTIR (red spectrum, in transmittance mode). The ATR-FTIR spectrum was used as a reference spectrum to validate the spectra from QCL. In Figure 1A, it can be observed that the spectra obtained with ATR-FTIR exhibit the characteristic IR vibrational bands of AAP when compared with the FTIR spectra from the literature [23,35,36,37]. Among the most important IR vibrational bands observed in Figure 1A are those for acetaminophen that appear as follows: 1562 cm−1 assigned to amide II (N-H in plane deformation), 1520 cm−1 for aryl C-H, C-H symmetric bends, 1454 cm−1 assigned to skeletal aryl C-C stretch, 1370 cm−1 for -CH3 (acetamino), 1330 cm−1 aligned al CC (phenyl ring), 1260 cm−1 and 1210 cm−1 related to C-O (phenol), 1170 cm−1 associated with C-H (phenyl ring), and 1035 cm−1 and 1010 cm−1 linked to C-H aromatic.
In the solid formulation of acetaminophen, substances other than APIs are used for various purposes and are called excipients. The excipients commonly used for formulation are lactose, magnesium stearate, starch, and microcrystalline cellulose. These are added in different proportions and vary from product to product. Figure 1B shows mid-infrared spectra of pharmaceutical tablets from different laboratories in the spectral range 990–1600 cm−1. These tablets are solid mixtures containing various APIs (as shown in Table 1) and excipients. However, it is noticeable that, for the most part, the IR vibrational spectra depicted in Figure 1A,B are very similar to the IR spectra of standard APIs shown in Figure 1A; therefore, characteristic signals of acetaminophen can be observed in the spectra illustrated in Figure 1A,B.
Visual analysis of the spectra in Figure 1B allows the identification of IR bands in addition to those shown in Figure 1A. These bands belong to the additional APIs found in the solid tablet. Some IR signals of other APIs present are ibuprofen and caffeine (1420 cm−1, 1380 cm−1, 1360 cm−1, 1180 cm−1, and 1090 cm−1) from Lafrancol [38,39,40], codeine (1264 cm−1, 1250 cm−1, and 1457 cm−1) from Sanofi [41], tramadol (1080 cm−1 and 1180 cm−1) in Grunenthal [42], and guaifenesin and phenylephrine (1058 cm−1, 1069 cm−1, 1132 cm−1, 1380 cm−1, and 1460 cm−1) from Tylenol [43]. Additionally, there appears to be no significant interference caused by the excipient. This establishes that the method is practical without carrying out more laborious sample preparation processes such as extraction, thus allowing direct identification of the brand.

2.2. Spectral Identification

A useful tool widely used by the analyst for identifying an unknown sample is the use of spectral search. This consists of comparing a spectrum of an unknown sample against a reference spectrum from a database (library). To perform this comparison, each data point in the unknown spectrum is compared to each corresponding point in the reference spectrum. For the spectral search, first, the IR spectrum of the unknown sample is obtained. Next, the obtained spectrum is then compared to spectra in a spectral database. Finally, spectral searching algorithms analyze the fit between an unknown spectrum and the library spectra (by Peak Matching and Peak Intensity). A spectral library (database) is, in essence, a collection of reference spectra for a variety of known materials.
Different mathematical formulas (search algorithms) can be used to compare two spectra point by point. Some of the most common similarity-based search algorithms include Euclidean distance and Pearson correlation coefficient [44]. The spectral correlation coefficient (SCC) is useful for tasks such as compound identification, assessing the quality of spectral data, and comparing experimental results with reference spectra by providing a quantitative measure of the similarity or dissimilarity between spectra. It ranges from −1 to 1, where a value of 1 indicates perfect correlation, meaning that the spectra are identical or very similar. A value of −1 indicates perfect anti-correlation, meaning that the spectra are mirror images of each other, and a value close to 0 indicates little or no correlation between the spectra. The SCC generates a numerical metric (hit quality value—HQV) that indicates how well an unknown material’s spectrum matches a reference spectrum in the spectral library [45].
Table 2 displays the HQV values obtained when comparing the spectrum of a tablet containing AAP from different brands with those from the spectral library using the Pearson correlation coefficient algorithm (r) as shown in Equation (1). The spectral library is a collection of different infrared vibrational spectra of AAP tablets of different brands described in Table 1 using QCL spectroscopy. It also contains the spectrum of pure AAP.
r = A i A ¯ B i B ¯ A i A ¯ 2 B i B ¯ 2
where A indicates the library (reference) spectrum and B indicates a test spectrum of the samples, i denotes the intensity of the ith data point (wavenumber), and A ¯ and B ¯ designate the average intensity of the A and B spectra, respectively. To evaluate an unknown spectrum based on its HQV, the following considerations must be taken into account. A high HQV (above 0.9) suggests a good match between the unknown and reference spectra. It is a strong indication that the unknown material is likely the same or very similar to the reference material. A medium HQV (around 0.7–0.9) indicates a good possibility that the unknown material matches the reference, but further confirmation might be needed. Finally, with a low HQV (below 0.7), the match between the unknown and reference spectra is weak [45].
The HQV values shown in Table 2 indicate that the ability to identify the AAP tablet according to its brand depends largely on the composition of the tablet. For brands containing more than one API, brand identification using the spectral library is possible; these have HQV close to 1 (greater than or equal to 0.98). Examples of these are the brands LaFrancol, Grunenthal, and Tylenol. Although the Sanofi brand has another API (Codeine phosphate), the concentration of this (30 mg) is perhaps much lower compared to that of AAP (500 mg). As a result, its HQV (around 0.9) is very similar to other brands containing only AAP, such as Lasante, Best, Genfar, AG, MK, Perrigo, and GSK. When tablets present only AAP with API, according to Table 1, the brand classification by spectral search is much more challenging. Based on an HQV greater than or equal to 0.95 (numbers in red) for spectral identification, Lasente has very similar HQVs to Best, Genfar, and Perrigo. Best is very similar to Lasente, AG, and MK. Genfar can be classified as Lasante, Perrigo, and MK. AG can be branded as Best and MK. MK can be identified as Best and AG. Finally, GSK will be classified as Genfar and Perrigo.
Considering the limited efficiency of spectral identification by the spectral library for the classification of AAPs according to their brands, it is necessary to explore advanced data analysis techniques such as ML.

2.3. Machine Learning Analysis

The initial dataset underwent preprocessing to enhance the outcomes. One preprocessing method employed was the first derivative, essential for accentuating specific peaks in the spectrum and achieving improved discrimination between various samples. Another preprocessing technique utilized was the standard normal variance (SNV), which facilitated the normalization of mean values and standardized variance to 1.

2.3.1. Principal Component Analysis

PCA is a powerful technique used in data analysis, particularly for reducing the dimensionality of datasets while preserving crucial information. PCA analyzes the covariance matrix to identify eigenvectors and eigenvalues. Eigenvectors represent the directions of greatest variance in the data, and eigenvalues indicate the amount of variance explained by each eigenvector. The eigenvectors with the highest eigenvalues are chosen as the principal components (PCs). These PCs represent the new axes that capture the most significant information in the data. The original data points are then projected onto these new PCs, creating a lower-dimensional representation of the data.
Figure 2 shows the score plot. The score plot is a crucial visual representation used in PCA. The score plot displays the data points from the original high-dimensional dataset projected onto the new, lower-dimensional space created by the PCs. Each data point is represented by a dot in the plot, and its co-ordinates correspond to its scores on the chosen PCs. Typically, the first two or three PCs are used for visualization, as they capture the most significant variance in the data [46]. Figure 2 shows that PCA explains 87.7% of the variance. In this diagram, samples containing AAP as the only API are represented by dots, while those with multiple APIs are denoted by crosses. The diagram prominently showcases the grouping of samples from MK, Grunenthal, Perrigo, Lafrancol, and Tylenol laboratories, while the remaining samples are not distinctly separated, rendering them indistinguishable from one another. Additionally, the tested samples can be classified in two ways: firstly, based on their concentration (250 mg, 325 mg, 500 mg, and 650 mg) and, secondly, based on the presence or absence of additional components different from acetaminophen (such as ibuprofen, codeine, tramadol, guaifenesin, and phenylephrine), as shown in Table 1. Upon analyzing the Score diagram, it becomes apparent that the PCA method primarily attempts to classify the samples based on concentration, resulting in the formation of two distinct groups. One group comprises samples with a concentration of 500 mg, located in the grouping’s borders (AG, Best, Genfar, GSK, Lasante, MK, and Sanofis), which happens to be the most prevalent concentration among the samples, while the other group consists of samples with concentrations different than 500 mg located in the center of the grouping (Perrigo, Grunenthal, Lafrancol, and Tylenol). However, this form of classification fails to adequately distinguish the components of the GSK and MK laboratories, as their samples are placed near the group with concentrations different from 500 mg. Moreover, samples with multiple APIs tend to be clustered by the PCA model with three PCs, as observed with the well-grouped brands Sanofi, Lafrancol, Grunenthal, and Tylenol.
Similar to the results obtained for spectral identification, distinguishing between samples from different laboratories, even when the samples only contain acetaminophen, is not achievable.

2.3.2. Analysis of Machine Learning Using SVC, DTC, and ANN

Considering the limited results when spectral search and PCA are used in the identification of AAP tablets by brands, more robust machine learning analyses were considered. Machine learning techniques such as SVC, DTC, and ANN were used to evaluate the capability of these unsupervised learning algorithms. This algorithm analyzes unlabeled data, identifying patterns and structures within the data themselves, to achieve high levels of accuracy in differentiating between tablets containing AAP as a single API from different brands.
An important step in ML is the setting of hyperparameters. The performance of ML models is directly influenced by hyperparameters. Choosing the right hyperparameters can have a significant impact on the effectiveness, efficiency, and robustness of the models deployed. This setting is unique for each analysis you wish to perform and depends on the specific dataset and its characteristics, the type of machine learning algorithm used, and the desired performance metrics [26,47,48,49].
Table 3 presents the cross-validation results for each method, illustrating the examined values for every hyperparameter. Subsequent results will be obtained by configuring each method with the values specified in Table 3. This sequential approach ensures a thorough exploration of hyperparameter settings, thereby enhancing the understanding of the model’s performance.
A useful tool for evaluating the effectiveness of classification models in ML is the confusion matrix (CM). A CM is a table used to evaluate the performance of a classification algorithm in machine learning. Each cell of the table shows the number of data points that belong to a specific combination of actual and predicted classes. The performance of a model can be visualized by comparing predicted classes with true classes. The confusion matrix provides a summary of the number of correct and incorrect predictions made by the model from SVC, DTC, and ANN [25,47].
In Figure 3, the confusion matrix is depicted, offering a straightforward and visual method to evaluate the performance for each class among SVC, DTC, and ANN methods. It is evident from this matrix that SVC showcases the most robust performance, with only 1 error detected out of 50 test samples. ANN also presents promising results, with a mere two errors. However, the performance of DTC was comparatively less favorable, with 16 errors identified.
Using ML algorithms such as SVC and ANN, it is possible to differentiate between brands with AAP as the only API. These results overcome the limitations encountered when spectral search and PCA are used as tools to identify AAP tables by brands. Across all three ML algorithms, distinguishing between samples from BEST and Genfar laboratories proves to be somewhat challenging. However, when SVC and ANN are employed, these brands can be identified with high accuracy when compared to DTC. An error for ANN occurred between a sample with mere acetaminophen (AG) and another with additional components (Sanofis). Notably, Sanofis contains APP 500 mg and is the brand with the sample containing a lower concentration of additional API (30 mg of codeine phosphate). Probably Sanofi, having the same concentration of AAP as AG, presents spectral similarity as indicated by the HQV values in Table 2. In the case of DTC, most errors resulted from misclassifying samples containing only acetaminophen (9 out of 16 errors). Overall, all three methods effectively differentiate between samples with acetaminophen as a single API and those with additional components. This underscores the efficacy of machine learning methods for detecting pharmaceutical samples according to their manufacturer.
To evaluate the model’s performance, precision (Pr), recall (Rc), specificity (Es), F1-score (Fs), and accuracy (Ac) metrics were employed. These metrics, commonly utilized for assessing classification problems, have been demonstrated in various studies [48,49,50]. They are defined in Equations (2)–(6), where true positive (TP) signifies instances where the model correctly identifies positive outcomes, while true negative (TN) denotes correct identification of negative outcomes. False positive (FP) indicates instances where the model erroneously identifies a negative outcome as positive, and false negative (FN) represents erroneous identification of a positive outcome as negative. Through a comprehensive analysis of these metrics within the confusion matrix, the model’s performance and predictive accuracy can be thoroughly evaluated.
P r = T P T P + F P
R c = T P T P + F N
E s = T N T N + F P
F s = 2 × P r × R c P r + R c
A c = T P + T N T P + T N + F P + F N
The Pr assesses the accuracy of positive predictions, while Rc measures the model’s ability to capture all relevant instances. Es gauges the model’s ability to correctly identify negative instances. Fs is the harmonic mean of precision and offers a balanced assessment. The Ac is the ratio of correctly predicted instances to the total instances, providing an overall measure of the model’s correctness.
In Figure 4, the averages of the main metrics used to evaluate the performance of the classification problem are illustrated. Remarkable accuracy has been achieved in classifying acetaminophen samples. Both support vector classification (SVC) and artificial neural network (ANN) methods have demonstrated high effectiveness, with precision, recall, and F1-score metrics generally either perfect or near perfection. Remarkably, the accuracy (Ac) for all three methods exceeds 94%, underscoring the robustness of the classification results (see Figure 4). Although decision tree classification (DTC) exhibits slightly lower performance compared to SVC and ANN, it still maintains a notable capability to classify samples accurately. These findings collectively suggest that machine learning models can effectively distinguish between acetaminophen samples, holding significant implications for ensuring product quality and authenticity within the pharmaceutical industry and of interest to law enforcement agencies.

3. Materials and Methods

To create our sensor based on mid-infrared spectroscopic data and ML for direct detection and classification of acetaminophen tablets according to their brand, the following methodology was used.

3.1. Sample and Standard Acquisition

The reagents used in this study correspond to standards and samples. Pure analytical-grade acetaminophen purchased from Sigma-Aldrich (Milwaukee, WI, USA) was used as a standard to obtain the reference mid-infrared vibrational spectrum of AAP. Solid tablet formulations containing AAP as API were used as samples. These samples were obtained from local drugstores in Cartagena–Colombia, Puerto Rico, and Mexico. The acquired samples containing AAP were from different manufacturing laboratories (brands) as shown in Table 1. In total, 15 tablets of AAP were purchased by brand, for a total of 165 samples in the 11 brands tested. These were purchased from different drugstores and dates to ensure different batch manufacturing dates.

3.2. Sample Preparation

No wet chemistry was used for sample preparation in this study. The only step involved was the pulverization of a small portion of the solid pharmaceutical samples in a mortar to reduce the particle size of the sample. If the tablet had a coating, it was removed before pulverizing.

3.3. Acquisition of Spectra

Spectroscopy based on quantum cascade lasers (QCL) was used to obtain the mid-infrared (MIR) vibrational spectra of AAP. Infrared spectra of AAP from commercial tablets, as well as spectra taken from the solid AAP standard were recorded using the spectrometer LaserScanTM from Block Engineering (900–1600 cm−1, Marlborough, MA, USA), 4 mm × 2 mm beam, thermoelectrically cooled Hg-Cd-Te (MCT) detector. The system was designed to operate in back reflection mode (at zero angle concerning the surface normal, as shown in Figure 5B.
MIR spectra were recorded at a distance of 6 in. from pulverized sample at 4 cm−1 resolution and 2 Co-add. The background spectra were obtained using flat and clean Al substrates (31 mm × 31 mm). One spectrum was taken for each sample, for a total of 15 spectra per brand. Thus, 165 independent spectra were obtained. All spectra were stored in Thermo-Galactic™ SPC format (Thermo Fisher Scientific, Inc., Waltham, MA, USA).

3.4. Machine Learning Analysis

The spectra obtained were subjected to machine learning analysis such as principal component analysis (PCA), support vector classification (SVC), decision tree classifier (DTC), and artificial neural network (ANN) with several preprocessing steps. Both data processing and preprocessing stages leveraged the scikit-learn machine learning library for Python [51]. The library’s StandardScaler function was instrumental for SNV, implementing a mean centering algorithm during preprocessing. Consequently, the data were rescaled by subtracting the mean and dividing by the standard deviation [25].
Table 4 presents the chosen hyperparameters for the hyperparameter optimization of SVC, DTC, and ANN models. The selected hyperparameter values were determined based on commonly used settings in similar investigations [52,53]. The ultimate optimal values for each hyperparameter were determined through cross-validation, employing a grid search approach.
The entire dataset underwent a random splitting strategy, allocating 70% for training and reserving the remaining 30% for testing purposes. During the cross-validation process, the samples were further partitioned into 5 groups using the KFold method. In KFold cross-validation, the dataset is divided into ‘k’ folds or subsets, and the model is trained ‘k’ times, each time using a different fold as the testing set and the remaining folds as the training set. This iterative process ensures a comprehensive evaluation of the model’s performance across different subsets of the data, promoting robustness and reliability in the assessment.
Figure 5 shows the experimental setup used in this research, summarizing the steps performed in this research: (Figure 5A) Step I, sample selection and preparation; (Figure 5B) Step II, QCL detection; (Figure 5C) Step III, vibrational spectra; and (Figure 5D) Step IV, classification by ML.

4. Conclusions

This study successfully developed a method for identifying and classifying acetaminophen tablets according to their brand using QCL-based mid-infrared spectroscopy and machine learning. The proposed methodology offers a promising solution for quality control and brand authentication in the pharmaceutical industry and law enforcement agencies for counterfeit detection. Spectral identification using a spectral library showed limitations in differentiating between brands, particularly for tablets containing AAP as the single API. PCA analysis was able to partially group samples based on concentration but struggled to distinguish between brands of AAP tablets containing only AAP. Machine learning models, specifically SVC and ANN, achieved high accuracy in classifying AAP tablets according to their brand, even for brands containing mere AAP. Confusion matrix analysis revealed that SVC had the most robust performance with only one error, followed by ANN with two errors. DTC exhibited lower accuracy with 16 errors but it effectively differentiated between samples with and without additional APIs. This research demonstrates the effectiveness of ML models in combination with mid-infrared spectroscopy for brand identification of AAP tablets. Using this approach to distinguish between brands offers significant advantages for quality control, brand authentication, and potentially law enforcement applications. Further research could explore the extension of this methodology to other pharmaceutical products and brands, as well as the integration of additional analytical techniques to enhance classification accuracy.

Author Contributions

Conceptualization, J.A.M.-T., D.E.P.-H., T.Y.F.-M. and J.R.C.-S.; methodology, J.A.M.-T., S.P.H.-R. and J.R.C.-S.; validation, J.H.-F., F.C.-C. and J.R.C.-S.; formal analysis, J.A.M.-T., D.E.P.-H. and J.R.C.-S.; investigation, T.Y.F.-M., S.P.H.-R., J.H.-F., F.C.-C. and J.R.C.-S.; writing—original draft preparation, J.A.M.-T., D.E.P.-H., T.Y.F.-M. and J.R.C.-S.; writing—review and editing, S.P.H.-R., J.H.-F., F.C.-C. and J.R.C.-S.; supervision, S.P.H.-R. and J.R.C.-S.; project administration, S.P.H.-R. and J.R.C.-S.; funding acquisition, S.P.H.-R. and J.R.C.-S. All authors have read and agreed to the published version of the manuscript.

Funding

This material is based upon work supported by the US Department of Homeland Security under Grant Awards 22STESE00001-02-00 and 21-CWDARI 00042-01-00 Science and Technology Directorate, Office of University Programs. The views and conclusions contained in this document are those of the authors. They should not be interpreted as necessarily representing the official policies, either expressed or implied, of the US Department of Homeland Security. Additional support from the US Department of Agriculture, National Institute of Food and Agriculture award # 2022-77040-37623 is also acknowledged.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Dataset available on request from the authors.

Acknowledgments

The authors would like to extend their gratitude to Minciencias-Colombia for the doctoral scholarship awarded through the Bicentennial Doctoral Excellence Scholarship Program. The support provided has been crucial in enabling the pursuit of research activities. The Universidad del Sinú is also grateful by the financial support to the BASEX-PD/2024 project.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. FDA. Counterfeit Medicine. Available online: http://www.fda.gov/Drugs/ResourcesForYou/Consumers/BuyingUsingMedicineSafely/CounterfeitMedicine/ (accessed on 2 February 2024).
  2. Pathak, R.; Gaur, V.; Sankrityayan, H.; Gogtay, J. Tackling Counterfeit Drugs: The Challenges and Possibilities. Pharm. Med. 2023, 37, 281–290. [Google Scholar] [CrossRef]
  3. World Health Organization. Health and Well-Being. Available online: https://www.who.int/data/gho/data/major-themes/health-and-well-being (accessed on 1 March 2023).
  4. El-Dahiyat, F.; Fahelelbom, K.M.S.; Jairoun, A.A.; Al-Hemyari, S.S. Combatting Substandard and Falsified Medicines: Public Awareness and Identification of Counterfeit Medications. Front. Public Health 2021, 9, 754279. [Google Scholar] [CrossRef] [PubMed]
  5. World Health Organization. 1 in 10 Medical Products in Developing Countries is Substandard or Falsified. Available online: https://www.who.int/news/item/28-11-2017-1-in-10-medical-products-in-developing-countries-is-substandard-or-falsified (accessed on 28 November 2017).
  6. Ziavrou, K.S.; Noguera, S.; Boumba, V.A. Trends in counterfeit drugs and pharmaceuticals before and during COVID-19 pandemic. Forensic Sci. Int. 2022, 338, 111382. [Google Scholar] [CrossRef] [PubMed]
  7. Srivastava, K. Fake covid vaccines boost the black market for counterfeit medicines. BMJ 2021, 375, 2754. [Google Scholar] [CrossRef]
  8. Caragea, G.; Avram, O.; Pauna, A.; Costea, A.; Tudosie, M. Acetaminophen, a therapeutic or an extremely toxic remedy—A review. J. Mind Med. Sci. 2022, 9, 102–110. [Google Scholar] [CrossRef]
  9. Vaughan, J.B. Colorimetric Determination of Acetaminophen. J. Pharm. Sci. 1969, 58, 469–470. [Google Scholar] [CrossRef]
  10. Arıkan, C.C.; Kulabaş, N.; Küçükgüzel, İ. Synthesis and standardization of an impurity of acetaminophen, development and validation of liquid chromatographic method. J. Pharm. Biomed. Anal. 2023, 223, 115123. [Google Scholar] [CrossRef]
  11. Ismail, A.; Gamal, M.; Nasr, M. Optimization of Analytical Method for Simultaneous Determination of Acetaminophen, Caffeine, and Aspirin in Tablet Dosage Form. Pharm. Chem. J. 2023, 56, 12. [Google Scholar] [CrossRef]
  12. Gupta, R.N.; Pickersgill, R.; Stefanec, M. Colorimetric determination of acetaminophen. Clin. Biochem. 1983, 16, 220–221. [Google Scholar] [CrossRef]
  13. Saeed, A.M. Spectrophotometric Determination of Paracetamol in Some Manufactured Tablets in Iraqi markets. Int. J. Pharm. Sci. Rev. Res. 2017, 42, 53–57. [Google Scholar]
  14. Magerusan, L.; Pogacean, F.; Pruneanu, S. Enhanced Acetaminophen Electrochemical Sensing Based on Nitrogen-Doped Graphene. Int. J. Mol. Sci. 2022, 23, 14866. [Google Scholar] [CrossRef] [PubMed]
  15. Vazan, M.; Tashkhourian, J.; Haghighi, B. A novel electrochemical sensor based on MoO3 nanobelt-graphene oxide composite for the simultaneous determination of paracetamol and 4-aminophenol. Diam. Relat. Mater. 2023, 140, 110549. [Google Scholar] [CrossRef]
  16. Wartewig, S.; Neubert, R.H.H. Pharmaceutical applications of Mid-IR and Raman spectroscopy. Adv. Drug Deliv. Rev. 2005, 57, 1144–1170. [Google Scholar] [CrossRef] [PubMed]
  17. Roggo, Y.; Chalus, P.; Maurer, L.; Lema-Martinez, C.; Edmond, A.; Jent, N. A review of near infrared spectroscopy and chemometrics in pharmaceutical technologies. J. Pharm. Biomed. Anal. 2007, 44, 683–700. [Google Scholar] [CrossRef] [PubMed]
  18. Scappaticci, C.; Spera, S.; Biancolillo, A.; Marini, F. Detection and Quantification of Alprazolam Added to Long Drinks by Near Infrared Spectroscopy and Chemometrics. Molecules 2022, 27, 6420. [Google Scholar] [CrossRef]
  19. Shi, G.; Lin, L.; Liu, Y.; Chen, G.; Luo, Y.; Wu, Y.; Li, H. Pharmaceutical application of multivariate modelling techniques: A review on the manufacturing of tablets. RSC Advances 2021, 11, 8323–8345. [Google Scholar] [CrossRef] [PubMed]
  20. Ziémons, E.; Mantanus, J.; Lebrun, P.; Rozet, E.; Evrard, B.; Hubert, P. Acetaminophen determination in low-dose pharmaceutical syrup by NIR spectroscopy. J. Pharm. Biomed. Anal. 2010, 53, 510–516. [Google Scholar] [CrossRef]
  21. Szostak, R.; Mazurek, S. Quantitative determination of acetylsalicylic acid and acetaminophen in tablets by FT-Raman spectroscopy. Analyst 2001, 127, 144–148. [Google Scholar] [CrossRef] [PubMed]
  22. Khanmohammadi, M.; Garmarudi, A.B.; Moazzen, N.; Ghasemi, K. Qualitative Discrimination Between Paracetamol Tablets Made by Near Infrared Spectroscopy and Chemometrics With Regard to Polymorphism. J. Struct. Chem. 2010, 51, 663–669. [Google Scholar] [CrossRef]
  23. Mallah, M.A.; Sherazi, S.T.H.; Bhanger, M.I.; Mahesar, S.A.; Bajeer, M.A. A rapid Fourier-transform infrared (FTIR) spectroscopic method for direct quantification of paracetamol content in solid pharmaceutical formulations. Spectrochim. Acta Part A Mol. Biomol. Spectrosc. 2015, 141, 64–70. [Google Scholar] [CrossRef]
  24. Oloyede, O.O.; Alabi, Z.O.; Akinyemi, A.O.; Oyelere, S.F.; Oluseye, A.B.; Owoyemi, B.C.D. Comparative evaluation of acetaminophen form (I) in commercialized paracetamol brands. Sci. Afr. 2023, 19, e01537. [Google Scholar] [CrossRef]
  25. Mokari, A.; Guo, S.; Bocklitz, T. Exploring the Steps of Infrared (IR) Spectral Analysis: Pre-Processing, (Classical) Data Modelling, and Deep Learning. Molecules 2023, 28, 6886. [Google Scholar] [CrossRef] [PubMed]
  26. Ramirez, C.A.M.; Greenop, M.; Ashton, L.; Rehman, I.U. Applications of machine learning in spectroscopy. Appl. Spectrosc. Rev. 2020, 56, 733–763. [Google Scholar] [CrossRef]
  27. Tan, C.; Chen, H.; Lin, Z. Brand classification of detergent powder using near-infrared spectroscopy and extreme learning machines. Microchem. J. 2021, 160, 105691. [Google Scholar] [CrossRef]
  28. Zhang, H.; Yang, Q.; Lu, J. Classification of washing powder brands using near-infrared spectroscopy combined with chemometric calibrations. Spectrochim. Acta Part A Mol. Biomol. Spectrosc. 2014, 120, 625–629. [Google Scholar] [CrossRef] [PubMed]
  29. Carrión-Roca, W.; Colón-Mercado, A.M.; Castro-Suarez, J.R.; Caballero-Agosto, E.R.; Colón-González, F.M.; Centeno-Ortiz, J.A.; Ríos-Velázquez, C.; Hernández-Rivera, S.P. Chemical sensing of common microorganisms found in biopharmaceutical industries using MIR laser spectroscopy and multivariate analysis. J. Biophotonics 2024, 17, e202300391. [Google Scholar] [CrossRef] [PubMed]
  30. Zorin, I.; Gattinger, P.; Ebner, A.; Brandstetter, M. Advances in mid-infrared spectroscopy enabled by supercontinuum laser sources. Opt. Express 2022, 30, 5222. [Google Scholar] [CrossRef]
  31. Mayerhöfer, T.G.; Popp, J. Beer’s Law—Why Absorbance Depends (Almost) Linearly on Concentration. ChemPhysChem 2019, 20, 511–515. [Google Scholar] [CrossRef]
  32. Faist, J.; Capasso, F.; Sivco, D.L.; Sirtori, C.; Hutchinson, A.L.; Cho, A.Y. Quantum Cascade Laser. Science 1994, 264, 553–556. [Google Scholar] [CrossRef]
  33. Plata-Enríquez, J.L.; Puche-Mercado, J.F.; Palmer-Velázquez, S.; Carrión-Roca, W.; Colón-González, F.M.; Hernández-Rivera, S.P. Analytical Method Development Using Quantum Laser Cascade Spectroscopy with Diffuse and Attenuated Total Reflectance for Determining Low Concentrations of Active Pharmaceutical Ingredients. Austin J. Anal. Pharm. Chem. 2023, 10, 1157. [Google Scholar] [CrossRef]
  34. Childs, D.T.D.; Hogg, R.A.; Revin, D.G.; Rehman, I.U.; Cockburn, J.W.; Matcher, S.J. Sensitivity Advantage of QCL Tunable-Laser Mid-Infrared Spectroscopy Over FTIR Spectroscopy. Appl. Spectrosc. Rev. 2015, 50, 822–839. [Google Scholar] [CrossRef]
  35. Moynihan, H.A.; O’Hare, I.P. Spectroscopic characterisation of the monoclinic and orthorhombic forms of paracetamol. Int. J. Pharm. 2002, 247, 179–185. [Google Scholar] [CrossRef]
  36. Amado, A.M.; Azevedo, C.; Ribeiro-Claro, P.J.A. Conformational and vibrational reassessment of solid paracetamol. Spectrochim. Acta Part A Mol. Biomol. Spectrosc. 2017, 183, 431–438. [Google Scholar] [CrossRef] [PubMed]
  37. Zapata, F.; López-Fernández, A.; Ortega-Ojeda, F.; Quintanilla, G.; García-Ruiz, C.; Montalvo, G. Introducing ATR-FTIR Spectroscopy through Analysis of Acetaminophen Drugs: Practical Lessons for Interdisciplinary and Progressive Learning for Undergraduate Students. J. Chem. Educ. 2021, 98, 2675–2686. [Google Scholar] [CrossRef]
  38. Matkovic, S.R.; Valle, G.M.; Galle, M.; Briand, L.E. Desarrollo y validación del análisis cuantitativo de Ibuprofeno en comprimidos por espectroscopía infrarroja. Acta Farm. Bonaer. 2004, 23, 527–532. [Google Scholar]
  39. Galán-Freyle, N.J.; Pacheco-Londoño, L.C.; Román-Ospino, A.D.; Hernández-Rivera, S.P. Applications of Quantum Cascade Laser Spectroscopy in the Analysis of Pharmaceutical Formulations. Appl. Spectrosc. 2016, 70, 1511–1519. [Google Scholar] [CrossRef] [PubMed]
  40. Abdalla, M.A. Determination of Caffeine, the Active Ingredient in Different Coffee Drinks and its Characterization by FTIR/ATR and TGA/DTA. Int. J. Eng. Appl. Sci. 2015, 2, 257765. [Google Scholar]
  41. Bakalska, R.; Ivanova, B.; Kolev, T. Solid-state IR-LD spectroscopy of codeine and N-norcodeine derivatives. Open Chem. 2006, 4, 533–542. [Google Scholar] [CrossRef]
  42. Arjunan, V.; Santhanam, R.; Marchewka, M.K.; Mohan, S. Comprehensive quantum chemical and spectroscopic (FTIR, FT-Raman, 1H, 13C NMR) investigations of O-desmethyltramadol hydrochloride an active metabolite in tramadol—An analgesic drug. Spectrochim. Acta Part A Mol. Biomol. Spectrosc. 2014, 122, 315–330. [Google Scholar] [CrossRef]
  43. Deepak, S.N.; Hari, B.N.V. Optimization, Development and evaluation of Microemulsion for the release of combination of Guaifenesin and Phenylephrine. J. Appl. Pharm. Sci. 2013, 3, 48–56. [Google Scholar] [CrossRef]
  44. Lee, S.; Lee, H.; Chung, H. New discrimination method combining hit quality index based spectral matching and voting. Anal. Chim. Acta 2013, 758, 58–65. [Google Scholar] [CrossRef]
  45. ASTM E2310-04; Standard Guide for Use of Spectral Searching by Curve Matching Algorithms with Data Recorded Using Mid-Infrared Spectroscopy. ASTM International: West Conshohocken, PA, USA, 2009. [CrossRef]
  46. Beattie, J.R.; Esmonde-White, F.W.L. Exploration of Principal Component Analysis: Deriving Principal Component Analysis Visually Using Spectra. Appl. Spectrosc. 2021, 75, 000370282098784. [Google Scholar] [CrossRef] [PubMed]
  47. Mijwil, M.M.; Aljanabi, M. A Comparative Analysis of Machine Learning Algorithms for Classification of Diabetes Utilizing Confusion Matrix Analysis. Baghdad Sci. J. 2023, 21, 1712–1728. [Google Scholar] [CrossRef]
  48. Ananey-Obiri, D.; Sarku, E. Predicting the Presence of Heart Diseases using Comparative Data Mining and Machine Learning Algorithms. Int. J. Comput. Appl. 2020, 176, 17–21. [Google Scholar] [CrossRef]
  49. Sitorus, A.; Lapcharoensuk, R. A rapid method to predict type and adulteration of coconut milk by near-infrared spectroscopy combined with machine learning and chemometric tools. Microchem. J. 2023, 195, 109461. [Google Scholar] [CrossRef]
  50. Tachie, C.Y.E.; Obiri-Ananey, D.; Alfaro-Cordoba, M.; Tawiah, N.A.; Aryee, A.N.A. Classification of oils and margarines by FTIR spectroscopy in tandem with machine learning. Food Chem. 2024, 431, 137077. [Google Scholar] [CrossRef] [PubMed]
  51. Pedregosa, F.; Buitinck, L.; Louppe, G.; Grisel, O.; Varoquaux, G.; Mueller, A. Scikit-learn. GetMobile Mob. Comput. Commun. 2015, 19, 29–33. [Google Scholar] [CrossRef]
  52. Trespalacios, J.A.M.; Suarez, J.R.C.; Fernández, J.H. Application of Fourier Transform Spectroscopy and Machine Learning to Determine Green Ethylene Content in Samples of Ethylene-Propylene Impact Copolymers. J. Southwest Jiaotong Univ. 2023, 58. [Google Scholar] [CrossRef]
  53. Carrera, B.; Piñol, V.L.; Mata, J.B.; Kim, K. A machine learning based classification models for plastic recycling using different wavelength range spectrums. J. Clean. Prod. 2022, 374, 133883. [Google Scholar] [CrossRef]
Figure 1. IR spectra of acetaminophen (AAP) using QCL spectroscopy; the vertical dashed lines represent the locations of the main bands. (A) Spectra of AAP in different brands containing AAP as the only API. (B) Spectra of AAP in different brands containing AAP and other APIs.
Figure 1. IR spectra of acetaminophen (AAP) using QCL spectroscopy; the vertical dashed lines represent the locations of the main bands. (A) Spectra of AAP in different brands containing AAP as the only API. (B) Spectra of AAP in different brands containing AAP and other APIs.
Molecules 29 03562 g001
Figure 2. Score plot with 3 principal components using IR spectra of AAP in different brands. The dots marked with a cross represent samples with more than one API, while the dots marked with a circle represent samples with just one API.
Figure 2. Score plot with 3 principal components using IR spectra of AAP in different brands. The dots marked with a cross represent samples with more than one API, while the dots marked with a circle represent samples with just one API.
Molecules 29 03562 g002
Figure 3. Confusion matrices for the test data in the classification of (A) SVC, (B) DTC, and (C) ANN.
Figure 3. Confusion matrices for the test data in the classification of (A) SVC, (B) DTC, and (C) ANN.
Molecules 29 03562 g003
Figure 4. Average performance metrics for classification models’ predictive testing.
Figure 4. Average performance metrics for classification models’ predictive testing.
Molecules 29 03562 g004
Figure 5. Experimental setup: analyte detection using spectroscopy. (A) Sample preparation, (B) QCL detection, (C) spectral analysis, and (D) ML analysis.
Figure 5. Experimental setup: analyte detection using spectroscopy. (A) Sample preparation, (B) QCL detection, (C) spectral analysis, and (D) ML analysis.
Molecules 29 03562 g005
Table 1. Composition of tablet of AAP according to its commercial brand.
Table 1. Composition of tablet of AAP according to its commercial brand.
CountryAPIs PresentBrand
ColombiaAcetaminophen 500 mgAG
ColombiaAcetaminophen 500 mgBest
ColombiaAcetaminophen 500 mgGenfar
Puerto RicoAcetaminophen 500 mgGSK
ColombiaAcetaminophen 500 mgLa Sante
MexicoAcetaminophen 650 mgPerrigo
ColombiaAcetaminophen 500 mgMK
ColombiaAcetaminophen 325 mgGrunenthal
Tramadol 37.5 mg
ColombiaAcetaminophen 250 mgLa Francol
Ibuprofen 400 mg
Caffeine 65 mg
ColombiaAcetaminophen 500 mgSanofis
Codeine phosphate 30 mg
Puerto RicoAcetaminofén 325 mgTylenol
Guaifenesin 200 mg
Phenylephrine HCl 5 mg
Table 2. HQV values for AAP spectra of different brands using the Pearson correlation coefficient algorithm.
Table 2. HQV values for AAP spectra of different brands using the Pearson correlation coefficient algorithm.
TylenolSanofiLafrancolGrunenthalMKPerrigoLasanteGSKGenfarBestAGSpectral Library
0.890.910.500.660.890.960.980.930.960.970.93Lasante
0.900.930.590.790.960.950.970.930.920.970.98Best
0.870.900.470.570.850.950.960.950.940.920.89Genfar
0.820.910.670.840.990.890.930.910.890.980.99AG
0.890.910.560.730.900.940.910.930.900.930.91Sanofi
0.450.560.990.710.700.460.500.530.470.590.67Lafrancol
0.810.900.700.890.990.870.890.890.850.960.99MK
0.630.730.710.990.890.660.660.710.570.790.84Grunenthal
0.930.940.460.660.870.990.960.960.950.950.89Perrigo
0.870.930.530.710.890.960.930.990.950.930.91GSK
0.980.890.450.630.810.930.890.870.870.900.82Tylenol
Table 3. Hyperparameter values resulting from cross-validation for each method.
Table 3. Hyperparameter values resulting from cross-validation for each method.
ValuesHyperparametersMethod
1.023292CSVC
0Γ
LinealKernel
7Max_depthDTC
5Min_samples_split
log_lossCriterion
20NeuronsANN
1Hidden layers
lbfgsSolver
Table 4. Hyperparameter values tested for cross-validation of ML models.
Table 4. Hyperparameter values tested for cross-validation of ML models.
HyperparametersMethod
10 x , x [0.01; …; 2]
[0; 0.07; …; 1] × 102
CSVC
Γ
[‘linear’; ‘Rbf’; ‘Sigmoid’]Kernel
[3; 5; 7; 10][2; 5; 10]Max_depthDTC
Min_samples_split
[‘Gini’; ‘Entropy’; ‘Log_loss’]Criterion
[5; 10; 20]NeuronsANN
[1; 2; 3]Hidden layers
[‘Lbfgs’; ‘Sgd’; ‘Adam’]Solver
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Martínez-Trespalacios, J.A.; Polo-Herrera, D.E.; Félix-Massa, T.Y.; Hernandez-Rivera, S.P.; Hernandez-Fernandez, J.; Colpas-Castillo, F.; Castro-Suarez, J.R. QCL Infrared Spectroscopy Combined with Machine Learning as a Useful Tool for Classifying Acetaminophen Tablets by Brand. Molecules 2024, 29, 3562. https://doi.org/10.3390/molecules29153562

AMA Style

Martínez-Trespalacios JA, Polo-Herrera DE, Félix-Massa TY, Hernandez-Rivera SP, Hernandez-Fernandez J, Colpas-Castillo F, Castro-Suarez JR. QCL Infrared Spectroscopy Combined with Machine Learning as a Useful Tool for Classifying Acetaminophen Tablets by Brand. Molecules. 2024; 29(15):3562. https://doi.org/10.3390/molecules29153562

Chicago/Turabian Style

Martínez-Trespalacios, José A., Daniel E. Polo-Herrera, Tamara Y. Félix-Massa, Samuel P. Hernandez-Rivera, Joaquín Hernandez-Fernandez, Fredy Colpas-Castillo, and John R. Castro-Suarez. 2024. "QCL Infrared Spectroscopy Combined with Machine Learning as a Useful Tool for Classifying Acetaminophen Tablets by Brand" Molecules 29, no. 15: 3562. https://doi.org/10.3390/molecules29153562

APA Style

Martínez-Trespalacios, J. A., Polo-Herrera, D. E., Félix-Massa, T. Y., Hernandez-Rivera, S. P., Hernandez-Fernandez, J., Colpas-Castillo, F., & Castro-Suarez, J. R. (2024). QCL Infrared Spectroscopy Combined with Machine Learning as a Useful Tool for Classifying Acetaminophen Tablets by Brand. Molecules, 29(15), 3562. https://doi.org/10.3390/molecules29153562

Article Metrics

Back to TopTop