<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>An E ective Approach for Noise Reduction from Shirakawa's Hand-Notated Documents on OBIs Research</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Ziming Wang</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Xuebin Yue</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Lin Meng</string-name>
          <email>menglin@fcg.ritsumei.ac.jp</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Dept.of Electronic and Computer Engineering, Ritsumeikan University</institution>
          ,
          <addr-line>Kusatsu, Shiga</addr-line>
          ,
          <country country="JP">Japan</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>As one of the most in uential professors in the eld of Chinese language research in the last century, Professor Shirakawa had left many precious hand-notated research documents that have not been organized and made public. This paper aims to automatically organize hand-notated Oracle Bone Inscriptions research documents by image processing. In detail, Area-Mutation-Segmentation is applied for separating Oracle Bone Fragments from Oracle Bone Inscriptions document. Three-Stage-Denoise and Spider-Web-Extinction are proposed to reduce outside noise and border noise respectively. The experimental results show that the accuracy of Noise Reduction achieves 97.8%. The border noises of Oracle Bone Fragment images have been reduced perfectly without errors, and the number of valid Oracle Bone Inscriptions extracted has increased by 32.5%, comparing with previous research. In summary, the experimental results demonstrate the e ectiveness of our proposed method.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>are treated as outside noise. Three-Stage-Denoise is proposed to reduce the outside noise.
Spider-Web-Extinction is raised to reduce the border noise that refers to the border of each
OBF.</p>
      <p>This method not only provides us a new Noise Reduction method but also generates a
relatively su cient OBIs dataset for enhancing the robustness of OBIs recognition.
Therefore, organizing the hand-notated OBIs research documents by Professor Shirakawa is of great
signi cance for the research and protection of Chinese culture.</p>
      <p>In section 2, some methods of Noise Reduction of images, recognition and extraction of OBIs
are introduced. In section 3, the processing of the segmentation of OBFs, Noise Reduction of
outside noise and border noise are depicted in detail. We report and discuss the evaluation
results in section 4, and Section 5 proposes a conclusion and mentions the future work.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Related work and OBI analysis</title>
      <p>
        Thanks to their importance in potentially unlocking the history of ancient China and
helping with the evaluation of early Chinese characters, OBIs have recently been attracting more
research attention. Anyang Normal University has created an OBI database that stores
photographs and rubbings of OBI [10]. Many researchers have extracted features for recognition
from OBIs images by various methods. For example, [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] proposed recognition of the OBIs
line features using Hough Transform, [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] provided an Oracle image segmentation method by
using fully convolutional networks. In addition, other researchers utilize various methods for
Noise Reduction, such as that [11] had presented the results of applying di erent noise types
to an image model and investigates the results of applying various Noise Reduction techniques.
Especially, for solving the problem of a few dataset, [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] used SSD for detection and
recognition of OBIs, and [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] proposed a new Deep Learning method for OBIs recognition by data
augmentation.
3
      </p>
    </sec>
    <sec id="sec-3">
      <title>Organization ow</title>
      <p>
        During the preprocessing of segmentation, Fig.2 shows intermediate results of segmentation
processing. Figure 2(a) shows the original image, and as Fig.2(b) shows, the original image
is converted into grayscale for reducing the amount of calculation. In binarization, the OTSU
method [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] is applied for obtaining a binarized image that is shown in Fig.2(c).
      </p>
      <p>In OBFs segmentation, Area-Mutation-Segmentation is proposed to identify and locate
OBFs on OBIs images. In detail, there is a large gap between the sizes of a single OBI character
feature and a single OBF feature. In this algorithm, we get the threshold by catching the
mutation point where the gap is located to decide whether it is OBF or not, and take a suitable
range to lter out OBF features. The processing is divided into organizing the size of bounding
boxes, catching mutation points, and ltering OBFs.</p>
      <p>1. Organizing size of bounding boxes. Perform feature detection on OBIs images by
cv2.Findcontours in OpenCV and its return value can be used to draw a bounding box.
The sizes of the bounding boxes are sorted in order by quick sort and saved in the list.
The sudden change between the sizes of a single OBI and a single OBF is detected by
getting the max rate of change(gap). Avoiding being disturbed by the sudden changes in
the size between the OBFs and the entire OBIs image, we delete the max data, which is
the size of the OBIs image, from the list.
2. Catching mutation point. Starting with the second element in the list, we calculated
the di erence between every element and the previous element, as shown in Equation 1.
S(i) means the size of the ith bounding box, and D(i) refers to di erence between S(i)
and S(i + 1). The mutation point of size can be caught by nding the max D(i). Figure
3 shows a part of the size of bounding boxes ordered including mutation point. Assuming
that D(k) is the max rate of change, the larger size S(k + 1) of the two bounding boxes
means the smallest single OBF's size, and the smaller size S(k) refers to the size of the
3. Filtering OBFs. All the bounding boxes with a size between D(k) and the OBIs image
size border the OBF feature. Ensuring that every bounding box includes an OBF feature
completely, we expand the range of 100 around the bounding boxes before cutting them
out. Although the expanded bounding box may border outside noise by mistakes, these
can be reduced clearly by the next processing.
3.2</p>
      <sec id="sec-3-1">
        <title>Noise Reduction of outside noise by Three-Stage-Denoise</title>
        <p>
          Three-Stage-Denoise is proposed to perform Noise Reduction. We take Fig.4(a) as an example
to show the speci c processing of Noise Reduction. Originally, the image is converted into
grayscale, as shown in Fig.4(b). Meanwhile, in the median ltering [
          <xref ref-type="bibr" rid="ref1">1</xref>
          ] method, after sorting
the surrounding pixels and center pixels, the median value is taken. The median lter can
remove not only isolated clutters but also slightly dense clusters, and the result is shown in
Fig.4(c). Further, utilize the OTSU method to obtain the binarized image which is shown in
        </p>
        <p>1. Eroding processing . Some noise like the OBF number that is generally composed
of three digits, multiple iterations eroding operation needs to be performed to make the
three digital features connected. However, too many iterations will make the noise feature
connected with the border of the OBF by mistake, so that the outside noise feature can
not be identi ed as one object. In order to deal with such problems, at the rst stage,
multiple iterations are proposed to make some noise that is far away from the border
connected as much as possible. In the second stage, we slightly reduce the iterations of
the eroding operation so that the noise near the OBF border can be connected without
contacting the OBF border. In the third stage, a light iteration of the eroding operation
is utilized to target some noises that have not yet been reduced clearly during the rst
and second Noise Reduction.
2. Organizing each OBF image by list. Scan each row of the OBF image from right to
left and record how many pixels we have traversed until encounter the rst black pixel.
If there are no black pixels in a row, then record the distance we traverse at the row Wi,
which is the width of the picture. In this way, from the rst row to the last row, we save
Hi (Hi refers to the height of the picture) data in the list. The same processing should
be carried out again from right to left for organizing the image by another list.
3. Getting the point where noise may be appear . After morphological processing,
the black pixels of the OBF's border should be continuous relatively. Hence, the rate of
change between two adjacent data in the two lists should be smooth besides some corner
points and noise. We get this point to capture where outside noise may appear, and try
to set a threshold as a criterion to decide whether the rate of change in the list is smooth
or not. If the rate of change exceeds this threshold, the positions are marked as places
where the noises may appear by a circle, as shown in Fig.5.
4. Filtering noise out. Drawing bounding boxes and judging whether the positions where
noise may appear are inside a small bounding or not. The gap between the sizes of OBF
and the outside noise is large, and the threshold can be set easily. Further, we treat the
marked positions bordered by a small bounding box as outside noise and reduce it by
turning it into white.
3.3</p>
      </sec>
      <sec id="sec-3-2">
        <title>Noise Reduction of OBFs's border by Spider-Web-Extinction</title>
        <p>Spider-Web-Extinction is used to reduce border noise. During this algorithm, the OBF image
was scanned from top to bottom, bottom to top, left to right, and right to left respectively. The
case of left to right is chosen as an example for a detailed explanation. Firstly, start scanning
from left to right every T th row (T determines how big the border noise can be decomposed
into pieces). Secondly, stop scanning when black pixels are encountered. Thirdly, turn the N
pixels into white (N determines the degree of decomposition). Because all of the outside noise
has been reduced in the second step, the black pixel encountered by scanning is judged as a
part of border noise. The conversion of border pixels to white is a decomposition of the border
noise.</p>
        <p>To ensure that the border noise can be completely decomposed, the maximum value of the
border width is set as N during Spider-Web-Extinction. Although this will a ect part of the
OBI features, the nal erosion process can retain most of the character features. When the
four aspects of processing are over, we can nd that the border of the OBF is broken down into
small squares and strips, which look like a spider web. The border noise is decomposed into
many tiny features smaller than T N . By turning all the features with a size below T N into
white, the Noise Reduction is completed. It is noteworthy that avoid reducing the small OBI
features inside the border due to mistakes, we try not to choose too big T .
4</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Evaluation</title>
      <p>In the experiment, we choose 79 OBIs images from Shirakawa's hand-notated document and
process these OBF images for the organization in CPU(i7). OBF segmentation, Noise Reduction
of outside noise and border noise are the three key components of the organization. In this
section, we show and evaluate the experimental results of these three parts.
4.1</p>
      <sec id="sec-4-1">
        <title>Evaluation result</title>
        <p>In segmentation, we chose to use the Area-Mutation-Segmentation to lter the threshold to
help us cut each OBF out. The result is that we cut 364 OBF images from 79 OBIs images
from Shirakawa's hand-notated documents, such as Fig.6.</p>
        <p>During Three-Stage-Denoise, outside noise has been reduced perfectly. As shown in Fig.7,
it is the control group where we processed the two OBF images respectively. Fig.7(a) and
Fig.7(d) are the original image of OBF a and OBF b respectively. And so on, Fig.7(b) and
Fig.7(e) are the a and b that after the rst stage of Noise Reduction. Similarly, Fig.7(c) and
Fig.7(f) are the results of the second Noise Reduction. The outside noise in b is far away from
the OBF's border, so it was reduced in the rst stage. Relatively, the position of noise is close
to the border of the OBF so that outside noise can be connected with the border after the
rst stage Noise Reduction. As a result, the noise has to be reduced in the second stage. The
third time result is not shown here, because all the outside noise had been cleared mostly. The
third stage is utilized to target some noises that have not been reduced clearly during the rst
and second stages. We performed Noise Reduction on the 364 OBF images totally, and on 356
pieces of them, outside noises have been reduced perfectly, and the accuracy of Noise Reduction
is 97.8%.</p>
        <p>In Noise Reduction of border noise, Spider-Web-Extinction has been used to decompose
the border into strips and block features like spider webs, as shown in Fig.8(a). Fig.8(b) is
a partially enlarged image of Fig.8(a). These features are reduced by ltering the size of the
bounding box, and the result is shown in Fig.8(c). In a summary, the border noise of 356 OBF
images has been reduced perfectly without errors.
In terms of segmentation, the OBF features di erentiated from OBI features by catching a
large rate of di erence between two bounding boxes' size at the rst time. It is intuitive
to help us distinguish OBF features accurately. However, problems still exist in using
AreaMutation-Segmentation to cut OBFs out. If the rate of change between the size of OBFs
is particularly large, the position we locate by Area-Mutation-Segmentation may not be the
dividing line between the OBIs and OBFs, but a dividing line between large OBFs and small
OBFs. Fortunately, Professor Shirakawa sorted out and put OBFs with similar sizes in the same
OBIs image as much as possible. However, facing these special cases, the algorithm should be
optimized in the future.</p>
        <p>During Noise Reduction of outside noises, we masterly utilize the characteristic that the
border of OBFs and the outside noise are almost not smoothly connected together to reduce
the noises by three stages. About the reduction of border noise, we propose a creative method
to e ectively eliminate the OBF border, and it can almost deal with the reduction of any border
noise during the organization perfectly.
5</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>Conclusion</title>
      <p>
        In light of the recent discovery of Professor Shirakawa's hand-notated OBIs research documents,
this paper aims to organize hand-notated Oracle Bone Inscriptions research documents by image
processing. It is helpful for us to extract more OBI features from the limited OBIs images [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ].
In detail, Area-Mutation-Segmentation, Three-Stage-Denoise, and Spider-Web-Extinction are
applied to perform segmentation and Noise Reduction respectively. Speci cally, we found that
the accuracy of Noise Reduction on outside noise was 97.8%, and the border noise was reduced
perfectly without errors. During an organization, the number of OBI features extracted from
OBIs image was increased by 32.5%. In the future, these methods based on image processing
should be optimized for a higher accuracy of Noise Reduction. Additionally, after these Noise
Reductions, we should be committed to segmenting every OBI feature clearly by some ingenious
method. In this way, we can use Professor Shirakawa's document more e ciently and try to
make contributions to the research of OBIs recognition.
[10] Anyang Normal University. OBI database of anyang normal university, Last accessed 24 Feb. 2021.
      </p>
      <p>http://jgw.aynu.edu.cn/.
[11] Rohit Verma and Jahid Ali. A comparative study of various types of image noise and e cient noise
removal techniques. International Journal of advanced research in computer science and software
engineering, 3(10), 2013.
[12] Yikang Zhang, Heng Zhang, Yongge Liu, Qing Yang, and Chenglin Liu. Oracle character
recognition by nearest neighbor classi cation with deep metric learning. In 2019 International Conference
on Document Analysis and Recognition (ICDAR), pages 309{314. IEEE, 2019.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>Ginu</given-names>
            <surname>George</surname>
          </string-name>
          , Rinoy Mathew Oommen, Shani Shelly, Stephie Sara Philipose, and Ann Mary Varghese.
          <article-title>A survey on various median ltering techniques for removal of impulse noise from digital image</article-title>
          .
          <source>In 2018 Conference on Emerging Devices and Smart Systems (ICEDSS)</source>
          , pages
          <fpage>235</fpage>
          {
          <fpage>238</fpage>
          . IEEE,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>Shuangping</given-names>
            <surname>Huang</surname>
          </string-name>
          ,
          <string-name>
            <surname>Haobin</surname>
            <given-names>Wang</given-names>
          </string-name>
          , Yongge Liu, Xiaosong Shi, and
          <string-name>
            <given-names>Lianwen</given-names>
            <surname>Jin</surname>
          </string-name>
          .
          <article-title>Obc306: A largescale oracle bone character recognition dataset</article-title>
          .
          <source>In 2019 International Conference on Document Analysis and Recognition (ICDAR)</source>
          , pages
          <fpage>681</fpage>
          {
          <fpage>688</fpage>
          . IEEE,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>Nursuriati</given-names>
            <surname>Jamil</surname>
          </string-name>
          ,
          <article-title>Tengku Mohd Tengku Sembok, and Zainab Abu Bakar</article-title>
          .
          <article-title>Noise removal and enhancement of binary images using morphological operations</article-title>
          .
          <source>In 2008 International Symposium on Information Technology</source>
          , volume
          <volume>4</volume>
          , pages
          <fpage>1</fpage>
          <article-title>{6</article-title>
          . IEEE,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>Guoying</given-names>
            <surname>Liu</surname>
          </string-name>
          , Xu Song, Wenying Ge,
          <string-name>
            <surname>Hongyu Zhou</surname>
            , and
            <given-names>Jing</given-names>
          </string-name>
          <string-name>
            <surname>Lv</surname>
          </string-name>
          .
          <article-title>Oracle-bone-inscription image segmentation based on simple fully convolutional networks</article-title>
          .
          <source>In MIPPR 2019: Pattern Recognition and Computer Vision</source>
          , volume
          <volume>11430</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>Guoying</given-names>
            <surname>Liu</surname>
          </string-name>
          , Jici Xing, and
          <string-name>
            <given-names>Jing</given-names>
            <surname>Xiong</surname>
          </string-name>
          .
          <article-title>Spatial pyramid block for oracle bone inscription detection</article-title>
          .
          <source>In Proceedings of the 2020 9th International Conference on Software and Computer Applications</source>
          , pages
          <volume>133</volume>
          {
          <fpage>140</fpage>
          ,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>Lin</given-names>
            <surname>Meng</surname>
          </string-name>
          .
          <article-title>Two-stage recognition for oracle bone inscriptions</article-title>
          .
          <source>In International Conference on Image Analysis and Processing</source>
          , pages
          <volume>672</volume>
          {
          <fpage>682</fpage>
          . Springer,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <surname>Lin</surname>
            <given-names>Meng</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Naoki Kamitoku</surname>
            , and
            <given-names>Katsuhiro</given-names>
          </string-name>
          <string-name>
            <surname>Yamazaki</surname>
          </string-name>
          .
          <article-title>Recognition of oracle bone inscriptions using deep learning based on data augmentation</article-title>
          .
          <source>In 2018 Metrology for Archaeology and Cultural Heritage (MetroArchaeo)</source>
          , pages
          <fpage>33</fpage>
          {
          <fpage>38</fpage>
          . IEEE,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <surname>Lin</surname>
            <given-names>Meng</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bing Lyu</surname>
            , Zhiyu Zhang, CV Aravinda, Naoto Kamitoku, and
            <given-names>Katsuhiro</given-names>
          </string-name>
          <string-name>
            <surname>Yamazaki</surname>
          </string-name>
          .
          <article-title>Oracle bone inscription detector based on ssd</article-title>
          .
          <source>In International Conference on Image Analysis and Processing</source>
          , pages
          <volume>126</volume>
          {
          <fpage>136</fpage>
          . Springer,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>Nobuyuki</given-names>
            <surname>Otsu</surname>
          </string-name>
          .
          <article-title>A threshold selection method from gray-level histograms</article-title>
          .
          <source>IEEE transactions on systems, man, and cybernetics</source>
          ,
          <volume>9</volume>
          (
          <issue>1</issue>
          ):
          <volume>62</volume>
          {
          <fpage>66</fpage>
          ,
          <year>1979</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>