The invention discloses a method for distinguishing
obstructive azoospermia and non-
obstructive azoospermia based on ultrasonic images and
machine learning, and relates to the technical field of
image analysis and
machine learning, all patients are subjected to bilateral
scrotum ultrasonic examination before operation; patients are divided into a
training set, a validation set, and a
test set according to the use of the dataset. In the
training set, image
omics features are extracted from the left testis ultrasonic image and the right testis ultrasonic image, and key features related to
obstructive azoospermia are screened out; on the basis of the selected
radiomics features, five
machine learning models are constructed, including a k-nearest neighbor model, a
logistic regression model, a multi-layer
perceptron model, a
random forest model and a
support vector machine model; analyzing and evaluating the diagnostic performance and clinical application value of the model in the three groups of data through an ROC curve and a
clinical decision curve; and explaining the final
machine learning model by using SHAP analysis. The method has important value in distinguishing obstructive
azoospermia and non-obstructive
azoospermia, wherein the
logistic regression model shows better diagnostic performance compared with other four models.