Planning a clinical trial starts with a few practical questions: Where can we run it? How quickly can we recruit patients? And when can we reach key milestones? Clinical research organizations (CROs) compete to help pharmaceutical companies run these trials, and their bids need to offer realistic answers. Data from past studies helps them forecast what is achievable and build plans they can confidently propose.
For one global clinical research organization, machine learning was already central to this process. Its forecasting platform used historical data to predict study timelines and milestones during the pre-award phase. But the predictions were generated through overnight batch processing and stored in a database for the application to retrieve later.
The experience appeared immediate to users, but the forecasts themselves had already been calculated. If information changed during the day, it would not be reflected until the next processing cycle. More importantly, users had limited ability to explore different scenarios. They could select a medical study, but changing additional parameters, such as the indication, would not generate a different prediction because the available results had already been computed.
For teams shaping a bid around different assumptions, the forecasting experience needed to become as dynamic as the decisions it was supporting.
Finding a bigger opportunity in modernization
Persistent’s role initially began with modernization of the application surrounding the forecasting product, rather than its AI/ML capabilities. That engagement opened an opportunity to look more closely at the intelligence operating behind it.
A six-to-eight-week AI/ML discovery and assessment examined the existing implementation and helped define a target architecture and roadmap. One of the opportunities Persistent identified was to move pre-award forecasting beyond its reliance on precomputed results and make predictions available on demand. The recommendation subsequently progressed into implementation and production.
Crucially, the organization did not need to start again. Its existing prediction logic was already working and did not need to be disrupted. The opportunity was to rethink how that intelligence could be accessed and applied when users needed it.
Moving from precomputed answers to predictions on demand
Persistent transformed the inferencing layer using Databricks serving endpoints. Instead of running inference overnight and storing the results for subsequent retrieval, the application could pass selected study parameters directly to the ML pipeline. The pipeline could then execute against those inputs and return a new prediction through an API.
The change fundamentally altered what users could do with the forecasting capability. Rather than being limited to a predefined set of results, they could vary relevant study parameters and receive predictions specific to the scenario under consideration.
But moving prediction into the live user journey introduced another challenge: on demand needed to feel on demand.
Initial real-time predictions took around 80 to 90 seconds, with some approaching two minutes. A user actively exploring study scenarios could not be expected to wait that long for every response.
Persistent optimized the Databricks serving endpoint configuration as well as the preprocessing aspects and introduced Delta tables to make the features required for prediction readily available at runtime. The core source data remained unchanged, but relevant historical data could be refreshed into intermediate tables ahead of time, avoiding expensive calls to remote source tables during each live request.
Predictions are now largely returned within 20 seconds and, in most cases, in under 10 seconds, meeting the client’s acceptance criteria for an interactive experience.
Taking nearly two days out of model training
The transformation also uncovered an opportunity deeper in the ML lifecycle.
Training the models previously took approximately 40 to 45 hours. Persistent traced much of that runtime to preprocessing, where data and features were prepared before model training began.
By optimizing this stage of the pipeline, the team reduced model training to approximately four hours. The faster process was then validated against the relevant training metrics to ensure that the improvement in speed did not compromise acceptable model accuracy or results.
The result was an improvement of around 90% in training time, making the underlying ML lifecycle substantially more efficient while preserving the intelligence the organization already relied on.
Opening up what forecasting could become next
The work delivered so far focuses on pre-award forecasting, where historical data helps teams shape the forecasts used in a bid. But that is only one side of the clinical trial lifecycle. Once a bid is won and the study moves into execution, actual data begins flowing from clinical trial sites. The organization’s post-award forecasting environment currently uses a more complex, batch-based deep-learning pipeline, creating another potential area for optimization over time. No implementation in this area has yet been committed.
There is an even broader possibility for the platform itself. Today, the forecasting capability primarily serves internal users using the organization’s own data. A future vision is to extend the product to other CROs. That would require the platform to accommodate new customer data sources and integrations and potentially create new ML pipelines capable of bringing different datasets into the forecasting environment.
Agentic AI could add another dimension. The broader platform already includes agentic capabilities designed to help users understand the basis for predictions and navigate application knowledge conversationally. These capabilities were not delivered by Persistent, but they illustrate the potential to take forecasting beyond simply presenting an answer toward helping users understand why a particular prediction was made.
What began with a very practical question, “how can an overnight prediction become useful on demand?” has created a foundation for a more flexible forecasting environment: one that can respond to different study scenarios in seconds today and has the potential to support a broader range of data, users and decisions tomorrow.




