Algorithm

How VStack-AISM builds z + reconstruction error and evaluates 15 classifiers on the same molecular structures.

Four-stage research workflow from SMILES to 33 VAE-derived inputs, classifier comparison and saved evaluation results
VStack-AISM research framework · z + reconstruction errorDownload SVG

12 stacking classifiers

Three fitted banks use this same classifier order. Each bank adds 12 AISM scores from one view of the base scores.

OrderClassifierImplementation Probability viewRounded viewJoint view
1Support vector classifierSVC 253265277
2Random forestRandomForestClassifier 254266278
3Extremely randomized treesExtraTreesClassifier 255267279
4XGBoostXGBClassifier 256268280
5LightGBMLGBMClassifier 257269281
6AdaBoostAdaBoostClassifier 258270282
7Multilayer perceptronMLPClassifier 259271283
8Gaussian naive BayesGaussianNB 260272284
9K-nearest neighborsKNeighborsClassifier 261273285
10Decision treeDecisionTreeClassifier 262274286
11Logistic regressionLogisticRegression 263275287
12Partial least squaresPLS 264276288

View columns are positions in the final 288-feature vector.

Read the four-stage protocol

Data preparation

The 3,440 training molecules were split with seed 0 into an encoder pool of 2,580 and a classifier development set of 860. A separate independent test set contained 430 AISMs and 430 non-AISMs. Class 0 denotes AISM throughout. View the two source datasets.

Fingerprint representation

For each SMILES string, 12 base classifiers score each of 21 scaled fingerprint and descriptor families. The resulting 252 class-0 probabilities form three views: the probabilities themselves, their rounded indicators, and both concatenated. A bank of 12 stacking classifiers processes each view. Appending the 36 new scores to the original 252 gives 288 ordered features.

Model interpretation

The standardizer and variational autoencoder were fitted on the 1,282 AISMs in the encoder pool. The encoder maps 288 standardized inputs through hidden layers of 256 and 128 units to 32 posterior means, z. The decoder reconstructs the 288 inputs from those means. Reconstruction error is the average squared difference between the standardized input and its reconstruction for that molecule. Appending this scalar to z gives the same 33 inputs to every candidate classifier.

Performance evaluation

Each classifier was tuned on the 860 development molecules using ten predefined folds inherited from the original row assignments. Each setting produced a held-out score for every development molecule. Settings were ranked by pooled out-of-fold (OOF) accuracy, then MCC, with grid order resolving exact ties. Each classifier used its selected setting and all 860 development molecules for its final fit.

All 15 fitted classifiers scored the same 860 independent test molecules. A class-0 score above 0.5 gives an AISM call. ROC AUC uses the continuous score. The recorded metrics are accuracy, sensitivity, specificity, Matthews correlation coefficient (MCC), ROC AUC, precision, recall and F1. MultinomialNB with α = 10 had the highest independent-test accuracy in this comparison, with 822 correct calls.

The experiment saved the grid search (grid.csv), per-fold metrics (folds.csv), row-level OOF scores and calls (oof.csv), independent-test scores and calls (predictions.csv), and fitted classifiers. The downloadable comparison includes hyperparameters, CV and test metrics, confusion counts and fold-level standard deviations for all 15 classifiers.