Skip to main content

Harnessing Databricks for Advanced LLM Time-Series Models in Healthcare Forecasting

Summary

  • Domain-specific foundation model: IQVIA trained an LLM on 50 million healthcare time-series trends to forecast procedure demand, sales, and prescriptions with 7% better accuracy.
  • Transformer architecture: The model's self-attention mechanisms capture complex temporal dependencies and cyclical patterns in healthcare data spanning two decades.
  • Databricks advantage: By training a domain-specialized foundation model locally on Databricks instead of using generic alternatives, IQVIA achieved superior predictive accuracy.

Harnessing Databricks for Advanced LLM Time-Series Models in Healthcare Forecasting

Watch: Harnessing Databricks for Advanced LLM Time-Series Models in Healthcare Forecasting
Talk by yunlong wang, AI Scientist Dir, IQVIA
This research introduces a groundbreaking method for healthcare time-series forecasting using a Large Language Model (LLM) foundation model. By leveraging a comprehensive dataset of over 50 million IQVIA time-series trends, which includes data on procedure demands, sales and prescriptions (TRx), alongside publicly available data spanning two decades, the model aims to significantly enhance predictive accuracy in various healthcare applications. The model's transformer-based architecture incorporates self-attention mechanisms to effectively capture complex temporal dependencies within historical time-series trends, offering a sophisticated approach to understanding patterns, trends and cyclical variations.
Databricks Named a Leader in the 2025 Gartner® Magic Quadrant™ for Data Science and Machine Learning Platforms: https://www.databricks.com/blog/databricks-named-leader-2025-gartner-magic-quadrant-data-science-and-machine-learning
Build and deploy quality AI agent systems: https://www.databricks.com/product/artificial-intelligence
See all the product announcements from Data + AI Summit: https://www.databricks.com/events/dataaisummit-2025-announcements

FAQs

Why did IQVIA build a healthcare-specific foundation model instead of using a general-purpose one?

IQVIA found that training a domain-specialized foundation model on their own large healthcare dataset and platform could beat general foundation models like Google TimeGPT by 7% in mean squared error. This demonstrates that domain knowledge and data scale matter.

What data does IQVIA's foundation model use for forecasting?

The model trains on over 50 million IQVIA time-series trends covering procedure demand, pharmaceutical sales, and prescription volumes (RxDx). This data spans two decades and includes multiple healthcare metrics.

What makes the transformer architecture suitable for healthcare forecasting?

The transformer's self-attention mechanisms effectively capture complex temporal dependencies within historical time-series trends, helping the model understand patterns, trends, and cyclical variations in healthcare data.

How does this model support practical healthcare applications?

The model enables pharmaceutical companies and healthcare organizations to make better predictions about future procedure demand and prescription volumes, supporting better planning and resource allocation.

Full transcript

Uh my name is Jun Long and uh I'm one of the co-author for this work. First of all, thank you all for coming here and uh I it's my honor and pleasure to present in such a big uh global conference. Today I want to introduce how we can leverage data bricks and a big data to train a foundation model or saying a large language model uh because it is very large um and it's pre-trained and when we use it for other application we only need zero shot or only few short learnings so we call it foundation model uh you know such a concept is quite new in recent years back three years ago I wouldn't even imagine that I and train a model with billions of parameters.
But nowadays with a platform with big platform, big data and explo explosive technologies uh we can train the foundation model. Uh this is my team that we work together train this foundation models. Um okay, we call this IQ time. Uh because it's a IQ healthcare time series foundation model. We use this to predict or to do time series forecasting particularly in healthcare data analytics. Uh one lesson I learned, one lesson I learned in this practice is that okay if you want to uh if your task is to specifically for example uh predicting RXDX patient volume for do uh for forecasting task in a domain.
Of course we can leverage the general uh general foundation model for example time GBT or Google time FM. Google time map stands for Google time time series theory foundation model which is also a foundation model. uh also we have uh we have AWS Kronos in our practice we compare our foundation model with for example Google timef actually we we can beat uh beat the time uh Google time fm by 7% in terms of the mms the mean square arrow and uh um the lesson I learned here is that if you have your own large data and if you have your platform if you train use your domain knowledge train uh locally deployed foundation model in for specific tasks.
It could beat the general foundation model. Uh that's how we do it. That's a fun uh that's a that's a basis where we start from. We first have uh we pull 50 million time series in our data set. This uh time series could be for example RXDX by months the uh patient volume or we have a lot of data. Oh by the way before I proceed let me introduce our company. Sorry. Uh we is a large data big data company. We we might we are the largest data wer in healthcare industry. uh my clients include uh are for example could be the like Johnson Jensen Johnson or JSK this big pharmaceutical communist for example and also some media companies uh we provide solutions for them for example marketing solution RD solution but in order to provide the solution we need big data and we need good model to answer my client's questions um because we have the large data so we uh we can afford 50 million times series uh we use more than 10 plus data sources including uh NPA MSP uh and also some experiment data uh we we can do it on geo level on different level we can do it on different segments uh we in the end we end up with one point uh 1.
2 two billion data points here to train this model. Our data sets looks like this. All of them are three-dimensional. On one dimension, of course, it is time series claim data. You have the time series here. On the other dimension, you have we have the geometric information. Geometric information. On the third dimension, we could have segments. For example, when we do marketing, we all do we often do segments. So, using this three-dimensional data, we have all these data sets. for example, DX, PX, LSP, NPA, channel dynamics, SD means social economic data.
Uh in this phase one, in this phase one foundation model, we only use this uh the data sets within this within this circle. Um what what differentiate us is that okay first of all uh our model is is built based on healthcare data. So if we use this model to do healthcare data forecasting, it performed better than general foundation model and uh we we tried it we test it using uh using RXDX uh prediction patient volume prediction etc. also because it is pre-trended so it means that when we use it in another time series theory prediction uh we don't need to retrain it from scratch we just need a few short learning fuel short learning or zero short learning means you just use it like you use GBT you don't provide another training data to your GBT that's zero shot few shot means that you give it a few examples if you want to predict the for example the uh some RXDX on uh um hermatology hermatology market you probably will provide few brands but that's it few shots that's fuel short learning because of the fuel short learning of course it is more efficient than traditional model if you train from scratch and also because it learns everything on all the good area we we have so uh it is like a foundation so it is more stable when when we use it to forecast for example patient volume in certain area we don't have the weird spike.
You know when we do time series uh prediction sometimes we get a weird spike the high frequency noise but if we use the large model it uh it can significantly reduce the spikes the high frequency also we have the uh we we can apply it in many applications within IQL we have we can develop API UIs based on this. Uh next why we choose data bricks in the end this is something I want to recommend here we choose data bricks because this is difficult not because this task is easy we have this challenges first of all the LM architecture is complex it has hundreds of millions parameters you we need to develop uh we need to design the transformers layer by layer and uh I will show the architect later but trust me it's not not a simple architecture second of all our data is multimodal.
It has uh it has like uh the uh it the sorry it has diversity of sources matrix and the segments. Uh it it could have yamar claim and sometimes with gen uh uh genet genomic or image data so it's multimodal. Last uh lastly this is of course computational intensive. We must have a good platform to sol solve all these challenges and fortunately data bricks can handle this and it is very convenient to use in my opinion. Uh because it has uh number one it has many in integrated functions that I can easily I can easily use it.
Uh second of all uh it's powerful. The platform is powerful. You can use as many GPU as you need. Uh sir uh thirdly uh it has uh you know the like the feature engineering tools the building functions uh I I like it and lastly uh last but it's very uh last but um it's also important you know when I finish developing this this will become a product or at least it behind a product and this product has to be widely used in my uh in my industry if my clients they choose data brick fix if we need to share data let's say if you want to share uh let's say one terabyte data between me and my clients so we need um in old times back in old days we probably use SFTP or in Oracle database but nowadays people choose to you more and more my more and more people in this industry choose to use data bricks so we also follow this trend we use data bras and uh we can share data and collaboration becomes easier Um this is from high level.
How did we do it? First we need to uh create the training data set. Of course like every machine learning model from small one to big one we need to uh collect the data create the training data set and then we we need to train this data train this data with platform let's say we use three GPUs and with uh 100 uh 128 gig memories uh in in each epoch and we also uh have the we need to track and manage we need to track and manage the training process it takes time to train it And of course we need to fine-tune.
It's not training in one shot. We have to do iteratively. And in the end we need to develop uh de deploy this model to applications. We provide develop APIs and UIs based on this. That's from high level. Uh we in in the end it is uh it is fast and uh the it can uh it it has good uh reproductibility and it also has good scalability uh collaboration between our company and my uh colleagues become easier. Also we we can work with my clients to do the time series forecasting tasks.
Uh okay for this one it is our experiment results. We test our model on several different tasks. We tried to uh we try to predict MBRX new to brand RX DXPX total TR TXBX NSP uh and also patient volume and also promotion. We tested with different areas and actually at least in our experiment for such specific domain specific tasks it beat the general model. That's the message I want to say major message I want to say today.
Uh this this is from the from high level how we design this uh this foundation this large model here. We uh we use the transformer here and then uh we put layer by layer transformer then output this time series. Um you know my presentation is short today. Time is up. Thank you. Thank you. Thank you. Thank you. Thank you.

Learn more about the Databricks Data and AI platform.

The information provided herein is for general informational purposes only and may not reflect the most current product capabilities or configurations.