Personalized medicine increasingly requires solid dosage forms engineered with custom drug release profiles, a demand that traditional mass-manufacturing methods cannot readily satisfy because standard tablet presses are optimized for uniform geometries and fixed dosages. Additive manufacturing technologies, particularly fused deposition modelling and material jetting, offer substantial geometric freedom to tailor the dissolution kinetics of solid dosage forms by altering their three-dimensional architecture. However, navigating this vast structural design space presents a formidable engineering bottleneck. While generative computational strategies can rapidly produce thousands of novel pill configurations, evaluating how each bespoke shape dissolves has historically relied on physical dissolution testing or computationally intensive numerical simulations. Conventional mechanistic release models require extensive experimental calibration and become computationally prohibitive when scaled across expansive geometric libraries. To bridge the divide between high-throughput shape generation and rapid evaluation, researchers have introduced a two-stage machine learning framework that replaces slow numerical calculations with high-speed surrogate predictions, directly linking low-dimensional geometric descriptors to full drug release curves.
The predictive framework relies on a calibrated computational dissolution engine to produce the large synthetic training library required for machine learning without incurring the prohibitive resource costs of endless physical fabrication. In this data-generation phase, the investigators established a voxelized representation where candidate pill geometries are mapped onto a three-dimensional uniform grid with a spatial resolution of 0.01 centimeters per voxel dimension. Within this computational point-cloud environment, each drug-loaded voxel dissolves according to its local liquid exposure, governed by the number of adjacent unoccupied voxel faces. The rate parameter quantifying undissolved mass removal per exposed surface area per second was experimentally calibrated using classic cylindrical test tablets printed from water-soluble polyvinyl alcohol. By comparing the physical dissolution duration of 2090 plus or minus 40 seconds against 97 discrete simulation steps, the team determined an empirical dissolution rate of 4.64 multiplied by ten to the negative second per second, with an experimental propagation uncertainty of 0.08 multiplied by ten to the negative second per second. The baseline computational model showed an overall mean error within 5 percent when validated against physical experiments across five distinct benchmark shapes.
Using this calibrated voxel engine, the researchers systematically generated a synthetic dataset comprising 1000 unique three-dimensional pill designs paired with their simulated drug release curves. To guarantee comprehensive structural diversity across the design space, candidate shapes were derived from an array of geometric primitives, including polyhedral forms with varying face counts and Boolean modifications, curved-surface geometries such as tori and conical frustums, and hollow structures containing enclosed internal cavities. Spatial transformation parameters were sampled using Latin Hypercube Sampling to maintain uniform space-filling across parameters, with Principal Component Analysis confirming that the resulting 1000 configurations evenly blanketed the multi-dimensional design envelope. In parallel, the simulation accounted for internal cavities by tracking inactive cavity voxels that transition into active dissolution boundaries only after the surrounding solid material matrix erodes sufficiently to breach the cavity chamber, exposing its inner surface to the surrounding fluid medium.
Directly processing uncompressed, high-dimensional voxel geometries through machine learning models is computationally intractable, prompting the investigators to distill complex three-dimensional pill structures into a compact feature vector of seven discriminative geometric descriptors. The first four general descriptors capture fundamental mass and spatial dispersion: the total voxel count, which directly correlates to the pill volume and physical mass; the mean Euclidean distance of all drug-loaded voxels from the geometric center, serving as a measure of overall compactness; the standard deviation of those radial distances, acting as an anisotropy metric capable of distinguishing uniform spherical bodies from hollow, donut-shaped rings of identical mean radius; and the total exposed surface area, which governs the immediate solid-liquid contact area. For hollow dosage forms, three dedicated cavity descriptors were formulated: the mean Euclidean distance from cavity voxels to the cavity geometric center, the standard deviation of those internal distances, and the minimum spatial distance between the cavity boundary and the pill exterior surface, which defines the barrier wall thickness regulating initial burst release timing.
These seven structural descriptors were paired with corresponding release profiles to train two distinct supervised machine learning architectures: an artificial neural network and a random forest regressor. The neural network was designed with a three-layer hierarchical architecture containing 128, 64, and 32 neurons across successive hidden layers, trained at a fixed learning rate of 0.001 to resolve complex non-linear spatial interactions. The random forest model was constructed as an ensemble of 137 decision trees, utilizing bootstrap sampling and a minimum restriction of nine samples per leaf node to mitigate overfitting on limited sample sizes. The 1000-sample dataset was partitioned into an 80 percent training cohort, a 10 percent validation set, and a 10 percent external test set. Within the training partition, five-fold cross-validation driving mean absolute error minimization guided hyperparameter tuning, after which the independent validation set confirmed numerical stability on unseen structures prior to final evaluation on the isolated test partition.
Once trained, the machine learning surrogate models achieved dramatic reductions in computational latency while preserving high predictive fidelity on unseen test shapes. Evaluating 100 candidate pill designs through standard voxel-based numerical dissolution simulations required at least 200 minutes of processing time. In contrast, running the trained machine learning pipeline on an Intel Core Ultra 5 125H processor evaluated the entire 100-sample cohort in approximately 6 seconds. This total end-to-end execution comprised roughly 5.98 seconds for extracting the seven geometric descriptors from raw geometry meshes and under 300 milliseconds for surrogate model inference across both algorithms, effectively compressing evaluation times from several minutes down to milliseconds per sample. When benchmarked against traditional linear regression, piecewise linear regression, and surface-area-to-volume ratio calculations, the machine learning models proved far superior. While classical surface-area-to-volume formulations degraded severely when challenged by star-shaped pills with sharp edge curvatures, the surrogate models accurately captured continuous non-linear boundary erosion.
To interpret the internal predictive logic governing the surrogate models, the team conducted systematic ablation studies and theoretical SHapley Additive exPlanations, known as SHAP analysis. In the ablation experiments, removing any single geometric descriptor resulted in modest test-set mean absolute error fluctuations contained within plus or minus 1 percent, demonstrating that the seven-feature vector represents a balanced parameterization without excessive reliance on any isolated metric. However, SHAP analysis revealed a clear hierarchical distribution of predictive weight across the combined dataset. The total voxel count emerged as the single most influential input for both the neural network and random forest models, aligning with physical principles because overall volume directly governs total dissolution duration. Total exposed surface area ranked second across both architectures, reflecting its fundamental role in dictating interfacial dissolution flux. The remaining five metrics functioned as secondary modulators that fine-tuned localized release trajectories.
The influence of internal cavity descriptors exhibited notable dependence on dataset composition and model architecture. Across the joint training set, cavity descriptors displayed lower average importance because solid formulations inherently left those inputs unactivated, diluting their global statistical score. When the researchers isolated and evaluated models trained exclusively on hollow geometries, the feature hierarchy shifted markedly. For hollow pills, the artificial neural network identified the minimum distance between the external surface and internal cavity as its primary predictive feature, reflecting the physical reality that wall thickness governs the exact moment of shell rupture and subsequent burst release. In contrast, the random forest model continued to prioritize total exposed surface area first, ranking shortest wall thickness third. Both models converged on total voxel count as their second most decisive metric, demonstrating that while both algorithms capture hollow pill dissolution, the neural network internalizes localized spatial thresholds more effectively than tree ensembles.
Rigorous physical validation was conducted by fabricating five completely novel pill designs using polyvinyl alcohol filaments on a Bambulab X1C fused deposition modelling 3D printer: a classic cylinder, a hexagonal prism, a hollow cylinder, a hollow rectangle featuring non-axisymmetric sharp internal corners, and a highly porous honeycomb matrix containing interconnected channels. Dissolution testing was executed in a 350-milliliter distilled water bath held at 40 degrees Celsius, using a 1.3-millimeter mesh basket rotating at 300 revolutions per minute alongside a magnetic stir bar operating at 300 revolutions per minute. To avoid measurement artifacts caused by repeatedly removing and re-immersing specimens, a parallel experimental protocol was utilized where multiple identical replicas were retrieved at sequential 431.4-second intervals, dried at 65 degrees Celsius until mass stabilization, and weighed to record real-time erosion without disrupting the remaining samples.
Experimental results from these novel test fabrications confirmed the distinct operational domains of the two machine learning models. For simple, uniform geometries like the classic cylinder and hexagonal prism, both the artificial neural network and random forest surrogates demonstrated high predictive accuracy that closely tracked physical dissolution measurements and numerical simulations. For hollow rectangular structures, both models exhibited moderate deviations attributable to sharp internal corners that accelerate localized dissolution dynamics beyond the resolution of global descriptors, though both maintained mean absolute error differences within plus or minus 1 percent of each other. In the complex honeycomb architecture, however, the random forest model failed to capture multi-channel erosion dynamics. Conversely, the artificial neural network achieved close agreement with experimental ground truth, demonstrating that its deep hierarchical representations successfully synthesize higher-order spatial interactions that simpler tree-based models miss when processing intricate interconnected geometries.
The researchers noted that the framework operates under specific physical boundaries and simplifying assumptions. The underlying computational data engine models the dissolution of the polymeric excipient matrix itself and does not decouple the multi-phase release kinetics of embedded active pharmaceutical ingredients. Additionally, the simulation adopts a static voxel grid with instantaneous solute dispersion, neglecting concentration gradients, diffusion barriers, or localized fluid saturation effects that occur in diffusion-limited formulations. Furthermore, test specimens were printed with 100 percent solid infill, meaning experimental manufacturing variables such as raster angle, layer orientation, and inter-layer bonding are implicitly absorbed into the calibrated material dissolution rate parameter. Consequently, translating this predictive framework to alternative printers, raw material batches, or active drug formulations requires printing and dissolving a simple calibration geometry, such as a standard cylinder, to re-tune the empirical rate constant before initiating surrogate screening.
Subject of Research: Machine learning surrogate modeling for predicting drug release kinetics in 3D-printed tablets
Article Title: Machine learning-based surrogate modeling for predicting the dissolution and release of 3D-printed pills
Article References: Ma, Y., Tong, Y., Jiang, X., Hua, C., Zhai, Y., Nie, Y., Zhang, Y., Vuillod, B., Attwood, S. J., Zhou, F., Li, H., Wildman, R. D., & He, Y. (2027). Machine learning-based surrogate modeling for predicting the dissolution and release of 3D-printed pills. Digital Engineering, 12, Article 100148. https://doi.org/10.1016/j.dte.2026.100148
Image Credits: AI Generated
DOI: 10.1016/j.dte.2026.100148
Keywords: 3D-printed pharmaceuticals, additive manufacturing, drug dissolution, surrogate modeling, artificial neural networks, random forest, personalized medicine, geometric descriptors, fused deposition modelling, polyvinyl alcohol, voxel simulation, drug release kinetics, burst release, computational pharmaceutics, SHAP analysis, ablation study
News Source: Denise Maddox. (November 23, 2026). Machine Learning Predicts Three-Dimensional Printed Pill Drug Dissolution in Milliseconds. Scienmag.



