Epidemiologists constantly analyze disease-incidence data – this is part of the ongoing epidemiological surveillance system. However, obtaining a single chart with a forecast is not enough: it is important to understand how it relates to previous epidemic waves, which factors may explain the observed changes, and how reliable the resulting estimates are. The results then need to be presented in a clear and structured form. This is how analytical reports and information bulletins are produced, which specialists rely on when analyzing the epidemiological situation in order to plan preventive and anti-epidemic measures. Moreover, regular updates are essential here: seasonal epidemic waves recur year after year, and analytical tools must remain up to date and improve as new data accumulates.

At present, much of this is done manually: depending on the type of analysis, it takes from several hours to entire weeks of work. AI automation can speed up the process, but standard large language models (LLMs) have their limitations. Medical data is sensitive, and transmitting it to external cloud services is not always acceptable. That’s why models that can be deployed locally are needed. In addition, it is important to not only obtain data on the number of cases, but to also interpret this data correctly, taking into account patients’ ages, geographic location, and other relevant information.

Another important issue preventing the implementation of LLMs in the system are hallucinations – convincing statements that have nothing to do with reality. Lastly, a final forecast obtained solely with the help of AI does not take expert opinion into account: to incorporate an epidemiologist’s comments, a modeling specialist has to manually adjust the parameters of the mathematical model and then pass the updated forecast to them. This is why specialists generally do not rush to entrust such sensitive conclusions to AI.

A project solution that addresses these problems has recently been unveiled by researchers from ITMO’s Institute of AI, headed by Prof. Alexander Boukhanovsky. Their work is described in a paper published in Expert Systems with Applications; it has also been presented at the Conference on Knowledge Discovery and Data Mining. The system, which received the name AI Epidemiologist, distributes tasks between mathematical models and several AI agents. While the former are responsible for calculations and quantitative evaluation, the latter work with the acquired results: they structure information, explain it, and turn it into an analytical report.

Mathematical models make it possible to forecast incidence while taking uncertainty into account, as well as compare epidemic waves and analyze the factors that may affect the spread of infection. This helps specialists assess not only the current situation, but also possible changes in the near future – that is, anticipate in advance how the seasonal wave may develop.

The system includes a hybrid model that combines the approaches of physics-informed neural networks (PINNs) and large language models (LLMs). This approach makes it possible to combine mathematical modeling with the processing of expert comments: a specialist can describe how the forecast should be adjusted in natural language (for example, “the peak should be higher”), and the system converts their comments into changes to the model’s parameters, which can be interpreted and verified.

Once the calculations are done, three types of AI agents come into play. The first one, the annotator, receives the modeling results and produces a text interpreting the epidemic situation. The second, the editor, makes the text clearer without changing the numbers, dates, or comparisons. Finally, the third, the evaluator, checks whether each statement in the text corresponds to the original calculations and data. To do this, some checks are performed using software, while for others the developers use the LLM-as-a-judge approach: a separate language model acts as the reviewer and compares the content of the report with the results of the calculations. The result is an epidemic inference – a substantiated conclusion drawn from surveillance data, including its interpretation as new information becomes available.

“Our goal is to show that an agent isn’t an enemy and can free professionals from routine tasks. When a model’s use is fully controlled, epidemiologists trust it more because they can adjust it with their comments – via voice notes or text. And most importantly, now every indicator in the report is verified against the calculations of deterministic models, which means that we can detect AI hallucinations,” shares Vasily Leonenko, one of the platform’s developers and a researcher at ITMO’s Institute of AI and the Smorodintsev Research Institute of Influenza.

Vasily Leonenko. Credit: ITMO University

Vasily Leonenko. Credit: ITMO University

According to the developers, one of the main advantages of AI Epidemiologist compared to its counterparts is a wide selection of data and access to data of the existing epidemiological monitoring system for flu and ARVI in Russia. The system works with information that has been collected since 2015. The federal data collection system accumulates several resources: the results of annual epidemiologic monitoring collected by dedicated centers of the Smorodintsev Research Institute of Influenza, signal monitoring data collected according to the WHO guidelines, and hospital monitoring data for flu and ARVI. Each source sheds light on a different side of the epidemiological situation; thus, their combination offers a more detailed picture of respiratory disease incidence in the country.

Separate components of the agent system, specifically the weekly flu and ARVI incidence forecast modules, have already been tested at the Smorodintsev Research Institute of Influenza. These forecasts are regularly published on the institute’s website.

Daria Danilenko, the deputy head of research at the Smorodintsev Research Institute of Influenza, confirms that thanks to the built-in multiplex monitoring system, AI Epidemiologist’s predictions are quite accurate in the short-term (several weeks). Longer-term forecasts, for example, for an entire year, are currently a tricky task for any AI.

“These days, we are getting ready for a quality transition: delegating a number of routine tasks to AI models. Even when this happens, we will still need some time to control the results that models produce based on our data. Such a transition will not only free up some time, but it will also open new data analysis opportunities. No matter what agents and assistants we develop, the quality of the data we analyze and describe – on our own and with AI – remains the key element of our work. In the future, implementation of AI agents in epidemiology and statistics will help us improve every stage of this system. This, in turn, will significantly improve data quality and consequently, the accuracy and reliability of predictions,” adds Daria Danilenko.

A part of the tasks performed manually, such as comparison of the current situation with historic data, evaluation of incidence in different age groups, and specification of factors impacting the prediction, has been implemented in the prototype. Next, the researchers are planning to test these functions in practice and teach the system to conduct a deeper analysis.

Among the team’s next steps are the assessment of generated reports by experts from the Smorodintsev Research Institute of Influenza, work with more complex expert comments, and unification of separate modules into a single system. Further along, the team is planning to add causative analysis and a module assessing the efficiency of epidemic-prevention measures. This will enable the system to not only make predictions, but also explain why a scenario develops a certain way and what will change if, say, schools close for quarantine or vaccination efforts increase.