<!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>Identification of Descriptions of Scientific-Technical Effects in Patent Documents</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Grigoriy V</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Dmitriy Koro</string-name>
          <email>dkorobkin80@mail.ru</email>
        </contrib>
        <contrib contrib-type="author">
          <string-name>y Fom</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>y Kol</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>snikov</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Volgograd State Technical University</institution>
          ,
          <addr-line>Lenin av. 28, Volgograd</addr-line>
          ,
          <country country="RU">Russia</country>
        </aff>
      </contrib-group>
      <fpage>196</fpage>
      <lpage>204</lpage>
      <abstract>
        <p>This paper describes a method of searching descriptions of scientifictechnical (in particular, chemical) effects from US patent documents (USPTO). Chemical effects representations (chemical phenomena) according to the National Center for Biotechnology Information classification are used. The algorithms of primary processing of patent database, extracting key terms from the descriptions of chemical effects, extracting significant features from the text of patents, search the most relevant patents based on queries generated from descriptions of chemical effects were developed. Feature Extraction technology of Spark MLlib is used for the extraction of significant features from patents. Semantic text processing (NLP) is used to identify key features from descriptions of chemical effects and to compose a search query based on them. The search for the most relevant patents containing descriptions of chemical effects is performed base on the generated queries. The software is developed as an application for Linux-systems, its efficiency has been tested on a set of test tasks.</p>
      </abstract>
      <kwd-group>
        <kwd />
        <kwd>Chemical phenomena</kwd>
        <kwd>Natural Language Processing</kwd>
        <kwd>Feature Extraction</kwd>
        <kwd>MLlib</kwd>
        <kwd>RDD</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        The existing global patent database with more than 20 million can serve as a source of
information [
        <xref ref-type="bibr" rid="ref1 ref2">1,2</xref>
        ] for the initial stages of designing new technical solutions [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. One of
the possible approaches to the generation of new systems are methods based on the
use of scientific and technical effects [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] including chemical ones from patent
documents.
      </p>
      <p>
        A lot of creative solutions of technical problems are based on the use of chemical
effects, which makes the task of automating the process of searching for descriptions
of chemical effects in English-language (the largest part of the world patent database)
patent documents. Such chemical effects can be biocatalysis, halogenation, etc.,
which are related to biochemical effects according to the classification of the National
Center for Biotechnology Information [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ].
      </p>
      <p>
        The United States Patent and Trademark Office (USPTO) [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] provides free access
to file storage patent, which contains zip archives with XML files (patent text) and
related TIFF documents (images). In this paper, USPTO Bulk Download storage is
used as a source of patent descriptions due to free access to information and
convenience of XML format for parsing procedure.
      </p>
      <p>
        It was decided to use the technology of distributed computing [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] because there is
a need to process large amounts of information (hundreds of thousands and millions
of patents).
      </p>
      <p>
        It uses a distributed scalable file system (HDFS) [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ], which designed to work with
Big Data and provides high bandwidth access to data.
      </p>
      <p>
        Used Spark MLlib [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] - a library of machine learning methods, supplied with the
implementation of the algorithm required to solve the problem of extracting key
features of the text. The RDD scheme [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] is involved as the main concept of Spark,
which provides processing an arbitrary collection of objects as in a relational table. It
can be distributed in memory, on disk or be completely virtual and it provides fast and
scalable parallel data processing.
2
2.1
      </p>
    </sec>
    <sec id="sec-2">
      <title>The developed methods</title>
      <sec id="sec-2-1">
        <title>Algorithm of primary processing of patent database</title>
        <p>The patent database downloaded from USPTO Bulk Downloads and containing
fulltext descriptions of patents with images is a tar archive file. There are several
directories inside the main archive. Catalogs with patents are divided into three types:
Design, Util, Plant. Inside each of these directories are patents archived into zip files.
Inside each zip file, there is an XML file containing the text of the patent, TIFF
images, and possibly chemical formula presentation files.</p>
        <p>It is necessary to perform a recursive search of the necessary zip archives in all
directories and subdirectories before parsing XML files to extract patent texts. If the
archive name does not match the required template, which is set in the following
format: US********-########, where US is the country, ******** - document
number, ######## - date of publication, such archive is filtered. The processing of
the primary patent database results in a directory containing the XML files of patent
documents. The catalog containing the XML-files of patent documents is obtained as
a result of the initial processing of the patent database.</p>
        <p>Then the parsing of the XML files begins to retrieve the description of the patent
document. The XML document is scanned for the presence of &lt;claim-text&gt; tags,
which contains patent claims. As a result of the preprocessing the patent database,
key-value pairs are loaded into RDD, where the key is the number of the patent
document and the value is the list with the description of the patent document.</p>
        <p>Figure 1 shows the algorithm for preprocessing a patent database.
2.2</p>
      </sec>
      <sec id="sec-2-2">
        <title>Algorithm for extracting key terms from the descriptions of chemical effects</title>
        <p>
          Compiling a search query to a patent database is based on key terms that are extracted
from descriptions of chemical effects according to the classification of the National
Center for Biotechnology Information by means of semantic analysis [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ]. Stanford 3
NLP software was used to extract key terms from a textual description of the effects
[
          <xref ref-type="bibr" rid="ref11">11</xref>
          ].
        </p>
        <p>It is necessary to identify only certain relationships in the sentence for the search
for keywords: nmod, amod, advmod (nmod is a noun that plays the role of a
supplement (nominal modifier); amod is an adjective or a verbal entity that acts as a
definition; advmod is an adverb, plays the role circumstances).</p>
        <p>The Stanford NLP parser accepts a natural language sentence as input and returns
the semantic relationships found between words in the sentence (Figure 2). Each such
relationship consists of the index of the main word (token), the index of the dependent
token, and the type of relationship.</p>
        <p>The token which is a dependent word in the found relationship is considered a key
term because only the semantic relationships given above are considered. The name
of the processed chemical effect and the key terms found are added to the chemical
effects database. The algorithm for extracting keywords from descriptions of chemical
effects is shown in Figure 3.
Chemical effect: «Biocatalysis».</p>
        <p>Chemical effect description: «The facilitation of biochemical reactions with the aid of
naturally occurring catalysts such as ENZYMES».</p>
        <p>Key Terms: «facilitation», «biochemical reactions», «naturally occurring catalysts»,
«enzymes».</p>
      </sec>
      <sec id="sec-2-3">
        <title>Algorithm for extracting significant features from the text of patents</title>
        <p>The Feature Extraction technology (technology of extracting significant features)
from MLlib is the basis of the algorithm, namely the TF-IDF algorithm. It is
necessary to prepare the input data before you begin to identify significant features.
The input data for this algorithm are the patent descriptions stored in RDD. Each
record in RDD is a key-value pair, where a key is a patent number, value is a list
containing patent descriptions. First of all, you need to combine descriptions into a
single text and convert RDD to another data type - Data Frame.</p>
        <p>
          TF - IDF (word frequency - inverse frequency) is a feature vectorization technique
widely used in text mining that reflects the importance of a term for a document in a
document corpus. The TF-IDF algorithm [
          <xref ref-type="bibr" rid="ref9">9</xref>
          ] involves splitting the source text into
tokens. For each patent description punctuation is removed, the case of words is
aligned. The output is a table containing the patent number and a list of words
included in its description after applying the tokenization procedure. It is necessary to
remove stop words (prepositions, conjunctions, particles, pronouns, introductory
words) to reduce the list of tokens and improve speed and efficiency. Stop words have
the lowest IDF values.
        </p>
        <p>The CountVectorizer provided by MLlib is used to find TF values instead of
HashingTF. HashingTF works twice as fast but does not allow you to access the
words in the list of tokens by index. The MLlib tools then calculate the IDF and
TFIDF measures. The output is a vector representation of tokens and measures of their
significance. Figure 4 shows an algorithm for extracting significant features from the
text of patents.</p>
      </sec>
      <sec id="sec-2-4">
        <title>Algorithm for search the most relevant patents based on queries generated from descriptions of chemical effects</title>
        <p>The search for relevant patents from the patent database loaded into RDD is
performed based on a search query consisting of key terms extracted from the texts of
chemical effects. Filtering is used to distinguish relevant patents from the General
patent database, where the main condition of the filter is the presence of key terms of
the desired chemical effect in the key features of the patent under consideration. For
ranking the list of found patents a measure of relevance is introduced, which is
defined as the ratio of the number of matched key terms to the total number of key
terms from the query.
The architecture of the search module for descriptions of chemical effects in USPTO
patent documents is shown in Figure 6.</p>
        <p>The module is developed in Python 3.5 with used APIs: Stanford NLP, Apache
Hadoop, Apache Spark. Used libraries: pyqt, psycopg2, numpy, lxml. Database
created using PostgreSQL.
1. Patent tar archive
2. File with the description of the chemical effect
3. Patent name and its description
4. Chemical effect name, its description, and keywords
5. Patent name and its description
6. Effect name and its keywords
7. Patent name, description, word weights
8. Effect name, patent name, patent description, relevance
9. List of patents
10. The text of the patent, its relevance
11. Loading patent archive
12. Loading chemical effect
13. Loading retrieved significant features of patents
Figure 7 shows a use case diagram of the developed module in UML view.</p>
        <p>The functions of the software module were tested. For example, RDD containing
the names and descriptions of patent documents was used as input for the function of
identifying sets of key features in patent documents. DataFrame table containing sets
of key features with corresponding weight values was obtained as a result. You can
see the records of the received table in the terminal (Figure 7).
patent_name – patent name;
patent_claims – patent description;
filtered – filtered words from the descriptions of the patents;
features – sparse-vectors containing a measure of the significance of filtered words.</p>
        <p>
          You can see a ranked list of patents that are relevant to the search query in Figure
8 as a result.
The elements of the patent description are extracted from USPTO patents. As
descriptions of scientific and technical effects are used representations of chemical
effects (chemical phenomenon) according to the classification of the National Center
for Biotechnology Information. Feature Extraction technology of Spark MLlib is used
for the extraction of significant features from patents. Semantic text processing (NLP)
is used to identify key features from descriptions of chemical effects and to compose
a search query based on them. The search for the most relevant patents containing
descriptions of chemical effects is performed on the basis of the generated queries.
The software is developed as an application for Linux-systems, its efficiency has been
tested and integrated with an automated information system of support of database of
physical effects [
          <xref ref-type="bibr" rid="ref12">12</xref>
          ].
        </p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Acknowledgment</title>
      <p>The reported study was funded by RFBR (research project 18-07-01086), RFBR and
Administration of the Volgograd region (projects 19-47-340007, 19-41-340016).</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Korobkin</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fomenkov</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kolesnikov</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kamaev</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <year>2014</year>
          .
          <article-title>Synthesis of the physical principle of operation of engineering systems in the software environment CPN TOOLS</article-title>
          .
          <source>Research Journal of Applied Sciences</source>
          .
          <year>2014</year>
          .
          <source>Т. 9. № 11</source>
          . pp.
          <fpage>749</fpage>
          -
          <lpage>752</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Davydov</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fomenkov</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <year>2002</year>
          :
          <article-title>The automated design of linear structures of the physical principles of action of technical systems</article-title>
          .
          <source>Mechanician (2)</source>
          ,
          <fpage>33</fpage>
          -
          <lpage>35</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Kravets</surname>
            ,
            <given-names>A.G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Korobkin</surname>
            ,
            <given-names>D.M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dykov</surname>
            ,
            <given-names>M.A.</given-names>
          </string-name>
          ,
          <year>2015</year>
          .
          <article-title>E-Patent examiner: Two-steps approach for patents prior-art retrieval</article-title>
          .
          <source>In Proceedings of IISA 2015 - 6th International Conference on Information, Intelligence, Systems and Applications 6</source>
          . DOI:
          <volume>10</volume>
          .1109/IISA.
          <year>2015</year>
          .7388074
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Korobkin</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fomenkov</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kolesnikov</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <year>2013</year>
          .
          <article-title>Semantic network of Physical Effects descriptions in Natural Language context</article-title>
          .
          <source>In Proceedings of the IADIS International Conference WWW/Internet</source>
          <year>2013</year>
          ,
          <string-name>
            <surname>ICWI</surname>
          </string-name>
          <year>2013</year>
          , pp.
          <fpage>342</fpage>
          -
          <lpage>346</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <given-names>Chemical</given-names>
            <surname>Phenomena</surname>
          </string-name>
          . Available at: https://www.ncbi.nlm.nih.gov/mesh/68055598
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <given-names>Bulk</given-names>
            <surname>Data Storage System</surname>
          </string-name>
          . Available at: https://bulkdata.uspto.gov
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Taylor</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          <article-title>An overview of the Hadoop/MapReduce/HBase framework and its current applications in bioinformatics</article-title>
          . Available at: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3040523
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>8. HDFS. Available at: https://ru.bmstu.wiki/HDFS_(Hadoop_Distributed_Filesystem)</mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Karau</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Konwinski</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wendell</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zaharia</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          <article-title>Learning Spark: Lightning-Fast Big Data Analysis</article-title>
          .
          <source>ISBN 10: 1449358624. ISBN 13: 9781449358624</source>
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <article-title>MLlib is Apache Spark's scalable machine learning library</article-title>
          . Available at: http://spark.apache.org/mllib
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Stanford</surname>
          </string-name>
          CoreNLP -
          <article-title>Natural language software</article-title>
          . Available at: https://stanfordnlp.github.io/CoreNLP
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Fomenkov</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Korobkin</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kolesnikov</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dvoryankin</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kamaev</surname>
            <given-names>V.</given-names>
          </string-name>
          ,
          <year>2014</year>
          .
          <article-title>Procedure of integration of the systems of representation and application of the structured physical knowledge</article-title>
          .
          <source>Research Journal of Applied Sciences</source>
          .
          <year>2014</year>
          . V.
          <article-title>9</article-title>
          . No 10. pp.
          <fpage>700703</fpage>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>