Code

How artificial intelligence predicts epidemics, saves sports, and counts mosquitoes

How artificial intelligence predicts epidemics, saves sports, and counts mosquitoes

Free Python course ➞ A mini-course for beginners and experienced coders. 4 cool projects for your portfolio, live communication with the speaker. Click and find out what you can learn in the course.

Learn more

Data Science vs. Neglected Diseases

In the poorest countries of Africa, Asia, and South America, millions of people face serious infectious diseases. There is virtually no response to these epidemics, and the global community rarely pays attention to them. These diseases are known as "neglected diseases," and their ignorance leads to serious consequences for public health and regional development. Raising awareness and mobilizing resources to effectively combat these infections is essential to improve the quality of life for millions of people and prevent further epidemics.

Scientists specializing in data analysis and artificial intelligence continue to actively develop computer systems that help predict epidemics. Their work has significant societal implications, as it helps save lives and improve healthcare systems. Using modern technologies in this field allows for faster responses to threats and efficient resource management during disease outbreaks. Such innovations not only help in the fight against epidemics but also open new avenues for research in medicine and disease prevention.

Mosquitoes are the primary vectors of many tropical infections. The bite of these insects can lead to infection with various diseases, such as dengue fever, Zika virus, and malaria. These infections pose a serious health risk, especially in tropical and subtropical regions where mosquitoes are common. Preventing bites and being aware of the symptoms of these diseases are key to protecting against potential threats.

Scientists from Malaysia, the Dominican Republic, and other countries with experience in combating tropical diseases have joined forces in the international AIME project. AIME stands for Artificial Intelligence in Medical Epidemiology. This project aims to use modern technologies, such as artificial intelligence, to study and predict the spread of tropical diseases. A team of experts is working to create innovative solutions that will help improve the diagnosis, treatment, and prevention of diseases that threaten public health in tropical regions.

Scientists have developed an algorithm that can predict fever outbreaks. The results of their study were published in a scientific article in 2018. This new algorithm has the potential to significantly improve epidemic prediction methods, which, in turn, will facilitate more effective healthcare management and response to potential threats. This research demonstrates the importance of applying modern technologies in epidemiology and medicine.

AIME specialists focused their efforts on creating a program for analyzing publicly available information sources. The goal of the development is to effectively collect, process, and interpret data available in open sources. This will improve the quality of analysis and decision-making based on up-to-date information.

Epidemiologists with experience understand that high humidity and accumulation of rainwater on agricultural land and in construction pits create conditions for the breeding of mosquitoes, which transmit dengue fever. Furthermore, densely populated areas with poor populations and poorly constructed housing contribute to the rapid spread of this disease. Maintaining sanitation standards and eliminating standing water can significantly reduce the risk of dengue fever outbreaks in tropical cities.

Scientists conducted a study in which they identified the main factors influencing the likelihood of a fever outbreak. As a result of the analysis, they identified 12 key parameters, grouping them into four categories. This will allow us to better understand the mechanisms of disease occurrence and develop effective measures to prevent them.

  • population density living in the study area;
  • incidence rate in previous periods;
  • meteorological data (wind, precipitation, humidity, etc.);
  • development of the area (type of housing, presence of nearby unfinished construction sites, agricultural land, etc.).
A patient has a blood test to check for dengue fever. Photo: Zabed Hasnain Chowdhury / Shutterstock

Developing an algorithm to automatically analyze data and predict the likelihood of a mass outbreak several months in advance is an important task. Such an algorithm must take into account various factors influencing the epidemiological situation, including seasonal fluctuations, previous disease outbreaks, and social conditions. The use of modern machine learning and big data analysis methods will significantly improve the accuracy of forecasts. An effective algorithm can form the basis for developing preventive measures and optimizing resource allocation in the healthcare system, which in turn will help reduce the risk of mass illnesses and improve epidemic preparedness.

AIME project scientists have implemented the Support Vector Machine (SVM) machine learning algorithm, known for its high forecasting accuracy. This method enables efficient data analysis and informed predictions, significantly enhancing the AIME project's research and development capabilities.

The scientists analyzed Malaysian Ministry of Health data on dengue fever cases from 2010 to 2014. They compared this data with various parameters to identify possible patterns and trends in the spread of the disease.

The Support Vector Machine (SVM) algorithm calculates the influence of each input parameter on the predicted value. In mathematics, this phenomenon is known as correlation. SVM is used for data analysis and model building, which allows for identifying dependencies and determining which factors have the greatest impact on the results. This method is particularly effective in classification and regression tasks due to its ability to handle high-dimensional data and provide accurate forecasts.

After training, it was found that the highest correlation between fever outbreaks was observed with factors such as population density, the number of cases in previous periods, and precipitation levels. Wind direction, in contrast, did not significantly affect the final results. These findings highlight the importance of considering demographic and climatic factors when forecasting fever epidemics, which can contribute to the development of more effective strategies for combating infectious diseases.

The program demonstrates high accuracy in predicting disease peaks, reaching 89% and providing the ability to forecast up to three months in advance. The intelligent system is capable of identifying outbreak epicenters and displaying them on Google Maps with a minimum error of less than 400 meters. This makes it a valuable tool in the fight against infectious diseases, allowing for a timely response to public health threats.

AIME forecasts provide local authorities in Malaysia with the ability to quickly respond to potential epidemic threats. These data enable the advance preparation of necessary medicines and the availability of hospital beds in cities at risk of infectious disease spread. Effective use of AIME forecasts helps improve healthcare and increase public safety.

The AIME system has been successfully tested not only in Malaysia, but also in Brazil. The increase in Zika virus cases posed a threat to the holding of the Olympic Games in Rio de Janeiro in the summer of 2016. In this regard, some activists suggested the possibility of canceling or postponing the competitions.

In 2016, AIME experts updated their program for analyzing the spread of Zika virus in Brazil. This virus is transmitted by the same mosquitoes that cause dengue fever. The study showed that athletes and spectators at the Olympics will not cause a new outbreak of the infection. Thus, it was confirmed that large-scale events like the Olympic Games do not increase the risk of Zika virus spread.

AIME's forecast became a key factor in organizing the Rio Olympic Games as planned. Today, it can be confidently said that artificial intelligence was right. Not a single case of Zika virus infection was reported in Brazil during the Olympics. This confirms the effectiveness of forecasting and the ability of modern technologies to prevent threats to public health.

Mosquito larvae. Photo: Ghiglione Claudio / Shutterstock

Epidemic on Twitter

Brazilian scientists, as part of the ODL (Observatório da Dengue) project, have developed an innovative program capable of predicting the time and location of dengue fever outbreaks using data from Twitter posts. This solution allows for effective tracking of the spread of the disease and prompt response to potential threats. Analysis of social media publications helps identify trends and patterns associated with outbreaks, significantly increasing the accuracy of forecasts. The use of modern technologies for monitoring public health makes this project an important step in the fight against dengue fever.

The study, conducted from 2009 to 2017, was carried out with the participation of two leading Brazilian scientific institutes. The results of this study were published in a scientific article and generated widespread media attention.

Most Brazilians have access to smartphones with internet access, even those living in slums (favelas) without basic amenities such as water and sanitation. If they contract a fever, many are more likely to share information about their condition on social media than to seek medical attention. This means the epidemic can develop unnoticed, and official data on the number of cases lags significantly behind the actual situation, often by three to four weeks.

ODL monitors thousands of Portuguese-language tweets in real time to close this information gap. The system is designed to identify messages with keywords such as "disease," "dengue," "mosquito bite," and others. An advanced search algorithm filters content, excluding messages that are not relevant to a specific user's condition, even if they contain the searched words. This can happen if a user discusses the healthcare system or shares jokes about doctors. In this way, ODL focuses on important information, allowing for more effective monitoring and analysis of public health.

Programmers and epidemiologists collaborated to collect several thousand relevant tweets, which were then loaded into a training program. As a result, the algorithm learned to analyze phrase structure and determine whether a tweet reflects the author's personal experience. This approach effectively identifies and classifies user opinions on social media, which could be useful for further research in epidemiology and public opinion analysis.

The program monitors smartphone geotags and analyzes the number of alarming tweets sent from various locations. This functionality allows for the effective tracking and visualization of data on the distribution of alarm messages, which can be useful for research and decision-making in emergency situations.

Patients with dengue fever lie on the floor near Mughda Hospital. Photo: Sk Hasan Ali / Shutterstock

The Brazilian scientists' algorithm processes approximately 500,000 messages per year. Remarkably, 75% of them contain geotags obtained using the GPS positioning system. If the GPS function on the device is disabled, the program determines the most probable location of the sender based on the address specified during registration on Twitter. This technology allows for a more accurate analysis of user data and the identification of geographic trends in social networks.

The program has the ability to predict an increase in the incidence of diseases in specific regions eight weeks before the official start of the epidemic. Forecast accuracy reaches 94% when assessing the situation one week ahead and 88% when forecasting two months ahead. This allows for timely measures to prevent the spread of infections and protect public health.

The program provides a visualization on a map of the regions where the onset of the epidemic is expected. It covers not only all of Brazil, but is also capable of detailing the forecast for each individual city, including even small towns. This allows for a more accurate risk assessment and timely action to prevent the spread of diseases.

Mosquitoes under surveillance

Microsoft specialists have developed an innovative method for predicting future epidemics, focusing on monitoring mosquitoes, which are the main carriers of tropical diseases. Instead of the traditional approach of observing sick people, this system focuses on the root causes of the spread of infections. This approach allows for more effective prediction of disease outbreaks and the development of strategies to prevent them.

As part of the Premonition project, Microsoft intends to introduce smart insect traps in tropical countries. These devices perform instant genetic analysis of captured mosquitoes and transmit the results to cloud storage for further research. Several trap models have been developed, including ground-based, suspended, and aerial models that can be deployed using drones. This project aims to monitor and study mosquito populations, which will help combat the spread of diseases transmitted by these insects. Smart traps will become an important tool in monitoring ecosystems and developing effective public health measures.

Tropical infectious diseases pose a serious problem, as they are caused by a variety of pathogens, including viruses, bacteria, protozoa, and fungi. However, modern machine learning algorithms can effectively analyze data and identify patterns common to many insect-borne diseases. This opens up new opportunities for early diagnosis and prevention of the spread of infections, which is especially relevant in the context of global climate change and population migration. The use of artificial intelligence technologies in the study and control of tropical diseases can significantly improve treatment outcomes and improve public health in regions susceptible to these infections.

Microsoft databases store information on the reference fragments of the genomes of most infectious agents capable of infecting humans and animals. If a mosquito carries the genetic material of a certain dangerous infection, rapid analysis will allow for its rapid identification. Artificial intelligence will compare the obtained material with an extensive pathogen database and identify the closest matches. This approach significantly accelerates the diagnosis of infectious diseases and helps fight epidemics.

Microsoft has created several test sites in its laboratories to demonstrate the high efficiency of recognition systems. These test sites simulate real-world conditions, allowing for a more accurate assessment of the technology's performance.

In Microsoft laboratories, scientists have the ability to control lighting, temperature, humidity, and other environmental parameters. This allows them to create conditions appropriate for any region of the planet. These labs also test robotic traps on live mosquitoes, which are specially bred under controlled conditions. Such research is important for developing effective methods for mosquito control and preventing the spread of diseases carried by these insects.

Photo: Microsoft

The trap software is configured to automatically assess whether the trapped insect is of interest for research. The algorithm is trained to distinguish mosquito species by their wing movements in flight. The machine vision system analyzes mosquito flight trajectories illuminated by infrared light within the trap. This improves trapping efficiency and enhances data collection on various insect species.

Microsoft engineers, together with scientists from Johns Hopkins University, collected wing movement profiles of thousands of mosquitoes. This data became the basis for training algorithms that can identify mosquitoes. Currently, the traps are capable of identifying "epidemiologically significant" insect species with 90% accuracy. This is an impressive result, especially considering that there are more than 3,600 known mosquito species worldwide. The development of such technologies could significantly improve the fight against mosquito-borne diseases and improve public health measures.

The insect trap can identify up to 10,000 different individuals in a single day and conduct genetic analysis of the most interesting ones. The device has a rugged housing that protects it from external influences, making it capable of withstanding tropical storms and high humidity. This makes the trap a reliable tool for entomology and ecology research.

The concept for the Premonition project was presented in 2015, and since then, Microsoft has been actively testing key elements of the system in a variety of real-world conditions. Tests were conducted in southern US states such as Texas and Florida, as well as in international locations including Grenada and Tanzania. These tests allowed for the collection of valuable data and improved the project's functionality, making it an important step in the development of disease monitoring and prediction technologies.

In 2020, trials of the Premonition system were deemed successful, and Microsoft is preparing for its large-scale implementation. Premonition traps will primarily be deployed in countries with underdeveloped healthcare systems, where governments have expressed interest in the innovative development of American scientists. This technology promises to revolutionize the approach to monitoring and controlling diseases, enabling a more effective response to public health threats.

The company intends to deploy several thousand traps and drones worldwide within a year. They also plan to create a publicly available interactive map to visualize the data coming from these devices. This will allow users to monitor information in real time and improve interaction with the technology.

What's the Bottom Line

Using artificial intelligence technologies, humanity has been able to develop early warning systems that signal epidemics several weeks before the first patients arrive at medical facilities. These innovative solutions can significantly improve the response to public health threats and minimize the impact of disease outbreaks. Artificial intelligence systems analyze large volumes of data, which helps predict the spread of infections and take timely measures to control them.

Disease prediction cannot prevent their occurrence, but it provides an opportunity to prepare for potential threats and take action in advance. This allows us to respond effectively to impending crises and save countless lives. Proper preparation and timely action can significantly reduce the risk and impact of disease-related natural disasters.

Scientists strive to make predicting the development of epidemics as easy as predicting the weather. They are working to create services that will be accessible even in the poorest countries, which will improve preparedness and response to disease outbreaks. The development of effective forecasting models will be a key step in the fight against epidemics, ensuring timely information for the population and health authorities.

Reading is an important part of life, enriching our experience and knowledge. It provides opportunities for learning, developing critical thinking, and broadening our horizons. Regularly reading books, articles, and other materials improves memory and concentration, and helps shape personal beliefs and worldviews. It is important to choose a variety of information sources to gain a comprehensive understanding of various topics. Make time for reading every day to make it an integral part of your life and active self-development.

  • How will artificial intelligence affect the approach to education?
  • Data: the new oil or ordinary hype?
  • How to start programming in Python?