AstraZeneca

AstraZeneca Predicts Drug Toxicity with Julia & BNNs

AstraZeneca

AstraZeneca Predicts Drug Toxicity with Julia & BNNs

Date Published

Nov 6, 2023

Nov 6, 2023

Industry

Pharmaceuticals

Share

Share

Date Published

Nov 6, 2023

Industry

Pharmaceuticals

Share

Use Case

Predicting the toxicity of a drug preclinically reduces development costs and increases patient safety. Prediction models can be built using in vitro assays and physicochemical properties of compounds as features. AstraZeneca and Prioris.ai have developed a Bayesian neural network (BNN) to predict drug-induced liver injury.

Deep neural networks (DNNs) are used to predict toxicity for both a single target and multiple targets. Neural networks are popular due to their flexibility but are prone to overfitting and do not capture uncertainty. This might lead to overconfident predictions even when they are erroneous.

Bayesian neural networks (BNNs) use the architecture of neural networks and additionally describe each weight with a distribution, rather than a point estimate. The prior distributions used by BNNs regularize the weights and prevent overfitting. Furthermore, BNNs report the uncertainty in the predictions.

AstraZeneca uses Julia to predict drug Toxicity - Case Study

Defining neural networks with Flux.jl

Neural network architecture can be defined using Flux.jl and used both for classical and Bayesian inference, when combined with a probabilistic modeling language, such as Turing.

By separating the model and inference from each other, modern probabilistic programming languages (PPLs) make inference for Bayesian models straightforward. They provide an intuitive syntax to define a model, and a set of sampling algorithms to run the inference. Hence, only a generative model needs to be defined by a user to estimate parameters and make predictions.

In the context of probabilistic modeling, Julia provides a fertile ground: several native PPLs have been recently developed - Turing, Gen, Stheno, SOSS, Omega, indicating strong interest of the research community in the topic. The current model was implemented in Turing – a PPL embedded in Julia.

The original article is available here and the model can be run live at here via 'launch binder'.

AstraZeneca uses Julia to predict drug Toxicity - Case Study

Posterior density distribution (left) and posterior predictive distribution (right) visualise the predicted toxicity profile of a compound.

Authors

JuliaHub, formerly Julia Computing, was founded in 2015 by the four co-creators of Julia (Dr. Viral Shah, Prof. Alan Edelman, Dr. Jeff Bezanson and Stefan Karpinski) together with Deepak Vinchhi and Keno Fischer. Julia is the fastest and easiest high productivity language for scientific computing. Julia is used by over 10,000 companies and over 1,500 universities. Julia’s creators won the prestigious James H. Wilkinson Prize for Numerical Software and the Sidney Fernbach Award.

Authors

JuliaHub, formerly Julia Computing, was founded in 2015 by the four co-creators of Julia (Dr. Viral Shah, Prof. Alan Edelman, Dr. Jeff Bezanson and Stefan Karpinski) together with Deepak Vinchhi and Keno Fischer. Julia is the fastest and easiest high productivity language for scientific computing. Julia is used by over 10,000 companies and over 1,500 universities. Julia’s creators won the prestigious James H. Wilkinson Prize for Numerical Software and the Sidney Fernbach Award.

Authors

JuliaHub, formerly Julia Computing, was founded in 2015 by the four co-creators of Julia (Dr. Viral Shah, Prof. Alan Edelman, Dr. Jeff Bezanson and Stefan Karpinski) together with Deepak Vinchhi and Keno Fischer. Julia is the fastest and easiest high productivity language for scientific computing. Julia is used by over 10,000 companies and over 1,500 universities. Julia’s creators won the prestigious James H. Wilkinson Prize for Numerical Software and the Sidney Fernbach Award.

Contact Us

Want to get enterprise support, schedule a demo, or learn about how we can help build a custom solution? We are here to help.

Contact Us

Want to get enterprise support, schedule a demo, or learn about how we can help build a custom solution? We are here to help.

Contact Sales

Learn about our products, pricing, implementation, and how JuliaHub can help your business

We’ll use your information to respond to your inquiry and, if applicable, classify your interest for relevant follow-up regarding our products. If you'd like to receive our newsletter and product updates, please check the box above. You can unsubscribe at any time. Learn more in our Privacy Policy.

Get a Demo

Discover how Dyad, JuliaHub, and Pumas can improve your modeling and simulation workflows.

Enterprise Support

Leverage our developers, engineers and data scientists to help you build new solutions.

Custom Solutions

Have a complex setup that needs a custom solution? We are here to help.

Contact Sales

Learn about our products, pricing, implementation, and how JuliaHub can help your business

We’ll use your information to respond to your inquiry and, if applicable, classify your interest for relevant follow-up regarding our products. If you'd like to receive our newsletter and product updates, please check the box above. You can unsubscribe at any time. Learn more in our Privacy Policy.

Contact Sales

Learn about our products, pricing, implementation, and how JuliaHub can help your business

We’ll use your information to respond to your inquiry and, if applicable, classify your interest for relevant follow-up regarding our products. If you'd like to receive our newsletter and product updates, please check the box above. You can unsubscribe at any time. Learn more in our Privacy Policy.

Get a Demo

Discover how Dyad, JuliaHub, and Pumas can improve your modeling and simulation workflows.

Enterprise Support

Leverage our developers, engineers and data scientists to help you build new solutions.

Custom Solutions

Have a complex setup that needs a custom solution? We are here to help.

/

/

AstraZeneca Predicts Drug Toxicity with Julia & BNNs

/

/

AstraZeneca Predicts Drug Toxicity with Julia & BNNs