The digital twin in the Tunisian health system: what is it, and when?

The world is witnessing a shift in the concept of managing complex systems, where it has moved from the logic of reaction to the logic of anticipation, prediction and foresight. At the heart of this shift stands digital-twin technology, which has become a decisive tool for saving lives and improving the quality of services in the most sensitive sectors, and first among them health. The digital twin, in its definition, is a virtual digital model that represents with precision something from the real world, whether a machine, a car, a building, a hospital, or even a vital organ in the human body. It is not confined to a mere three-dimensional model; it is linked to the real thing through sensors, sensing devices and Internet-of-Things devices that continuously transmit live data from the real original to the digital copy. The digital twin works through four integrated stages. The first stage is data capture, where sensors and networks of Internet-of-Things devices are fixed on devices or physical assets in reality to measure physical variables such as temperature, pressure, vibration and humidity, operational variables such as flow rate, rotation speed and electrical power consumed, and temporal and behavioural data such as response times, waiting rates and the operating-cycle time, for example. Then the second stage is linking and data transfer, where the collected data are transferred instantaneously or in regular batches to a cloud-computing environment or a local server using secure transfer protocols, which guarantees continuous connection between the physical original and its digital copy. Then the third stage is simulation and data processing, where the data are entered into the software model, which relies on mathematical and physical models to express the system’s behaviour and its laws, and on artificial-intelligence and machine-learning algorithms to analyse data patterns, detect deviations from normal performance, and test “what if?” scenarios. Then the fourth stage is prediction and response, where the system produces applicable outputs such as predictive maintenance that predicts the damage of a part or a failure before it happens, automatic adjustment that sends signals to control machines in order to modify their speed or stop them automatically, and decision support that offers recommendations to operators or management to improve the course of work and to avoid bottlenecks. The fields of use of this technology are varied and include health and medicine, where a digital model of a patient, or of the flow of patients inside an emergency department, can be created, which helps in predicting the pressure of cases, improving the management of beds, and simulating the response of a given organ to treatment before it is applied in practice. In industry and energy it is used to monitor engines and heavy equipment in order to implement predictive maintenance and reduce operating failures; therefore it can be used, for example, in the the phosphate company, which has for years been suffering from a failure of production to recover. In smart cities and services it is used to simulate traffic, water networks and energy consumption in order to raise the efficiency of infrastructure and to avoid cuts in water and electricity, as happened this summer. And in the management of systems and logistics services it is used to build a digital model of warehouses or supply chains in order to identify bottlenecks and improve waiting times and distribution in ports or any other logistics services. The basic benefit that this technology offers is to allow decisions to be taken on the basis of precise data, and to test dangerous or costly solutions and scenarios inside a completely safe virtual environment before applying them on the ground.

In Tunisia, it can be said that digital-twin technology is adopted and present, but the scope of its adoption differs among academic scientific research, technology start-ups and the public industrial sector. In the academic and scientific-research sector, Tunisian universities are witnessing research projects and international initiatives in partnership with the European Union to develop digital-twin models that focus in particular on smart healthcare, Internet-of-Things systems and artificial intelligence. In the sector of start-ups and technology consultancies, several Tunisian companies specialized in digital transformation and software solutions are active in offering solutions that rely on the digital twin to their local and international clients, and these include predictive maintenance in factories, energy-data analysis, the monitoring of resource consumption, and three-dimensional and interactive models. In the industrial sector and infrastructure, adoption is still in its early stages, or is associated with digital-modernization projects in large institutions and in extractive or processing industries.

As for the Ministry of Health and public hospitals — and this is our basic subject — the reality is entirely different. The ministry does not yet adopt digital-twin technology in a used or officially adopted form in the national health system or inside public hospitals. The ministry’s strategy currently focuses on laying the basic principles of digitization, such as generalizing the unified electronic medical record for the patient, digitizing appointment and prescription systems, and linking hospitals and health centres through the national health-data exchanger. Direct digital-simulation techniques, such as building a digital model of an emergency department like a regional health institution’s, or simulating patients’ vital organs in treatment protocols, or managing the health institutions attached to the ministry, have not yet entered. But there is a presence of this technology in the field of academic scientific research, where there are applications and projects confined to research laboratories and institutions of higher education, in which Tunisian academic parties take part in international research projects in partnership with European universities and hospitals, as we said earlier, to develop digital-twin models for pharmaceutical supply networks and the distribution of medicines among hospitals, and medical and engineering research working on prototypes that use the medical Internet of Things and simulation for intensive-care patients or the processing of medical images.

The adoption of digital-twin technology in the health system is no longer a choice; it is the only practical transition before overcrowding or disaster occurs, so that it may be resolved, or toward predictive, anticipatory functions that sense congestion and control it hours before it happens. The digital twin allows the phenomenon of overcrowding and waiting time to be limited by simulating the flow of patients moment by moment and predicting bottlenecks in waiting halls or triage before they form, which makes it possible to redistribute human resources and beds immediately. It allows the optimal use of limited resources, since the digital simulation carries out thousands of tests to know the most efficient way of distributing medical and paramedical teams without exhausting them or wasting means. It provides a safe environment for experimentation and decision-making, for taking any administrative or organizational decision inside a real hospital carries a great risk to patients’ lives, whereas the digital twin provides a virtual laboratory to try the change and evaluate its results before applying it on the ground. And it allows a response to emergency medicine and to crises by predicting seasonal peaks and determining the optimal response in advance.

The exceptional strength of the digital twin lies in the fact that it does not confine itself to displaying what is happening now, but predicts what will happen in the future and allows it to be controlled before it occurs. It turns management from reaction into anticipation and prediction, for traditional systems move after the problem or the disaster has occurred, whereas the algorithms expect the peak or the crisis hours, or even days and months, before it happens, on the basis of traffic data, weather conditions and seasonal medical history, which allows the medical staff to call in reinforcements or to redistribute beds before the first patient arrives. It provides a completely safe environment for experimentation and innovation, since medical and administrative teams can try hundreds of virtual scenarios and know the results in numbers and minutes within seconds, without exposing a single patient to danger. It maximizes the efficiency of limited resources by revealing hidden bottlenecks: the hospital may think that the problem is a shortage of doctors, whereas the digital model reveals that the origin of the delay is the slowness of transferring laboratory results, or the delay in vacating beds after patients are discharged. It reduces waiting times and eases psychological pressure, which raises the rate of therapeutic success and gives the patient a feeling of dignity and reassurance, and it provides medical teams with an organized, predictive working environment that reduces the phenomenon of burnout. And it allows predictive maintenance of sensitive medical devices, where sensors are fixed on vital equipment to detect any slight change in sound, heat or vibration and to predict the failure before the device stops working during a surgical operation or an emergency case.

As for the most suitable field for the first experiment, emergency departments are considered the first candidate for building the first digital twin, for several reasons. They are a highly dynamic and changing environment, since cases do not follow prior appointments, flow rates are non-linear, and they are affected by multiple external factors. They allow indicators to be measured quickly, for it is very easy to measure the success of the digital model through clear practical indicators such as triage time, waiting time until the medical interview, length of stay in the department, and the bed-occupancy rate. And the direct effect of improving the efficiency of the emergency department is reflected immediately on the whole hospital and on the citizen’s impression and satisfaction. As for the type of hospitals candidate for the first application, effectiveness lies in launching a pilot project in a regional or district hospital, such as the hospitals of the interior regions and the agglomerations of population and disease pressure, instead of starting with the huge, highly complex university hospitals. The size of these hospitals is limited and controllable, and their data and pathways are faster to model, which reduces the time and cost of completing the first digital model. If the digital twin succeeds in managing tight resources and reducing pressure in a regional health institution, this proves the possibility of generalizing it to the rest of the sector with high efficiency. The limited number of devices and emergency beds also allows a faster linking of sensors and of the hospital information system.

Adopting this technology fully faces challenges that must be addressed in parallel. There are challenges of data infrastructure, since the system needs to expand networks of sensors and advanced Internet-of-Things devices in traditional facilities. There are challenges of initial cost, since digital-twin environments require investments in cloud computing and complex simulation software. There are challenges of systems integration, since linking digital models to old real devices needs intensive technical effort. And there are challenges of cadres and training, since the project needs the provision of the budgets allocated to cloud systems and artificial intelligence, and the training of medical and administrative teams in dealing with complex simulation software.

The digital twin is not merely an additional technology; it is a radical shift in the philosophy of managing the health system. It abolishes randomness and personal improvisations in the management of crises and replaces them with decisions supported by live data and precise simulation, which makes the system more flexible, less costly and more efficient in times of strain. In a Tunisian context in which the public health sector suffers from increasing pressure, limited resources and a sharp regional disparity, the adoption of this technology becomes an urgent necessity. Starting with a pilot project in an emergency department in a regional health institution constitutes the first practical step toward building an anticipatory health system capable of predicting crises before they occur, controlling resources before they run out, and protecting lives before they reach the limits of danger. Tunisia, which possesses the engineering and medical competencies capable of building these models, and in which there is academic research in this field, lacks only the political will to turn this knowledge into reality, and to turn the regional health institution from a place that waits for the crisis into a virtual laboratory that anticipates it.

Dr Lamine Elhajji, interested in medical artificial intelligence and health economics
The a regional health institution