<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Explainable AI for Sperm Morphology: Integrating YOLO with FastLAS⋆</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Talissa Dreossi</string-name>
          <email>talissa.dreossi@uniud.it</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Agostino Dovier</string-name>
          <email>agostino.dovier@uniud.it</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Susy Urli</string-name>
          <email>susy.urli@uniud.it</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Francesca Corte Pause</string-name>
          <email>francesca.cortepause@uniud.it</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Martina Crociati</string-name>
          <email>martina.crociati@uniud.it</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>GNCS-INdAM</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Gruppo Nazionale per il Calcolo Scientifico.</string-name>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Dip. di Scienze Agroalimentari, Ambientali e Animali, Università degli Studi di Udine</institution>
          ,
          <addr-line>33100 Udine</addr-line>
          ,
          <country country="IT">Italy</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Dip. di Scienze Matematiche, Informatiche e Fisiche, Università degli Studi di Udine</institution>
          ,
          <addr-line>33100 Udine</addr-line>
          ,
          <country country="IT">Italy</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Deep learning models excel in complex classification tasks but often lack interpretability, limiting their adoption in domains where explainability is critical, such as medicine and veterinary science. This work presents a hybrid approach that combines deep learning and symbolic reasoning to classify bull spermatozoa morphology in an explainable manner. We utilise YOLOv8 for object detection and morphological and viability classification of bull's spermatozoa from microscope-acquired images, achieving high accuracy. To tackle explainability, FastLAS was employed to learn human-readable classification rules. These rules, coupled with the xASP2 framework, enable traceable justifications for each classification, addressing the black-box nature of deep learning. Experimental evaluation demonstrates that, while FastLAS does not match YOLO's performance, it outperforms traditional machine learning models and offers significant benefits in explainability. This approach provides a practical solution for integrating explainable AI in reproductive biology, with implications for medical AI systems where transparency is essential.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Inductive Logic Programming</kwd>
        <kwd>ASP</kwd>
        <kwd>AI Explainability</kwd>
        <kwd>Object Detection</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>Artificial Intelligence (AI) systems have been widely adopted, including also fields where it is essential
to know the reasoning behind their outcomes. An evident example is the medical domain, where
explainability is crucial for ensuring trust and informed decision-making. Indeed, while deep learning
models achieve remarkable accuracy in predictive tasks, their black-box nature raises concerns in
domains where decision transparency is mandatory. One possible solution is to use built-in interpretable
approaches, such as Logic Programming (LP). However, these systems often struggle to achieve the
predictive performance required for complex classification tasks. To address this, we propose a hybrid
approach combining both techniques.</p>
      <p>The case discussed in this study is bull’s sperm morphology analysis, a fundamental step to discriminate
between satisfactory and unsatisfactory bulls intended as potential breeders. Traditional evaluation
methods rely on visual assessment of semen smears performed by trained operators, requiring significant
time and expertise. Moreover, inter-operator variability can lead to inconsistencies in classification,
affecting the reliability of the analysis. The automatization of this process with AI could improve
efficiency and standardization, but the opacity of Neural Networks (NN) remains a limiting factor. To
address this, we combined deep learning with symbolic reasoning. Specifically, we use the You Only Look</p>
      <p>
        Once (YOLO) object detection algorithm to identify and classify spermatozoa from microscope-acquired
images. To favour interpretability, we then employ the Inductive Logic Programming (ILP) system
FastLAS [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] to learn classification rules from YOLO’s predictions, thus generating an ASP program that
predicts or confirm predictions, and finally xASP for explaining the decisions made with an easy-to-read
output. We have combined all these modules in an app, called XAI-BSC (eXplainable AI for Bull Sperm
Classification ), which, given an image, detect the spermatozoa automatically using YOLO and then
gives an explanation in natural language using ASP rules. Even if the system we are presenting is not
yet completely automatic, requiring sometimes human intervention to extract features for the part of
explainability, practical experiments with domain experts prove that it is already a useful tool that allows
saving time to operators.
      </p>
    </sec>
    <sec id="sec-2">
      <title>2. Related Works.</title>
      <p>
        Bringing advanced computational tools into medical and veterinary fields has greatly improved how
accurately we can make diagnoses and how efficiently things get done. Automated software systems,
such as Computer-Aided Sperm Analysis (CASA), have been successfully implemented in order to assess
sperm viability and motility in fresh semen samples [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. Furthermore, with AI it was possible to develop
predictive statistical models that can assist in decision-making processes across a wide range of fields,
including medical and veterinary applications [
        <xref ref-type="bibr" rid="ref3 ref4">3, 4</xref>
        ]. For instance, AI algorithms are able to accurately
predict the time of calving in dairy cows, aiding farmers in managing livestock more efcfiiently [
        <xref ref-type="bibr" rid="ref5 ref6">5, 6</xref>
        ].
In a similar way, deep learning models have also been applied in the detection of lung abnormalities in
cats [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ].
      </p>
      <p>
        Recent progress in object detection techniques, especially with algorithms like YOLO [
        <xref ref-type="bibr" rid="ref8 ref9">8, 9</xref>
        ], have
shown significant promise in medical imaging. Indeed, studies like the ones by Chen et al. [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] and
Prinzi et al. [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] have highlighted the ability of YOLO in detecting, respectively, cell and cancer.
      </p>
      <p>
        Inductive Logic Programming has also made notable progress. In particular we will consider the
development of FastLAS [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. FastLAS offers significant potential for creating interpretable and accurate
rule-based models. It has proven to perform exceptionally well when more specific rules are preferred
over general ones. For example Drozdov et al. [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ] used FastLAS to build a security policy system, where
restrictive rules were prioritized. Similarly, in some of our previous works we employed FastLAS for
weather forecasting, to explain complex models in an interpretable manner [13], and in legal reasoning,
to extract and possibly explain judges’ reasoning [14]. Additionally, FastLAS has also demonstrated its
effectiveness in combination with NN [15]. By integrating NN with symbolic reasoning, this approach
aims to combine the learning capabilities of NN with the interpretability of symbolic methods. A smilar
work that integrate those techniques was made by Collevati et. al [16].
      </p>
      <p>Regarding logic programming and explainability, xASP2 has emerged as a significant advancement
[17]. xASP2 focuses on improving the understandability of Answer Set Programming (ASP) by providing
a framework to generate explanations for the solutions produced by ASP. Specifically, xASP2 has the
ability to link the presence or absence of an atom in an answer set to the logic rules involved in its
inference. Other systems, such as xclingo [18], DiscASP [19], xASP [20], exp(ASPc) [21] could also be
used to tackle this task. xASP2 currently handles better certain important aspects, such as explaining
false atoms or supporting specific advanced language features.</p>
      <p>The paper is organized as follows: in Sect. 3 we give some backgrounds on the problem, on logic
programming and machine learning languages and tools used in this work. A brief overview of the
related work on deep learning approaches to the problem faced in this paper is reported in Sect. 4 while
the Inductive Logic Programming approach is subject of Sect. 5. Sect. 6 describes experiments, while
Conclusions and some possible lines for future work are drawn in Sect. 7.</p>
    </sec>
    <sec id="sec-3">
      <title>3. Background</title>
      <p>Understanding the morphological features of bull spermatozoa is essential for assessing fertility. The
analysis is traditionally performed through visual evaluation of spermatozoa under bright-field microscopy
following the Society For Theriogenology (SFT) as part of the Bull Breeding Soundness Evaluation
(BBSE). In standard practice, sperm morphology evaluation is performed independently by at least
two technicians. The agreement between their assessments typically ranges from 43% (Fair) to 58%
(Moderate), ensuring that the analysis remains reliable.</p>
      <p>In this study, we employed two techniques to achieve this evaluation: YOLO, a deep learning-based
object detection model, and FastLAS, an ILP framework designed for learning interpretable rules from
data, since it can handle numerical variables. While it would have been possible to define classification
rules with the help of experts, we opted to use an ILP framework for two main reasons. First, while expert
guidelines exist, many morphological features (e.g., the degree of redness required to classify a sperm
cell as dead) cannot be captured with fixed thresholds. As a result, these thresholds cannot be arbitrarily
encoded and must instead be learned from data. Second, inter-operator variability in manual classification
introduces inconsistencies, which can be mitigated through a data-driven approach. By using FastLAS,
we aim to infer classification rules directly from data, thereby enhancing consistency and objectivity.
3.1. YOLO
YOLOv8 is a one-stage object detection model that can localize and classify objects in a single pass,
which is more efficient than two-stage models like Faster R-CNN. YOLOv8 processes images by passing
them through a Convolutional Neural Network (CNN), which extracts spatial and semantic features at
multiple levels. YOLO does not scan the image with sliding windows, neither generates region proposals,
but indeed it divides the image into an S × S grid, where S is a tunable hyperparameter. Each grid cell is
responsible for predicting bounding boxes and class probabilities within its region of the image. In order
to determine the bounding boxes, YOLOv8 employs an anchor-free detection. This helps in speeding
up the computation since an anchor-based approach uses predefined boxes which can slow learning,
especially when the model is applied to custom datasets.</p>
      <p>The model architecture is composed by three main components: backbone, neck, and head. The
backbone is a pre-trained CNN and its purpose is to extract hierarchical feature maps. Then, there is the
neck which combines these features using a Feature Pyramid Network (FPN). FPN allows to improve the
model’s ability to detect objects of varying sizes. Finally, the head computes an output which consist of:
(i) a bounding box coordinates (x, y, w, h), where (x, y) denote the centre and (w, h) the dimensions, (ii) a
confidence score indicating object presence and bounding box accuracy, and (iii) class probabilities for
object classification.</p>
      <sec id="sec-3-1">
        <title>3.2. Answer Set Programming</title>
        <p>ASP is a declarative programming paradigm, which is usually employed to model and solve problems
that involve non-monotonic reasoning. An ASP program consists of a set of rules that encode properties
and constraints of a given problem. Each rule has the general form: H:- A1, . . . , An, not B1, . . . , not Bm
where H, Ai, and B j are atoms, each expressed as p(t1, . . . , tk), where p is a predicate symbol, and ti
are terms (constants or variables). H denotes the head of the rule, representing the conclusion inferred
when the body (the other part of the rule) is satisfied. The symbol :- denotes implication from body to
head. A rule is ground if it contains no variables. ASP supports two forms of literals: atoms A and their
default negation not A, called naf-literal (negation as failure). Default negation enables the expression of
incomplete information and supports non-monotonic reasoning, where conclusions may be withdrawn in
light of new evidence.</p>
        <p>ASP semantics is the one of stable models (also called answer sets): a set of ground atoms S is a stable
model of a program P if it is the unique minimal model of the reduct PS, derived by eliminating all rules
whose bodies are not satisfied by S, and by removing all default negation from the bodies of the remaining
rules [22]. A key property of stable models is that for any atom A ∈ S, there exists at least one rule r in
the ground version of P such that the body of r is satisfied by S and A is the head of r. This provides a
basis for explanation: not only is A known to be true in S, but it is also possible to identify the supporting
rule(s) and the literals that justify its derivation.</p>
      </sec>
      <sec id="sec-3-2">
        <title>3.3. Inductive Logic Programming</title>
        <p>Inductive Logic Programming is a subfield of machine learning that focuses on learning logical rules
from examples and background knowledge. The learning process involves searching rules within an
hypothesis space, to identify those that best explain the given examples while being also consistent with
the background knowledge.</p>
        <p>Among the various frameworks available in ILP, we adopted Learning from Answer Sets (LAS) as
it exploits ASP and is therefore particularly well-suited for learning non-monotonic logical programs.
A learning problem in LAS is formalised as a task, represented by the tuple T = ⟨B, SM, E⟩, where: B
denotes the background knowledge, which is a set of ASP rules, SM is the hypothesis space, i.e. the set of
rules to be possibly learned, and E represents the set of examples that the knowledge base extended with
that learned rules must explain.</p>
        <p>Instead of a complete listing of the hypothesis space, usually it is implicitly defined by a mode bias,
specified as a pair ⟨Mh, Mb⟩, where Mh and Mb are sets of mode declarations for the heads and bodies of
rules, respectively. Each mode declaration describes which predicates and argument types are allowed in
the corresponding part of a rule. Arguments in a mode declaration can be either var(t) or const(t),
indicating a variable or constant of type t. A literal is said to be compatible with a given mode declaration
if it can be formed by substituting each var(t) with a variable of type t, and each const(t) with a
constant of that type.</p>
        <p>Examples are represented as partial interpretations. Formally, a partial interpretation epi is a pair of
sets of ground atoms ⟨einc, eexc⟩, where einc denotes the inclusions, which are atoms that must be true,
and eexc denotes the exclusions, the atoms that must be false when inclusions are true. A candidate
interpretation I is said to extend a partial interpretation epi if it satisfies the conditions einc ⊆ I and
eexc ∩ I = 0/. Additionally, examples in LAS can be context-dependent, meaning their interpretation
must be evaluated relative to specific contextual information. A context-dependent partial interpretation
(CDPI) is defined as a tuple ecd pi = ⟨epi, ectx⟩, where epi is a partial interpretation and ectx is an ASP
program representing the context in which the example should be interpreted. A program P is said to
accept a CDPI ecd pi if there exists at least one stable model A of P ∪ ectx such that A extends epi. This
allows LAS to handle diverse examples under varying conditions, making it well-suited for tasks requiring
context-sensitive reasoning.</p>
        <p>
          A strong point of LAS, implemented by the system FastLAS [
          <xref ref-type="bibr" rid="ref1">1</xref>
          ], is its ability to handle noisy data,
a crucial feature when working with real-world datasets, which often contain inconsistencies or errors.
LAS models noise by associating a penalty to each example, allowing some of them to be violated during
learning, if doing so leads to a better overall hypothesis. If they are not covered, then the hypothesis will
have a higher cost, as we will better describe later. To represent noisy examples, LAS uses Weighted
Context-Dependent Partial Interpretations (WCDPIs). A WCDPI is defined as a tuple e = ⟨eid, epen, ecd pi⟩,
where eid is a unique identifier for the example, epen is a positive integer indicating the penalty incurred
if the example is not covered by the hypothesis, and ecd pi is a context-dependent partial interpretation
as described earlier. A LAS task that incorporates noisy examples is called a Noisy LAS task, formally
defined as the tuple T noise = ⟨B, SM, E⟩, where B is an ASP program providing background knowledge,
SM is the hypothesis space, and E is a finite set of WCDPIs. A hypothesis H ⊆ SM is an inductive solution
of T noise if and only if B ∪ H accepts every example e ∈ E.
        </p>
        <p>We said that if a hypothesis fails to accept a particular example, it pays the penalty of that example.
In fact, this penalty contributes to the overall cost of the hypothesis, representing the trade-off between
hypothesis’s explanatory power and its failure to cover certain examples. The cost function of a hypothesis
is indeed defined as the sum over the penalties of all of the examples that are not accepted by the hypothesis,
augmented with the length of the hypothesis. For this reason, the objective of noisy LAS tasks is to
identify an optimal solution, i.e. an hypothesis that minimises the cost function within a given hypothesis
space, based on a set of WCDPI examples.
3.4. ASP Explainability
xASP2 [17] is a tool developed for explaining computed answer sets. Precisely, given a program Π, an
answer set S, and an atom α, xASP2 aims to answer queries of the form “Why does α ∈ S (resp., α ∈/ S)”
by identifying the subset of Π that supports this inclusion (resp., exclusion). It generates explanations in
the form of justification graphs, specifically Directed Acyclic Graphs (DAGs), where nodes represent
atoms and edges represent rules. Edges from node A to node B indicate that the atom in B appears in the
body of the rule on the edge, while the atom in A appears in the head of the rule. For each atom in a stable
model, xASP2 identifies a supporting rule whose body is true and only contains atoms that have already
been explained, ensuring the acyclicity of the graph. Two main challenges in providing such explanations
are: (i) how to compute a small set of assumptions capable of explaining the assignment of α ∈ A, and
(ii) how to handle sophisticated constructs like choice rules and aggregates, which may be involved in
explaining the falsity of certain atoms in an easily understandable way. While logic programs under the
answer set semantics can also produce explanations based on the assumption of false atoms, this approach
would often result in vague explanations for all false atoms, potentially reducing the explanation to mere
assumptions.</p>
        <p>To begin, xASP2 requires a preprocessing step to obtain a justification for a ground program P. The
computation starts with a three-valued interpretation, denoted as (I+, I− ), where both sets are initially
empty. A three-valued interpretation consists of a pair (L,U ), where L and U are sets of ground atoms,
with L ⊆ U and neither set contains the atom ⊥. The aim is to iteratively expand these sets to determine
which atoms are true or false based on the rules of the program.</p>
        <p>The I+ set is expanded through iterative inference steps. In the three-valued setting, a rule’s head can
only be inferred if every atom b in its body is determined, that is, b ∈ I+ or b ∈ I− . The I− set, on the
other hand, is expanded by iteratively adding atoms that belong to an unfounded set X ⊆ BP, where BP
is the set of ground atoms of rules’ body in P. An unfounded set X is defined with respect to a ground
logic program P if, for each atom a ∈ X , and for each rule r ∈ P whose head is a, one of the following
conditions must hold: either one of the literals in the body of the rule is known to be false, meaning that
if b appears positively in the body, it must be in I− , and if b appears negatively, it must be in I+; or for
some atom b appearing positively in r, it must hold that b ∈ X . The purpose of identifying and adding
atoms to the I− set is to eliminate “self-referential” sets of atoms. These are sets where each atom in the
set is supported by another atom within the set, but none can be inferred to be true by other means. Such
sets can lead to cyclic justifications that do not provide meaningful explanations. Removing them, xASP2
ensures that only non-cyclic, valid justifications are kept.</p>
        <p>After preprocessing, xASP2 generates an explanation graph that is similar to the one used in offline
justification [23]. The graph visualizes the relationships between the atoms in the program based on the
inference process. Throughout this process, xASP2 tracks the rules used at each step of the derivation
and labels the edges of the explanation graph accordingly.</p>
        <p>Finally, xASP2 uses a metaprogramming approach with the Clingo Python API and provides a flexible
Python interface. Users can request explanations for individual literals or opt to generate multiple graphs
covering all atoms in a given answer set. It also offers an interactive, web-based environment navigator
for visualising and exploring these explanation graphs.</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>4. Deep Learning Module</title>
      <p>We provide here a very brief overview of the deep learning module [24, 25], as the primary focus of this
work is on the ILP module and the explainability framework.</p>
      <sec id="sec-4-1">
        <title>4.1. Dataset and Methods</title>
        <p>The initial dataset contained 4,890 microscopy fields with 1 to 20 eosin-nigrosine-stained spermatozoa,
labelled by experts. Data augmentation (brightness, contrast, blur, and noise) expanded the dataset to
8,243 images, annotated with bounding boxes using labelImg [26]. Spermatozoa were classified according
to SFT guidelines into six categories based on morphology and viability: Normal Alive (NA) and Normal</p>
        <sec id="sec-4-1-1">
          <title>Dead (ND) spermatozoa, Major Abnormalities Alive (MAA) and Major Abnormalities Dead (MAD) spermatozoa, minor Abnormalities Alive (mAA), and minor Abnormalities Dead (mAD) spermatozoa.</title>
          <p>Training was initially set to 100 epochs with early stopping to prevent overfitting. If performance
improved beyond 100 epochs, training was extended by 50 epochs. The optimal model, often achieved
around 100 epochs, was saved based on validation loss, even if reached earlier. As an initial work, the
YOLO network was not customized in any way.</p>
        </sec>
      </sec>
      <sec id="sec-4-2">
        <title>4.2. Results</title>
        <p>The model [25] achieved 82% mean accuracy, though performance varied due to class imbalance,
especially among under-represented anomaly classes. Prediction quality was assessed using the Intersection
over Union (IoU) metric:</p>
        <p>IoU = GT ∩ Pr (1)</p>
        <p>GT ∪ Pr
where GT and Pr are the areas of ground-truth and predicted boxes, respectively, and so GT ∩ Pr
represents the area of overlap, while GT ∪ Pr represents the area of union. We also report mean Average
Precision (mAP): mAP50 (IoU ≥ 0.50) reached 79%, and mAP50-95 (IoU 0.50–0.95) was 44%, reflecting
detection and localization performance.</p>
        <p>All considered, the obtained accuracy value of 82% can be considered satisfactory because in a
realworld scenario, an 80-85% coefcfiient of agreement between two operators is considered “moderate to
very strong" [27].</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>5. ILP Module</title>
      <sec id="sec-5-1">
        <title>5.1. Examples</title>
        <p>We explore the FastLAS encoding of the dataset and its results. The background knowledge just includes
predicates for the domain of the features considered.</p>
        <p>To encode the examples used in this study, a custom-developed application, that we will call XAI-BSC,
was employed. XAI-BSC was designed to facilitate the process of extracting key morphological features
from the spermatozoa images, which were then used to generate the necessary data for learning with
FastLAS. XAI-BSC has also the explainability features that we will describe later. Since the ultimate
goal of this study is to use LP to make DL models explainable, no machine learning or other black-box
techniques were used in the development of the ILP module. The retrieval of morphological information
was achieved through traditional computer vision techniques.</p>
        <p>As a first step, XAI-BSC takes the manually annotated bounding boxes, i.e. the YOLO annotation file,
and the corresponding image as input. The app then displays one spermatozoon at a time and asks the user
to answer a series of questions regarding its morphological characteristics. These questions help assess
key features that we are not able yet to automatically detect, such as the way the tail is curled, although
they can sometimes be inferred indirectly from other features (e.g., the aspect ratio of the bounding
box). Next, the app attempts to outline the spermatozoon’s head contour: this contour provides valuable
geometric information, often essential for classifying different sperm classes; for instance, if the shape
resembles a pear, it is indicative of major anomalies.</p>
        <p>To detect and accurately outline the heads of spermatozoa in microscopic images, we follow a two-step
process: first, we detect candidate head regions using the Hough Circle Transform (HCT); then, we extract
precise contours using active contour models. The first step identifies potential sperm heads based on
their bright, approximately circular appearance. The HCT operates by first detecting edges in the image,
typically using the Canny edge detector. For each edge point, the algorithm votes in an accumulator
space for all possible circles that could pass through it. These votes represent degrees of radial symmetry,
with higher symmetry corresponding to a stronger likelihood of a circle at that location. Peaks in this
accumulator space indicate the most probable circle centres and radii, which are then selected as candidate
head regions.</p>
        <p>Once potential head regions are identified, we restrict this set by filtering the size and then we refine the
detection by accurately tracing the contour of each head. This is achieved using active contour models,
commonly known as snakes. The method evolves an initial contour towards the true boundary based on
image gradients and smoothness constraints. For each detected circle, a snake is initialized as a larger
circle (3× radius) around the detected centre. This provides a starting point for the snake to converge
onto the actual boundary. The snake is then evolved over a Gaussian-smoothed image, which reduces
noise while preserving important features. The result is a smooth, continuous contour that accurately
follows the boundary of the sperm head. However, due to the nature of the images, which are almost
grayscale with low contrast, detecting the contour can sometimes be challenging. Additionally, since
multiple sperm heads may be present in a single image, it is not easy to automatically establish which of
the detected contours corresponds to the target of interest.</p>
        <p>When the contour is not identifiable (see Fig. 1 right), the app defaults to using only the data derived
from the bounding box: those measurement comprehends redness, ratio and area. The image’s redness
level serves as a key indicator for viability assessment: if the spermatozoon is red then it is classified as
dead, otherwise is alive. However, detecting the sperm head alone is not always possible, we measure
redness across the entire image instead. The app also computes the ratio of the bounding box, which
provides insight into whether the spermatozoon has a tail, is curled, or exhibits other morphological
irregularities. Additionally, the area of the bounding box is calculated, offering further information about
the size of the sperm.</p>
        <p>On the other hand, when the contour can be detected (see Fig. 1 left), the app extracts additional
features. It calculates the length of the contour, the area enclosed by the contour (which provides a precise
measurement of the sperm head’s size), and the ratio of the minimum and maximum axes of the contour.
These features contribute to a more detailed understanding of the sperm’s shape. The roundness of the
sperm head is also determined using the formula:</p>
        <p>Roundness =
4 × π × A
p2
(2)
where A is the area and p is the perimeter. This measure quantifies the circularity of the head, helping to
distinguish normal sperm from those exhibiting abnormalities, as mentioned earlier.</p>
        <p>The detection of the tail was even more challenging as its shape can vary significantly across different
anomalies. However, by calculating the aspect ratio of the bounding box around the spermatozoon, we
gain some insight into tail morphology: the closer this ratio is to one, the more likely it is that the tail is
curled, coiled or missing.</p>
        <p>Two separate training sessions were conducted in this study. The first one focused on training to
distinguish between alive and dead spermatozoa, while the second training aimed to differentiate between
anomalies: no anomalies ("n"), major anomalies ("M"), and minor anomalies ("m"). This approach
facilitated training by allowing the ILP module to focus on learning one feature at a time, unlike the DL
module, which must infer all characteristics simultaneously. Below we report an encoding example. Their
general form is #pos(id@w, {inc}, {exc}, {cntx}), where #pos indicate that it is a positive
example (while for negatives it is #neg), id is an unique identifier for the example, w is the weight of the
example (i.e. the measure of representativeness of an example), and then we have the three sets of ground
atoms of WCDPI examples, also explained in Section 3. inc represents the inclusions of the example, i.e.
atoms that must be true, while exc, the exclusions, are atoms that cannot be true when inclusions are.
Finally, cntx is the context in which the example must hold.
#pos(id58_12@100,
{label("M")},
{label("n"), label("m"), curledTail,
missingTail, singleCoilTail, overtunedHead},
{red(648). area(25200). ratio(175).
headRoundness(74). headArea(2594). lenghtHead(210).
ratioHead(2). bubbleHead.}).
% inclusions
% exclusions
% context</p>
        <p>As the reader can observe, the inclusion set contains the class label, which, in this case, regards
anomalies. However, the same procedure applies to viability classification. In the exclusions, we
include all other classes (meaning that, it can belong only to one class of anomaly at a time) and any
morphologies that were not selected by the user within the app. The context of the data contains all the
other characteristics retrieved either automatically from the image or manually through XAI-BSC.</p>
        <p>In this study, all examples were assigned equal weight (100), as the number of examples for each
class was balanced, and we did not have any specific insight into which examples might be more or less
representative, or which could be considered noisy, for each class. If such information had been available,
we could have adjusted the weights accordingly, assigning higher weights to the more representative
examples and lower weights to the noisy ones.</p>
        <p>To improve model’s generalizability and address scalability limitations of ILP, cross-validation with 10
folds was employed during training. This approach allowed us to include a wider variety of examples,
reducing the overfitting risk and ensuring robustness. Each fold of the training dataset contained 12
spermatozoa per class, with 7 per class in the test sets.</p>
      </sec>
      <sec id="sec-5-2">
        <title>5.2. Hypothesis Space and Bias</title>
        <p>FastLAS employs a penalty function to guide the rule learning by assigning a cost to the rules components,
ensuring that the most relevant features are considered.</p>
        <p>For the training that distinguishes between alive and dead spermatozoa, a strong bias is introduced to
encourage rules that generalize across multiple examples. Indeed, we assigned a penalty of 100 to the
head of the rule and 1 to each body predicate: covering a single example thus entails a minimum cost
of 101. This configuration forces rules to cover multiple examples simultaneously, as failing to cover a
single example already carries a significant cost of 100 (see Section 5.1). However, other similar biases
could also be effective.</p>
        <p>For the training that distinguishes between normal spermatozoa and those with major or minor
anomalies, a different penalty scheme is used. Compared to the viability classification task, the penalty
assigned to the head of a rule is lower (10 instead of 100), reflecting the fact that anomalies can be
determined by a wider range of morphological features, making rules more complex. Regarding the
predicates in the body we can categorize them in two groups. The first one includes predicates about
features that are specific of a class of anomalies (e.g., missing or curled tail), therefore it has the lowest
Accuracy for anomalies prediction</p>
        <p>Accuracy for viability prediction</p>
        <p>FastLAS</p>
        <p>SVM
RandomForest
DecisionTree
cost (3) since these are strong indicators of anomalies. For example, a spermatozoon missing its tail is
highly likely to have minor anomalies, making these features sufficient for classification. The second
one has a slightly higher cost and include all the other features. Specifically, redness has a penalty of 5
since it is more relevant for viability classification than for detecting anomalies. Similarly, head length is
penalized more because it is not as informative as other morphological features. Meanwhile, head area,
ratio, and roundness have intermediate penalties (4), as they aid classification but are less decisive than
the first group.</p>
        <p>Overall, while the penalty differences between features are relatively small, they help balance rule
complexity and generalizability, ensuring that the learned rules prioritize the most discriminative
characteristics while avoiding overfitting.</p>
      </sec>
      <sec id="sec-5-3">
        <title>5.3. Results</title>
        <p>Given the inherently different nature of deep learning and logic-based approaches, it is unsurprising
that FastLAS exhibits significantly lower performance in prediction compared to YOLO. However, this
was expected, as the primary goal of using FastLAS is not to outperform deep learning but to provide
explainability in decision-making. The rules by FastLAS are similar in structure to the following:
pred_label("m") :- distalDroplet, ratio(V_0_rr), V_0_rr &gt;= 77.
pred_label("alive") :- red(V_0_r), V_0_r &lt;= 386.
which comply with expert knowledge. Anyway, to evaluate the effectiveness of the ILP approach, we
compared FastLAS against traditional machine learning models such as Support Vector Machines (SVM),
Decision Trees, and Random Forests, which have been proven to be actually able to learn from data, even
if not as much as a DL system. As shown in the plots (Fig. 2), FastLAS consistently outperforms these
models across various metrics, demonstrating its ability to extract meaningful rules from the data.</p>
        <p>The Table 1 summarises the performance of the models in classifying spermatozoa into normal, major
or minor anomaly categories. The metrics are divided into two macro-averaging (M) and micro-averaging
(µ) as explained below.</p>
        <sec id="sec-5-3-1">
          <title>PrecisionM</title>
        </sec>
        <sec id="sec-5-3-2">
          <title>RecallM</title>
          <p>=
=</p>
          <p>N TPi
N1 ∑</p>
          <p>i=1 TPi + FPi
1 N TPi</p>
          <p>∑
N i=1 TPi + FNi</p>
        </sec>
        <sec id="sec-5-3-3">
          <title>Precisionµ</title>
          <p>Recallµ
=
=</p>
          <p>∑iN=1 TPi
∑iN=1(TPi + FPi)</p>
          <p>∑iN=1 TPi
∑iN=1(TPi + FNi)
where TP, FP and FN are respectively true positive, false positive and false negative. FastLAS achieves
70% accuracy and a weighted F1-score of 0.73, indicating a reasonable precision-recall balance. The
higher recall (0.79) in micro-averaged results suggests effective anomaly detection, though there may be
a trade-off in precision.</p>
          <p>For the classification of spermatozoa as either alive or dead, we refer to Table 2. With 62% an accuracy
and a weighted F1-score of 0.63, FastLAS shows reasonable performance in distinguishing alive from
dead spermatozoa. The recall of 0.65 indicates that the system correctly identifies a fair proportion of the
positive cases, although there is room for improvement.</p>
          <p>Overall, while the performance of FastLAS is lower than that of YOLO, it remains competitive with
traditional machine learning models and offers the added advantage of explainability, which is a key
objective of this study. Furthermore we want to underline that we will be using YOLO for the prediction
(with an accuracy above 80%), and rules from FastLAS for explainability. We are not comparing YOLO
results here since it was trained on a wider set of images, with a different data preprocessing.</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>6. Explainability</title>
      <p>As said the aim of this work is developing a system able to explain the prediction of the DL module. The
ASP rules we obtained from FastLAS are indeed extremely interpretable, but we still need to reconstruct
the reasoning process, i.e. the rules that are triggered to get the correct prediction. For this purpose, we
used xASP2.</p>
      <sec id="sec-6-1">
        <title>6.1. System Description</title>
        <p>We developed XAI-BSC1, a python-based application (python version 3.10) that integrates YOLO with
ASP. The workflow begins with the user uploading an image, which is processed by YOLO to detect
and classify the spermatozoa. The model’s predictions are saved, and the image, overlaid with bounding
boxes and predicted labels, is presented to the user, who can select a specific spermatozoon for which
they wish to obtain an explanation.</p>
        <p>Once selected, the chosen spermatozoon is displayed in isolation, using the sub-image defined by
the predicted bounding box. As in the dataset preparation for FastLAS, we collect some information
about the sperm’s shape directly from the user, while other morphological features are automatically
extracted by XAI-BSC. These features are then encoded into logical facts in ASP format, following the
same schema used during rule learning with FastLAS.
1code available at https://clp.dimi.uniud.it/sw/</p>
        <p>The feature encoding and the rules learned by FastLAS are provided as input to clingo, which computes
the answer set corresponding to the classification process. Using xASP2, we generate a graph representing
this answer set, enabling us to visualise the reasoning steps that led to the final prediction. From this
graph, we trace the path of inference that supports the classification. It is important to note that the ASP
rules may occasionally result in no prediction or incorrect predictions. Therefore, not all classifications
are explainable within the symbolic framework. To ensure that explanations correspond to the YOLO
prediction, we include an auxiliary predicate (found_correct_explanation) that holds true only
when the ASP-derived label matches YOLO’s output. The other ASP prediction are ignored. Once the
correct reasoning path is identified, it is translated into natural language, providing the user with a clear
and understandable explanation for the classification decision. Specifically, from the DAG generated
by xASP2, the algorithm searches for all links starting from the correct explanation node. From the
prediction node, it follows links to other feature or fact nodes, extracts the variable values from these
nodes for later substitution into explanations.</p>
        <p>XAI-BSC and tests (see Section 5.3) were conducted on a system running Ubuntu 24.04 LTS with an
Intel 12th Gen Core i7-12700 processor and a maximum clock speed of 4.9 GHz with 16 GB RAM. It
featured an NVIDIA GeForce RTX 3060 GPU and an SK Hynix NVMe SSD.</p>
      </sec>
      <sec id="sec-6-2">
        <title>6.2. Results</title>
        <p>Figs. 3, 4 and 5 illustrate the system’s explanation capabilities for class predictions. The first two
ifgures presents the explanation for a sample predicted as having a major anomaly. In this case, the
system highlights the presence of a proximal droplet as the key feature justifying the classification. This
information is shown both in natural language alongside the image of the spermatozoon and in the form
of an explanation graph. On the other hand, Fig. 5 shows the explanation for a sample classified as having
no anomalies. Unlike the previous case, the classification here is supported by the absence (red nodes) of
specific features such as bent tail, bent neck, or proximal droplets. Additionally, the system takes into
account the ratio value of 0.37 (scaled for ASP encoding), which further supports the prediction of a
normal spermatozoon.</p>
      </sec>
    </sec>
    <sec id="sec-7">
      <title>7. Conclusions and Future Works</title>
      <p>By integrating YOLO, for object detection, with FastLAS, for rule learning, we have presented
XAIBSC, which has been proved to be a tool able to achieve both accurate classification and interpretable
explanations.</p>
      <p>We encountered some limitations using FastLAS, such as for scalability when the number of features,
examples or hypothesis space grow significantly. Our strategy to mitigate this was to restrict the learning
to separate sub-tasks (viability and anomaly classification). Instead, to improve generalizability, we
adopted a 10-fold cross-validation strategy which ensured that rules are exposed to a wider variety of
examples and so are not tailored to a single dataset split. This also permitted to guarantee robustness
since rules are learnt from a broad set of different examples.</p>
      <p>Looking ahead, we are planning several improvements and extensions. First, enhancing the accuracy
of sperm head detection (even if we can already detect heads with a decent accuracy). Additionally, we
aim to develop reliable methods for tail detection and automate the identification of other morphological
features such as proximal droplets. These improvements will help reduce manual input and increase the
system’s autonomy. Finally, we plan to conduct user studies to evaluate the system’s explainability in
practice, assessing how effectively it supports decision-making and user trust in real-world settings, and
we will also compare our work with other explainable AI methods such as LIME or SHAP.
The authors would like to acknowledge the valuable contributions of Prof. Alessandro Dal Palù for his
support in the elaboration of image with computer vision techniques and Prof. Giuseppe Stradaioli for his
assistance in the early stages of the YOLO-based application.</p>
    </sec>
    <sec id="sec-8">
      <title>Declaration on Generative AI</title>
      <p>The author(s) have not employed any Generative AI tools.
explainable security, in: 2021 Third IEEE International Conference on Trust, Privacy and Security
in Intelligent Systems and Applications (TPS-ISA), IEEE, Atlanta, GA, USA, 2021, p. 269–278.
URL: http://dx.doi.org/10.1109/TPSISA52974.2021.00030. doi:10.1109/tpsisa52974.2021.
00030.
[13] T. Dreossi, A. Dovier, A. Formisano, M. Law, A. Manzato, A. Russo, M. Tait, Towards explainable
weather forecasting through FastLAS, in: Logic Programming and Nonmonotonic Reasoning,
Springer Nature Switzerland, Dallas, Texas, 2024, p. 262–275. URL: http://dx.doi.org/10.1007/
978-3-031-74209-5_20. doi:10.1007/978-3-031-74209-5_20.
[14] A. Dovier, T. Dreossi, A. Formisano, XAI-LAW towards a logic programming tool for taking and
explaining legal decisions, in: Proceedings of the 39th Italian Conference on Computational Logic,
2024, volume 3733 of CEUR Workshop Proceedings, CEUR-WS.org, Rome, Italy, 2024. URL:
https://ceur-ws.org/Vol-3733/short3.pdf.
[15] D. Cunnington, A. Russo, M. Law, J. Lobo, L. Kaplan, NSL: Hybrid interpretable learning
from noisy raw data, 2020. URL: https://arxiv.org/abs/2012.05023. doi:10.48550/ARXIV.2012.
05023.
[16] M. Collevati, T. Eiter, N. Higuera, Leveraging neurosymbolic ai for slice discovery, in:
Neural</p>
      <p>Symbolic Learning and Reasoning, Springer Nature Switzerland, Cham, 2024, pp. 403–418.
[17] M. Alviano, L. L. Trieu, T. Cao Son, M. Balduccini, Explanations for answer set programming,
Electronic Proceedings in Theoretical Computer Science 385 (2023) 27–40. URL: http://dx.doi.org/
10.4204/EPTCS.385.4. doi:10.4204/eptcs.385.4.
[18] P. Cabalar, J. Fandinno, B. Muñiz, A system for explainable answer set programming, Electronic
Proceedings in Theoretical Computer Science 325 (2020) 124–136. URL: http://dx.doi.org/10.4204/
EPTCS.325.19. doi:10.4204/eptcs.325.19.
[19] F. Li, H. Wang, K. Basu, E. Salazar, G. Gupta, DiscASP: A graph-based ASP system for finding
relevant consistent concepts with applications to conversational socialbots, Electronic Proceedings in
Theoretical Computer Science 345 (2021) 205–218. URL: http://dx.doi.org/10.4204/EPTCS.345.35.
doi:10.4204/eptcs.345.35.
[20] L. L. Trieu, T. C. Son, M. Balduccini, xASP: An explanation generation system for answer set
programming, in: Logic Programming and Nonmonotonic Reasoning, Springer International
Publishing, Genova, Italy, 2022, p. 363–369. URL: http://dx.doi.org/10.1007/978-3-031-15707-3_
28. doi:10.1007/978-3-031-15707-3_28.
[21] L. L. Trieu, T. C. Son, M. Balduccini, exp(ASPc): Explaining asp programs with choice atoms
and constraint rules, Electronic Proceedings in Theoretical Computer Science 345 (2021) 155–161.</p>
      <p>URL: http://dx.doi.org/10.4204/EPTCS.345.28. doi:10.4204/eptcs.345.28.
[22] M. Gelfond, V. Lifschitz, The stable model semantics for logic programming, in: R. Kowalski,
Bowen, Kenneth (Eds.), Proceedings of International Logic Programming Conference and
Symposium, MIT Press, Seattle, Washington, USA, 1988, pp. 1070–1080. URL: http://www.cs.utexas.edu/
users/ai-lab?gel88.
[23] E. Pontelli, T. C. Son, Justifications for Logic Programs Under Answer Set Semantics, Springer
Berlin Heidelberg, 2006, p. 196–210. URL: http://dx.doi.org/10.1007/11799573_16. doi:10.1007/
11799573_16.
[24] S. Urli, F. Corte Pause, T. Dreossi, G. Stradaioli, Implementation of an artificial intelligence system
for morphological evaluation of spermatozoa in routine bull semen analysis, 2024. Poster presented
at EAAP conference, Firenze, 2024.
[25] S. Urli, F. C. Pause, T. Dreossi, M. Crociati, G. Stradaioli, Evaluation of an artificial intelligence
system for bull sperm morphology evaluation, Theriogenology (2025) 117504.
[26] D. Tzutalin, labelImg, https://github.com/tzutalin/labelImg, 2015.
[27] R. Hanson, S. Reddick, S. Thuerauf, K. Webb, V. Kasimanickam, R. Kasimanickam, Comparison
of bull sperm morphology evaluation methods under field conditions, Clinical Theriogenology 15
(2023). URL: http://dx.doi.org/10.58292/CT.V15.9425. doi:10.58292/ct.v15.9425.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>M.</given-names>
            <surname>Law</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Russo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Bertino</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Broda</surname>
          </string-name>
          ,
          <string-name>
            <surname>J. Lobo,</surname>
          </string-name>
          <article-title>FastLAS: Scalable inductive logic programming incorporating domain-specific optimisation criteria</article-title>
          ,
          <year>2020</year>
          . URL: http://dx.doi.org/10.1609/aaai. v34i03.5678. doi:
          <volume>10</volume>
          .1609/aaai.v34i03.
          <fpage>5678</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>C. O'Meara</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          <string-name>
            <surname>Henrotte</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          <string-name>
            <surname>Kupisiewicz</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          <string-name>
            <surname>Latour</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Broekhuijse</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>Camus</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          <string-name>
            <surname>Gavin-Plagne</surname>
            ,
            <given-names>E. Sellem,</given-names>
          </string-name>
          <article-title>The effect of adjusting settings within a computer-assisted sperm analysis (CASA) system on bovine sperm motility and morphology results</article-title>
          ,
          <source>Animal Reproduction</source>
          <volume>19</volume>
          (
          <year>2022</year>
          ). URL: http://dx.doi.org/10.1590/1984-3143-AR2021-0077. doi:
          <volume>10</volume>
          .1590/1984-3143-ar2021-0077.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>M.</given-names>
            <surname>Shehab</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Abualigah</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Q.</given-names>
            <surname>Shambour</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M. A.</given-names>
            <surname>Abu-Hashem</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M. K. Y.</given-names>
            <surname>Shambour</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. I.</given-names>
            <surname>Alsalibi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. H.</given-names>
            <surname>Gandomi</surname>
          </string-name>
          ,
          <article-title>Machine learning in medical applications: A review of state-of-the-art methods</article-title>
          ,
          <source>Computers in Biology and Medicine</source>
          <volume>145</volume>
          (
          <year>2022</year>
          )
          <article-title>105458</article-title>
          . URL: http://dx.doi.org/10.1016/J. COMPBIOMED.
          <year>2022</year>
          .
          <volume>105458</volume>
          . doi:
          <volume>10</volume>
          .1016/j.compbiomed.
          <year>2022</year>
          .
          <volume>105458</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>R. B.</given-names>
            <surname>Appleby</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P. S.</given-names>
            <surname>Basran</surname>
          </string-name>
          ,
          <article-title>Artificial intelligence in veterinary medicine</article-title>
          ,
          <source>Journal of the American Veterinary Medical Association</source>
          <volume>260</volume>
          (
          <year>2022</year>
          )
          <fpage>819</fpage>
          -
          <lpage>824</lpage>
          . URL: http://dx.doi.org/10.2460/JAVMA.22. 03.0093. doi:
          <volume>10</volume>
          .2460/javma.22.03.0093.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>M.</given-names>
            <surname>Crociati</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Sylla</surname>
          </string-name>
          ,
          <string-name>
            <surname>A. De Vincenzi</surname>
            , G. Stradaioli,
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Monaci</surname>
          </string-name>
          ,
          <article-title>How to predict parturition in cattle? a literature review of automatic devices and technologies for remote monitoring and calving prediction</article-title>
          ,
          <source>Animals</source>
          <volume>12</volume>
          (
          <year>2022</year>
          )
          <article-title>405</article-title>
          . URL: http://dx.doi.org/10.3390/ani12030405. doi:
          <volume>10</volume>
          .3390/ ani12030405.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>M.</given-names>
            <surname>Borchers</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Chang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Proudfoot</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Wadsworth</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Stone</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Bewley</surname>
          </string-name>
          ,
          <article-title>Machine-learning-based calving prediction from activity, lying, and ruminating behaviors in dairy cattle</article-title>
          ,
          <source>Journal of Dairy Science</source>
          <volume>100</volume>
          (
          <year>2017</year>
          )
          <fpage>5664</fpage>
          -
          <lpage>5674</lpage>
          . URL: http://dx.doi.org/10.3168/jds.2016-
          <fpage>11526</fpage>
          . doi:
          <volume>10</volume>
          .3168/ jds.2016-
          <volume>11526</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>L.</given-names>
            <surname>Dumortier</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Guépin</surname>
          </string-name>
          ,
          <string-name>
            <surname>M.-L. Delignette-Muller</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          <string-name>
            <surname>Boulocher</surname>
          </string-name>
          , T. Grenier,
          <article-title>Deep learning in veterinary medicine, an approach based on CNN to detect pulmonary abnormalities from lateral thoracic radiographs in cats</article-title>
          ,
          <source>Scientific Reports</source>
          <volume>12</volume>
          (
          <year>2022</year>
          ). URL: http://dx.doi.org/10.1038/ s41598-022-14993-2. doi:
          <volume>10</volume>
          .1038/s41598-022-14993-2.
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>J.</given-names>
            <surname>Redmon</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Divvala</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Girshick</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Farhadi</surname>
          </string-name>
          , You Only Look Once:
          <article-title>Unified, real-time object detection</article-title>
          ,
          <year>2015</year>
          . URL: https://arxiv.org/abs/1506.02640. doi:
          <volume>10</volume>
          .48550/ARXIV.1506.02640.
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>M.</given-names>
            <surname>Hussain</surname>
          </string-name>
          ,
          <article-title>YOLO-v1 to YOLO-v8, the rise of YOLO and its complementary nature toward digital manufacturing and industrial defect detection</article-title>
          ,
          <source>Machines</source>
          <volume>11</volume>
          (
          <year>2023</year>
          )
          <article-title>677</article-title>
          . URL: http://dx.doi.org/10. 3390/machines11070677. doi:
          <volume>10</volume>
          .3390/machines11070677.
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>X.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Zheng</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Tang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Li</surname>
          </string-name>
          <article-title>, Multi-scale perceptual YOLO for automatic detection of clue cells and trichomonas in fluorescence microscopic images</article-title>
          ,
          <source>Computers in Biology and Medicine</source>
          <volume>175</volume>
          (
          <year>2024</year>
          )
          <article-title>108500</article-title>
          . URL: http://dx.doi.org/10.1016/J.COMPBIOMED.
          <year>2024</year>
          .
          <volume>108500</volume>
          . doi:
          <volume>10</volume>
          .1016/j. compbiomed.
          <year>2024</year>
          .
          <volume>108500</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>F.</given-names>
            <surname>Prinzi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Insalaco</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Orlando</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Gaglio</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Vitabile</surname>
          </string-name>
          ,
          <article-title>A YOLO-based model for breast cancer detection in mammograms</article-title>
          ,
          <source>Cognitive Computation 16</source>
          (
          <year>2023</year>
          )
          <fpage>107</fpage>
          -
          <lpage>120</lpage>
          . URL: http://dx.doi.org/10. 1007/S12559-023-10189-6. doi:
          <volume>10</volume>
          .1007/s12559-023-10189-6.
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>A.</given-names>
            <surname>Drozdov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Law</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Lobo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Russo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M. W.</given-names>
            <surname>Don</surname>
          </string-name>
          ,
          <article-title>Online symbolic learning of policies for</article-title>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>