A method for multi-endpoint acute toxicity prediction based on measured endpoint evidence, an electronic device and a storage medium

By constructing a multi-endpoint acute toxicity prediction method based on measured endpoint evidence, and utilizing an attention interaction mechanism prediction model, the method explicitly expresses endpoint semantics and masks the target endpoint, thus solving the problem of the failure to effectively utilize measured endpoint evidence in existing technologies and achieving efficient prediction in sparse and imbalanced databases.

CN123182809APending Publication Date: 2026-11-27GUANGDONG UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611377667.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-07
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies fail to effectively utilize measured endpoint evidence in predicting the acute toxicity of chemicals, resulting in sparse and unbalanced toxicity databases with insufficient adaptability and a tendency for target value leakage, which affects prediction accuracy.

Method used

By constructing a multi-endpoint acute toxicity prediction method based on measured endpoint evidence, a prediction model using an attention interaction mechanism is developed. This model explicitly expresses endpoint semantics, avoids leakage by masking target endpoints, adapts to any number and combination of measured endpoints, and makes predictions using a partial observational toxicity spectrum of the same chemical.

Benefits of technology

It improves prediction stability under novel structural conditions and low evidence conditions, explicitly distinguishes endpoint semantics, avoids target value leakage, adapts to highly sparse and unevenly distributed toxicity databases, provides direct experimental constraints, and improves prediction accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123182809A_ABST
    Figure CN123182809A_ABST
Patent Text Reader

Abstract

The present application relates to a kind of based on measured endpoint evidence multi-endpoint acute toxicity prediction method, electronic equipment and storage medium, method includes: obtaining the molecular structure of multiple chemicals, quantitative toxicity measurement corresponding to multiple acute toxicity endpoints and metadata, and constructs training data;Each acute toxicity endpoint definition is carried out unit uniformity and numerical conversion to quantitative toxicity measurement, constructs sparse toxicity spectrum and observation mask;Based on the molecular structure of the chemical to be processed generates molecular representation, generates molecular token based on molecular representation, and generates endpoint token for each acute toxicity endpoint;Molecular token and endpoint token are input into the prediction model with attention interaction mechanism, and the prediction model is trained;When predicting the chemical to be processed, the rest of the same chemical is measured endpoint to complete unmeasured endpoint.The present application can adapt to different number and combination of measured endpoint, prevent target value leakage and improve the accuracy and structure extrapolation capability of multi-endpoint acute toxicity prediction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of artificial intelligence, computational toxicology, and chemical safety evaluation, and in particular to a multi-endpoint acute toxicity prediction method, electronic device, and storage medium based on measured endpoint evidence. Background Technology

[0002] Acute systemic toxicity is a crucial basis for chemical hazard classification, labeling, risk assessment, and safety management. Acute toxicity measurements are typically defined by the test species, route of administration, and toxicity indicators. For example, the same chemical may have different endpoints, such as oral LD50 in mice, intravenous LD50 in rats, and subcutaneous LDLo in rabbits. Because species physiology, absorption, distribution, metabolic processes, routes of administration, bioavailability, and toxicity indicator definitions differ, the measurement results at each endpoint are interrelated but not directly interchangeable.

[0003] Completing experimental measurements of all species, routes of administration, and combinations of toxicity indicators for each chemical requires significant time, cost, and animal testing. Existing toxicity databases typically record only a small number of endpoints for each chemical, resulting in a highly sparse and unevenly distributed chemical-endpoint matrix. Some endpoints have large sample sizes, while certain non-rodent, uncommon routes, or LDLo / TDLo endpoints have only a few records.

[0004] Existing computational prediction methods mainly include single-endpoint quantitative structure-activity relationship (QSAR) models, similar chemical read-off methods, multi-task learning methods, and endpoint relationship modeling methods. Single-endpoint models cannot utilize information between different experimental conditions; read-off methods mainly utilize the toxicity values ​​of other structurally similar chemicals; although conventional multi-task models can share molecular characterizations or model parameters, when inferring about a chemical analyte, they usually only input the molecular structure of that chemical; endpoint relationship models can learn the overall correlation of each endpoint in the training population, but they usually do not input the endpoints that have already been measured for the current analyte itself as variable conditional evidence into the model.

[0005] In practical safety assessments, a chemical may already have acute toxicity measurements for several species and routes of administration, while other endpoints remain unobtained. These measured values ​​represent direct experimental information about the chemical, and their constraint on unmeasured endpoints may be stronger than simply increasing the capacity of the structural model. However, directly concatenating incomplete toxicity vectors with molecular features makes it difficult to explicitly distinguish the species, pathway, and indicator semantics of each endpoint, and also makes it difficult to dynamically determine the relevance of different pieces of evidence based on the target endpoint. Furthermore, if the target endpoint is not completely removed from the input during training, target value leakage can easily occur, leading to distorted prediction results.

[0006] Therefore, there is a need for a multi-terminal acute toxicity prediction technology that can adapt to different numbers and combinations of measured endpoints, explicitly express endpoint semantics, utilize the same chemical part to observe the toxicity spectrum, avoid target value leakage, and work stably under structurally novel chemicals and low-evidence conditions. Summary of the Invention

[0007] The purpose of this invention is to provide a multi-endpoint acute toxicity prediction method, electronic device and storage medium based on measured endpoint evidence, which overcomes the problems of existing technologies that mainly rely on molecular structure, cannot make full use of the measured toxicity endpoints of the chemical to be treated, are not adaptable to sparse and variable evidence patterns, and may leak targets during training.

[0008] To achieve the above objectives, the present invention provides the following solution: A multi-endpoint acute toxicity prediction method based on measured endpoint evidence includes: The molecular structures of multiple chemicals, quantitative toxicity measurements and metadata corresponding to multiple acute toxicity endpoints are obtained, and training data is constructed, wherein the acute toxicity endpoints are determined by species, route of administration and toxicity indicators. Each acute toxicity endpoint is defined as a combination of species, route of administration and toxicity index. The units of the quantitative toxicity measurements are standardized and the numerical values ​​are converted to construct a sparse toxicity spectrum and observation mask. A molecular representation is generated based on the molecular structure of the chemical to be treated, a molecular token is generated based on the molecular representation, and an endpoint token is generated for each of the acute toxicity endpoints. The molecular token and the endpoint token are input into a prediction model with an attention interaction mechanism to train the prediction model. During the training of the prediction model, at least one target endpoint is selected from the observed acute toxicity endpoints of the same chemical. The input toxicity value, observation mask and input quality value of the target endpoint are set to zero, the source state is replaced with the missing state, and the reconstruction loss is calculated based on the predicted value and the true value of the target endpoint. When predicting the toxicity of a chemical to be treated, the toxicity value of the endpoint to be predicted is set to an unobserved state. The observed acute toxicity endpoint of the chemical to be treated is used as auxiliary evidence and input into the prediction model after training to obtain the toxicity prediction value of the endpoint to be predicted. The observed acute toxicity endpoint of the chemical to be treated is obtained through the sparse toxicity spectrum.

[0009] Optionally, the training data may include: The system unifies chemical identifiers and molecular structures, aggregates duplicate records of the same chemical and the same acute toxicity endpoint, saves metadata on the number of records, the degree of record dispersion, and the data source, audits the differences between the same chemical-endpoint pairs from different data sources, and removes conflicting records whose differences exceed a preset threshold.

[0010] Optionally, the toxicity indicators include at least one of the median lethal dose LD50, the minimum lethal dose LDLo, and the minimum toxic dose TDLo; The route of administration includes at least one of the following: oral, intravenous, intraperitoneal, subcutaneous, skin, intramuscular, and non-specific injection routes.

[0011] Optionally, standardizing units and converting values ​​for the quantitative toxicity measurement includes: The quantitative toxicity measurement is standardized to a mass-normalized dose, which is then converted to a molar mass-normalized dose. The target toxicity value is obtained by performing a negative logarithmic transformation, such that an increase in the target toxicity value indicates a decrease in the dose required to produce an acute toxic effect.

[0012] Optionally, the molecular representation is generated from one or more of the following: two-dimensional molecular descriptor, molecular fingerprint, molecular graph encoding representation, and pre-trained molecular representation; The molecular token is obtained by performing linear mapping, normalization, nonlinear activation, and random deactivation on the molecular representation. The endpoint token is obtained by fusing the nonlinear projection results of task identity embedding, species embedding, route of administration embedding, toxicity index embedding, input toxicity value and observation mask.

[0013] Optionally, the endpoint token may also include data source embedding and record quality information, wherein the record quality information is determined based on the data source, the number of duplicate records for the same chemical-endpoint pair, and the dispersion of the duplicate records.

[0014] Optionally, the molecular token and the endpoint token are input into a prediction model with an attention interaction mechanism, and the prediction model is trained by: The molecular token and the endpoint token are combined into a token sequence. A multi-layer multi-head self-attention encoder is used to establish target-related interaction relationships between the molecular token and multiple endpoint tokens, as well as between different endpoint tokens, to obtain the encoding results. The encoding results are then input into a shared regression prediction head to output toxicity prediction values.

[0015] Optionally, the reconstruction loss is an endpoint-weighted mean squared error loss, wherein the endpoint weight is negatively correlated with the sample size of the corresponding endpoint in the training data and is limited to a preset range. When the endpoint token contains record quality information, the reconstruction loss is further weighted according to the record quality of the target endpoint.

[0016] The present invention also provides an electronic device, including a processor and a memory, the memory storing a computer program, which, when executed by the processor, implements a multi-endpoint acute toxicity prediction method based on measured endpoint evidence.

[0017] The present invention also provides a computer-readable storage medium having a computer program or instructions stored thereon, wherein when the computer program or instructions are executed by a processor, a multi-endpoint acute toxicity prediction method based on measured endpoint evidence is implemented.

[0018] The beneficial effects of the present invention are: (1) the acute toxicity measurements of the same chemical obtained are transformed from ordinary training labels into compound-specific evidence that can be used in the reasoning stage, which can provide direct experimental constraints beyond molecular structure; (2) Explicitly representing species, route of administration, toxicity index and observation status through endpoint tokens allows different endpoint evidences to interact dynamically based on the target to be predicted, which is better than directly splicing incomplete toxicity vectors to molecular features. (3) By manually occluding the target endpoints and calculating the reconstruction loss only at the target location, the target value is blocked from entering the model input, thus avoiding target leakage; (4) It can receive any number and combination of measured endpoints and is adaptable to highly sparse and unevenly distributed actual toxicity databases; (5) Differentiate the reliability of different evidence by source and quality information, and alleviate the dominance of data-rich endpoints on the training objective by endpoint weights; (6) For chemicals whose structural framework differs from that of the training data, the measured endpoints can still provide direct evidence, thereby improving the predictive stability under structural extrapolation conditions. Attached Figure Description

[0019] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0020] Figure 1 This is a flowchart of a multi-endpoint acute toxicity prediction method based on measured endpoint evidence according to an embodiment of the present invention; Figure 2This is a schematic diagram illustrating the unification of multi-source acute toxicity data and the construction of sparse toxicity profiles in an embodiment of the present invention. Figure 3 This is a diagram showing the overall structure of the query-aware acute toxicity completion network in an embodiment of the present invention. Figure 4 This is a schematic diagram illustrating the configuration of an endpoint token according to an embodiment of the present invention; Figure 5 This is a schematic diagram of the masked toxicity spectrum completion training according to an embodiment of the present invention. Detailed Implementation

[0021] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0022] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0023] This embodiment proposes a multi-endpoint acute toxicity prediction method based on measured endpoint evidence, reconstructing multi-endpoint acute toxicity prediction as an evidence-conditional sparse toxicity profile completion task. For each chemical to be processed, the model simultaneously receives molecular structure information and some already obtained acute toxicity endpoints for that chemical, and uses the endpoint to be predicted as the query target, completing the prediction of missing endpoints through attention interactions between endpoint tokens. Figure 1 As shown, the prediction method includes the following steps: S101. Obtain the molecular structures of multiple chemicals, quantitative toxicity measurements corresponding to multiple acute toxicity endpoints, and metadata, and construct training data; S102. Define each acute toxicity endpoint as a combination of species, route of administration and toxicity index, unify the units and convert the numerical values ​​of the quantitative toxicity measurement, and construct a sparse toxicity spectrum and observation mask. S103. Generate a molecular representation based on the molecular structure of the chemical to be treated, generate a molecular token based on the molecular representation, and generate an endpoint token for each of the acute toxicity endpoints. S104. Input the molecular token and the endpoint token into a prediction model with an attention interaction mechanism to train the prediction model. During training, at least one target endpoint is selected from the observed acute toxicity endpoints of the same chemical. The input toxicity value, observation mask, and input quality value of the target endpoint are set to zero. The source state is used to represent the source information of the current toxicity endpoint input data, distinguishing between existing source records and missing record states. When a target endpoint is selected as the prediction object, its corresponding input information cannot be used as model input; therefore, its source state is replaced with a missing state. S105. When predicting the chemical to be treated, the toxicity value of the endpoint to be predicted is set to an unobserved state, and the observed acute toxicity endpoint of the chemical to be treated is used as auxiliary evidence to input into the prediction model after training, so as to obtain the toxicity prediction value of the endpoint to be predicted, wherein the observed acute toxicity endpoint of the chemical to be treated is obtained through the sparse toxicity spectrum.

[0024] Furthermore, constructing the training data includes: The system unifies chemical identifiers and molecular structures, aggregates duplicate records of the same chemical and the same acute toxicity endpoint, saves metadata on the number of records, the degree of record dispersion, and the data source, audits the differences between the same chemical-endpoint pairs from different data sources, and removes conflicting records whose differences exceed a preset threshold.

[0025] Specifically, for duplicate records of the same chemical and the same endpoint, the median is taken, and the number of duplicate records and the standard deviation are retained; for the same chemical-endpoint pair from two or more data sources, the polymerization value within the source and its absolute difference are calculated respectively, records with a difference greater than the first threshold are marked as high divergence records, and records with a difference greater than the second threshold are removed.

[0026] Independent standardized parameters are established for each endpoint, and the mean and standard deviation are calculated using the observations in the training set. Missing value imputation, feature selection, and standardized parameters for molecular descriptors are also determined solely based on the training set and are applied leak-free to the validation and test sets.

[0027] Furthermore, the acute toxicity endpoint is determined by species, route of administration, and toxicity indicators. Species may include mice, rats, rabbits, guinea pigs, dogs, cats, and human-related categories. The toxicity indicators include at least one of the median lethal dose LD50, the minimum lethal dose LDLo, and the minimum toxic dose TDLo; The route of administration includes at least one of the following: oral, intravenous, intraperitoneal, subcutaneous, skin, intramuscular, and non-specific injection routes.

[0028] The above categories are merely examples, and this invention does not limit the number of endpoints or specific categories.

[0029] Furthermore, the unit standardization and numerical conversion for the quantitative toxicity measurement include: The quantitative toxicity measurement is standardized to a mass-normalized dose, which is then converted to a molar mass-normalized dose. The target toxicity value is obtained by performing a negative logarithmic transformation, such that an increase in the target toxicity value indicates a decrease in the dose required to produce an acute toxic effect.

[0030] Specifically, the dosage is normalized based on the chemical's molecular weight converted to molar mass: ; Among them, C mg / kg The dose is expressed in mg / kg, and M is the molecular weight in g / mol.

[0031] The target toxicity value is defined as: ; Under this definition, a larger y value indicates a lower dose required to produce the corresponding acute toxic effect, i.e., a stronger acute toxicity.

[0032] Furthermore, the molecular representation is generated from one or more of the following: two-dimensional molecular descriptor, molecular fingerprint, molecular graph encoding representation, and pre-trained molecular representation; The molecular token is obtained by performing linear mapping, normalization, nonlinear activation, and random deactivation on the molecular representation. The endpoint token is obtained by fusing the nonlinear projection results of task identity embedding, species embedding, route of administration embedding, toxicity index embedding, input toxicity value and observation mask.

[0033] Furthermore, the endpoint token also includes data source embedding and record quality information, wherein the record quality information is determined based on the data source, the number of duplicate records for the same chemical-endpoint pair, and the dispersion of the duplicate records.

[0034] Specifically, the source embedding and recording quality information projection are as follows: ; Where c represents the chemical, j represents the endpoint, the superscript in of y represents the input value provided to the model, m represents the observation mask, and q represents the quality information. Let represent the initial endpoint representation vector corresponding to the j-th endpoint of the i-th chemical. To represent the task embedding information corresponding to the j-th toxic endpoint, This represents the embedding information of the species category corresponding to the j-th endpoint. This represents the embedding information of the drug administration route category corresponding to the j-th endpoint. This represents the embedding information of the toxicity index category corresponding to the j-th endpoint. This represents a feature transformation function that jointly maps toxicity values, observation status, and quality information. This represents the embedding vector indicating the data source status corresponding to the j-th toxicity endpoint of the c-th chemical. When an endpoint is naturally missing or is selected as a target endpoint, its input value, observation mask, and input quality value are all set to zero, and the source status is replaced with a dedicated missing identifier.

[0035] Furthermore, the molecular token and the endpoint token are input into a prediction model with an attention interaction mechanism, and training the prediction model includes: The molecular token and T endpoint tokens are combined to form a token sequence of length T+1. A multi-layer multi-head self-attention encoder is used to establish target-related interaction relationships between the molecular token and multiple endpoint tokens, as well as between different endpoint tokens, to obtain the encoding result. The encoding result is then input into a shared regression prediction head to output a toxicity prediction value.

[0036] Specifically, when training the prediction model, a preset proportion is randomly selected from the observed acute toxicity endpoints of each training batch as target endpoints, and it is ensured that the toxicity spectrum containing the observed values ​​has at least one selected target endpoint; for the preset proportion of training chemicals, all auxiliary evidence is removed to maintain the ability of the prediction model to make predictions based on molecular structure in the absence of measured endpoints.

[0037] The training targets for different acute toxicity endpoints are standardized according to the training set statistics. The standardized prediction values ​​output by the prediction model are inversely transformed by the training set statistics of the corresponding endpoints to obtain the prediction results at the original toxicity scale.

[0038] Furthermore, the reconstruction loss is an endpoint-weighted mean squared error loss, wherein the endpoint weight is negatively correlated with the sample size of the corresponding endpoint in the training data and is limited to a preset range. When the endpoint token contains record quality information, the reconstruction loss is further weighted according to the record quality of the target endpoint.

[0039] Specifically, the masking reconstruction loss is constructed using endpoint sample size weights and record quality weights: ; Among them, Z cj Indicates whether endpoint j is selected as the artificial masking target for chemical c, w j q represents the task weights used to balance the sample sizes at different endpoints. cj Indicates the target record quality weight. To represent the actual measured value corresponding to the j-th toxicity endpoint of the c-th chemical, Let represent the predicted value of the j-th toxicity endpoint for the c-th chemical obtained from the model prediction. Naturally missing locations and locations of unselected measured evidence are not included in this loss.

[0040] During prediction, a partial toxicity profile is input into the trained prediction model. This partial toxicity profile refers to the set of endpoints for a given chemical among all candidate toxicity endpoints for which experimental measurements already exist. This portion of observed endpoints serves as supplementary evidence input into the model to predict unmeasured endpoints.

[0041] Example 1: This embodiment proposes a multi-endpoint acute toxicity prediction method based on measured endpoint evidence, including: 1. For example Figure 2 As shown, the unified and sparse spectrum construction of multi-source acute toxicity data includes: This embodiment obtains chemical identifiers, normalized SMILES, test species, route of administration, toxicity indicators, quantitative dose, data source, and repeat record information from one or more public or internal toxicity data sources. Data sources can be databases, structured data files, laboratory information management systems, regulatory data files, or data interfaces.

[0042] First, chemical identifiers are mapped to uniform compound bonds, and SMILES are parsed and normalized; records for which no valid chemical structure, endpoint definition, or positive finite dose value can be obtained are removed. Second, species, route of administration, and toxicity indicators are mapped to standard categories, and unique endpoint identifiers are established in the form of "species_route of administration_toxicity indicator".

[0043] For multiple records of the same chemical, endpoint, and source, first standardize the dosage units and convert them to the target scale, then take the median as the polymerization value within the source. For cases where the same chemical-endpoint pair exists in records from multiple sources, calculate the differences in polymerization values ​​between each source and conduct a source conflict audit.

[0044] After the above processing, the aggregated data is converted into a sparse matrix Y of chemicals × endpoints. The sparse matrix Y is the sparse toxicity spectrum matrix constructed in this step, where each row corresponds to the sparse toxicity spectrum of a chemical. The sparse matrix Y records existing experimental measurements of different chemicals at different toxicity endpoints. Locations with existing experimental measurements serve as observed toxicity evidence in the model input, while locations without experimental measurements are designated as missing endpoints to be predicted. The model distinguishes between observed and missing endpoints using an observation mask M and predicts missing endpoints using the observed endpoint information. Matrix elements store the target toxicity value when an experimental measurement exists and represent a missing state when no measurement exists. A binary observation mask M, a source identification matrix S, and a record quality matrix Q are constructed simultaneously. Only locations in M ​​with a value of 1 can serve as measured evidence or training targets.

[0045] As a specific example, the data shown in Table 1 is obtained after unifying the data from TOXRIC and PubChem sources. This example is only used to illustrate the feasibility of the present invention and does not limit the number of data sources and endpoints to which the present invention is applicable.

[0046] Table 1 2. For example Figure 3 As shown, establishing the molecular representation, endpoint tokens, and prediction network includes: This embodiment uses RDKit to calculate two-dimensional molecular descriptors for chemicals. For each data partition, only the training set is used to determine valid descriptors, fill in missing values ​​with the median, and standardize the mean and standard deviation. The processed descriptor vectors are mapped to 256-dimensional molecular tokens after linear layer, layer normalization, GELU activation, and random deactivation. Other implementations can use molecular fingerprints, molecular graph neural network encoding, or pre-trained molecular representations to replace or supplement molecular descriptors.

[0047] like Figure 4 As shown, for each acute toxicity endpoint, learnable embeddings are established for task identity, species, route of administration, and toxicity indicators. The standardized toxicity input values, observation masks, and quality input values ​​corresponding to the endpoint are mapped to the same dimension through a nonlinear projection network and added to the aforementioned endpoint semantic embeddings. The complete model also maps the data source state to a source embedding and incorporates endpoint tokens.

[0048] In this embodiment, one chemical corresponds to one molecular token and 46 endpoint tokens, forming a sequence of 47 tokens. This sequence is input into a three-layer Transformer encoder with a hidden dimension of 256, 4 attention heads, a feedforward network dimension of 768, and a random inactivation rate of 0.20. Each Transformer block undergoes pre-layer normalization. The output of each endpoint represents a normalized toxicity prediction value obtained after layer normalization, a 128-unit hidden layer, GELU activation, random inactivation, and a scalar output layer.

[0049] 3. Occlusion-based training and model selection: All chemicals were divided into training, validation, and test sets according to compound level to avoid the same chemical appearing in different subsets simultaneously. This example uses a ratio of 70% training, 15% validation, and 15% test, and is repeated five times with different random seeds.

[0050] The toxicity values ​​for each endpoint are standardized using the mean and standard deviation of the corresponding training set observations. To reduce the dominance of endpoints with larger sample sizes on the training objective, task weights can be constructed based on the endpoint sample size. An example weight is the square root of the ratio of the median of the training endpoint sample size to the target endpoint sample size, and is constrained to be between 0.5 and 3.0.

[0051] like Figure 5 As shown, during training, 30% of the measured toxicity values ​​in each batch are randomly selected as artificial masking targets, and at least one target is selected for each toxicity spectrum with measurements. For the selected endpoint, its input toxicity value, observation mask, and input quality value are set to zero, and the source state is replaced with the missing state. The true target value is used only to calculate the reconstruction loss. For 15% of the training chemicals, all auxiliary endpoint evidence is further removed, allowing the model to maintain its ability to generate outputs based solely on molecular structure.

[0052] This embodiment uses the AdamW optimizer with an initial learning rate of [missing information]. The weight decays to The batch size is 256, and the maximum number of training epochs is 100. Early stopping is performed based on the macro-average RMSE of each endpoint on the validation set; training is terminated when the validation metric fails to improve for 18 consecutive epochs, and the model parameter with the lowest macro-average RMSE is retained.

[0053] 4. Model comparison and technical effectiveness verification: To verify the interaction between endpoint evidence and endpoint tokens for the same chemical, this embodiment compares the complete model with a task-means model, a structured multi-task model only, an evidence-stitching model, and an endpoint token model that does not include source quality information. All neural network models use the same compound-level partitioning and matched training conditions. The coefficient of determination R², root mean square error RMSE, and mean absolute error MAE are calculated individually for each endpoint, and then an unweighted macro-average is performed on the endpoints that meet the minimum test sample requirement.

[0054] Table 2 shows that the evidence splicing model outperforms the structure-only multi-task model, indicating that the measured toxicity endpoints for the same chemical contain effective information beyond molecular structure. The endpoint token model without source quality information further improves the macro-average R², demonstrating that explicit modeling of endpoint semantics and evidence interaction is superior to fixed vector splicing. The complete QACT-Net achieves the highest overall performance. The complete model improves the R² of 42 endpoints compared to the structure-only model and the R² of 44 endpoints compared to the evidence splicing model.

[0055] Furthermore, verification was conducted under the condition of retaining only some auxiliary evidence and non-overlapping structural skeletons, and the results are shown in Table 3.

[0056] Table 2 Table 3 Low-evidence experiments show that even when only 25% of the available auxiliary endpoints are retained, the complete model still maintains a significant advantage; the non-overlapping skeleton verification shows that when the test chemical and the training chemical lack the same molecular skeleton, the measured toxicity endpoints of the chemical to be treated can still provide effective constraints.

[0057] When masking endpoint families, all supporting evidence relating to the target endpoint that shares the same species, route of administration, or toxicity marker is removed. The macro-mean R² values ​​for the complete model under species masking, route of administration masking, and toxicity marker masking conditions are 0.651, 0.635, and 0.565, respectively, indicating that this method can transfer compound-specific information between different species and routes of administration; the transfer between different toxicity markers is relatively weak but still has some effect.

[0058] 5. Complete the toxicity profile of the chemical to be tested: When predicting an analyte, its normalized molecular structure is first obtained, and a molecular representation is generated using the same processing parameters as in the training phase. Then, an endpoint token sequence containing all candidate acute toxicity endpoints is established. For endpoints with existing experimental measurements, their normalized toxicity values, observation status, source, and quality information are input; for endpoints to be predicted and naturally missing endpoints, the input values ​​and observation masks are set to zero.

[0059] For example, the analyte may have an oral LD50 in mice, an intravenous LD50 in rats, and a subcutaneous LD50 in rabbits, while other endpoints are unknown. When predicting the oral LD50 in dogs, the token corresponding to the oral LD50 in dogs is set to the unobserved state, while the three measured endpoints mentioned above are retained as auxiliary evidence. A single forward computation of the model can generate all endpoint outputs simultaneously, and the output corresponding to the oral LD50 in dogs is extracted and inversely normalized to obtain the predicted value at the target toxicity scale.

[0060] When multiple endpoints need to be completed simultaneously, all target endpoints can be set to an unobserved state and a forward calculation can be performed once; alternatively, inputs can be constructed separately for different target endpoints. The method can also output predicted values, a list of input evidence endpoints, evidence coverage, and model suitability indicators, which can be used for chemical screening, test prioritization, and safety assessment decision support.

[0061] This embodiment also provides an electronic device, including a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, it implements a multi-endpoint acute toxicity prediction method based on measured endpoint evidence.

[0062] Specifically, the memory stores a computer program or instructions that implement the method of this embodiment, and the processor executes the program or instructions to complete data unification, token generation, masking training, or toxicity spectrum completion. The program can be stored on a disk, solid-state storage, optical media, or other computer-readable media, or it can be transmitted and deployed as a computer program product via a network.

[0063] This embodiment also provides a computer-readable storage medium storing a computer program or instructions thereon, which, when executed by a processor, implements a multi-endpoint acute toxicity prediction method based on measured endpoint evidence.

[0064] The embodiments described above are merely preferred embodiments of the present invention and are not intended to limit the scope of the present invention. Various modifications and improvements made to the technical solutions of the present invention by those skilled in the art without departing from the spirit of the present invention should fall within the protection scope defined by the claims of the present invention.

Claims

1. A multi-endpoint acute toxicity prediction method based on measured endpoint evidence, characterized in that, include: The molecular structures of multiple chemicals, quantitative toxicity measurements and metadata corresponding to multiple acute toxicity endpoints are obtained, and training data is constructed, wherein the acute toxicity endpoints are determined by species, route of administration and toxicity indicators. Each acute toxicity endpoint is defined as a combination of species, route of administration and toxicity index. The units of the quantitative toxicity measurements are standardized and the numerical values ​​are converted to construct a sparse toxicity spectrum and observation mask. A molecular representation is generated based on the molecular structure of the chemical to be treated, a molecular token is generated based on the molecular representation, and an endpoint token is generated for each of the acute toxicity endpoints. The molecular token and the endpoint token are input into a prediction model with an attention interaction mechanism to train the prediction model. During the training of the prediction model, at least one target endpoint is selected from the observed acute toxicity endpoints of the same chemical. The input toxicity value, observation mask and input quality value of the target endpoint are set to zero, the source state is replaced with the missing state, and the reconstruction loss is calculated based on the predicted value and the true value of the target endpoint. When predicting the toxicity of a chemical to be treated, the toxicity value of the endpoint to be predicted is set to an unobserved state. The observed acute toxicity endpoint of the chemical to be treated is used as auxiliary evidence and input into the prediction model after training to obtain the toxicity prediction value of the endpoint to be predicted. The observed acute toxicity endpoint of the chemical to be treated is obtained through the sparse toxicity spectrum.

2. The multi-endpoint acute toxicity prediction method based on measured endpoint evidence according to claim 1, characterized in that, The training data includes: The system unifies chemical identifiers and molecular structures, aggregates duplicate records of the same chemical and the same acute toxicity endpoint, saves metadata on the number of records, the degree of record dispersion, and the data source, audits the differences between the same chemical-endpoint pairs from different data sources, and removes conflicting records whose differences exceed a preset threshold.

3. The multi-endpoint acute toxicity prediction method based on measured endpoint evidence according to claim 1, characterized in that, The toxicity indicators include at least one of the median lethal dose LD50, the minimum lethal dose LDLo, and the minimum toxic dose TDLo; The route of administration includes at least one of the following: oral, intravenous, intraperitoneal, subcutaneous, skin, intramuscular, and non-specific injection routes.

4. The multi-endpoint acute toxicity prediction method based on measured endpoint evidence according to claim 1, characterized in that, The unit standardization and numerical conversion for the quantitative toxicity measurement include: The quantitative toxicity measurement is standardized to a mass-normalized dose, which is then converted to a molar mass-normalized dose. The target toxicity value is obtained by performing a negative logarithmic transformation, such that an increase in the target toxicity value indicates a decrease in the dose required to produce an acute toxic effect.

5. The multi-endpoint acute toxicity prediction method based on measured endpoint evidence according to claim 1, characterized in that, The molecular representation is generated from one or more of the following: two-dimensional molecular descriptor, molecular fingerprint, molecular graph encoding representation, and pre-trained molecular representation. The molecular token is obtained by performing linear mapping, normalization, nonlinear activation, and random deactivation on the molecular representation. The endpoint token is obtained by fusing the nonlinear projection results of task identity embedding, species embedding, route of administration embedding, toxicity index embedding, input toxicity value and observation mask.

6. The multi-endpoint acute toxicity prediction method based on measured endpoint evidence according to claim 5, characterized in that, The endpoint token also includes data source embedding and record quality information, wherein the record quality information is determined based on the data source, the number of duplicate records for the same chemical-endpoint pair, and the dispersion of the duplicate records.

7. The multi-endpoint acute toxicity prediction method based on measured endpoint evidence according to claim 1, characterized in that, The molecular token and the endpoint token are input into a prediction model with an attention interaction mechanism. Training the prediction model includes: The molecular token and the endpoint token are combined into a token sequence. A multi-layer multi-head self-attention encoder is used to establish target-related interaction relationships between the molecular token and multiple endpoint tokens, as well as between different endpoint tokens, to obtain the encoding results. The encoding results are then input into a shared regression prediction head to output toxicity prediction values.

8. The multi-endpoint acute toxicity prediction method based on measured endpoint evidence according to claim 1, characterized in that, The reconstruction loss is an endpoint-weighted mean squared error loss, wherein the endpoint weight is negatively correlated with the sample size of the corresponding endpoint in the training data and is limited to a preset range. When the endpoint token contains record quality information, the reconstruction loss is further weighted according to the record quality of the target endpoint.

9. An electronic device comprising a processor and a memory, characterized in that, The memory stores a computer program, which, when executed by the processor, implements the method according to any one of claims 1 to 8.

10. A computer-readable storage medium having a computer program or instructions stored thereon, characterized in that, When the computer program or instructions are executed by a processor, they implement the method described in any one of claims 1 to 8.