<!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>An approach to evaluate a classification model to predict a construction object's state</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Olga Solovei</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Bohdan Solovei</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Yuliia Riabchun</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Kyiv National University of Construction and Architecture</institution>
          ,
          <addr-line>Povitroflots'kyi Ave, 31, Kyiv, 03037</addr-line>
          ,
          <country country="UA">Ukraine</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>A classification model which is designed to predict technical conditions of the construction object must not make the mistakes in categorizing “unfit” for normal operation objects as “fit” as such mistakes could lead to the accidents with a wide range of severities. So, to guarantee the mode's results are correct, the scientists are doing model's evaluation by the metrics, which high score is the indicator of model's ability does not make the mistakes. However, on the question which metrics to be use to assess the model is not received a single answer as the researches' conclusions often contradict each other while recommending the metric. The goal of this study is to propose the approach on how to select the metric to assess a binary classification model for predicting the technical conditions of the construction object. To meet the goal in the research Matthews Correlation Coefficient formula and F-measure were described using maximized Youden index, which value is possible to obtain when model doesn't make the mistakes when predicting negative instance. The results of this work will provide the scientist the decision's support method which recommendation depends on the optimal cut-off point on the ROC curve, so it improves the accuracy of the received evaluation score. .</p>
      </abstract>
      <kwd-group>
        <kwd>⋆1</kwd>
        <kwd>F-measure</kwd>
        <kwd>Youden Index</kwd>
        <kwd>Matthews Correlation Coefficient</kwd>
        <kwd>optimal cut-off point on ROC curve</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        Machine learning methods, specifically classification algorithms, are used to automate the
process of the construction objects’ technical inspection. Multiple classification model are built
to put the objects depending on its’ technical condition into one of four categories: "1" - normal;
"2" - satisfactory; "3" - unfit for normal operation; "4" - emergency [
        <xref ref-type="bibr" rid="ref1 ref2">1-2</xref>
        ]. The ability of the
classification model to determine correctly the technical conditions of the construction object is
evaluated by metrics [
        <xref ref-type="bibr" rid="ref3 ref4 ref5 ref6">3-6</xref>
        ]. There are four metrics which are commonly accepted among the
scientists, which formulas are the functions of the cells’ values of a confusion matrix Table 1 (in
case of supervise learning) or a matching matrix in the case of unsupervised learning:
1. Sensitivity (SEN) and Specificity (SPE) – the metrics to assess the model's ability to
correctly identify positive and negative cases, respectively.
2. Positive Predictive Value (PPV) and Negative Predictive Value (NPV) – the metrics
assess the model's error for positive and negative cases, respectively.
3. F-measure – the metric considers the model's ability to correctly identify positive cases
and the model's error for positive cases. Its formula is a harmonic mean of SEN and PPV.
4. Matthews Correlation Coefficient (MCC) – this metric considers the model's ability to
correctly identify positive cases and the model's errors for both positive and negative
cases. Its formula considers all four parameters (SEN, SPE, PPV, NPV).
      </p>
      <p>
        Recently, are submitted the studies which are showing that F-measure may not accurately
reflect the model's true ability to classify objects as expected, and it is recommended to use the
Matthews method for the evaluation instead [
        <xref ref-type="bibr" rid="ref7 ref8">7-8</xref>
        ]. However, such recommendation could not be
used to evaluate model for prediction a construction object technical condition. Let’s consider
the confusion matrices of a binary classification model, create to categorize objects: "positive"
the objects fit for normal operations; "negative" – the objects unfit for normal operation. In
Table 2 is considered 3 possible results of a binary classification and the notation to read Table 2
is:
1. True Positives (TP) - the number of “fit” objects whose conditions are correctly identified
by the model.
2. True Negatives (TN) - the number of “unfit” objects whose conditions are correctly
identified by the model.
3. False Positives (FP) - the number of “unfit” objects which are incorrectly identified by the
model as “fit”.
4. False Negatives (FN) - the number of “fit” objects which are incorrectly identified by the
model as “unfit”.
      </p>
      <p>In row 1 of Table 2, is seen that the model incorrectly classified only one object, so model’s
score is high (&gt;0.9) by all metrics (refer to Table 3). In row 2 of Table 2 - the model has a weak
predictions in positive class PPV=100/(100+1000)=0.09 because 1000 “unfit” objects were treated
as “fit” but model’s ability to predict correctly negative is still high so
NPV=30,000/(30,000+20)=0.99. As the result, the model score by normalized MCC is low but still
may be accepted, however F-measure indicates the model’s failed. In row 3 of Table 2, the model
incorrectly classified 10,000 “fit” objects as “unfit”, i.e. the model has a low ability to predict
negative class as a result NPV=9/(9+10,000)=0.0 is low, how model’s has a good prediction in
positive class PPV = 9000/(9000+1)=1. As a result, F-measure score is high, but normalized MCC
score dropped.</p>
      <p>
        Since an effective binary classification model for prediction a construction object’ technical
conditions may make a mistake when “fit” object is considered as “unfit” (like 3) but must not
consider “unfit” as “fit” (line 2), so value of F-measure is important and could not be ignored as
recommended in [
        <xref ref-type="bibr" rid="ref7 ref8">7-8</xref>
        ] as in line 2 F-measure is much lower than MCC’s value.
      </p>
      <p>In current paper, will be proposed an approach to evaluate and recommend which nMCC or
F-measure score to use while evaluation a binary classification model for predicting the
technical conditions state of the construction object.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Literature Review</title>
      <p>
        The relations between MCC and F-measure in researches [
        <xref ref-type="bibr" rid="ref7 ref8">7-8</xref>
        ] were studied with the values
of TP, TN, FP, FN from the confusion matrix which is received when threshold equal to 0.5.
However, cut-off threshold τ=0.5 is not obviously optimal and may never be selected by data
scientists to get model’s predictions for the given dataset. Therefore, the recorded differences in
the scores of the evaluation metrics may not happen when the selected threshold corresponds to
optimal cut-off point on ROC curve or difference’s scale may be small. On Figure 1 is illustrated
how the difference in the scores of normalized MCC and F-measure is changing depending on
the ROC’s curve threshold, where curves ware constructed with the result of 4 machine learning
classification algorithmsGaussianNB; Random Forest Classifier; Logistic Regression; Support
Vector Classifier learned on the same data set and scaled by method specified in [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ].
      </p>
    </sec>
    <sec id="sec-3">
      <title>3. Research Materials</title>
      <p>
        Youden Index is frequently used to identify an optimal point of ROC curve [
        <xref ref-type="bibr" rid="ref10 ref11">10-11</xref>
        ]. When
both SEN and SPE are given the same priority then Youden is calculated as the maximum
difference between TPR and FPR (1).
(1)
Youden=max {SEN + SPE−1 }=max {TPR +1− FPR−1}=max {TPR− FPR }=max {
τ τ τ τ
      </p>
      <p>TP
TP + FN
−</p>
      <p>F P
F P +TN</p>
      <p>In equation (1), TP; FP; FN; TN are cell values of a confusion matrix, which values are used to
calculate marginal values in Table 1, so that Pj= TP+ FP – is the number of positive instances
which were predicted by model; Nj= FN+TN is the number of negative instances which were
predicted by model; Pi=TP+FN is the number of positive instances in dataset; Ni=FP+TN is the
number of negative instances in dataset.</p>
      <p>At the same time the maximum Youden score can be achieved also when FP is zero. In this
case, according to Table 1 TP=Pj and (1) is rewritten as (2).</p>
      <p>Youde nfp−¿0= PP ij , (2)
As both equations (1) and (2) express the maximum value of Youden then they both equally
identify the optimal point of the ROC curve, so in our proposed approach we take equation (2)
and express MCC and F-measure using Youdenfp→0.</p>
      <p>MCC equation (3) when FP is zero is rewritten as equation (4) according to which MCC is a
function of two arguments: maximized Youden and a ration of the negatives in dataset to
predicted negatives.
(3)
(5)
(6)
2 P j
= 2 P j =</p>
      <p>P j+ P i
1+
2</p>
      <p>1
Youdenfp→0
MCC fp−¿ 0 =
√ P j⋅PNj⋅i⋅NPii⋅N j =√ PP i⋅j⋅NNji =√ PP ij⋅√ NNij =√Youdenfp−¿ 0⋅√ NNi</p>
      <p>F-measure equation (5) when FP is zero is rewritten as equation (6) according to which
Fmeasure is a function of maximized Youden.</p>
      <p>Having formally defined MCC and F-measure viamaximized Youden gave us possibility to
obtain objective differences in metric scores and use them in the proposed approach to select the
most appropriate metric (Figure 2).</p>
      <p>The algorithm includes 3 blocks: 1. “Define and Calculate measures”; 2. “Assess Significance
of Differences”; 3. “Rank Metrics Based on Significance”. In the 1st block are executed
calculations of the metrics and their differences compared to Youden are are saved. In the 2nd
block – the differences saved as a result of execution of block 1 one by one is compared with the
defined in block 1 the maximum expected difference, which is denoted as “threshold”. When the
difference is less then the “threshold” it is marked as “notSignificant”. In last block all differences
which are marked by flag “notSignificant” will be ranged and the metric with the smallest
difference value will proposed by the algorithm. In case, when the algorithm did find any metric
with flag “notSignificant” it will stop with no suggested metric to use.</p>
    </sec>
    <sec id="sec-4">
      <title>4. Conclusions</title>
      <p>In the current research the formal descriptions of the metrics: MCC and F-measure were
described as the functions of Youden index, which is calculated on the confusion matrix when a
binary model doesn’t make a mistake in predicting negative instances.</p>
      <p>The obtained definitions gave us the possibility to calculate unbiased differences in the
metric pair scores instead of using the differences which are received when ROC curve cut-off is
equal to 0.5, which is not obviously optimal and may never be selected by data scientists to get
model’s predictions.</p>
      <p>The defined calculations are included in the proposed algorithm to support the scientists to
select a metric in order to evaluate a binary classification model for predicting the technical
conditions state of the construction object.</p>
      <p>
        The novelty of the proposed approach compared to recommendations from [
        <xref ref-type="bibr" rid="ref8 ref9">8-9</xref>
        ] is that it
recommends the metric considering optimal cut-off point of the ROC curve, so its
recommendation depends on the leaning algorithm’s results, so it improves the accuracy of
model’s evaluation.
      </p>
      <p>Further work will be to extend the proposed algorithm by including more measures, such as
balanced accuracy, diagnostic odds ratio (DOR) and others.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>G.</given-names>
            <surname>Ryzhakova</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Malykhina</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Pokolenko</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Rubtsova</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Homenko</surname>
          </string-name>
          , I. Nesterenko, T. Honcharenko,
          <article-title>Construction project management with digital twin information system</article-title>
          .
          <source>International Journal of Emerging Technology and Advanced Engineering</source>
          , volume
          <volume>12</volume>
          (
          <issue>10</issue>
          ),
          <year>2022</year>
          , pp.
          <fpage>19</fpage>
          -
          <lpage>28</lpage>
          . DOI:
          <volume>10</volume>
          .46338/ijetae1022_
          <fpage>03</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>D.</given-names>
            <surname>Chernyshev</surname>
          </string-name>
          ; S. Dolhopolov; T. Honcharenko; H. Haman;
          <string-name>
            <given-names>T.</given-names>
            <surname>Ivanova; M. Zinchenko</surname>
          </string-name>
          ,
          <article-title>Integration of Building Information Modeling and Artificial Intelligence Systems to Create a Digital Twin of the Construction Site</article-title>
          ,
          <source>IEEE 17th International Conference on Computer Sciences and Information Technologies (CSIT)</source>
          ,
          <year>2022</year>
          , pp.
          <fpage>36</fpage>
          -
          <lpage>39</lpage>
          . DOI:
          <volume>10</volume>
          .1109/CSIT56902.
          <year>2022</year>
          .
          <volume>10000717</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>A.</given-names>
            <surname>Tharwat</surname>
          </string-name>
          ,
          <article-title>Classification assessment methods</article-title>
          .
          <source>Applied computing and informatics</source>
          , volume
          <volume>17</volume>
          (
          <issue>1</issue>
          ),
          <year>2020</year>
          , pp.
          <fpage>168</fpage>
          -
          <lpage>192</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>M.</given-names>
            <surname>Warrens</surname>
          </string-name>
          ,
          <article-title>Kappa coefficients for dichotomous-nominal classifications</article-title>
          .
          <source>Advances in Data Analysis and Classification</source>
          , volume
          <volume>15</volume>
          (
          <issue>1</issue>
          ),
          <year>2021</year>
          , pp.
          <fpage>193</fpage>
          -
          <lpage>208</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>T.</given-names>
            <surname>Honcharenko</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Akselrod</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Shpakov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Khomenko</surname>
          </string-name>
          ,
          <article-title>Information system based on multi-value classification of fully connected neural network for construction management</article-title>
          ,
          <source>IAES International Journal of Artificial Intelligence</source>
          , volume
          <volume>12</volume>
          (
          <issue>2</issue>
          ),
          <year>2023</year>
          , pp.
          <fpage>593</fpage>
          -
          <lpage>601</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>D.</given-names>
            <surname>Dhamnetiya</surname>
          </string-name>
          , RP. Jha,
          <string-name>
            <given-names>S.</given-names>
            <surname>Shalini</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Bhattacharyya</surname>
          </string-name>
          ,
          <article-title>How to Analyze the Diagnostic Performance of a New Test? Explained with Illustrations</article-title>
          .
          <source>Journal of laboratory physicians</source>
          , volume
          <volume>14</volume>
          (
          <issue>01</issue>
          ),
          <year>2021</year>
          , pp
          <fpage>90</fpage>
          -
          <lpage>98</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>D.</given-names>
            <surname>Chicco</surname>
          </string-name>
          ,
          <string-name>
            <surname>G. Jurman,</surname>
          </string-name>
          <article-title>The advantages of the Matthews correlation coefficient (MCC) over F1 score and accuracy in binary classification evaluation</article-title>
          .
          <source>BMC genomics</source>
          , volume
          <volume>21</volume>
          (
          <issue>1</issue>
          ),
          <year>2020</year>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>13</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>D.</given-names>
            <surname>Chicco</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Tötsch</surname>
          </string-name>
          ,
          <string-name>
            <surname>G.</surname>
          </string-name>
          <article-title>Jurman, The Matthews correlation coefficient (MCC) is more reliable than balanced accuracy, bookmaker informedness, and markedness in two-class confusion matrix evaluation</article-title>
          .
          <source>BioData mining</source>
          , volume
          <volume>14</volume>
          (
          <issue>1</issue>
          ),
          <year>2021</year>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>22</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>T.</given-names>
            <surname>Honcharenko</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Solovei</surname>
          </string-name>
          ,
          <article-title>Optimal bin number for histogram binning method to calibrate binary probabilities</article-title>
          .
          <source>CEUR Workshop Proceedings</source>
          , vol-
          <volume>3628</volume>
          ,
          <year>2023</year>
          , pp.
          <fpage>126</fpage>
          -
          <lpage>135</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>K.</given-names>
            <surname>Garg</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Campolonghi</surname>
          </string-name>
          ,
          <article-title>A Step-by-Step Guide to Selecting an Optimal Cut-Off Value Based on the Receiver Operating Characteristic and Youden Index in Methods Designed to Diagnose Lyme Disease</article-title>
          .
          <source>InBorrelia burgdorferi: Methods and Protocols</source>
          , New York, NY: Springer US.,
          <year>2024</year>
          , pp.
          <fpage>69</fpage>
          -
          <lpage>76</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>M.</given-names>
            <surname>Hassanzad</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Hajian-Tilaki</surname>
          </string-name>
          ,
          <article-title>Methods of determining optimal cut-point of diagnostic biomarkers with application of clinical data in ROC analysis: an update review</article-title>
          .
          <source>BMC Medical Research Methodology</source>
          , volume
          <volume>24</volume>
          (
          <issue>1</issue>
          ),
          <year>2024</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>