Skip to main content
. 2025 Jul 1;15:22394. doi: 10.1038/s41598-025-05527-7

Fig. 3.

Fig. 3

The Faster-R-CNN with ResNet 50 is better than VGG 16 in detecting HP of gastric biopsies. A, After training, the value of loss function of both models is calculated (upper). Furthermore, model performance in detecting Hp was evaluated by means of predicting visual images. Red boxes and blocks represent the model prediction and confidence, respectively. Only predictions with a confidence score greater than 0.5 were displayed (middle). Then, F1 scores were calculated for different confidence threshold (Score_Threshold) using ResNet 50 or VGG 16 (bottom). B, The precision-recall (PR) curves of ResNet 50 and VGG 16. C, The average detection accuracy and recall rate of ResNet 50 and VGG 16, respectively.