João Afonso

João Afonso

Auto-generated profile, based on publicly available information

João Afonso

Gastrenterology, São João University Hospital, Porto, Portugal

Research Focus & Metrics

Academic Career Length

6Years (2021-Present)

(Calculated once Scilit publication data is synced: current year − year of first publication + 1)

Representative Publications

View All Publications
27 September 2021 in BMJ Open Gastroenterology
Verified
Journal Article
Open access
PDF file
Miguel Mascarenhas SaraivaMiguel Mascarenhas Saraiva
Miguel Mascarenhas Saraiva
JAJoão Afonso
João Afonso
TRTiago Ribeiro
Tiago Ribeiro
JFJoão Ferreira
João Ferreira
HCHelder Cardoso
Helder Cardoso
GMGuilherme Macedo
Guilherme Macedo
Objective Capsule endoscopy (CE) is pivotal for evaluation of small bowel disease. Obscure gastrointestinal bleeding most often originates from the small bowel. CE frequently identifies a wide range of lesions with different bleeding potentials in these patients. However, reading CE examinations is a time-consuming task. Convolutional neural networks (CNNs) are highly efficient artificial intelligence tools for image analysis. This study aims to develop a CNN-based model for identification and differentiation of multiple small bowel lesions with distinct haemorrhagic potential using CE images. Design We developed, trained, and validated a denary CNN based on CE images. Each frame was labelled according to the type of lesion (lymphangiectasia, xanthomas, ulcers, erosions, vascular lesions, protruding lesions, and blood). The haemorrhagic potential was assessed by Saurin’s classification. The entire dataset was divided into training and validation sets. The performance of the CNN was measured by the area under the receiving operating characteristic curve, sensitivity, specificity, positive predictive value (PPV), and negative predictive value (NPV). Results A total of 53 555 CE images were included. The model had an overall accuracy of 99%, a sensitivity of 88%, a specificity of 99%, a PPV of 87%, and an NPV of 99% for detection of multiple small bowel abnormalities and respective classification of bleeding potential. Conclusion We developed and tested a CNN-based model for automatic detection of multiple types of small bowel lesions and classification of the respective bleeding potential. This system may improve the diagnostic yield of CE for these lesions and overall CE efficiency.

28 August 2025 in American Journal of Gastroenterology
Verified
Journal Article
Closed access
Miguel Mascarenhas SaraivaMiguel Mascarenhas Saraiva
Miguel Mascarenhas Saraiva
JFJ.P.S. Ferreira
J.P.S. Ferreira
JAJoão Afonso
João Afonso
FMFrancisco Mendes
Francisco Mendes
WSWilliam Preston Sonnier
William Preston Sonnier
Guilherme MacedoGuilherme Macedo
Guilherme Macedo
INTRODUCTION: Capsule endoscopy (CapE) is a minimally invasive procedure designed for small bowels' evaluation. However, prolonged reading times and a risk of missing clinically significant findings limit its potential. Prospective clinical validation studies of artificial intelligence (AI) for CapE remain scarce. Furthermore, existing studies focus on lesion detection, without addressing lesion differentiation. METHODS: The aim of a multicenter prospective validation study was to compare AI-assisted reading with conventional CapE reading. Three hundred thirty CapE videos from 3 devices across 7 centers and 4 countries were included. After conventional reading reports, AI-assisted reading was performed by an independent expert using a deep learning model to detect and differentiate pleomorphic small bowel lesions. Both reports were reviewed by an expert from an independent center, which decided in discrepant cases. AI-assisted and standard readings were evaluated through their accuracy, sensitivity, specificity, positive and negative predictive value, and small bowel lesion detection rate. RESULTS: AI-assisted reading detected 605 of 635 lesions identified by expert-based consensus, whereas standard reading identified 354 lesions. AI-assisted reading outperformed standard reading, with small bowel lesion detection rate of 96.1% vs 76.3% and sensitivity of 97.5% vs 78.2%. AI-assisted reading had a mean examination reading time of 203 seconds per examination. DISCUSSION: This was the first multicentric study proving AI-assisted CapE reading superiority compared with conventional reading. The inclusion of videos from multiple devices addresses the interoperability challenge, whereas including patients from 4 countries and 2 different continents assures a diverse demographic context. AI achieved gastroenterologist-level identification of small-bowel lesions, surpassing conventional reading methods in both lesion detection and characterization.

18 April 2022 in Gastro Hep Advances
Verified
Journal Article
Open access
JAJoão Afonso
João Afonso
Miguel Mascarenhas SaraivaMiguel Mascarenhas Saraiva
Miguel Mascarenhas Saraiva
TRTiago Ribeiro
Tiago Ribeiro
HCHélder Cardoso
Hélder Cardoso
PAPatrícia Andrade
Patrícia Andrade
GMGuilherme Macedo
Guilherme Macedo
Capsule endoscopy (CE) revolutionized the study of the small intestine, overcoming the limitations of conventional endoscopy. Nevertheless, reviewing CE images is time-consuming. Convolutional Neural Networks (CNNs) are an artificial intelligence architecture with high performance levels for image analysis. Protruding lesions of the small intestine exhibit enormous morphologic diversity in CE images. We aimed to develop a CNN-based algorithm for automatic detection of varied small-bowel protruding lesions. A CNN was developed using a pool of CE images containing protruding lesions or normal mucosa/other findings. A total of 2565 patients were included. These images were inserted into a CNN model with transfer learning. We evaluated the performance of the network by calculating its sensitivity, specificity, accuracy, positive predictive value, and negative predictive value. A CNN was developed based on a total of 21,320 CE images. Training and validation data sets comprising 80% and 20% of the total pool of images, respectively, were constructed for development and testing of the network. The algorithm automatically detected small-bowel protruding lesions with an accuracy of 97.1%. Our CNN had a sensitivity, specificity, positive, and negative predictive values of 95.9%, 97.1%, 83.0%, and 95.7%, respectively. The CNN operated at a rate of approximately 355 frames per second. We developed an accurate CNN for automatic detection of enteric protruding lesions with a wide range of morphologies. The development of these tools may enhance the diagnostic efficiency of CE.

15 October 2025 in BMJ Open Gastroenterology
Verified
Journal Article
Open access
PDF file
BRBruno Rosa
Bruno Rosa
Miguel Mascarenhas SaraivaMiguel Mascarenhas Saraiva
Miguel Mascarenhas Saraiva
JAJoão Afonso
João Afonso
TGTiago Cúrdia Gonçalves
Tiago Cúrdia Gonçalves
FMFrancisco Mendes
Francisco Mendes
JCJosé Cotter
José Cotter
Objective: Pan-intestinal capsule endoscopy (PCE) offers a safer, more effective alternative to colonoscopy for detecting potentially haemorrhagic lesions (PHL) in suspected mid-lower gastrointestinal bleeding (MLGIB), though it is limited by time-consuming review and missed lesions. We compared the diagnostic performance of artificial intelligence-assisted PCE (AI-PCE) versus conventional reading PCE (CR-PCE) and colonoscopy. Methods: We retrospectively analysed 100 prospectively enrolled patients undergoing PCE for suspected MLGIB using an externally validated convolutional neural network. Diagnostic performance of AI-PCE, CR-PCE and colonoscopy was evaluated against a consensus reference standard. Accuracy metrics (sensitivity, specificity, positive predictive value (PPV), negative predictive value (NPV)) were assessed overall and by lesion type and intestinal segment. Results: AI-PCE detected PHL in 60% of patients versus 42% with CR-PCE (p<0.01). Lesions included vascular (51% vs 33%, p<0.01), ulcers/erosions (16% vs 7%, p=0.012), protuberant (5% vs 4%, p=1.0) and active bleeding (7% vs 7%, p=1.0). AI-PCE achieved higher sensitivity than CR-PCE (95% vs 67%, p<0.0001) with comparable specificity (97% vs 97%), PPV (98% vs 98%) and superior NPV (92% vs 63%, p=0.0015). For the small bowel, AI-PCE outperformed CR-PCE in sensitivity (96% vs 59%, p<0.0001) and NPV (97% vs 76%, p=0.0010). In colon, AI-PCE also showed greater sensitivity (90% vs 68%, p=0.027) and NPV (94% vs 86%, p = 0.066). Compared with colonoscopy, AI-PCE was markedly more sensitive (90% vs 32%, p<0.0001) with higher PPV (100% vs 65%, p<0.001) and NPV (94% vs 65%, p<0.0001). Conclusion: AI-PCE significantly improves diagnostic accuracy over conventional reading and colonoscopy, offering superior sensitivity without compromising specificity, and may establish a new standard for PCE in MLGIB.

10 September 2025 in BMJ Open Gastroenterology
Verified
Journal Article
Open access
PDF file
Miguel Mascarenhas SaraivaMiguel Mascarenhas Saraiva
Miguel Mascarenhas Saraiva
MAMaria João Almeida
Maria João Almeida
MMMiguel Martins
Miguel Martins
JAJoão Afonso
João Afonso
TRTiago Ribeiro
Tiago Ribeiro
GMGuilherme Macedo
Guilherme Macedo
Objective: Capsule endoscopy (CE) provides a minimally invasive exam modality for panendoscopic evaluation of the entire gastrointestinal (GI) tract. However, conventional reading methods can be time-consuming and error-prone. Protruding lesions are a relatively common entity that can be found with a variable incidence and different pathological significance throughout the GI tract. The aim of this study was to develop and test a convolutional neural network (CNN)-based algorithm for panendoscopic automatic detection of protruding lesions on CE exams. Methods: A multicentric retrospective study was conducted, based on 1245 CE exams. We used a total of 191 455 frames, from six types of CE devices, of which 52 717 had protruding lesions (polyps, epithelial tumours or subepithelial lesions) after triple validation. Data were divided into a training and test set (90% vs 10%), in an exam-split design. During the training stage, we performed a fivefold cross-validation. Our outcome measures were sensitivity, specificity, accuracy, positive predictive value (PPV), negative predictive value (NPV), and areas under the conventional receiver operating characteristic curve (AUC-ROC) and the precision-recall curve (AUC-PR). Results: In the test set, the sensitivity was 79.7% and the specificity was 96.5%. The PPV and NPV were 81.5% and 96.0%, respectively. The global accuracy was 93.7%. Conclusion: This study aims to address a gap in artificial intelligence (AI)-enhanced capsule panendoscopy by reporting the development of the first CNN for the detection of protruding lesions across the GI tract. AI’s improvement of CE’s diagnostic accuracy, along with the growing interest in minimally invasive procedures, may contribute to increasing access to this diagnostic tool. Further multicentric and prospective studies are needed to validate our preliminary results to ultimately introduce deep learning models into clinical practice.

13 December 2021 in Journal of Coloproctology
Verified
Journal Article
Open access
PDF file
JAJoão Pedro Lima Afonso
João Pedro Lima Afonso
APAna Pereira
Ana Pereira
JPJoaquim Costa Pereira
Joaquim Costa Pereira
SMSandra Martins
Sandra Martins
Background Anatomopathological staging is the primary method to determine the prognosis of patients with colorectal carcinoma (CRC). However, new tools have been developed that can complement it, such as the analysis of the elevation of systemic inflammatory markers.Objective To evaluate the impact of the elevation of scores based on inflammatory markers (the neutrophil-to-lymphocyte ratio [NLR], the Glasgow Prognostic Score [GPS], and isolated C-reactive protein [CRP]) in the prognosis of patients diagnosed with CRC and submitted to potentially curative surgery in Hospital de Braga, Portugal, between January 1st, 2005, and December 31st, 2010.Methods A retrospective analysis of the data of 426 patients was performed, with a collection of several clinico-pathological variables, as well as the levels of lymphocytes, neutrophils, albumin and CRP, in the pre- and postoperative periods, to apply the different scores to the sample.Results From the analysis of the survival curves, we concluded that patients with increased NLR in the pre- and postoperative periods present a lower cancer-related survival than patients with normal NLR (preoperative period: 93.7 versus 122 months; p < 0.001; postoperative period: 112 versus 131 months; p = 0.002). Patients with increased NLR in the pre- and postoperative periods also had a lower disease-free survival (preoperative period: 88.0 versus 122 months; p < 0.001; postoperative period: 111 versus 132 months; p = 0.002). In addition, increased pre- and postoperative NLR was associated with a higher risk of death due to CRC (preoperatively: hazard ratio [HR] = 2.25; p < 0.001; postoperatively: HR = 2.18; p = 0.003). However, the multivariate analysis shows that only postoperative NLR (ajusted HR = 2.66; p = 0.002) does so independently of the remaining variables.Conclusion Regarding the scores applied to the sample, the NLR was the one that most consistently related to the prognosis of the patients. However, it would be useful to develop a prospective study that could confirm this relationship.