<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.4 20241031//EN" "JATS-journalpublishing1-4.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" article-type="research-article" dtd-version="1.4" xml:lang="en">
  <front>
    <journal-meta>
      <journal-id journal-id-type="publisher-id">jcc</journal-id>
      <journal-title-group>
        <journal-title>Journal of Computer and Communications</journal-title>
      </journal-title-group>
      <issn pub-type="epub">2327-5227</issn>
      <issn pub-type="ppub">2327-5219</issn>
      <publisher>
        <publisher-name>Scientific Research Publishing</publisher-name>
      </publisher>
    </journal-meta>
    <article-meta>
      <article-id pub-id-type="doi">10.4236/jcc.2026.1411009</article-id>
      <article-id pub-id-type="publisher-id">jcc-155460</article-id>
      <article-categories>
        <subj-group>
          <subject>Article</subject>
        </subj-group>
        <subj-group>
          <subject>Computer Science</subject>
          <subject>Communications</subject>
        </subj-group>
      </article-categories>
      <title-group>
        <article-title>A Study on Fragile Watermarking-Based Tamper-Proof Image Authentication for Industrial X-Ray Image</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <name name-style="western">
            <surname>Zheng</surname>
            <given-names>Peichen</given-names>
          </name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <name name-style="western">
            <surname>Cheng</surname>
            <given-names>Shugang</given-names>
          </name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author" corresp="yes">
          <name name-style="western">
            <surname>He</surname>
            <given-names>Bing</given-names>
          </name>
          <xref ref-type="aff" rid="aff2">2</xref>
          <xref ref-type="aff" rid="aff3">3</xref>
        </contrib>
        <contrib contrib-type="author">
          <name name-style="western">
            <surname>Wang</surname>
            <given-names>Shijie</given-names>
          </name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <name name-style="western">
            <surname>Wang</surname>
            <given-names>Jing</given-names>
          </name>
          <xref ref-type="aff" rid="aff3">3</xref>
        </contrib>
        <contrib contrib-type="author">
          <name name-style="western">
            <surname>Chen</surname>
            <given-names>Gengwu</given-names>
          </name>
          <xref ref-type="aff" rid="aff3">3</xref>
        </contrib>
      </contrib-group>
      <aff id="aff1"><label>1</label> Chongqing Unicomp Technology Co., Ltd, Chongqing, China </aff>
      <aff id="aff2"><label>2</label> School of Physics and Electrical Engineering, Weinan Normal University, Weinan, China </aff>
      <aff id="aff3"><label>3</label> Engineering Research Center of X-Ray Imaging and Detection, Universities of Shaanxi Province, Weinan, China </aff>
      <author-notes>
        <fn fn-type="conflict" id="fn-conflict">
          <p>The authors declare no conflicts of interest regarding the publication of this paper.</p>
        </fn>
      </author-notes>
      <pub-date pub-type="epub">
        <day>04</day>
        <month>11</month>
        <year>2026</year>
      </pub-date>
      <pub-date pub-type="collection">
        <month>11</month>
        <year>2026</year>
      </pub-date>
      <volume>14</volume>
      <issue>11</issue>
      <fpage>184</fpage>
      <lpage>203</lpage>
      <history>
        <date date-type="received">
          <day>02</day>
          <month>11</month>
          <year>2026</year>
        </date>
        <date date-type="accepted">
          <day>17</day>
          <month>11</month>
          <year>2026</year>
        </date>
        <date date-type="published">
          <day>20</day>
          <month>11</month>
          <year>2026</year>
        </date>
      </history>
      <permissions>
        <copyright-statement>© 2026 by the authors and Scientific Research Publishing Inc.</copyright-statement>
        <copyright-year>2026</copyright-year>
        <license license-type="open-access">
          <license-p> This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license ( <ext-link ext-link-type="uri" xlink:href="https://creativecommons.org/licenses/by/4.0/">https://creativecommons.org/licenses/by/4.0/</ext-link> ). </license-p>
        </license>
      </permissions>
      <self-uri content-type="doi" xlink:href="https://doi.org/10.4236/jcc.2026.1411009">https://doi.org/10.4236/jcc.2026.1411009</self-uri>
      <abstract>
        <p>Industrial X-ray images must simultaneously guarantee the integrity of the original pixel information and the detectability of local content tampering during storage and transmission. Existing block-mean-based authentication methods effectively mitigate the cross-block false alarm problem caused by image-level normalization through a fixed-range mapping mechanism. However, the authentication features of such methods can only reflect the mean information of image blocks, and thus suffer from a detection failure limitation for image detail tampering that preserves the block mean. To address this deficiency, this paper proposes a block-level authentication method that integrates a hash-based message authentication code (HMAC) with carrier consistency verification. The proposed method incorporates all pixel values within a 4 × 4 RGB image block, the image identifier, and the block position information into the authentication code generation process, and embeds the 24-bit tag in the first decimal place of selected discrete Hartley transform (DHT) coefficient magnitudes. At the receiver side, the authentication codes of candidate image blocks are verified, and the consistency between the received carrier and the reconstructed carrier is simultaneously checked. On a single industrial casting X-ray image, the block-mean baseline’s block-level missed detection rates differed between the two tested attacks, with 0.22% under 5% salt-and-pepper noise and 0.00% under contiguous white-region tampering. On the same image, HMAC detected a mean-preserving edit and the carrier check detected a small float64 perturbation. The joint check localized the target block in both cases.</p>
      </abstract>
      <kwd-group kwd-group-type="author-generated" xml:lang="en">
        <kwd>Fragile Watermarking</kwd>
        <kwd>Image Authentication</kwd>
        <kwd>Carrier Consistency</kwd>
        <kwd>Tamper-Proof Verification</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec1">
      <title>1. Introduction</title>
      <p>Industrial X-ray images primarily record defect morphology, location, and grayscale variations used for image interpretation, so their integrity directly affects the reliability of inspection conclusions. Images may be illegally tampered with during storage, transmission, or archiving; therefore, content changes must be identified while preserving pixel information. Industrial X-ray images reflect differences in internal materials and structures of workpieces through X-ray attenuation, and their grayscale formation mechanism differs from that of ordinary visible-light natural images. Unlike medical images that target human tissues and anatomical structures, this study focuses on the internal structures of industrial castings and their local grayscale and edge details. Regions containing the same material or regular components may exhibit similar grayscale values. Defects such as pores must be interpreted through local grayscale and edge details, and tampering with these details may affect inspection conclusions. A change in one detail does not necessarily alter the average grayscale of the image block in which it is located; therefore, authentication based solely on block means may miss such tampering. Related studies have developed reversible information hiding [<xref ref-type="bibr" rid="B1">1</xref>], difference expansion [<xref ref-type="bibr" rid="B2">2</xref>], reversible authentication [<xref ref-type="bibr" rid="B3">3</xref>], block-wise authentication [<xref ref-type="bibr" rid="B4">4</xref>], prediction error methods [<xref ref-type="bibr" rid="B5">5</xref>], and block feature authentication [<xref ref-type="bibr" rid="B6">6</xref>]. Fragile watermarking can sense changes in watermarked images, while reversible mechanisms can restore the host image after extracting authentication data. The combination of the two can address the issues of image integrity and pixel-level recovery.</p>
      <p>Most studies concentrate on finding the altered region and on whether that localization is stable. Hierarchical authentication refines the reported location [<xref ref-type="bibr" rid="B7">7</xref>]. Chaotic keystreams, block features, and self-embedding are used to strengthen the security and the discriminability of the authentication data [<xref ref-type="bibr" rid="B6">6</xref>] [<xref ref-type="bibr" rid="B8">8</xref>]. Other schemes embed the data in a transform domain so that the watermark responds more directly to content changes [<xref ref-type="bibr" rid="B9">9</xref>]. As the same ideas have been carried over to medical images, fragile authentication, tamper localization, and host recovery have been placed in one pipeline, so that integrity checking and restoration proceed together [<xref ref-type="bibr" rid="B10">10</xref>] [<xref ref-type="bibr" rid="B11">11</xref>]. Dual detection has also been introduced: different decisions are cross-checked in order to improve reliability [<xref ref-type="bibr" rid="B12">12</xref>]. Transform-domain features, dependence between blocks, and reversible embedding now form a fairly clear technical path. False alarms and missed blocks can still depend jointly on the gray-level distribution, the block partition, and the decision rule.</p>
      <p>Recent work gives more weight to reversibility, fine localization, and designs that serve more than one purpose. Bouarroudj <italic>et al.</italic> encrypt DCT authentication data with a Fibonacci Q-matrix and embed them in DFT coefficients, obtaining high-fidelity reversible authentication of medical images [<xref ref-type="bibr" rid="B13">13</xref>]. Yan <italic>et al.</italic> combine a fragile watermark with a zero watermark for region-of-interest (ROI) integrity verification, tamper localization, and copyright protection [<xref ref-type="bibr" rid="B14">14</xref>]. Jagadeesh <italic>et al.</italic> use the slant transform, DNA coding, and chaotic block mapping for multi-region localization and self-recovery [<xref ref-type="bibr" rid="B15">15</xref>]. Later schemes extend authentication and recovery through multi-feature codes with cross-level embedding [<xref ref-type="bibr" rid="B16">16</xref>], hybrid transforms with dual self-recovery [<xref ref-type="bibr" rid="B17">17</xref>], and ROI-partitioned reversible embedding [<xref ref-type="bibr" rid="B18">18</xref>]. These designs focus on feature construction, encryption, and the mapping of recovery data. Less attention is given to cross-block false alarms caused by image-level normalization, and to small regions removed by neighborhood filtering.</p>
      <p>These studies provide different approaches to authentication and recovery. Fixed-range mapping avoids cross-block dependence introduced by image-level normalization, but its authentication feature is still determined by the block mean and cannot distinguish blocks with the same mean and different pixel distributions. To address this limitation, this paper proposes block-level authentication combining complete-block HMAC with a carrier-consistency check, which separately verifies all pixel contents of a candidate block and consistency between the received and reconstructed carriers. The work reported here concerns the applicability and limitations of block-mean authentication: 1) the roles of fixed-range mapping and isolated anomalous-block retention are analyzed, explaining how they avoid cross-block dependence from image-level normalization and suppression of isolated anomalies by neighborhood-majority filtering, while identifying the limitation of a block-mean feature; 2) a single industrial X-ray image is used for no-tamper, 5% salt-and-pepper noise, and contiguous white-region tampering experiments, with embedding fidelity, authentication-data extraction, and block-level localization results reported to examine responses to different forms of tampering. We also evaluate the two checks on the same test image using a mean-preserving edit and a small carrier perturbation. The computational and storage costs of different authentication approaches require further experimental validation.</p>
    </sec>
    <sec id="sec2">
      <title>2. Local Frequency-Domain Authentication and Analysis</title>
      <sec id="sec2dot1">
        <title>2.1. Baseline Framework</title>
        <p>The baseline follows a DWT-Logistic-DHT pipeline. Every input is converted to RGB. The original 3072 × 3072 image is downsampled to 1024 × 1024 using Lanczos resampling, without cropping or geometric distortion. The image is partitioned into non-overlapping 4 × 4 blocks, which are the smallest units of tamper localization. Each color channel then undergoes a two-level orthonormal Haar decomposition, and the low-frequency sub-band <italic>LL</italic><sub>2</sub> is retained. Quantization of the <italic>LL</italic><sub>2</sub> coefficient produces one 8-bit authentication byte for each channel block. That byte is combined, by bitwise exclusive-or, with a Logistic byte stream initialized from the key K and the channel index. Compute SHA-256 of the UTF-8 string K + NUL + str(<italic>c</italic>), where NUL denotes one 0x00 byte and <inline-formula><mml:math><mml:mrow><mml:mi> c </mml:mi><mml:mo> = </mml:mo><mml:mtext></mml:mtext><mml:mn> 0 </mml:mn><mml:mo> , </mml:mo><mml:mn> 1 </mml:mn></mml:mrow></mml:math></inline-formula> , or 2 denotes R, G, or B, respectively. Read the first eight digest bytes and the next eight as unsigned big-endian integers <inline-formula><mml:math><mml:mrow><mml:msub><mml:mi> u </mml:mi><mml:mn> 0 </mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math><mml:mrow><mml:msub><mml:mi> u </mml:mi><mml:mn> 1 </mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> . Set <inline-formula><mml:math><mml:mrow><mml:msub><mml:mi> x </mml:mi><mml:mn> 0 </mml:mn></mml:msub><mml:mo> = </mml:mo><mml:mrow><mml:mrow><mml:mrow><mml:mo> ( </mml:mo><mml:mrow><mml:msub><mml:mi> u </mml:mi><mml:mn> 0 </mml:mn></mml:msub><mml:mtext></mml:mtext><mml:mo> + </mml:mo><mml:mtext></mml:mtext><mml:mn> 0.5 </mml:mn></mml:mrow><mml:mo> ) </mml:mo></mml:mrow></mml:mrow><mml:mo> / </mml:mo><mml:mrow><mml:msup><mml:mn> 2 </mml:mn><mml:mrow><mml:mn> 64 </mml:mn></mml:mrow></mml:msup></mml:mrow></mml:mrow></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math><mml:mrow><mml:mi> r </mml:mi><mml:mtext></mml:mtext><mml:mo> = </mml:mo><mml:mtext></mml:mtext><mml:mn> 3.9 </mml:mn><mml:mo> + </mml:mo><mml:mn> 0.099999 </mml:mn><mml:mo> × </mml:mo><mml:mrow><mml:mrow><mml:msub><mml:mi> u </mml:mi><mml:mn> 1 </mml:mn></mml:msub></mml:mrow><mml:mo> / </mml:mo><mml:mrow><mml:msup><mml:mn> 2 </mml:mn><mml:mrow><mml:mn> 64 </mml:mn></mml:mrow></mml:msup></mml:mrow></mml:mrow></mml:mrow></mml:math></inline-formula> . Iterate <inline-formula><mml:math><mml:mrow><mml:msub><mml:mi> x </mml:mi><mml:mrow><mml:mtext> n </mml:mtext><mml:mo> + </mml:mo><mml:mn> 1 </mml:mn></mml:mrow></mml:msub><mml:mo> = </mml:mo><mml:mi> r </mml:mi><mml:mtext>   </mml:mtext><mml:msub><mml:mi> x </mml:mi><mml:mi> n </mml:mi></mml:msub><mml:mrow><mml:mo> ( </mml:mo><mml:mrow><mml:mn> 1 </mml:mn><mml:mo> − </mml:mo><mml:msub><mml:mi> x </mml:mi><mml:mi> n </mml:mi></mml:msub></mml:mrow><mml:mo> ) </mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula> in float64 and discard the first 1000 iterations. Each subsequent iteration produces <inline-formula><mml:math><mml:mrow><mml:mtext> floor </mml:mtext><mml:mrow><mml:mo> ( </mml:mo><mml:mrow><mml:mn> 256 </mml:mn><mml:msub><mml:mi> x </mml:mi><mml:mi> n </mml:mi></mml:msub></mml:mrow><mml:mo> ) </mml:mo></mml:mrow><mml:mtext> mod </mml:mtext><mml:mn> 256 </mml:mn></mml:mrow></mml:math></inline-formula> . Fill each channel in block row-major order. The Logistic sequence is used here only to process authentication data. It is not offered as a standard cipher, and the security of the system still depends on key management, parameter setting, and the implementation environment.</p>
        <p>At embedding time, each 4 × 4 block is transformed by a two-dimensional discrete Hartley transform, and the low-frequency component is shifted to the center of the transform domain. The unnormalized DHT is the real part minus the imaginary part of the two-dimensional FFT. After shifting both axes, the DC coefficient is at (2, 2). The authentication byte is written into eight preselected boundary coefficients, most significant bit first. The zero-based row and column positions are (0, 0), (0, 1), (0, 2), (0, 3), (1, 0), (1, 3), (2, 0), and (2, 3), in that order. The embedded coefficient is</p>
        <disp-formula id="FD1">
          <label>(1)</label>
          <mml:math display="inline">
            <mml:mrow>
              <mml:msup>
                <mml:mi>c</mml:mi>
                <mml:mo>′</mml:mo>
              </mml:msup>
              <mml:mo>=</mml:mo>
              <mml:mi>s</mml:mi>
              <mml:mrow>
                <mml:mo>[</mml:mo>
                <mml:mrow>
                  <mml:mrow>
                    <mml:mo>⌊</mml:mo>
                    <mml:mrow>
                      <mml:mrow>
                        <mml:mo>|</mml:mo>
                        <mml:mi>c</mml:mi>
                        <mml:mo>|</mml:mo>
                      </mml:mrow>
                    </mml:mrow>
                    <mml:mo>⌋</mml:mo>
                  </mml:mrow>
                  <mml:mo>+</mml:mo>
                  <mml:mn>0.1</mml:mn>
                  <mml:mi>b</mml:mi>
                  <mml:mo>+</mml:mo>
                  <mml:mn>0.1</mml:mn>
                  <mml:mi>d</mml:mi>
                </mml:mrow>
                <mml:mo>]</mml:mo>
              </mml:mrow>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <p>where <italic>c</italic> and <inline-formula><mml:math display="inline"><mml:msup><mml:mi> c </mml:mi><mml:mo> ′ </mml:mo></mml:msup></mml:math></inline-formula> are the real transform coefficients before and after embedding, <italic>s</italic> is the sign of the coefficient (positive for zero), <inline-formula><mml:math display="inline"><mml:mrow><mml:mi> b </mml:mi><mml:mo> ∈ </mml:mo><mml:mrow><mml:mo> { </mml:mo><mml:mrow><mml:mn> 0 </mml:mn><mml:mo> , </mml:mo><mml:mn> 1 </mml:mn></mml:mrow><mml:mo> } </mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula> . is the authentication bit, and d is the fractional part of |c|. The receiver reads the leading decimal digit of each selected coefficient, maps that digit back to a bit, and shifts the remaining fractional digits into their original places so that the pre-embedding coefficient is restored. A leading digit of 1 is decoded as bit 1, and any other digit is decoded as bit 0. In the implementation, the absolute value of each selected coefficient is first rounded to nine decimal places. For a rounded magnitude with fractional part f, the leading digit is floor (10 f + 10<sup>−9</sup>). Digits outside the expected set are only counted; the block decision does not depend on them. The inverse transform undoes the shift, applies the same DHT, and divides by 16.</p>
        <p>Pack the extracted bits in embedding order and XOR with the same Logistic stream to recover qext. Before coefficient restoration, round the received spatial-domain samples with ties to even, clip them to [0, 255], and convert them to uint8. Use these samples to recompute qrecv = round (<italic>LL</italic><sub>2</sub>/4), again with ties to even. The extracted authentication byte is then compared, block by block, with the byte regenerated from the received image. Their maximum absolute difference across the three channels is the block anomaly <italic>D</italic>(<italic>i</italic>, <italic>j</italic>). The block is declared anomalous when <italic>D</italic>(<italic>i</italic>, <italic>j</italic>) &gt; <italic>T</italic> and normal otherwise. All block-mean baseline experiments use <italic>T</italic> = 5. The threshold is the tolerated difference between feature bytes, and it is kept fixed for all reported baseline conditions.</p>
      </sec>
      <sec id="sec2dot2">
        <title>2.2. Fixed-Range Feature Mapping</title>
        <p>For comparison, image-wise min-max mapping normalizes each low-frequency feature by the minimum m and the maximum <italic>M</italic> observed on the current image, and then quantizes the <italic>LL</italic><sub>2</sub> coefficient:</p>
        <disp-formula id="FD2">
          <label>(2)</label>
          <mml:math>
            <mml:mrow>
              <mml:msub>
                <mml:mi>q</mml:mi>
                <mml:mrow>
                  <mml:mi>m</mml:mi>
                  <mml:mi>m</mml:mi>
                </mml:mrow>
              </mml:msub>
              <mml:mo>=</mml:mo>
              <mml:mtext>round</mml:mtext>
              <mml:mrow>
                <mml:mo>(</mml:mo>
                <mml:mrow>
                  <mml:mfrac>
                    <mml:mrow>
                      <mml:mn>255</mml:mn>
                      <mml:mrow>
                        <mml:mo>(</mml:mo>
                        <mml:mrow>
                          <mml:mi>a</mml:mi>
                          <mml:mo>−</mml:mo>
                          <mml:mi>m</mml:mi>
                        </mml:mrow>
                        <mml:mo>)</mml:mo>
                      </mml:mrow>
                    </mml:mrow>
                    <mml:mrow>
                      <mml:mi>M</mml:mi>
                      <mml:mo>−</mml:mo>
                      <mml:mi>m</mml:mi>
                    </mml:mrow>
                  </mml:mfrac>
                </mml:mrow>
                <mml:mo>)</mml:mo>
              </mml:mrow>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <p>where <italic>a</italic> is the low-frequency coefficient to be quantized, and <italic>m</italic> and <italic>M</italic> are the minimum and maximum observed on the current image. Because both extremes depend on the whole image, a local edit can change the global quantization scale. An untouched coefficient a may then be quantized to a different byte, and the mismatch is reported as a cross-block false alarm.</p>
        <p>For an arbitrary 4 × 4 host block <italic>B</italic>, the low-frequency coefficient after the two-level orthonormal Haar decomposition is</p>
        <disp-formula id="FD3">
          <label>(3)</label>
          <mml:math>
            <mml:mrow>
              <mml:mi>L</mml:mi>
              <mml:msub>
                <mml:mi>L</mml:mi>
                <mml:mn>2</mml:mn>
              </mml:msub>
              <mml:mo>=</mml:mo>
              <mml:mfrac>
                <mml:mn>1</mml:mn>
                <mml:mn>4</mml:mn>
              </mml:mfrac>
              <mml:mstyle displaystyle="true">
                <mml:munder>
                  <mml:mo>∑</mml:mo>
                  <mml:mrow>
                    <mml:mrow>
                      <mml:mo>(</mml:mo>
                      <mml:mrow>
                        <mml:mi>u</mml:mi>
                        <mml:mo>,</mml:mo>
                        <mml:mi>v</mml:mi>
                      </mml:mrow>
                      <mml:mo>)</mml:mo>
                    </mml:mrow>
                    <mml:mo>∈</mml:mo>
                    <mml:mi>B</mml:mi>
                  </mml:mrow>
                </mml:munder>
                <mml:mrow>
                  <mml:msub>
                    <mml:mi>p</mml:mi>
                    <mml:mrow>
                      <mml:mi>u</mml:mi>
                      <mml:mi>v</mml:mi>
                    </mml:mrow>
                  </mml:msub>
                  <mml:mo>,</mml:mo>
                </mml:mrow>
              </mml:mstyle>
              <mml:mtext>
                 
              </mml:mtext>
              <mml:mn>0</mml:mn>
              <mml:mo>≤</mml:mo>
              <mml:mi>L</mml:mi>
              <mml:msub>
                <mml:mi>L</mml:mi>
                <mml:mn>2</mml:mn>
              </mml:msub>
              <mml:mo>≤</mml:mo>
              <mml:mn>1020</mml:mn>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <p>where <italic>p</italic><italic><sub>uv</sub></italic> is the pixel at (<italic>u</italic>, <italic>v</italic>) in <italic>B</italic>. With <inline-formula><mml:math display="inline"><mml:mrow><mml:msub><mml:mi> p </mml:mi><mml:mrow><mml:mi> u </mml:mi><mml:mi> v </mml:mi></mml:mrow></mml:msub><mml:mo> ∈ </mml:mo><mml:mrow><mml:mo> [ </mml:mo><mml:mrow><mml:mn> 0 </mml:mn><mml:mo> , </mml:mo><mml:mn> 255 </mml:mn></mml:mrow><mml:mo> ] </mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula> , and the Haar scaling used here, <italic>LL</italic><sub>2</sub> lies in [0, 1020]. The bounds follow from the transform and from the range of an 8-bit sample. Quantization on this fixed interval is</p>
        <disp-formula id="FD4">
          <label>(4)</label>
          <mml:math>
            <mml:mrow>
              <mml:msub>
                <mml:mi>q</mml:mi>
                <mml:mrow>
                  <mml:mtext>fix</mml:mtext>
                </mml:mrow>
              </mml:msub>
              <mml:mo>=</mml:mo>
              <mml:mtext>round</mml:mtext>
              <mml:mrow>
                <mml:mo>(</mml:mo>
                <mml:mrow>
                  <mml:mfrac>
                    <mml:mrow>
                      <mml:mi>L</mml:mi>
                      <mml:msub>
                        <mml:mi>L</mml:mi>
                        <mml:mn>2</mml:mn>
                      </mml:msub>
                    </mml:mrow>
                    <mml:mn>4</mml:mn>
                  </mml:mfrac>
                </mml:mrow>
                <mml:mo>)</mml:mo>
              </mml:mrow>
              <mml:mo>,</mml:mo>
              <mml:mtext>
                 
              </mml:mtext>
              <mml:mn>0</mml:mn>
              <mml:mo>≤</mml:mo>
              <mml:msub>
                <mml:mi>q</mml:mi>
                <mml:mrow>
                  <mml:mtext>fix</mml:mtext>
                </mml:mrow>
              </mml:msub>
              <mml:mo>≤</mml:mo>
              <mml:mn>255</mml:mn>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <p>Together with Equation (3), the fixed-range feature equals the rounded mean gray level of the 4 × 4 block, and <italic>q</italic><sub>fix</sub> is the resulting 8-bit authentication byte. The mapping removes the cross-block dependence of image-level min-max normalization, and it does not require the extremes to be transmitted or re-estimated. A local edit then appears in the corresponding <italic>LL</italic><sub>2</sub> coefficient and in its authentication byte, rather than shifting the scale used by other blocks. The feature is still only a block mean, so a local change that preserves the mean is not identified.</p>
        <p>Fixed-range mapping is intended for integrity checking on one pixel grid. It does not claim robustness to JPEG compression, scaling, or rotation. Those operations can change many blocks at once and can destroy the original block alignment. For a fragile authenticator they are content changes to be detected and reported, not distortions to be tolerated as in robust watermarking.</p>
      </sec>
      <sec id="sec2dot3">
        <title>2.3. Retention of Isolated Anomalous Blocks and Decision Measures</title>
        <p>After the block anomaly map is obtained, the baseline applies a neighborhood-majority rule. The revised procedure drops that post-processing and keeps every block that the threshold has marked. Against a ground-truth tamper mask, true positives (TP), false positives (FP), true negatives (TN), and false negatives (FN) are counted, and the false-positive rate (FPR), false-negative rate (FNR), and F1 score are computed from them.</p>
        <p>The false-positive rate is the fraction of untouched blocks declared tampered:</p>
        <disp-formula id="FD5">
          <label>(5)</label>
          <mml:math display="inline">
            <mml:mrow>
              <mml:mtext>FPR</mml:mtext>
              <mml:mo>=</mml:mo>
              <mml:mfrac>
                <mml:mrow>
                  <mml:mtext>FP</mml:mtext>
                </mml:mrow>
                <mml:mrow>
                  <mml:mtext>FP</mml:mtext>
                  <mml:mo>+</mml:mo>
                  <mml:mtext>TN</mml:mtext>
                </mml:mrow>
              </mml:mfrac>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <p>The false-negative rate is the fraction of truly tampered blocks declared normal:</p>
        <disp-formula id="FD6">
          <label>(6)</label>
          <mml:math display="inline">
            <mml:mrow>
              <mml:mtext>FNR</mml:mtext>
              <mml:mo>=</mml:mo>
              <mml:mfrac>
                <mml:mrow>
                  <mml:mtext>FN</mml:mtext>
                </mml:mrow>
                <mml:mrow>
                  <mml:mtext>FN</mml:mtext>
                  <mml:mo>+</mml:mo>
                  <mml:mtext>TP</mml:mtext>
                </mml:mrow>
              </mml:mfrac>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <p>F1 summarizes precision and recall through the equivalent confusion-matrix form:</p>
        <disp-formula id="FD7">
          <label>(7)</label>
          <mml:math display="inline">
            <mml:mrow>
              <mml:mtext>F</mml:mtext>
              <mml:mn>1</mml:mn>
              <mml:mo>=</mml:mo>
              <mml:mfrac>
                <mml:mrow>
                  <mml:mn>2</mml:mn>
                  <mml:mtext>TP</mml:mtext>
                </mml:mrow>
                <mml:mrow>
                  <mml:mn>2</mml:mn>
                  <mml:mtext>TP</mml:mtext>
                  <mml:mo>+</mml:mo>
                  <mml:mtext>FP</mml:mtext>
                  <mml:mo>+</mml:mo>
                  <mml:mtext>FN</mml:mtext>
                </mml:mrow>
              </mml:mfrac>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <p>FPR and FNR describe, respectively, false alarms on clean blocks and misses on tampered blocks. F1 combines precision and recall, but it is sensitive to class balance when tampered blocks are few, so FPR, FNR, and F1 are reported together. Under no attack, the peak signal-to-noise ratio (PSNR), the bit-error rate (BER), the number of false-alarm blocks, and the recovery error are also recorded, in order to judge fidelity and the stability of the authentication data. Keeping the raw anomalous blocks avoids deleting an isolated block or a thin tampered line. That choice, together with fixed-range mapping, is the configuration used in the experiments below.</p>
      </sec>
      <sec id="sec2dot4">
        <title>2.4. Reversible Recovery and Complexity</title>
        <p>The spatial-domain float64 watermarked image array is the authentication carrier. Once the authentication bits have been read, the leading fractional digit that carried each bit is removed and the remaining digits are shifted back, which restores the pre-embedding values of the selected DHT coefficients. In the no-attack experiment the BER of the authentication data is zero, and the software inverts the embedding. Recovery is evaluated on the float64 carrier. The high-precision carrier and the display image are kept distinct: the former is used for extraction and recovery, and the latter is obtained by rounding and clipping the former to 8 bits for display only. Quantization discards the fractional digits that carry the authentication bits, so a display image cannot stand in for the carrier. Recovery is measured against the host after conversion to RGB and any size adjustment, and any file that is saved or reloaded must preserve the float64 array.</p>
        <p>For an image of height H and width W, the two-level Haar transform, authentication-code generation, the discrete Hartley transform, and the 4 × 4 partition all operate on pixels. Each block has a constant transform size and a constant number of steps, so the cost grows linearly with the number of pixels. The Logistic keystream is proportional to the length of the authentication data and is likewise linear. The time and space complexity are therefore both O(HW). Relative to min-max mapping from observed extremes, fixed-range mapping changes only the quantization of the low-frequency feature. It adds neither an iteration nor a data structure, and it does not change the asymptotic complexity.</p>
      </sec>
      <sec id="sec2dot5">
        <title>2.5. Complete-Block Authentication and Carrier Consistency</title>
        <p>Serialize each 4 × 4 RGB block as IW01 (4 ASCII bytes), the image-version identifier (16 bytes), the zero-based row and column (4 unsigned big-endian bytes each), and 48 uint8 samples (row-major, interleaved RGB). The receiver obtains the expected identifier from its configuration.</p>
        <p>Take the first 24 bits of HMAC-SHA-256 [<xref ref-type="bibr" rid="B19">19</xref>] with a separate 32-byte key. Eight DHT positions per channel provide 24 bits per RGB block. Embed one tag byte per channel in RGB order, most significant bit first, using Section 2.1 and Equation (1).</p>
        <p>Extract <inline-formula><mml:math><mml:mi> t </mml:mi></mml:math></inline-formula> from the received float64 block <inline-formula><mml:math><mml:mi> Y </mml:mi></mml:math></inline-formula> as in Section 2.1. Restore each selected coefficient to <inline-formula><mml:math display="inline"><mml:mrow><mml:mi> s </mml:mi><mml:mrow><mml:mo> [ </mml:mo><mml:mrow><mml:mtext> floor </mml:mtext><mml:mrow><mml:mo> ( </mml:mo><mml:mi> m </mml:mi><mml:mo> ) </mml:mo></mml:mrow><mml:mo> + </mml:mo><mml:mtext> frac </mml:mtext><mml:mrow><mml:mo> ( </mml:mo><mml:mrow><mml:mn> 10 </mml:mn><mml:mi> m </mml:mi></mml:mrow><mml:mo> ) </mml:mo></mml:mrow></mml:mrow><mml:mo> ] </mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula> , where <inline-formula><mml:math><mml:mi> m </mml:mi></mml:math></inline-formula> is its magnitude rounded to nine decimal places, frac gives the fractional part, and <inline-formula><mml:math><mml:mi> s </mml:mi></mml:math></inline-formula> is its sign (positive for zero). Invert the DHT, round with ties to even, and clip to <inline-formula><mml:math><mml:mrow><mml:mrow><mml:mo> [ </mml:mo><mml:mrow><mml:mn> 0 </mml:mn><mml:mo> , </mml:mo><mml:mn> 255 </mml:mn></mml:mrow><mml:mo> ] </mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula> to obtain uint8 candidate <inline-formula><mml:math><mml:mover accent="true"><mml:mi> B </mml:mi><mml:mo> ^ </mml:mo></mml:mover></mml:math></inline-formula> .</p>
        <p>The HMAC check compares <inline-formula><mml:math><mml:mi> t </mml:mi></mml:math></inline-formula> with the tag recomputed from <inline-formula><mml:math><mml:mover accent="true"><mml:mi> B </mml:mi><mml:mo> ^ </mml:mo></mml:mover></mml:math></inline-formula> . Re-embed <inline-formula><mml:math><mml:mi> t </mml:mi></mml:math></inline-formula> in <inline-formula><mml:math><mml:mover accent="true"><mml:mi> B </mml:mi><mml:mo> ^ </mml:mo></mml:mover></mml:math></inline-formula> to reconstruct <inline-formula><mml:math><mml:mover accent="true"><mml:mi> Y </mml:mi><mml:mo> ^ </mml:mo></mml:mover></mml:math></inline-formula> . The carrier check requires valid leading digits (0 or 1) and <inline-formula><mml:math display="inline"><mml:mrow><mml:mi> δ </mml:mi><mml:mo> = </mml:mo><mml:mtext> max </mml:mtext><mml:mrow><mml:mo> | </mml:mo><mml:mrow><mml:mi> Y </mml:mi><mml:mo> − </mml:mo><mml:mover accent="true"><mml:mi> Y </mml:mi><mml:mo> ^ </mml:mo></mml:mover></mml:mrow><mml:mo> | </mml:mo></mml:mrow><mml:mo> ≤ </mml:mo><mml:msup><mml:mrow><mml:mn> 10 </mml:mn></mml:mrow><mml:mrow><mml:mo> − </mml:mo><mml:mn> 8 </mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> over the 48 float64 samples. Accept the block only if both checks pass.</p>
      </sec>
    </sec>
    <sec id="sec3">
      <title>3. Interface Design and Implementation</title>
      <p>A PyQt5 front end organizes host loading, key entry, watermark generation and embedding, extraction from a received image, tamper localization, and attack evaluation. <xref ref-type="fig" rid="fig1">Figures 1-3</xref> show the PyQt5 interface for the block-mean baseline. The HMAC prototype was evaluated in a standalone implementation.</p>
      <sec id="sec3dot1">
        <title>3.1. Layout</title>
        <p>A parameter bar sits above a tabbed workspace. The bar selects the host, sets the key K, and offers generation, saving, embedding, and saving of the watermarked image. The tabs are, in order, watermark generation, embedding, extraction and tamper detection, 5% salt-and-pepper attack, cropping attack, and algorithm steps. <xref ref-type="fig" rid="fig1">Figure 1</xref> shows generation, <xref ref-type="fig" rid="fig2">Figure 2</xref> shows 4 × 4 embedding and the difference image, and <xref ref-type="fig" rid="fig3">Figure 3</xref> shows extraction, localization, and recovery when nothing has been altered.</p>
        <fig id="fig1">
          <label>Figure 1</label>
          <caption>
            <p>Watermark generation for an industrial casting X-ray image.</p>
          </caption>
          <graphic xlink:href="https://html.scirp.org/file/1733719-rId73.jpeg?20261120012534" />
        </fig>
        <fig id="fig2">
          <label>Figure 2</label>
          <caption>
            <p>Watermark embedding on 4 × 4 blocks.</p>
          </caption>
          <graphic xlink:href="https://html.scirp.org/file/1733719-rId74.jpeg?20261120012534" />
        </fig>
        <fig id="fig3">
          <label>Figure 3</label>
          <caption>
            <p>Extraction, localization, and recovery with no tampering.</p>
          </caption>
          <graphic xlink:href="https://html.scirp.org/file/1733719-rId75.jpeg?20261120012534" />
        </fig>
      </sec>
      <sec id="sec3dot2">
        <title>3.2. Modules and Interaction Constraints</title>
        <p>Each module corresponds to one stage of the algorithm, and button states enforce the order of operations. Embedding is enabled only after generation, and extraction and the attack trials are enabled only after embedding. The high-precision carrier is saved as an NPZ file together with an 8-bit preview, so that a quantized display image is not later treated as the reversible carrier. <bold>Table 1</bold> lists the modules and their constraints.</p>
        <p><bold>Table 1.</bold>Software modules and interaction constraints.</p>
        <table-wrap id="tbl1">
          <label>Table 1</label>
          <table>
            <tbody>
              <tr>
                <td>Module</td>
                <td>Main input</td>
                <td>Core output</td>
                <td>Interaction and constraint</td>
              </tr>
              <tr>
                <td>Generation</td>
                <td>Host image, key K</td>
                <td>
                  Input RGB image,
                  <italic>LL</italic>
                  <sub>2</sub>
                  , encrypted watermark
                </td>
                <td>Industrial casting X-ray image is selected; embedding and saving open after generation</td>
              </tr>
              <tr>
                <td>Embedding</td>
                <td>Host, encrypted watermark</td>
                <td>Difference image, watermarked image, NPZ</td>
                <td>Embedded bit count, MSE, and PSNR are displayed</td>
              </tr>
              <tr>
                <td>Extraction and detection</td>
                <td>Received image or NPZ, threshold</td>
                <td>Extracted watermark, localization map, recovered image</td>
                <td>Threshold is editable; execution stays disabled until embedding is finished</td>
              </tr>
              <tr>
                <td>Salt-and-pepper attack</td>
                <td>Noise ratio, random seed</td>
                <td>Attacked image, mask, confusion map</td>
                <td>PSNR, BER, NC, and localization measures are written together</td>
              </tr>
              <tr>
                <td>Cropping attack</td>
                <td>Cropped image, change tolerance</td>
                <td>Reconstructed image, localization and class maps</td>
                <td>The crop is matched automatically and eight process views are shown</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>The reproducible settings are key K = K-2026, detection threshold 5, salt-and-pepper ratio 5.0%, random seed 2026, and an internal change tolerance of 3 for the cropping trial. Numeric controls restrict the input range. Buttons are disabled while a stage is running, and the status bar reports the current stage.</p>
      </sec>
      <sec id="sec3dot3">
        <title>3.3. Result Display</title>
        <p>Each attack tab shows the image before and after the attack, the pixel-level ground-truth change mask, the block-level localization overlay, the confusion-class map, and the binary localization map. TP, FP, FN, and TN are drawn in green, red, yellow, and black, respectively.</p>
      </sec>
    </sec>
    <sec id="sec4">
      <title>4. Experimental Design</title>
      <sec id="sec4dot1">
        <title>4.1. Images and Protocol</title>
        <p>Experiments were performed on Windows 11 using Python 3.12.14, NumPy 2.3.5, and Pillow 12.3.0, with key K-2026 and decision threshold 5. The experimental image was selected from an industrial casting X-ray image collection collected and organized by the authors. The selected sample is the 30th image in the Org_imgs directory (Z30.jpg), with an original size of 3072 × 3072 pixels and an experimental input size of 1024 × 1024 pixels. <xref ref-type="fig" rid="fig4">Figure 4</xref> shows selected images from the industrial casting X-ray image collection; all quantitative results reported here come from the test image.</p>
        <p>The experimental sequence comprises watermark generation, 4 × 4 block embedding, extraction without tampering, a 5% salt-and-pepper noise attack, and cropping or region tampering. Watermark generation uses a two-level Haar DWT and Logistic chaotic encryption. During embedding, a DHT is applied to each block and authentication data are embedded in the selected transform coefficients. The watermarked image is saved as both a float 64 high-precision NPZ carrier and an 8-bit PNG preview; the former is used for reversible extraction and the latter for display. The salt-and-pepper noise experiment uses a noise ratio of 5.0% and random seed 2026. In the cropping or region-tampering experiment, a contiguous white region is introduced using the reconstruction procedure below, and the interface reports an actual changed-pixel proportion of 13.07%. This is a single-image case study, so means, standard deviations, p-values, and effect sizes are not calculated. All baseline quality and localization measures are reported from one deterministic run.</p>
        <fig id="fig4">
          <label>Figure 4</label>
          <caption>
            <p>Preview of selected images from the industrial casting X-ray image collection.</p>
          </caption>
          <graphic xlink:href="https://html.scirp.org/file/1733719-rId76.jpeg?20261120012535" />
        </fig>
        <p>Use NumPy default_rng (2026) to sample round (0.05 × 1024 × 1024) = 52,429 pixel locations without replacement. Shuffle 26,214 zeros and 26,215 values of 255 with the same generator, then assign one value to all three channels at each selected pixel. Mark a pixel if any of its float64 samples changed, giving 52,411 changed pixels (5.00%).</p>
        <p>In the full-frame 8-bit preview, set rows [288, 633) and columns [512, 912) to 255 in all channels, using zero-based, half-open coordinates. Align the uploaded image with the reference preview at (0, 0). Where the maximum absolute RGB difference exceeds 3, mark the pixel and copy all three uploaded values into the float64 carrier. Retain the original float64 values elsewhere. This yields 137,099 changed pixels. Uploading the unmodified preview reconstructs an identical float64 carrier.</p>
        <p>A non-overlapping 4 × 4 block is marked as tampered in the ground truth if any of its pixels is marked. The detector receives the resulting float64 carrier, the 1024 × 1024 dimensions, key K, and threshold 5. The original carrier and ground-truth masks are used for constructing and scoring the attacks. The original feature bytes are used to calculate BER and NC.</p>
        <p>Generate separate baseline and HMAC carriers from the same preprocessed test image and verify both unchanged in the control. Both attacks target block (128, 128). Coordinates are zero-based (row, column) pairs. The mean-preserving edit swaps pixels (512, 512) and (514, 515), whose RGB values are (175, 175, 175) and (172, 172, 172). Each channel sum remains 2775. Re-embed each carrier’s original extracted bits in the edited block. For the perturbation, add 10<sup>−5</sup> to all 16 float64 samples in its red channel.</p>
        <p>For reproducibility, use image-version identifier 62958219D97B7B26F10639A C0B194F48, decoded from hexadecimal to 16 bytes. The public test key is the raw 32-byte SHA-256 digest of the ASCII string “Z30 HMAC prototype public test key v1”.</p>
        <p>The supplementary tests used Python 3.12.14, NumPy 2.3.5, and Pillow 13.0.0. The preprocessed pixel array was identical to the one used in the original baseline experiment.</p>
      </sec>
      <sec id="sec4dot2">
        <title>4.2. Evaluation Measures</title>
        <p>Fidelity after embedding, accuracy of the extracted authentication data, and recovery accuracy are measured by the mean squared error (MSE), PSNR, BER, and the maximum absolute recovery error <italic>E</italic><sub>max</sub> in the floating-point domain.</p>
        <p>MSE is the mean squared pixel difference between the original image and the image after embedding:</p>
        <disp-formula id="FD8">
          <label>(8)</label>
          <mml:math display="inline">
            <mml:mrow>
              <mml:mtext>MSE</mml:mtext>
              <mml:mo>=</mml:mo>
              <mml:mfrac>
                <mml:mn>1</mml:mn>
                <mml:mrow>
                  <mml:mn>3</mml:mn>
                  <mml:mi>H</mml:mi>
                  <mml:mi>W</mml:mi>
                </mml:mrow>
              </mml:mfrac>
              <mml:munderover>
                <mml:mstyle mathsize="140%" displaystyle="true">
                  <mml:mo>∑</mml:mo>
                </mml:mstyle>
                <mml:mrow>
                  <mml:mi>i</mml:mi>
                  <mml:mo>=</mml:mo>
                  <mml:mn>1</mml:mn>
                </mml:mrow>
                <mml:mi>H</mml:mi>
              </mml:munderover>
              <mml:munderover>
                <mml:mstyle mathsize="140%" displaystyle="true">
                  <mml:mo>∑</mml:mo>
                </mml:mstyle>
                <mml:mrow>
                  <mml:mi>j</mml:mi>
                  <mml:mo>=</mml:mo>
                  <mml:mn>1</mml:mn>
                </mml:mrow>
                <mml:mi>W</mml:mi>
              </mml:munderover>
              <mml:munderover>
                <mml:mstyle mathsize="140%" displaystyle="true">
                  <mml:mo>∑</mml:mo>
                </mml:mstyle>
                <mml:mrow>
                  <mml:mi>c</mml:mi>
                  <mml:mo>=</mml:mo>
                  <mml:mn>1</mml:mn>
                </mml:mrow>
                <mml:mn>3</mml:mn>
              </mml:munderover>
              <mml:msup>
                <mml:mrow>
                  <mml:mrow>
                    <mml:mo>[</mml:mo>
                    <mml:mrow>
                      <mml:msub>
                        <mml:mi>I</mml:mi>
                        <mml:mi>w</mml:mi>
                      </mml:msub>
                      <mml:mrow>
                        <mml:mo>(</mml:mo>
                        <mml:mrow>
                          <mml:mi>i</mml:mi>
                          <mml:mo>,</mml:mo>
                          <mml:mi>j</mml:mi>
                          <mml:mo>,</mml:mo>
                          <mml:mi>c</mml:mi>
                        </mml:mrow>
                        <mml:mo>)</mml:mo>
                      </mml:mrow>
                      <mml:mo>−</mml:mo>
                      <mml:mi>I</mml:mi>
                      <mml:mrow>
                        <mml:mo>(</mml:mo>
                        <mml:mrow>
                          <mml:mi>i</mml:mi>
                          <mml:mo>,</mml:mo>
                          <mml:mi>j</mml:mi>
                          <mml:mo>,</mml:mo>
                          <mml:mi>c</mml:mi>
                        </mml:mrow>
                        <mml:mo>)</mml:mo>
                      </mml:mrow>
                    </mml:mrow>
                    <mml:mo>]</mml:mo>
                  </mml:mrow>
                </mml:mrow>
                <mml:mn>2</mml:mn>
              </mml:msup>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <p>where <italic>I</italic> and <italic>I</italic><italic><sub>w</sub></italic> are the original image and the image after embedding, <italic>H</italic> and <italic>W</italic> are the height and width, and <italic>i</italic>, <italic>j</italic>, and <italic>c</italic> index the row, the column, and the color channel. A smaller MSE means a smaller pixel change due to embedding.</p>
        <p>PSNR measures the fidelity of the embedded image:</p>
        <disp-formula id="FD9">
          <label>(9)</label>
          <mml:math>
            <mml:mrow>
              <mml:mtext>PSNR</mml:mtext>
              <mml:mo>=</mml:mo>
              <mml:mn>10</mml:mn>
              <mml:msub>
                <mml:mrow>
                  <mml:mi>log</mml:mi>
                </mml:mrow>
                <mml:mrow>
                  <mml:mn>10</mml:mn>
                </mml:mrow>
              </mml:msub>
              <mml:mfrac>
                <mml:mrow>
                  <mml:msup>
                    <mml:mrow>
                      <mml:mn>255</mml:mn>
                    </mml:mrow>
                    <mml:mn>2</mml:mn>
                  </mml:msup>
                </mml:mrow>
                <mml:mrow>
                  <mml:mtext>MSE</mml:mtext>
                </mml:mrow>
              </mml:mfrac>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <p>where 255 is the peak value of an 8-bit sample and MSE is given by Equation (8). PSNR is reported in decibels. A larger value means that embedding changes the visual appearance less.</p>
        <p>Embedding PSNR compares the preprocessed host with the embedded carrier. Attack PSNR compares the pre-attack carrier with the received carrier supplied to the detector. Recovery PSNR compares the recovered float64 image with the preprocessed host cast to float64. All three measures use spatial-domain RGB samples in float64 and a peak value of 255.</p>
        <p>BER is the fraction of authentication bits that disagree between generation and extraction:</p>
        <disp-formula id="FD10">
          <label>(10)</label>
          <mml:math>
            <mml:mrow>
              <mml:mtext>BER</mml:mtext>
              <mml:mo>=</mml:mo>
              <mml:mfrac>
                <mml:mrow>
                  <mml:msub>
                    <mml:mi>N</mml:mi>
                    <mml:mrow>
                      <mml:mtext>error</mml:mtext>
                    </mml:mrow>
                  </mml:msub>
                </mml:mrow>
                <mml:mrow>
                  <mml:msub>
                    <mml:mi>N</mml:mi>
                    <mml:mrow>
                      <mml:mtext>total</mml:mtext>
                    </mml:mrow>
                  </mml:msub>
                </mml:mrow>
              </mml:mfrac>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <p>where <italic>N</italic><sub>error</sub> is the number of incorrect bits and <italic>N</italic><sub>total</sub> is the length of the authentication data. A smaller BER means more accurate extraction.</p>
        <p>The maximum absolute recovery error compares the recovered image with the original on the high-precision carrier:</p>
        <disp-formula id="FD11">
          <label>(11)</label>
          <mml:math>
            <mml:mrow>
              <mml:msub>
                <mml:mi>E</mml:mi>
                <mml:mrow>
                  <mml:mi>max</mml:mi>
                </mml:mrow>
              </mml:msub>
              <mml:mo>=</mml:mo>
              <mml:msub>
                <mml:mrow>
                  <mml:mi>max</mml:mi>
                </mml:mrow>
                <mml:mrow>
                  <mml:mi>i</mml:mi>
                  <mml:mo>,</mml:mo>
                  <mml:mi>j</mml:mi>
                  <mml:mo>,</mml:mo>
                  <mml:mi>c</mml:mi>
                </mml:mrow>
              </mml:msub>
              <mml:mrow>
                <mml:mo>|</mml:mo>
                <mml:mrow>
                  <mml:msub>
                    <mml:mi>I</mml:mi>
                    <mml:mi>r</mml:mi>
                  </mml:msub>
                  <mml:mrow>
                    <mml:mo>(</mml:mo>
                    <mml:mrow>
                      <mml:mi>i</mml:mi>
                      <mml:mo>,</mml:mo>
                      <mml:mi>j</mml:mi>
                      <mml:mo>,</mml:mo>
                      <mml:mi>c</mml:mi>
                    </mml:mrow>
                    <mml:mo>)</mml:mo>
                  </mml:mrow>
                  <mml:mo>−</mml:mo>
                  <mml:mi>I</mml:mi>
                  <mml:mrow>
                    <mml:mo>(</mml:mo>
                    <mml:mrow>
                      <mml:mi>i</mml:mi>
                      <mml:mo>,</mml:mo>
                      <mml:mi>j</mml:mi>
                      <mml:mo>,</mml:mo>
                      <mml:mi>c</mml:mi>
                    </mml:mrow>
                    <mml:mo>)</mml:mo>
                  </mml:mrow>
                </mml:mrow>
                <mml:mo>|</mml:mo>
              </mml:mrow>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <p>where <italic>I</italic><italic><sub>r</sub></italic> is the recovered image. The maximum is taken over the absolute differences between the recovered float64 samples and the preprocessed host samples cast to float64. A smaller <italic>E</italic><sub>max</sub> means a closer recovery. Because clean blocks usually dominate the image, an overall accuracy is inflated by the large TN count and does not by itself describe local localization. FPR, FNR, and F1 from Equations (5)-(7) therefore remain the primary localization measures, and they are read together with MSE, PSNR, BER, and <italic>E</italic><sub>max</sub>.</p>
        <p>All baseline measures in this round are obtained from one deterministic run on the test image. FPR, FNR, and F1 are computed from TP, FP, TN, and FN. Under no tampering there is no positive block, so precision, recall, and F1 are not interpreted as detection performance. The changed-pixel count, the block-level confusion counts, and the rate measures are reported together, rather than as a single score.</p>
      </sec>
    </sec>
    <sec id="sec5">
      <title>5. Experimental Results and Analysis</title>
      <sec id="sec5dot1">
        <title>5.1. Embedding Quality and Reversibility</title>
        <p>The 4 × 4 partition of the test image produces 196,608 channel blocks and embeds 1,572,864 authentication bits. The interface reports a floating-point embedding MSE of 0.0001500404 and an embedding PSNR of 86.37 dB. After quantization, the 8-bit preview has no changed pixel. Extraction with no tampering gives BER = 0. In the untampered control, the recovery PSNR was 339.99 dB and the maximum absolute recovery error was 5.6843 × 10<sup>−14</sup>. After rounding to 8-bit values, the recovered image matched the preprocessed host at every pixel and channel. Both the raw watermark similarity and the parameterized similarity are 100%, and the numbers of invalid leading decimal digits and localized watermark pixels are zero.</p>
      </sec>
      <sec id="sec5dot2">
        <title>5.2. Five-Percent Salt-and-Pepper Noise</title>
        <p>The 5% salt-and-pepper trial changes 52,411 pixels, which is 5.00% of the image. The attack PSNR is 17.05 dB, the watermark BER is 0.2126, and normalized correlation (NC) is 0.9333. Block localization yields TP = 36,433, FP = 0, TN = 29,023, and FN = 80, corresponding to FPR = 0.00%, FNR = 0.22%, precision = 100.00%, recall = 99.78%, and F1 = 0.9989. <bold>Table 2</bold> and <bold>Table 3</bold> give the complete measures, and <xref ref-type="fig" rid="fig5">Figure 5</xref> shows the attack, ground-truth mask, localization classification, and binary localization results.</p>
        <p><bold>Table 2.</bold>Attack conditions and image or watermark quality.</p>
        <table-wrap id="tbl2">
          <label>Table 2</label>
          <table>
            <tbody>
              <tr>
                <td>Condition</td>
                <td>True change</td>
                <td>Attack PSNR (dB)</td>
                <td>BER</td>
                <td>NC</td>
              </tr>
              <tr>
                <td>No tampering</td>
                <td>0</td>
                <td>∞</td>
                <td>0</td>
                <td>1.0000</td>
              </tr>
              <tr>
                <td>5% salt-and-pepper noise</td>
                <td>5.00%</td>
                <td>17.05</td>
                <td>0.2126</td>
                <td>0.9333</td>
              </tr>
              <tr>
                <td>White-region replacement</td>
                <td>13.07%</td>
                <td>15.70</td>
                <td>0.0653</td>
                <td>0.9865</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p><bold>Table 3.</bold>Block-level tamper localization.</p>
        <table-wrap id="tbl3">
          <label>Table 3</label>
          <table>
            <tbody>
              <tr>
                <td>Condition</td>
                <td>TP</td>
                <td>FP</td>
                <td>TN</td>
                <td>FN</td>
                <td>FPR</td>
                <td>FNR</td>
                <td>Precision</td>
                <td>Recall</td>
                <td>F1</td>
              </tr>
              <tr>
                <td>No tampering</td>
                <td>0</td>
                <td>0</td>
                <td>65,536</td>
                <td>0</td>
                <td>0</td>
                <td>—</td>
                <td>—</td>
                <td>—</td>
                <td>—</td>
              </tr>
              <tr>
                <td>5% salt-and-pepper noise</td>
                <td>36,433</td>
                <td>0</td>
                <td>29,023</td>
                <td>80</td>
                <td>0</td>
                <td>0.22%</td>
                <td>100%</td>
                <td>99.78%</td>
                <td>0.9989</td>
              </tr>
              <tr>
                <td>White-region replacement</td>
                <td>8697</td>
                <td>0</td>
                <td>56,839</td>
                <td>0</td>
                <td>0</td>
                <td>0</td>
                <td>100%</td>
                <td>100%</td>
                <td>1.0000</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>Note. Dashes indicate undefined metrics in the untampered control, which had no positive ground-truth blocks or positive detections.</p>
        <fig id="fig5">
          <label>Figure 5</label>
          <caption>
            <p>Five-percent salt-and-pepper attack and block-level localization. (a) Watermarked image before attack; (b) image after salt-and-pepper noise attack; (c) ground-truth noise pixel mask; (d) tamper localization overlay; (f) binary tamper localization map.</p>
          </caption>
          <graphic xlink:href="https://html.scirp.org/file/1733719-rId85.jpeg?20261120012537" />
          <graphic xlink:href="https://html.scirp.org/file/1733719-rId86.jpeg?20261120012537" />
          <p>(a) (b)</p>
          <graphic xlink:href="https://html.scirp.org/file/1733719-rId87.jpeg?20261120012537" />
          <graphic xlink:href="https://html.scirp.org/file/1733719-rId88.jpeg?20261120012537" />
          <p>(c) (d)</p>
          <graphic xlink:href="https://html.scirp.org/file/1733719-rId89.jpeg?20261120012537" />
          <graphic xlink:href="https://html.scirp.org/file/1733719-rId90.jpeg?20261120012537" />
          <p>(e) (f)</p>
        </fig>
      </sec>
      <sec id="sec5dot3">
        <title>5.3. White-Region Replacement and the No-Tamper Control</title>
        <p>With no tampering, attack PSNR is infinite, BER is 0, and NC is 1. The received and pre-attack float64 carriers are identical sample by sample. The confusion counts are TP = 0, FP = 0, TN = 65,536, and FN = 0, indicating no false alarms. Because this control contains no positive block, the interface displays precision, recall, and F1 as zero; these values are not used to evaluate detection performance. Contiguous white-region tampering changes 13.07% of the pixels. The attack PSNR is 15.70 dB, BER is 0.0653, and NC is 0.9865. Localization yields TP = 8697, FP = 0, TN = 56,839, and FN = 0, corresponding to FPR = 0, FNR = 0.00%, precision = 100%, recall = 100.00%, and F1 = 1.0000. <xref ref-type="fig" rid="fig6">Figure 6</xref> shows the original outputs before and after tampering, while <xref ref-type="fig" rid="fig7">Figure 7</xref> and <xref ref-type="fig" rid="fig8">Figure 8</xref> present detection and localization results for the untampered control and region tampering, respectively.</p>
        <fig id="fig6">
          <label>Figure 6</label>
          <caption>
            <p>Watermarked image and the same image after white-region replacement. (a) Watermarked image; (b) white-region replacement.</p>
          </caption>
          <graphic xlink:href="https://html.scirp.org/file/1733719-rId85.jpeg?20261120012537" />
          <graphic xlink:href="https://html.scirp.org/file/1733719-rId91.jpeg?20261120012537" />
          <p>(a) (b)</p>
        </fig>
        <fig id="fig7">
          <label>Figure 7</label>
          <caption>
            <p>Untampered control experiment for cropping attack detection. (a) Original watermarked image; (b) unmodified full image; (c) reconstructed untampered image; (d) ground-truth tamper region mask; (e) tamper localization map; (f) binary tamper localization map; (g) confusion map (TP, FP, FN, TN); (h) tamper localization overlay on the watermarked image.</p>
          </caption>
          <graphic xlink:href="https://html.scirp.org/file/1733719-rId85.jpeg?20261120012537" />
          <graphic xlink:href="https://html.scirp.org/file/1733719-rId85.jpeg?20261120012537" />
          <p>(a) (b)</p>
          <graphic xlink:href="https://html.scirp.org/file/1733719-rId85.jpeg?20261120012537" />
          <graphic xlink:href="https://html.scirp.org/file/1733719-rId92.jpeg?20261120012537" />
          <p>(c) (d)</p>
          <graphic xlink:href="https://html.scirp.org/file/1733719-rId85.jpeg?20261120012537" />
          <graphic xlink:href="https://html.scirp.org/file/1733719-rId92.jpeg?20261120012537" />
          <p>(e) (f)</p>
          <graphic xlink:href="https://html.scirp.org/file/1733719-rId92.jpeg?20261120012537" />
          <graphic xlink:href="https://html.scirp.org/file/1733719-rId85.jpeg?20261120012537" />
          <p>(g) (h)</p>
        </fig>
        <fig id="fig8">
          <label>Figure 8</label>
          <caption>
            <p>Cropping attack detection and localization experiment with white-region tampering. (a) Original watermarked image; (b) image with white-region tampering; (c) reconstructed attacked image; (d) ground-truth tamper region mask; (e) tamper localization map; (f) binary tamper localization map; (g) confusion map (TP, FP, FN, TN); (h) tamper localization overlay on the watermarked image.</p>
          </caption>
          <graphic xlink:href="https://html.scirp.org/file/1733719-rId85.jpeg?20261120012537" />
          <graphic xlink:href="https://html.scirp.org/file/1733719-rId91.jpeg?20261120012537" />
          <p>(a) (b)</p>
          <graphic xlink:href="https://html.scirp.org/file/1733719-rId93.jpeg?20261120012537" />
          <graphic xlink:href="https://html.scirp.org/file/1733719-rId94.jpeg?20261120012537" />
          <p>(c) (d)</p>
          <graphic xlink:href="https://html.scirp.org/file/1733719-rId95.jpeg?20261120012537" />
          <graphic xlink:href="https://html.scirp.org/file/1733719-rId96.jpeg?20261120012537" />
          <p>(e) (f)</p>
          <graphic xlink:href="https://html.scirp.org/file/1733719-rId97.jpeg?20261120012537" />
          <graphic xlink:href="https://html.scirp.org/file/1733719-rId98.jpeg?20261120012537" />
          <p>(g) (h)</p>
        </fig>
      </sec>
      <sec id="sec5dot4">
        <title>5.4. Supplementary Controlled Experiments</title>
        <p><bold>Table 4</bold> reports the target-block decisions. In the untampered control, all 65,536 blocks passed both rules, and the maximum carrier residual was zero. The mean-preserving edit left <italic>D</italic> = 0 but produced a recomputed tag of E0B743 against the extracted tag 9814E2.</p>
        <p><bold>Table 4.</bold>Target-block decisions in the supplementary experiments.</p>
        <table-wrap id="tbl4">
          <label>Table 4</label>
          <table>
            <tbody>
              <tr>
                <td>Condition</td>
                <td>Baseline</td>
                <td>HMAC tag</td>
                <td>
                  Residual
                  <italic>δ</italic>
                </td>
                <td>Carrier check</td>
                <td>Joint rule</td>
              </tr>
              <tr>
                <td>No tampering</td>
                <td>Pass</td>
                <td>Match</td>
                <td>0</td>
                <td>Pass</td>
                <td>Pass</td>
              </tr>
              <tr>
                <td>Mean-preserving edit</td>
                <td>Pass</td>
                <td>Mismatch</td>
                <td>0</td>
                <td>Pass</td>
                <td>Reject</td>
              </tr>
              <tr>
                <td>Small carrier perturbation</td>
                <td>Pass</td>
                <td>Match</td>
                <td>
                  1.00 × 10
                  <sup>−5</sup>
                </td>
                <td>Reject</td>
                <td>Reject</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>Note. The carrier-comparison tolerance was 10<sup>−8</sup>.</p>
        <p>The perturbation left <italic>D</italic> = 0 and preserved the candidate block and the extracted tag. The measured residual exceeded the tolerance. The joint rule rejected only the target block in both attacks, with zero false alarms elsewhere. Two runs produced identical decisions and residuals.</p>
      </sec>
    </sec>
    <sec id="sec6">
      <title>6. Comparison and Applicability</title>
      <sec id="sec6dot1">
        <title>6.1. Related Fragile-Watermarking Methods</title>
        <p>Related methods fall into three groups. The first improves localization reliability by a hierarchy [<xref ref-type="bibr" rid="B7">7</xref>], by block features [<xref ref-type="bibr" rid="B6">6</xref>], or by dual detection [<xref ref-type="bibr" rid="B12">12</xref>]. The second builds and reversibly embeds the authentication data in transform coefficients such as DWT, DCT, or DFT [<xref ref-type="bibr" rid="B11">11</xref>] [<xref ref-type="bibr" rid="B13">13</xref>]; the slant-transform scheme in [<xref ref-type="bibr" rid="B15">15</xref>] provides semi-fragile localization and self-recovery. The third joins authentication to content recovery, copyright protection, or multi-region management, using multi-feature codes [<xref ref-type="bibr" rid="B16">16</xref>], hybrid transforms [<xref ref-type="bibr" rid="B17">17</xref>], or an ROI/RONI partition [<xref ref-type="bibr" rid="B18">18</xref>]. In the experiment reported here, F1 is 1.0000 for the contiguous white region and 0.9989 for 5% salt-and-pepper noise. <bold>Table 5</bold> contrasts the mechanisms rather than ranking published numbers, because the image domains and the attack protocols are not the same.</p>
        <p><bold>Table 5.</bold>Comparison with related fragile-watermarking methods.</p>
        <table-wrap id="tbl5">
          <label>Table 5</label>
          <table>
            <tbody>
              <tr>
                <td>Reference</td>
                <td>Core mechanism</td>
                <td>Main function</td>
                <td>Difference from this paper</td>
              </tr>
              <tr>
                <td>
                  [
                  <xref ref-type="bibr" rid="B13">13</xref>
                  ]
                </td>
                <td>Fourier transform and Fibonacci Q-matrix</td>
                <td>Reversible authentication</td>
                <td>Medical images and a different attack protocol</td>
              </tr>
              <tr>
                <td>
                  [
                  <xref ref-type="bibr" rid="B14">14</xref>
                  ]
                </td>
                <td>Fragile watermark, zero watermark, and EICC chaos</td>
                <td>Integrity check, localization, and copyright protection</td>
                <td>No content self-recovery</td>
              </tr>
              <tr>
                <td>
                  [
                  <xref ref-type="bibr" rid="B15">15</xref>
                  ]
                </td>
                <td>Slant transform, DNA coding, and chaotic mapping</td>
                <td>Localization and self-recovery</td>
                <td>Evaluation criteria for semi-fragile authentication and self-recovery differ</td>
              </tr>
              <tr>
                <td>
                  [
                  <xref ref-type="bibr" rid="B16">16</xref>
                  ]
                </td>
                <td>Multi-feature authentication and cross-level embedding</td>
                <td>Blind detection and content self-recovery</td>
                <td>Uses LBP, DCT, and GLCM features</td>
              </tr>
              <tr>
                <td>
                  [
                  <xref ref-type="bibr" rid="B17">17</xref>
                  ]
                </td>
                <td>Hybrid fragile watermark and dual recovery</td>
                <td>Localization and dual self-recovery</td>
                <td>Different mapping and recovery mechanism</td>
              </tr>
              <tr>
                <td>
                  [
                  <xref ref-type="bibr" rid="B18">18</xref>
                  ]
                </td>
                <td>Reversible embedding on an ROI/RONI partition</td>
                <td>Regional localization and recovery</td>
                <td>The boundary region is not fully reversible</td>
              </tr>
              <tr>
                <td>This paper</td>
                <td>DWT-Logistic-DHT, fixed-range mapping, and retention of anomalous blocks</td>
                <td>Block-level authentication and floating-point recovery when there is no attack</td>
                <td>Only predefined perturbations were tested; specific blind spots remain</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
      </sec>
      <sec id="sec6dot2">
        <title>6.2. Applicability and Deployment</title>
        <p>Fixed-range mapping acts at feature generation, and retention of anomalous blocks acts after the threshold decision. Both assume that authentication uses the same pixel grid before and after, and that the spatial float64 carrier is kept. An 8-bit preview cannot replace that carrier. JPEG recompression, scaling, and rotation change pixels or block alignment and are not negligible distortions. The baseline results cover the no-tamper case, 5% salt-and-pepper noise, and a contiguous white region. The prototype uses a 24-bit tag to fit the per-block capacity. Applying the guidance in Section 5 of RFC 2104 [<xref ref-type="bibr" rid="B19">19</xref>] to HMAC-SHA-256 gives a recommended minimum of 128 bits. The controls on the test image demonstrate how the two checks complement each other. They are not a measure of industrial defect-detection accuracy. The software arranges import, parameter setting, embedding, detection, and export as a sequence that can be inspected, and it stores the high-precision NPZ file separately from the 8-bit preview. <xref ref-type="fig" rid="fig1">Figures 1-3</xref> record the watermarking workflow, <xref ref-type="fig" rid="fig4">Figure 4</xref> previews the industrial casting X-ray image collection, and <xref ref-type="fig" rid="fig5">Figures 5-8</xref> record attack evaluation. Those views correspond to the measures in <bold>Table 2</bold> and <bold>Table 3</bold>. <bold>Table 5</bold> places the baseline against related designs.</p>
      </sec>
    </sec>
    <sec id="sec7">
      <title>7. Conclusion</title>
      <p>Industrial X-ray images must keep their original pixels through storage and transmission and must still reveal local edits. Block-mean authentication with a fixed-range mapping reduces the cross-block false alarms of image-level normalization, but a feature that is only a mean cannot see a replacement that preserves the mean. This paper therefore proposes block-level authentication that joins a complete-block HMAC with a carrier-consistency check. The code covers every pixel of the 4 × 4 block and is bound to the image identity and the block location. Authentication bits are embedded in the fractional part of selected DHT coefficients. The receiver checks each block code and compares the received carrier with the carrier rebuilt from the recovered candidate and the code. The two checks target different ways in which a mean feature can fail. On the test image, the HMAC check detected the mean-preserving edit and the carrier check detected the small perturbation. The joint rule localized the target block in both attacks without false alarms in these single-image tests of the 24-bit prototype. Future work will increase the number and diversity of industrial X-ray images and add tests involving mean-preserving detail edits, small-region replacements, and small carrier perturbations to examine the detection and localization performance of the proposed authentication approach under different image and tampering conditions. Detection results, localization accuracy, and image-recovery accuracy will then be compared across block sizes and DHT embedding configurations to analyze the effects of parameter settings. Running time, memory consumption, and high-precision carrier storage will also be recorded for each configuration to inform parameter selection in practical applications.</p>
    </sec>
    <sec id="sec8">
      <title>Acknowledgements</title>
      <p>This work was supported by the Key Research and Development Program of Shaanxi Province (Grant No. 2025GY-YBXM-068), “Key Technologies of Digital Copyright Protection Based on Hypercomplex Fractional-order Image Moments and Machine Learning”, and by the Key Scientific Research Program of the Shaanxi Provincial Department of Education (Grant No. 25JR067), “Industrial-Image Defect Detection Based on Image Moments and Lightweight Neural Networks”.</p>
    </sec>
    <sec id="sec9">
      <title>Author Contributions</title>
      <p>Conceptualization, Peichen Zheng; methodology, Peichen Zheng; software, Shijie Wang; validation, Peichen Zheng; formal analysis, Shugang Cheng; investigation, Gengwu Chen; data curation, Jing Wang; writing—original draft preparation, Peichen Zheng and Shijie Wang; writing—review and editing, Shugang Cheng; visualization, Gengwu Chen; supervision, Bing HE; project administration, Bing HE; funding acquisition, Bing HE. All authors have read and agreed to the published version of the manuscript.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <title>References</title>
      <ref id="B1">
        <label>1.</label>
        <citation-alternatives>
          <mixed-citation publication-type="journal">Ou, B., Yin, Z.X. and Xiang, S.J. (2022) A Survey of Reversible Information Hiding in Plaintext Images. <italic>Journal of Image and Graphics</italic>, 27, 111-124. (In Chinese)</mixed-citation>
          <element-citation publication-type="journal">
            <person-group person-group-type="author">
              <string-name>Ou, B.</string-name>
              <string-name>Yin, Z.X.</string-name>
              <string-name>Xiang, S.J.</string-name>
            </person-group>
            <year>2022</year>
            <article-title>A Survey of Reversible Information Hiding in Plaintext Images</article-title>
            <source>Journal of Image and Graphics</source>
            <volume>27</volume>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B2">
        <label>2.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Tian, J. (2003) Reversible Data Embedding Using a Difference Expansion. <italic>IEEE</italic><italic>Transactions</italic><italic>on</italic><italic>Circuits</italic><italic>and</italic><italic>Systems</italic><italic>for</italic><italic>Video</italic><italic>Technology</italic>, 13, 890-896. https://doi.org/10.1109/tcsvt.2003.815962 <pub-id pub-id-type="doi">10.1109/tcsvt.2003.815962</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/tcsvt.2003.815962">https://doi.org/10.1109/tcsvt.2003.815962</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Tian, J.</string-name>
            </person-group>
            <year>2003</year>
            <article-title>Reversible Data Embedding Using a Difference Expansion</article-title>
            <source>IEEE Transactions on Circuits and Systems for Video Technology</source>
            <volume>13</volume>
            <pub-id pub-id-type="doi">10.1109/tcsvt.2003.815962</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B3">
        <label>3.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Wen, J.F., Wang, J.Z., Liu, A.Z., <italic>et al</italic>. (2009) Reversible Image Authentication Based on Difference Expansion and Error-Correcting Codes. <italic>Computer Engineering</italic>, 35, 125-127. (In Chinese)</mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Wen, J.F.</string-name>
              <string-name>Wang, J.Z.</string-name>
              <string-name>Liu, A.Z.</string-name>
            </person-group>
            <year>2009</year>
            <article-title>Reversible Image Authentication Based on Difference Expansion and Error-Correcting Codes</article-title>
            <source>Computer Engineering</source>
            <volume>35</volume>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B4">
        <label>4.</label>
        <citation-alternatives>
          <mixed-citation publication-type="journal">Zhong, Y.Y. and Huang, F.J. (2023) An Efficient Block-Based Reversible Image Authentication Method. <italic>Journal of Software</italic>, 34, 5848-5861. (In Chinese)</mixed-citation>
          <element-citation publication-type="journal">
            <person-group person-group-type="author">
              <string-name>Zhong, Y.Y.</string-name>
              <string-name>Huang, F.J.</string-name>
            </person-group>
            <year>2023</year>
            <article-title>An Efficient Block-Based Reversible Image Authentication Method</article-title>
            <source>Journal of Software</source>
            <volume>34</volume>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B5">
        <label>5.</label>
        <citation-alternatives>
          <mixed-citation publication-type="book">Fan, X.H. and Li, H. (2019) Reversible Data Hiding for Medical Images Based on Prediction Error. <italic>Journal of Beijing University of Chemical Technology</italic>( <italic>Natural Science Edition</italic>), 46, 83-89. (In Chinese)</mixed-citation>
          <element-citation publication-type="book">
            <person-group person-group-type="author">
              <string-name>Fan, X.H.</string-name>
              <string-name>Li, H.</string-name>
            </person-group>
            <year>2019</year>
            <article-title>Reversible Data Hiding for Medical Images Based on Prediction Error</article-title>
            <source>Journal of Beijing University of Chemical Technology (Natural Science Edition)</source>
            <volume>46</volume>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B6">
        <label>6.</label>
        <citation-alternatives>
          <mixed-citation publication-type="journal">Zhang, J.P., Zhang, Q.F. and Yang, H.J. (2014) Image Tamper Detection and Recovery Based on Block Features and Chaotic Sequences. <italic>Journal of Shandong University</italic>( <italic>Engineering Science</italic>), 44, 63-69. (In Chinese)</mixed-citation>
          <element-citation publication-type="journal">
            <person-group person-group-type="author">
              <string-name>Zhang, J.P.</string-name>
              <string-name>Zhang, Q.F.</string-name>
              <string-name>Yang, H.J.</string-name>
            </person-group>
            <year>2014</year>
            <article-title>Image Tamper Detection and Recovery Based on Block Features and Chaotic Sequences</article-title>
            <source>Journal of Shandong University (Engineering Science)</source>
            <volume>44</volume>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B7">
        <label>7.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Celik, M.U., Sharma, G., Saber, E., <italic>et al</italic>. (2002) Hierarchical Watermarking for Secure Image Authentication with Localization. <italic>IEEE</italic><italic>Transactions</italic><italic>on</italic><italic>Image</italic><italic>Processing</italic>, 11, 585-595. https://doi.org/10.1109/tip.2002.1014990 <pub-id pub-id-type="doi">10.1109/tip.2002.1014990</pub-id><pub-id pub-id-type="pmid">18244657</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/tip.2002.1014990">https://doi.org/10.1109/tip.2002.1014990</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Celik, M.U.</string-name>
              <string-name>Sharma, G.</string-name>
              <string-name>Saber, E.</string-name>
            </person-group>
            <year>2002</year>
            <article-title>Hierarchical Watermarking for Secure Image Authentication with Localization</article-title>
            <source>IEEE Transactions on Image Processing</source>
            <volume>11</volume>
            <pub-id pub-id-type="doi">10.1109/tip.2002.1014990</pub-id>
            <pub-id pub-id-type="pmid">18244657</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B8">
        <label>8.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">He, H.J. and Chen, F. (2007) Security Analysis of Self-Embedding Watermarking Algorithms. <italic>Acta Electronica Sinica</italic>, 35, 557-562. (In Chinese)</mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>He, H.J.</string-name>
              <string-name>Chen, F.</string-name>
            </person-group>
            <year>2007</year>
            <article-title>Security Analysis of Self-Embedding Watermarking Algorithms</article-title>
            <source>Acta Electronica Sinica</source>
            <volume>35</volume>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B9">
        <label>9.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Evsutin, O., Melman, A. and Meshcheryakov, R. (2020) Digital Steganography and Watermarking for Digital Images: A Review of Current Research Directions. <italic>IEEE</italic><italic>Access</italic>, 8, 166589-166611. https://doi.org/10.1109/access.2020.3022779 <pub-id pub-id-type="doi">10.1109/access.2020.3022779</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/access.2020.3022779">https://doi.org/10.1109/access.2020.3022779</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Evsutin, O.</string-name>
              <string-name>Melman, A.</string-name>
              <string-name>Meshcheryakov, R.</string-name>
            </person-group>
            <year>2020</year>
            <article-title>Digital Steganography and Watermarking for Digital Images: A Review of Current Research Directions</article-title>
            <source>IEEE Access</source>
            <volume>8</volume>
            <pub-id pub-id-type="doi">10.1109/access.2020.3022779</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B10">
        <label>10.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Shehab, A., Elhoseny, M., Muhammad, K., Sangaiah, A.K., Yang, P., Huang, H., <italic>et al</italic>. (2018) Secure and Robust Fragile Watermarking Scheme for Medical Images. <italic>IEEE Access</italic>, 6, 10269-10278. https://doi.org/10.1109/access.2018.2799240 <pub-id pub-id-type="doi">10.1109/access.2018.2799240</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/access.2018.2799240">https://doi.org/10.1109/access.2018.2799240</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Shehab, A.</string-name>
              <string-name>Elhoseny, M.</string-name>
              <string-name>Muhammad, K.</string-name>
              <string-name>Sangaiah, A.K.</string-name>
              <string-name>Yang, P.</string-name>
              <string-name>Huang, H.</string-name>
            </person-group>
            <year>2018</year>
            <article-title>Secure and Robust Fragile Watermarking Scheme for Medical Images</article-title>
            <source>IEEE Access</source>
            <volume>6</volume>
            <pub-id pub-id-type="doi">10.1109/access.2018.2799240</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B11">
        <label>11.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Bouarroudj, R., Souami, F., Bellala, F.Z., Zerrouki, N., Harrou, F. and Sun, Y. (2025) Secure and Reversible Fragile Watermarking for Accurate Authentication and Tamper Localization in Medical Images. <italic>Computers and Electrical Engineering</italic>, 123, Article 110072. https://doi.org/10.1016/j.compeleceng.2025.110072 <pub-id pub-id-type="doi">10.1016/j.compeleceng.2025.110072</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.compeleceng.2025.110072">https://doi.org/10.1016/j.compeleceng.2025.110072</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Bouarroudj, R.</string-name>
              <string-name>Souami, F.</string-name>
              <string-name>Bellala, F.Z.</string-name>
              <string-name>Zerrouki, N.</string-name>
              <string-name>Harrou, F.</string-name>
              <string-name>Sun, Y.</string-name>
            </person-group>
            <year>2025</year>
            <article-title>Secure and Reversible Fragile Watermarking for Accurate Authentication and Tamper Localization in Medical Images</article-title>
            <source>Computers and Electrical Engineering</source>
            <volume>123</volume>
            <elocation-id>110072</elocation-id>
            <pub-id pub-id-type="doi">10.1016/j.compeleceng.2025.110072</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B12">
        <label>12.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Zhan, C., Leng, L., Chang, C. and Horng, J. (2024) Reversible Image Fragile Watermarking with Dual Tampering Detection. <italic>Electronics</italic>, 13, Article 1884. https://doi.org/10.3390/electronics13101884 <pub-id pub-id-type="doi">10.3390/electronics13101884</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3390/electronics13101884">https://doi.org/10.3390/electronics13101884</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Zhan, C.</string-name>
              <string-name>Leng, L.</string-name>
              <string-name>Chang, C.</string-name>
              <string-name>Horng, J.</string-name>
            </person-group>
            <year>2024</year>
            <article-title>Reversible Image Fragile Watermarking with Dual Tampering Detection</article-title>
            <source>Electronics</source>
            <volume>13</volume>
            <elocation-id>1884</elocation-id>
            <pub-id pub-id-type="doi">10.3390/electronics13101884</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B13">
        <label>13.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Bouarroudj, R., Souami, F., Zohra Bellala, F. and Zerrouki, N. (2024) A Reversible Fragile Watermarking Technique Using Fourier Transform and Fibonacci Q-Matrix for Medical Image Authentication. <italic>Biomedical Signal Processing and Control</italic>, 92, Article 105967. https://doi.org/10.1016/j.bspc.2024.105967 <pub-id pub-id-type="doi">10.1016/j.bspc.2024.105967</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.bspc.2024.105967">https://doi.org/10.1016/j.bspc.2024.105967</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Bouarroudj, R.</string-name>
              <string-name>Souami, F.</string-name>
              <string-name>Bellala, F.</string-name>
              <string-name>Zerrouki, N.</string-name>
            </person-group>
            <year>2024</year>
            <article-title>A Reversible Fragile Watermarking Technique Using Fourier Transform and Fibonacci Q-Matrix for Medical Image Authentication</article-title>
            <source>Biomedical Signal Processing and Control</source>
            <volume>92</volume>
            <elocation-id>105967</elocation-id>
            <pub-id pub-id-type="doi">10.1016/j.bspc.2024.105967</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B14">
        <label>14.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Yan, F., Wang, Z. and Hirota, K. (2024) Dual Medical Image Watermarking Using SRU-Enhanced Network and EICC Chaotic Map. <italic>Complex &amp; Intelligent Systems</italic>, 11, Article No. 101. https://doi.org/10.1007/s40747-024-01723-6 <pub-id pub-id-type="doi">10.1007/s40747-024-01723-6</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1007/s40747-024-01723-6">https://doi.org/10.1007/s40747-024-01723-6</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Yan, F.</string-name>
              <string-name>Wang, Z.</string-name>
              <string-name>Hirota, K.</string-name>
            </person-group>
            <year>2024</year>
            <article-title>Dual Medical Image Watermarking Using SRU-Enhanced Network and EICC Chaotic Map</article-title>
            <source>Complex &amp; Intelligent Systems</source>
            <volume>11</volume>
            <elocation-id>No</elocation-id>
            <pub-id pub-id-type="doi">10.1007/s40747-024-01723-6</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B15">
        <label>15.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Jagadeesh, S., Parida, A.K. and Meenakshi, K. (2025) Tamper Detection, Localization and Self-Recovery Using Slant Transform with DNA Encoding for Medical Images. <italic>Results in Engineering</italic>, 27, Article 105907. https://doi.org/10.1016/j.rineng.2025.105907 <pub-id pub-id-type="doi">10.1016/j.rineng.2025.105907</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.rineng.2025.105907">https://doi.org/10.1016/j.rineng.2025.105907</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Jagadeesh, S.</string-name>
              <string-name>Parida, A.K.</string-name>
              <string-name>Meenakshi, K.</string-name>
              <string-name>Detection, L</string-name>
            </person-group>
            <year>2025</year>
            <article-title>Tamper Detection, Localization and Self-Recovery Using Slant Transform with DNA Encoding for Medical Images</article-title>
            <source>Results in Engineering</source>
            <volume>27</volume>
            <elocation-id>105907</elocation-id>
            <pub-id pub-id-type="doi">10.1016/j.rineng.2025.105907</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B16">
        <label>16.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Wu, Q., Li, H., Li, M. and Wang, M. (2026) Multi-Feature Fragile Image Watermarking Algorithm for Tampering Blind-Detection and Content Self-Recovery. <italic>Computers</italic>, <italic>Materials &amp; Continua</italic>, 86, 1-20. https://doi.org/10.32604/cmc.2025.068220 <pub-id pub-id-type="doi">10.32604/cmc.2025.068220</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.32604/cmc.2025.068220">https://doi.org/10.32604/cmc.2025.068220</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Wu, Q.</string-name>
              <string-name>Li, H.</string-name>
              <string-name>Li, M.</string-name>
              <string-name>Wang, M.</string-name>
              <string-name>Computers, M</string-name>
            </person-group>
            <year>2026</year>
            <article-title>Multi-Feature Fragile Image Watermarking Algorithm for Tampering Blind-Detection and Content Self-Recovery</article-title>
            <source>Computers</source>
            <volume>86</volume>
            <pub-id pub-id-type="doi">10.32604/cmc.2025.068220</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B17">
        <label>17.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Sahu, A.K. and Sahu, M. (2026) Hybrid Fragile Image Watermarking for Tamper Detection, Localization and Dual Self-Recovery. <italic>Engineering Science and Technology</italic>, 73, Article 102266. https://doi.org/10.1016/j.jestch.2025.102266 <pub-id pub-id-type="doi">10.1016/j.jestch.2025.102266</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.jestch.2025.102266">https://doi.org/10.1016/j.jestch.2025.102266</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Sahu, A.K.</string-name>
              <string-name>Sahu, M.</string-name>
              <string-name>Detection, L</string-name>
            </person-group>
            <year>2026</year>
            <article-title>Hybrid Fragile Image Watermarking for Tamper Detection, Localization and Dual Self-Recovery</article-title>
            <source>Engineering Science and Technology</source>
            <volume>73</volume>
            <elocation-id>102266</elocation-id>
            <pub-id pub-id-type="doi">10.1016/j.jestch.2025.102266</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B18">
        <label>18.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Arham, A., Adji, T.B., Alfarozi, S.A.I. and Nugroho, H.A. (2026) Reversible Watermarking for Medical Images Using Roi-Based Tamper Localization and Recovery. <italic>Franklin Open</italic>, 15, Article 100545. https://doi.org/10.1016/j.fraope.2026.100545 <pub-id pub-id-type="doi">10.1016/j.fraope.2026.100545</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.fraope.2026.100545">https://doi.org/10.1016/j.fraope.2026.100545</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Arham, A.</string-name>
              <string-name>Adji, T.B.</string-name>
              <string-name>Alfarozi, S.A.I.</string-name>
              <string-name>Nugroho, H.A.</string-name>
            </person-group>
            <year>2026</year>
            <article-title>Reversible Watermarking for Medical Images Using Roi-Based Tamper Localization and Recovery</article-title>
            <source>Franklin Open</source>
            <volume>15</volume>
            <elocation-id>100545</elocation-id>
            <pub-id pub-id-type="doi">10.1016/j.fraope.2026.100545</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B19">
        <label>19.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Krawczyk, H., Bellare, M. and Canetti, R. (1997) HMAC: Keyed-Hashing for Message Authentication. RFC 2104. https://doi.org/10.17487/RFC2104 <pub-id pub-id-type="doi">10.17487/RFC2104</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.17487/RFC2104">https://doi.org/10.17487/RFC2104</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Krawczyk, H.</string-name>
              <string-name>Bellare, M.</string-name>
              <string-name>Canetti, R.</string-name>
            </person-group>
            <year>1997</year>
            <article-title>HMAC: Keyed-Hashing for Message Authentication</article-title>
            <pub-id pub-id-type="doi">10.17487/RFC2104</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
    </ref-list>
  </back>
</article>