Technique based on artificial intelligence of

Technique based on artificial intelligence of

Image: Brazilian researchers have developed an algorithm to identify the protozoan Trypanosoma cruzi in photographs of blood samples taken with a mobile phone camera.
view more

Credit: Center for Research on Inflammatory Diseases (CRID)

When Brazilian immunologist Helder Nakaya visited Evandro Chagas Institute in Belém (the capital of Pará state, Brazil) in 2017, there was a commotion because one of its best microscopists was retiring and much of the knowledge used for fast and accurate identification of the protozoan Leishmania would be lost.

“I was dismayed by the waste of losing all that expertise, which it had taken decades to acquire. We began researching and trying to train a computer program to use this professional’s knowledge to identify microorganisms cheaply,” Nakaya told FAPESP Agency.

Five years later, a group of researchers led by Nakaya and scientist Mauro Cesar Cafundo de Morais published the findings of a study showing that artificial intelligence can be used to detect Trypanosoma cruzithe parasite that causes Chagas disease, in images of blood samples taken with a smartphone camera and analyzed by optical microscope.

The algorithm developed by the group is available from an articles in the scientific journal Peer J. The research was supported by FAPESP (projects 20/12017-9and 15/22308-2), and professionals involved in a range of fields from biology to mathematics and computing.

“We got good results in this machine learning initiative. The algorithm works well for Chagas and can be adapted for other purposes that depend on images, such as analyzing samples of feces, skin and colposcopies,” said Nakaya, a principal investigator at the Center for Research on Inflammatory Diseases (CRID), to Research, Innovation and Dissemination Center (INCD) funded by FAPESP and hosted by the University of São Paulo’s Ribeirão Preto Medical School (FMRP-USP). Nakaya is also a researcher at Albert Einstein Jewish Hospital (HIAE), Scientific Platform Pasteur-USP (SPPU), and Instituto Todos pela Saúde (ITpS).

One of the techniques used to diagnose Chagas is performed by microscopists trained to detect the parasite in blood samples. This requires a professional microscope, which can be coupled to a high-resolution camera, but the method tends to be too expensive and unaffordable for low-income patients.

Classified by the World Health Organization (WHO) as one of 20 neglected tropical diseases (NTDs), Chagas is a chronic infectious condition whose prevention requires control of its vectors, the triatomines (kissing bugs), and hence a response by public health services.

Endemic in 21 countries in the Americas, infection by the parasite Trypanosoma cruzi It affects some 6 million people, with an annual incidence of 30,000 new cases in the region, leading to 14,000 deaths per year on average. Some 70 million people are estimated to risk contracting the disease because they live in areas exposed to triatomines.

Deaths from Chagas are trending down in Brazil, but even so they averaged 4,000 in the past decade.

machine learning

The machine learning approach developed by the researchers was based on a random forest algorithm trained to detect and count T. cruzi trypomastigotes in mobile phone images. Trypomastigotes are the extracellular form of the protozoan and the only stage that circulates in the bloodstream of patients with acute Chagas.

Images of blood smear samples taken with a camera capable of 12 megapixel resolution were analyzed to arrive at a set of features common to 1,314 parasites, including morphometric parameters (shape and size), color and texture.

In this part of the study, parasite specialists Joao Santana Silva, Paola Minoprio and Ricardo Gazzinelli trained the algorithm to recognize T. cruziassisted by machine learning and image processing specialists Roberto Marcondes Cesar Jr. and Luciano da Fontoura Costa.

The features were divided into training and testing sets and classified using the random forest algorithm. The resulting values ​​for accuracy and sensitivity were considered high (87.6% and 90.5% respectively).

The researchers also analyzed the area under the receiver operating characteristic curve (AUC-ROC), a graphical representation widely used to assess diagnostic accuracy and optimal test cut-off. The result was 0.942, considered outstanding (the higher the area under the curve, the more accurate the test).

The authors conclude that automating the analysis of images acquired with a mobile device is a viable alternative for reducing costs and gaining efficiency in the use of the optical microscope. “The point is to generate images and analyze them under a microscope that can be sent to remote parts of Brazil. The app itself must say whether they are images of the parasite that causes Chagas. It’s therefore important to have a robust and affordable microscope that can collect the images automatically,” Nakaya said.

The algorithm is open software so that the scientific community can contribute data and resources, I have added, noting that obtaining a supply of low-cost microscopes is a challenge, and that a good example is a paper device invented by Manu Prakash and Jim Cybulski of Stanford University in the United States, although it did not have the expected results when used to detect these parasites.

About São Paulo Research Foundation (FAPESP)

The São Paulo Research Foundation (FAPESP) is a public institution with the mission of supporting scientific research in all fields of knowledge by awarding scholarships, fellowships and grants to investigators linked with higher education and research institutions in the State of São Paulo, Brazil. FAPESP is aware that the very best research can only be done by working with the best researchers internationally. Therefore, it has established partnerships with funding agencies, higher education, private companies, and research organizations in other countries known for the quality of their research and has been encouraging scientists funded by its grants to further develop their international collaboration. You can learn more about FAPESP at and visit FAPESP news agency at to keep updated with the latest scientific breakthroughs FAPESP helps achieve through its many programs, awards and research centers. You may also subscribe to FAPESP news agency at

Disclaimer: AAAS and EurekAlert! are not responsible for the accuracy of news releases posted to EurekAlert! by contributing institutions or for the use of any information through the EurekAlert system.

Leave a Comment

Your email address will not be published.