Transdermal fentanyl patches are an effective alternative to the sustained-release of oral morphine for chronic pain treatment. Due to the narrow therapeutic range of fentanyl, the fentanyl concentration in the blood needs to be controlled carefully. Only then, effective pain relief can be reached while avoiding adverse effects such as respiratory depression. In this study, a physics-based digital twin of the patient was developed by implementing mechanistic models for transdermal drug uptake and the patient’s pharmacokinetic and pharmacodynamics response. A digital twin is a virtual representation of the patient and the transdermal drug delivery system, which is linked to the real-world patient by patient feedback, sensor data of specific biomarkers, or customizing the twin to a particular patient characteristic, for example, based on the age. This digital twin can predict the transdermal drug delivery processes in-silico. Our twin is used first to predict conventional therapy’s effect for using fentanyl patches on a virtual patient at different ages. The results show that by aging, the maximum transdermal fentanyl flux and maximum concentration of fentanyl in the blood decrease by 11.4% and 7.0%, respectively. Nonetheless, by aging, the pain relief increases by 45.2% despite the lower concentration of fentanyl in the blood for older patients. As a next step, the digital twin was used to propose a tailored therapy, based on the patient’s age, to deliver fentanyl based on the patient’s needs to alleviate pain. This predesigned therapy consisted of customizing the duration of applying and changing the commercialized fentanyl patches based on the calculated pain intensity. According to this therapy, a patient of 20 years old needs to change the patch 2.1 times more frequently compared to conventional therapy, which led to 30% more pain relief and 315% more time without pain. In addition, the digital twin was updated by the patient’s pain intensity feedback. Such therapy led to an increase in the patient’s breathing rate while having effective pain relief, therefore providing a safer and more comfortable treatment for the patient. We quantified the added value of a patient’s physics-based digital twin and sketched the future roadmap for implementing such twin-assisted treatment into the clinics.NomenclatureSymbolsci The concentration of fentanyl in layer i (in the drug uptake model) [ng ml-1]cp The concentration of fentanyl in the central compartment [ng ml-1]cr The concentration of fentanyl in the rapid equilibrated compartment [ng ml-1]cs The concentration of fentanyl in the slow equilibrated compartment [ng ml-1]cg The concentration of fentanyl in the gastrointestinal compartment [ng ml-1]cl The concentration of fentanyl in the hepatic compartment [ng ml-1]ce The concentration of fentanyl in the effect compartment [ng ml-1]Di Diffusion coefficient of fentanyl in layer i (in the mechanistic model) [m2 s-1]D0 Base diffusion coefficient of fentanyl [m2 s-1]DT Diffusion coefficient of fentanyl at temperature T [m2 s-1]D306 Diffusion coefficient of fentanyl at 306[K] [m2 s-1]dpt The thickness of the transdermal patch [µm]dsc The thickness of the stratum corneum [µm]dvep The thickness of the viable epidermis [µm]dEdm The thickness of the equivalent dermis [µm]Ei The intensity of effect i The baseline of effect i The maximum effect iEC50,i The concentration related to half-maximum effect i [ng ml-1]fu The fraction of unbound fentanyl in plasmaji Fentanyl flux in layer i (in the mechanistic model)Ki/j The partition coefficient of fentanyl between layer i to j (in the mechanistic model)Ki The drug capacity in layer i (in the mechanistic model)kcs Inter-compartmental first-order equilibrium rate constant (central to slow equilibrated) [min-1]kcr Inter-compartmental first-order equilibrium rate constant (central to rapid equilibrated) [min-1]kcg Inter-compartmental first-order equilibrium rate constant (central to gastrointestinal) [min-1]kch Inter-compartmental first-order equilibrium rate constant (central to hepatic) [min-1]ksc Inter-compartmental first-order equilibrium rate constant (slow equilibrated to central) [min-1]krc Inter-compartmental first-order equilibrium rate constant (rapid equilibrated to central) [min-1]khc Inter-compartmental first-order equilibrium rate constant (hepatic to central) [min-1]kgh Inter-compartmental first-order equilibrium rate constant (gastrointestinal to hepatic) [min-1]kmet Metabolization rate constant [min-1]kre Renal clearance rate constant [min-1]ke Inter-compartmental first-order equilibrium rate constant (for effect compartment) [min-1]SI Sensitivity indext Time [h]tD Time lag [h] Dependent variable related to xi for sensitivity analysisVc The apparent volume of the central compartment [L]Vs The apparent volume of the slow equilibrated compartment [L]Vr The apparent volume of the rapid equilibrated compartment [L]Vg The apparent volume of the gastrointestinal compartment [L]Vh The apparent volume of the hepatic compartment [L]xi The independent variable which sensitivity analysis is done based on itγ Hill coefficientψi Drug potential in domain i [ng ml-1]