Related Experiment Video
Updated: Jan 31, 2026

A Step-by-Step Implementation of DeepBehavior, Deep Learning Toolbox for Automated Behavior Analysis
Published on: February 6, 2020
Implementation of deep learning for measurement of penile curvature on real 2D intraoperative images
Sriman Bidhan Baray1, Saidanvar Agzamkhodjaev2, Mansour Ali3
1Department of Electrical and Electronic Engineering, University of Dhaka, Bangladesh.
Background:
Penile curvature (PC) may occur in up to 10 % of male births worldwide and is typically associated with the birth defect hypospadias. While the extent of PC impacts surgical management and patient outcomes, curvature evaluation is inconsistent between surgeons due to a lack of reliable assessment techniques. Our goal was to create a dependable, automated deep-learning solution to precisely assess PC from real-time intraoperative 2D images.
Materials And Methods:
A dataset of 421 images was assembled and annotated by four human experts. Annotations were used to calculate PC angles and determine ground truth curvature degrees in each case. All images and ground truth angle information were used to train 3 different deep-learning models. A YOLOv8 model was trained to localize and crop the penile region, then a deep-learning model was employed to segment the shafts and generate binary mask images. In the final stage, a modified HRNet model was used to integrate angle error, predict four key points denoting mid-axes of the proximal and distal shaft, and then use these landmarks to calculate curvature automatically.
Results:
The proposed system demonstrated a high level of reliability in localizing penile areas, as evidenced by a mean average precision score of 99.4 %. Furthermore, our pipeline exhibited strong performance in the segmentation task, achieving an impressive Intersection over the Union metric of 83.56 % and a Dice Similarity Coefficient of 91.02 %. In terms of angle prediction, the system achieved a mean absolute error of 7.9°. By comparison, variability among human raters ranged between 6.5 and 12.0° (median ≈ 8.9°), consistent with previously reported manual errors of 3.5-13.6°. Thus, the AI system matched or outperformed human raters, providing more consistent and reliable curvature estimation. The model achieved a median error of 7.8° across 421 images, with 82 % of predictions within ±10° of ground truth. Only 6 % of cases crossed the 30° surgical threshold, confirming the tool's reliability for clinical decision-making.
Discussion:
This study demonstrates the successful implementation of deep learning and keypoint-based measurement of PC that could significantly improve patient assessment by surgeons and hypospadiology researchers.
Related Concept Videos
Degree of Curvature and Radius of Curvature
Vertebral Column: Regions and Curvature
Regions of the Vertebral Column
In an adult, the spine is subdivided into five regions: the cervical, the thoracic, the lumbar, the sacral, and the coccygeal region. The spine initially develops as a series of 33 vertebrae; after 20 years of age, the nine bones in the sacral region, five sacral, and four coccygeal bones fuse to form...
Nursing Implementation
The five steps to implementing effective nursing care include reassessing the patient, reviewing and revising the existing nursing care plan, organizing the resources and care delivery, anticipating and preventing complications, and implementing nursing interventions.
Space-Time Curvature and the General Theory of Relativity
This has been verified in many experiments. However, space and time are no longer absolute. Two observers moving relative to one another do not agree on the length of objects or the passage of time. The mechanics of objects based on Newton's laws of...
Avoidance Learning and Learned Helplessness
Avoidance learning occurs when an organism learns that a specific behavior can prevent an unpleasant outcome. For example, a student who receives a bad grade may start studying harder to avoid future poor grades. This behavior persists even when the negative outcome is no longer present. Avoidance learning is powerful because it maintains behavior in the absence of the...
Influence of Earth's Curvature and Atmospheric Refraction on Leveling

