<!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>Topic Extraction Based on LDA and Its Application in Tourism 1</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Hui Peng</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Jiapei Huang</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Xi Li</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Danyang Dong</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Peiying Fan</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Research center for Beijing tourism development</institution>
          ,
          <addr-line>Beijing</addr-line>
          ,
          <country country="CN">China</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Tourism science school of Beijing international studies university</institution>
          ,
          <addr-line>Beijing</addr-line>
          ,
          <country country="CN">China</country>
        </aff>
      </contrib-group>
      <fpage>52</fpage>
      <lpage>57</lpage>
      <abstract>
        <p>This paper introduces LDA, an algorithm that automatically extracts text topics from a large amount of text, and presents a case study of its application: extracting the features of recommendation information of travel microblog key opinion leaders. Using these features to construct a travel decision influence model and analyzing the influence of travel microblog key opinion leaders' recommendation information on travellers' travel decisions. The following conclusions were drawn: the information recommended by travel microblog key opinion leaders provides a certain reference role for travellers' decision-making, and among the six features of travel microblog key opinion leaders' recommended information, the degree of quantification of recommended information is the most important factor that has an impact on travel decision-making.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;LDA Model</kwd>
        <kwd>Topics Extraction</kwd>
        <kwd>Text Mining</kwd>
        <kwd>Recommended Information of Microblog Opinion Leader</kwd>
        <kwd>travellers' decision-making</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>2
2.1</p>
    </sec>
    <sec id="sec-2">
      <title>The LDA model and its Python implementation</title>
    </sec>
    <sec id="sec-3">
      <title>Model LDA introduction</title>
      <p>
        The Latent Dirichlet Allocation (LDA) was proposed by Blei etc. in 2003[
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. It is a three-layer
Bayesian probabilistic generation model which contains a three-layer structure of documents, topics,
and words[
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. As an unsupervised type of machine learning, the LDA model consists of two main steps
which are word generation and topic generation. After determining the number of topics K during
training, running the model yields the probability of the distribution of words under each topic and the
probability of the topic corresponding to the document.
      </p>
      <p>The modeling process of LDA for text was shown in Figure 1, where the circle indicates the
potential variables. The arrow with direction can indicate the relationship between two variables, and the</p>
      <p>M represents the total number of documents, N represents the number of feature words contained
in the documents. According to the topic distribution , for the nth word in any document m, the
distribution of its topics is obtained as follows:</p>
      <p>By combining the topic
is obtained as follows:
and the distribution of words
, the distribution of specific words</p>
      <p>To move in cycle, a document containing N words was obtained by cycling. Finally, M documents
under K topics were generated.</p>
      <p>
        To extract topics using the LDA topic model for travel microblog key opinion leaders'
recommendation information, it is necessary to determine the optimal number of topics to extract. The
representative method is to measure topic consistency or perplexity. The consistency is used to measure the
coherence of words within the same topic, the higher the value of consistency index means that the
words within the same topic have strong coherence, the better the model fit; while the perplexity is the
degree of uncertainty whether the topic belongs to the document or not. Perplexity is the most
common evaluation metric in natural language processing[
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], which is used to test the trained language
model. The smaller the perplexity is, the relatively stronger the generalization ability of the topic. The
specific formula for the perplexity is as follows[
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]:
[
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]
rectangular box means repeated sampling was performed. The specific steps of the LDA topic model
are as follows:
      </p>
      <p>
        and are the prior parameters of the Dirichlet function, is the parameter of the multinomial
distribution of the topic in the document, and is the parameter of the multinomial distribution of
the word in the topic, which obey the Dirichlet distribution with hyperparameters and ,
respectively[
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]:
      </p>
      <p>represents the probability of each word in the test set, and denotes the sum of all
feature words. means the probability of topic k in a given document, and means the
probability of each word under a given topic.</p>
    </sec>
    <sec id="sec-4">
      <title>2.2 Python Implementation of LDA</title>
      <p>In the application of LDA model, we need to download and preprocess the text data, then call the
modeling function in Python and obtain the relatively ideal number of topics and keywords under
(1)
(2)
(3)
(4)
(5)
(6)
each topic by adjusting the consistency parameter and confusion parameter. The Figure 2 is the main
code of the modeling part.</p>
    </sec>
    <sec id="sec-5">
      <title>3 Extracting recommended information features from travel microblog key</title>
      <p>opinion leaders</p>
    </sec>
    <sec id="sec-6">
      <title>3.1 Prepare sample data</title>
      <p>This study mainly selects the microblog content and user comments published by the current
microblog platforms "Top Ten Influential Travel Bloggers in 2020" and "Top Ten Popular Travel
Bloggers in 2020" from June 2019 to June 2021 as samples source.</p>
      <p>Python was used to capture the content, number of likes and comments, posting time and text of
comments of the 20 travel microblog key opinion leaders in the field of tourism during the period of
2019.6-2021.6, and a total of 7,879 pieces of content and 363,779 microblog comments recommended
by the 20 travel microblog key opinion leaders in the field of tourism were obtained. The top 100
microblog users' comments and interaction data were collected under each microblog content. To
ensure the scientific validity of the research results, the data is screened to eliminate invalid and
meaningless comments, and the following processing is carried out on the collected data. It mainly includes
the construction of deactivation dictionaries, text splitting, synonym replacement.</p>
    </sec>
    <sec id="sec-7">
      <title>3.2 LDA Topic Analysis</title>
    </sec>
    <sec id="sec-8">
      <title>3.2.1 Determination of topics for user comment</title>
      <p>By continuously changing the value of K, we observe the change of confusion and consistency
value, when the value of K is between 3 and 5, the value of confusion is relatively low at this time, as
shown in the figure. When the value of K is 4, it can better reflect and cover the meaning of the
semantics of visitors' comments, and the consistency between topics is the highest, so the number of
topics is set to 4. See Figure 3 and Figure 4.</p>
      <p>The high-frequency keywords in the four themes coalesced into the recommended information of
travel microblog key opinion leaders are listed in Table 1. In Theme 1, words such as "comment",
"retweet" and "follow" reflect the interaction between microblog users and opinion leaders, categorizing
Theme 1 as: information interactivity. In Theme 2, users comment on words such as "nice", "good",
"cute", etc., expressing their praise and compliments on the content recommended by the opinion
leaders, with their own feelings, so Theme 2 is categorized as information expression. In Theme 3,
users commented on the words "link", "web page", "video" and "image", reflecting the diversity of
information presentation forms used by opinion leaders in recommending content, and users'
expectation and demand for diverse information presentation forms. Therefore, Theme 3 is categorized as:
Information presentation formats. In Theme 4, users comment on words such as "raffle" and "prize"
as a form of interaction between opinion leaders and their followers through rewarding activities such
as raffles, and words such as "envy" and "rule" as a form of interaction between travel microblog key
opinion leaders and their followers. Therefore, Theme 4 is also categorized as information
interactivity.</p>
    </sec>
    <sec id="sec-9">
      <title>3.2.2 Identifying the qualities of travel microblog key opinion leaders ' recommended messages</title>
      <p>Combining the perceived characteristics of the information recommended by the travel microblog
key opinion leaders as reflected in the above microblog user comments, as well as the data of the likes
and comments of the 20 t microblog travel key opinion leaders and the topics to which the highly
interactive content belongs. The two were compiled and compared to arrive at the following
characteristics of the travel microblog key opinion leaders' recommended information, and then study their
influence on travelers' destination decisions.</p>
      <p>（1）The quantitative degree of information recommended by travel microblog key opinion
leaders: the comprehensive degree of the number of retweets, likes, comments, etc. of the recommended
content.</p>
      <p>（2）Information quality: including the accuracy, completeness and interest of the description of
the tourist destination, tourist products or services, etc.</p>
      <p>（3）Information timeliness: the frequency of recommended information, whether it is combined
with current hotspots, leading the latest developments in the field of tourism, etc.
（4）Information interactivity: travel microblog key opinion leaders recommend information in
the process of using questions, @, add topic tag, super talk and other ways to communicate and
interact with potential tourists; microblog users interact with each other in the type of comments that occur
after a microblog opinion leader releases a microblog.</p>
      <p>（5）Form of information presentation: The expressions used by travel microblog key opinion
leaders to disseminate information: plain text, long text, combination of pictures and text, video, live
broadcast, etc.</p>
      <p>（6）Information expression: Objective description of tourism products or services information,
the post-purchase experience of tourism products or services released and recommended, adding their
own attitude, with a certain emotional color.
4</p>
    </sec>
    <sec id="sec-10">
      <title>Model Construction</title>
      <p>From the above recommended information features the following tourism decision model can be
constructed. It shows in Figure 5.</p>
      <p>Based on the model, through questionnaires and hypothesis testing, it is concluded that the
information recommended by tourism travel microblog key opinion leaders provides a certain reference
role in travelers' decision-making behavior, and among the six characteristics of information
recommended by travel microblog key opinion leaders, the quantitative degree of recommended information
is the most important factor that has an impact on tourism decision-making.</p>
    </sec>
    <sec id="sec-11">
      <title>5 Conclusion</title>
      <p>In this paper, the LDA model is used to mine the information recommended by travel microblog
opinion leaders, and six features of the information are summarized. They are the quantitative degree
of information, information quality, information timeliness, inforrmation interactivity, form of
information presentation and information expression. Applying these features in the model of
traveller‘ decision making, it shows the degree of quantification of recommended information is the
most important factor that has an impact on travel decision-making.</p>
    </sec>
    <sec id="sec-12">
      <title>6 Related works</title>
      <p>
        Hoffmann[
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] proposed the Probabilistic Latent Semantic Indexing (PLSI) model, which uses
probabilistic generative models for topic analysis and extraction of text. Blei[
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] etc. improved the PLSI
model by proposing the LDA (Latent Dirichlet Allocation) model, which is currently the most widely
used model in the field of topic modeling research. Xu, Ge and Wang, Houfeng[
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] introduced and
analyzed the important role of probabilistic implicit semantic indexing and LDA in the development of
topic models, and classified and introduced various models derived from LDA. An important
discussion of LDA-based text segmentation[
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] and topic extraction[
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] is provided by Jing Shi etc.
      </p>
      <p>
        In the field of tourism, LDA models are widely used in research. chao Huang[
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] etc. used LDA
methods to refine a seasonal theme model to analyse the themes corresponding to each attraction in
different seasonal contexts. Zhou Wenliang[
        <xref ref-type="bibr" rid="ref12">12</xref>
        ] used LDA to mine textual themes to obtain relatively
objective tourism destination evaluation indicators, thus reconstructing the tourism destination
evaluation system to evaluate tourist attractions in Jiangxi Province.
      </p>
    </sec>
    <sec id="sec-13">
      <title>7 Acknowledgement</title>
      <p>This research was financially supported by science research project of Beijing International
Studies University (LYFZ18B003).
8 References</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1] BleiDM, NgAY JordanMI.
          <article-title>Latent dirichleta llocation [J]</article-title>
          .
          <source>Journal of machine Learning research</source>
          ,
          <year>2003</year>
          , (
          <issue>1</issue>
          ):
          <fpage>993</fpage>
          -
          <lpage>1022</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>Xing</given-names>
            <surname>Feng</surname>
          </string-name>
          ,
          <source>Liu Xingxu. Practice and Application of Machine Learning in data analysis [J]. Telecommunication Engineering Technology &amp; Standardization</source>
          ,
          <year>2021</year>
          ,
          <volume>34</volume>
          (
          <issue>12</issue>
          ):
          <fpage>82</fpage>
          -
          <lpage>84</lpage>
          +
          <fpage>88</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>Li</given-names>
            <surname>Tingyi</surname>
          </string-name>
          .
          <article-title>Study on the factors influencing the travel intention of Guangzhou residents in the context of the normalization of epidemic [D]</article-title>
          . Guangxi Normal University.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>Zhou</given-names>
            <surname>Wen-Liang</surname>
          </string-name>
          .
          <article-title>Research on AHP tourism destination evaluation based on LDA improvement [D]</article-title>
          . Jiangxi University of Finance and Economics.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>Guan</given-names>
            <surname>Peng</surname>
          </string-name>
          ,
          <source>Wang Yuefen. Research on the Optimal Topic Number of LDA Topic Model in Scientific and technological Information Analysis [J]. Modern Library and Information Technology</source>
          ,
          <year>2016</year>
          (9):
          <fpage>42</fpage>
          -
          <lpage>50</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>Zhao</given-names>
            <surname>Zixuan</surname>
          </string-name>
          .
          <article-title>Emotional Evaluation and Influencing Factors Analysis of museum Tourism [D]</article-title>
          . East China Normal University,
          <year>2022</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <surname>Hofmann</surname>
            <given-names>T.</given-names>
          </string-name>
          <article-title>Probabilistic latent semantic indexing</article-title>
          [J].
          <source>International ACM SIGIR conference on research and development in information retrieval</source>
          ,
          <year>1999</year>
          ,
          <volume>51</volume>
          (
          <issue>2</issue>
          ):
          <fpage>50</fpage>
          -
          <lpage>57</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>Xu</given-names>
            <surname>Ge</surname>
          </string-name>
          ,
          <source>Wang Houfeng. Development of Topic Models in Natural Language Processing [J]. Journal of Computers</source>
          ,
          <year>2011</year>
          ,
          <volume>34</volume>
          (
          <issue>08</issue>
          ):
          <fpage>1423</fpage>
          -
          <lpage>1436</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>Shi</given-names>
            <surname>Jing</surname>
          </string-name>
          , Hu Ming, Shi Xin, etc.
          <source>Text Segmentation Based on LDA Model [J]. Journal of Computers</source>
          ,
          <year>2008</year>
          (
          <volume>10</volume>
          ):
          <fpage>1865</fpage>
          -
          <lpage>1873</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <surname>Shi</surname>
            <given-names>Jing</given-names>
          </string-name>
          , Fan Meng,
          <string-name>
            <given-names>Li</given-names>
            <surname>Wanlong</surname>
          </string-name>
          .
          <article-title>Thematic analysis based on LDA model [J]</article-title>
          .
          <source>Acta automatica sinica</source>
          ,
          <year>2009</year>
          ,
          <volume>35</volume>
          (
          <issue>12</issue>
          ):
          <fpage>1586</fpage>
          -
          <lpage>1592</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <surname>Chao</surname>
            <given-names>Huang</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Qing</surname>
            <given-names>Wang</given-names>
          </string-name>
          ,
          <article-title>Donghui Yang, etc. Topic mining of tourist attractions based on a seasonal context aware LDA model</article-title>
          [J].
          <source>Intelligent Data Analysis</source>
          ,
          <year>2018</year>
          ,
          <volume>22</volume>
          :
          <fpage>383</fpage>
          -
          <lpage>405</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>Wenliang</given-names>
            <surname>Zhou</surname>
          </string-name>
          .
          <article-title>Research on AHP tourism destination evaluation based on LDA improvement [D]</article-title>
          . Jiangxi University of Finance and Economics,
          <year>2021</year>
          . doi:
          <volume>10</volume>
          .27175/d.cnki.gjxcu.
          <year>2021</year>
          .
          <volume>000448</volume>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>