1. INTRODUCTION
The assessment of the potential DNA reactivity (mutagenicity) of drug impurities is a key step in drug safety evaluation. The International Council for Harmonisation (ICH) M7 guideline mandates systematic hazard assessment for impurities in drug substances and products, to mitigate potential carcinogenic risks [
1]. Although the bacterial reverse mutation test (Ames test), considered the “gold standard” for mutagenicity detection, is reliable, its application is limited by cost and time constraints; consequently, experimentally testing every known or potential impurity is impractical.
Traditional risk assessment methods rely on manual identification of structural alerts in chemical structures or literature data reviews; however, such approaches are often time-consuming, labor-intensive, and incomplete. Moreover, they are prone to inconclusive results, because of insufficient evidence or differences in subjective judgment. Notably, visual identification of structural alerts alone tends to yield false positives, because the mutagenic activity of certain structural alerts is substantially influenced by chemical environmental factors such as substituent type, position, and steric hindrance, and the structural alerts might in fact lack mutagenic potential [
2]. Therefore, traditional database and literature searches for carcinogenicity and bacterial mutagenicity data are suitable only for preliminary analysis of actual and potential impurities.
Computational toxicology methods, because of their high throughput, speed, reproducibility, and cost-effectiveness, are gradually becoming important adjuncts or even partial replacements for impurity mutagenicity assessment. For toxicity evaluation, ICH M7 explicitly recommends using two complementary (quantitative) structure-activity relationship [(Q)SAR] prediction models, one based on statistical methods and the other based on expert rule-based knowledge; it additionally requires such models to follow the validation principles established by the Organisation for Economic Co-operation and Development (OECD), to ensure scientific reliability.
In recent years, substantial progress has been made in mutagenicity prediction techniques based on machine learning and structural alerts. Internationally, several mature commercial QSAR software tools are available, such as Leadscope Model Applier (Leadscope Inc.), Sarah and Derek (Lhasa Ltd.), CASE Ultra (MultiCASE Inc.), the Toxicity Estimation Software Tool (T.E.S.T.) (U.S. Environmental Protection Agency [EPA]), and the OECD QSAR Toolbox (Joint Research Centre of the European Union) [
3]. However, developments in this field have lagged in China. Only several Chinese products are currently available, such as CISOC-PSMT developed by the Shanghai Institute of Organic Chemistry, Chinese Academy of Sciences. Therefore, a notable shortage exists in comparable Chinese commercial and professional software.
We designed Decrypt Substance Toxicity (DSTOX) software to strictly follow the ICH M7 workflow, by using a statistical model plus expert rule model to provide mutagenicity assessments for predicted substances. For predictions in which the above models cannot reach a definitive conclusion, a conservative read-across approach using analogues is applied to provide supporting evidence for expert review. Additionally, DSTOX offers carcinogenicity retrieval and, on the basis of the risk assessment classification principles of the ICH M7 guideline, provides an ICH classification by comparing the results with relevant negative controls (e.g., Active pharmaceutical ingredient or related intermediates). The overall workflow is illustrated in
Figure 1.
Therefore, DSTOX offers an efficient and reliable computational solution for Chinese regulatory authorities, as well as R&D and manufacturing enterprises, for conducting safety assessments of the potential mutagenicity of drug impurities.
2. MATERIALS AND METHODS
2.1 Data collection and processing
The training set integrated data from public databases, such as the European Chemicals Agency (ECHA), Japanese National Institute of Health Sciences (NIHS), Carcinogenicity Potency Database (CPDB), U.S. EPA, and National Toxicology Program (NTP); drug review information (toxicological data) published by the U.S. Food and Drug Administration (FDA) and Center for Drug Evaluation and National Medical Products Administration (CDE); and data contributed by enterprises. After structural standardization, deduplication, and desaltification, the Ames test data underwent rigorous manual review. The judgment criteria followed OECD Test Guideline 471 [
4] and CDE guidelines. The bacterial reverse mutation test was required to include at least five strains, including four histidine auxotrophic strains of
Salmonella typhimurium (TA98, TA100, TA1535, and TA1537/TA97/TA97a) for detecting base substitutions or frameshift mutations at guanine-cytosine sites in the histidine target gene, and
S. typhimurium TA102,
Escherichia coli WP2uvrA, or
E. coli WP2uvrA (pKM101) for detecting base substitutions at adenine-thymine sites in the histidine or tryptophan gene and detecting cross-linking agents. A positive result in any strain was considered an overall positive result. Ultimately, an Ames test result dataset and a rodent carcinogenicity dataset were obtained, including the DSTOX training set for mutagenicity model development and a carcinogenicity dataset (containing 1,096 compounds). To validate the model’s real-world performance and prevent data leakage, the external validation set was isolated from the training set in advance. In the early stages of development, established model datasets were directly used, including the ISS (version 1.0.3) model training set (670 compounds), the CAESAR (version 2.1.14) model training set (4,204 compounds) [
5], and the EPA’s Ames mutagenicity assessment QSAR model database (6,512 compounds) [
6]. The detailed composition of the training datasets is summarized in
Table 1.
2.2 Molecular descriptors
On the basis of structure alerts and structure-activity relationships, the mutagenicity toxicity of molecules was predicted. The model descriptors used 2D molecular structure fragments, which were cut according to established rules into substructure fragments with 2–8 non-hydrogen atoms. Because traditional Simplified Molecular-Input Line-Entry System (SMILES) notation does not adequately represent substructure fragments, particularly the connections at the terminal atoms of the fragments, we used the more comprehensive SMILES Arbitrary Target Specification (SMARTS) notation to characterize substructures. Moreover, we revised the conventional SMARTS rules to incorporate atomic hybridization states and ultimately obtained approximately 57,886 substructure fragments as descriptors. For the similarity search model, Extended-Connectivity fingerprints were used to perform similarity searches.
2.3 Validation methods
Both internal and external validation were conducted. For internal validation, the eXtreme Gradient Boosting (XGBoost) model was trained on the DSTOX training set. To provide an internal performance reference, the dataset was randomly split into 80% training and 20% testing, and was also stratified by class proportions and divided into five folds. The trained model was then used to predict the held-out samples in each fold, and the predicted probabilities from all folds were aggregated to calculate the accuracy, precision, sensitivity, specificity, and F1 score as internal validation metrics.
The definitions of these metrics are as follows. The prediction results were classified into four categories: TP (predicted positive, actual positive), TN (predicted negative, actual negative), FP (predicted positive, actual negative), and FN (predicted negative, actual positive).
The formulas for parameter calculation were as follows:
2.4 Model development
The software incorporated two complementary models based on statistical methods and expert knowledge rules. To further address decision-making issues in the uncertainty zones (inconclusive predictions) of each model, we used an analogue read-across approach as an auxiliary tool for expert review.
2.4.1 Statistics-based model (DT-statistics-based model)
The statistics-based model established a mathematical framework by mining statistical associations between structural descriptors of many known compounds and their experimental activity/toxicity data, thereby predicting the properties of unknown compounds. During the algorithm selection phase, the performance of various classical machine learning methods (including XGBoost, logistic regression, random forest, gradient boosting, and support vector machine (SVM)) was compared on the ISS standard database (comprising 670 compounds) [
3]. A comprehensive evaluation of metrics such as accuracy and F1 score was conducted. The performance comparison of candidate models is presented in
Table 2. XGBoost exhibited the best performance and was therefore selected as the final modeling method. Subsequently, this algorithm was applied to the DSTOX training library for the training and optimization of the final model, to fully exploit the modeling potential of the large-scale dataset.
Because the model was built upon fragments, to meet the stringent regulatory requirements of ICH M7 when making predictions for unknown compound molecules, if all structural fragments of the molecule were present in the model’s training set, all structural fragment risks were considered to have been effectively identified, and the molecule was considered to be within the applicability domain (denoted in-domain). If the molecule contained any structural fragment unknown to the model, it was considered out of domain.
2.4.2 Expert knowledge rule-based model (DT-expert rule-based model)
The expert knowledge rule-based model constructed a structural alert rule library based on known mutagenic mechanisms, covering more than 80 common classes of structural alerts, including typical functional groups such as sulfonic acid esters, sulfur mustards, nitrogen mustards, halogenated alkanes, azo or azoxy compounds, polycyclic (hetero)aromatic hydrocarbons, N-nitroso derivatives, and azides [
7–
9]. To assist in the decision-making process of expert knowledge rules, the model introduced a Bayesian estimation approach to quantify the mutagenic potency of different fragments. For each specific structural alert fragment i, the conditional probability of toxicity,
P (Toxic|Alert
i), was calculated as follows:
where P(Toxic|Alerti) represents the posterior probability of toxicity for a compound incorporating fragment i; N_toxic,i represents the number of samples in the training set that contain this fragment and have a positive experimental result; N_total,i represents the total number of samples in the training set that contain this fragment; and α and β are Laplace smoothing parameters.
A target molecule may contain multiple different structural alerts simultaneously. To derive the final toxicity risk score, we used the maximum value method for integration. The rationale for this strategy was based on the “weakest link” principle in toxicology: as long as a molecule contained one highly reactive mutagenic functional group, it was considered a high-risk substance, even if other fragments exhibited low activity or no toxicity. If the molecule did not contain any known structural alert fragments, the predicted value was taken as the model baseline probability or classified as negative.
2.4.3 Analogue read-across
A weighted k-nearest neighbors’ algorithm (k = 7), combined with Morgan fingerprints and linear weighting, was used to perform analogue read-across analysis. The k-nearest neighbors (k-NN) algorithm is a non-parametric, instance-based supervised learning method. Its core concept is as follows: for a query sample, distances to the training set samples in the feature space are calculated to identify its k nearest neighbors (i.e., the k closest training samples). Subsequently, by majority voting, the class that appears most frequently among these neighbors is assigned as the predicted class for the query sample. In this study, Euclidean distance was used as the similarity measure between samples, and the value of k was set to 7. This algorithm required no explicit training phase, and distance calculation and neighbor voting were performed only at the prediction stage. The advantages of this algorithm include straightforward implementation, few assumptions about data distribution, and strong interpretability.
3. RESULTS
3.1 Internal validation of the statistics-based model
To rigorously assess the robustness and generalizability of the model, we performed stratified 5-fold cross-validation on the training set for internal validation, ensuring that the proportion of positive and negative samples in each fold was consistent with that of the overall dataset. This approach aligned with recommended practices for validating computational toxicology models [
3], effectively decreased bias introduced by random partitioning, and provided a reliable estimate of the model’s generalization performance. The internal validation results are shown in
Table 3.
In the validation, the model achieved an average accuracy of 92.0%, thus indicating strong discriminative ability. For mutagenic positive compounds, the average precision, sensitivity, and F1 score were 90.5%, 91.0%, and 90.7%, respectively. The fluctuations in all metrics across folds were small, thereby reflecting high stability of the model’s predictive performance.
3.2 External validation of the statistics-based model
The model was evaluated on a completely independent external validation set (n=236). The compounds in this validation set were derived from the molecular entities of 156 novel drugs approved by the U.S. FDA between 2020 and 2024, as well as 80 (strongly positive) compounds released by the Second Japanese QSAR Contest [
10]. The Ames test results for all compounds were experimentally confirmed, to ensure the representativeness and challenge of the structures. A decision threshold of 0.4 was used for model prediction, and an uncertainty zone (0.4 ≤ prediction probability < 0.52) was defined to identify inconclusive results. After exclusion of uncertain samples, 221 valid samples (138 non-mutagenic and 83 mutagenic) remained for performance statistics. The external validation performance metrics are presented in
Table 4.
The external validation performance metrics were as follows. On the external validation set, the proposed model demonstrated good overall predictive performance, with an accuracy of 91.0% indicating the relative robustness of model’s discriminative ability for new data. The model achieved an F1 score of 86.7%, reflecting a favorable balance between precision and recall. The sensitivity of 78.3% suggested a reasonable ability to identify mutagenic compounds, whereas the specificity of 98.6% indicated a low rate of false positives. Overall, the model’s performance on the external independent test set was in good agreement with the internal validation results, thereby further confirming its satisfactory generalization ability and potential applicability in real-world scenarios.
The model correctly identified 136 negative compounds and 65 positive compounds (confusion matrix in
Figure 2) and demonstrated excellent performance in both internal cross-validation and external independent validation.
3.3 Validation of the k-NN model (analogue read-across)
The internal validation results of the k-NN model are summarized in
Table 5. Validation results demonstrated that the k-NN model exhibited good overall predictive performance, achieving an overall accuracy of 83.1%. The weighted average F1 score of 80.1% indicated that the model’s comprehensive discriminative ability for the two classes of compounds was relatively balanced, with no significant class bias. The model showed robust predictive performance for the Ames mutagenicity of organic compounds and might therefore offer an auxiliary tool for expert review.
3.4 Evaluation of multi-model integrated decision-making
Table 6 summarizes the confusion matrices and key performance metrics for the statistics-based model, the expert knowledge rule-based model, the read-across approach, and the integrated conclusion in the external validation of mutagenicity prediction.
Each model exhibited distinct complementary characteristics in predictive performance, and the multi-model integrated decision-making substantially enhanced the system’s ability to capture mutagenic substances. On the basis of the maintenance of a high specificity of 84.7%, the integrated conclusion achieved an accuracy of 84.0% and improved the sensitivity to 82.8%, a value higher than that of any single module. The number of false negative samples decreased from a maximum of 28 in a single module to 15. Under the ICH M7 guideline, decreasing the false negative rate (i.e., improving sensitivity) aligned with the regulatory preference for low risk tolerance.
4. DISCUSSION
4.1 How the integrated platform works
To perform mutagenicity assessment and classification of compounds in accordance with ICH M7 guideline requirements, the software additionally uses an analogue read-across model, reference compound comparison, and carcinogenicity data search to achieve ICH classification.
4.1.1 Read-across (analogue search)
The analogue search is based on overall molecular similarity comparisons, and it facilitates expert judgment during review. The similarity comparison uses the Tanimoto Similarity Index, requiring the presence of analogues with a similarity >0.5. When all neighboring compounds fall below this threshold, the analogue search yields an “inconclusive” conclusion. During external validation, 99 compounds were found to have no sufficiently similar analogues; therefore, the performance statistics reported in
Table 6 are based solely on compounds for which a definitive conclusion could be reached (137 compounds). Although this approach yields a relatively large number of compounds for which no direct determination can be made, it nonetheless offers considerable value for comprehensive assessment. Because the software uses two models for mutagenicity evaluation, a statistical rule-based model and an expert knowledge rule-based model, the conclusions are ambiguous in certain situations. For example, when both models yield inconclusive results, the analogue cross-reference approach might provide a definitive conclusion. Therefore, the analogue comparison offers transparent analogue-based evidence/interpretability to support expert review.
4.1.2 Comparator (reference compound comparison)
In mutagenicity risk assessment, compounds known to be Ames negative, on the basis of laboratory findings, can serve as references. On the basis of the fundamental principles of QSAR, the risk posed by the same structural alert can be disregarded. Therefore, when a negative reference is provided, the software performs structural fragment comparisons between the identified structural alerts and the known negative compounds. If they match, the compound can be classified as ICH class 4 in accordance with the guidelines.
4.1.3 Carcinogenicity search
During drug development, the ultimate concern is drug carcinogenicity [
11,
12]. Therefore, when the carcinogenicity of a compound has been experimentally confirmed, the experimental results should take precedence. Even if a structural alert is present, the carcinogenic risk can still be disregarded; in contrast, even in the absence of a structural alert, carcinogenic risk may still exist. In toxicity prediction for a compound, DSTOX searches for carcinogenicity data through similarity comparisons. For example, on the basis of known non-carcinogenic results, the compound may be classified as class 5.
4.1.4 Integrated assessment
To meet the ICH M7 preference for a low risk of mutagenic impurities, the final mutagenicity assessment of impurities makes full use of the complementarity among multiple models and adopts a conservative strategy. Specifically, when either the statistical rule-based model or the expert rule-based model predicts a positive result, the integrated conclusion adopts the positive outcome. When the above two models fail to reach a conclusion, the integrated assessment refers to the analogue search for a recommended conclusion. This aspect explains why, when the individual models identified only 65, 61, and 29 molecules as true positives, respectively, the integrated conclusion identified 72 positive molecules.
4.2 Comparison with existing models
DSTOX was compared with internationally mainstream computational toxicology tools, including Leadscope, Sarah Nexus, and CASE Ultra. DSTOX demonstrated robust performance in mutagenicity prediction, with performance metrics comparable to those of current mainstream international predictive tools. A comparison with internationally recognized predictive tools is provided in
Table 7.
4.3 Data quality substantially affects model performance
Many currently available Ames/QSAR models have been developed on the basis of publicly available Ames data, such as the CAESAR and EPA datasets described above. Although these Ames/QSAR models exhibit high accuracy in predicting the mutagenicity of existing chemical substances (within the public domain), their accuracy in detecting new Ames-positive compounds is relatively low, and their sensitivity is particularly lacking. During model development, we observed that even established models had drawbacks of inconsistent data quality. For example, the publicly available CAESAR and EPA mutagenicity datasets contained conflicting toxicity results for 16 compounds, and many experimentally validated data points remained unpublished for various reasons [
14]. Examples of conflicting toxicity data across databases are listed in
Table 8. Therefore, obtaining high-quality mutagenicity data poses challenges in the development of such models in China. A distinct advantage of DSTOX over international platforms is its extensive integration of high-quality data from both global (FDA) and domestic (CDE) regulatory sources. This inclusion of localized impurity data specifically addresses the chemical space relevant to the Chinese pharmaceutical industry, thereby providing a more tailored and accurate tool for domestic drug developers and evaluators.
5. CONCLUSION
In a rigorous regulatory landscape, developing enhanced Ames/QSAR models that deliver high sensitivity, minimal false-negative rates, and extensive chemical space coverage, as mandated by the ICH M7 guidelines, is critical. Herein, we successfully developed DSTOX Mutagen Profiler, a multi-strategy integrated platform providing comprehensive mutagenicity evaluation and classification reports. By integrating a statistics-based machine learning model with expert knowledge-based rules and analogue-based read-across, DSTOX achieves robust predictive performance. External validation on a contemporary set of compounds including 156 novel drugs approved by the FDA demonstrated an accuracy of 84.0% and a sensitivity of 82.8%. These performance metrics are highly competitive with established international predictive tools, thus confirming that DSTOX is well suited to support regulatory submissions and impurity hazard assessments under the ICH M7 framework. Despite the robustness of the current model, further refinement of data quality and continued enrichment of the training set remain essential to expand its applicability domain. To further enhance its utility in practical risk management, future iterations of DSTOX should incorporate additional toxicological endpoints, such as Tumorigenic Dose 50 or No Observed Adverse Effect Level values. Doing so would facilitate the derivation of precise control limits for mutagenic impurities, thereby providing a more comprehensive tool for both domestic and international pharmaceutical safety evaluations.