IDEAS home Printed from https://ideas.repec.org/a/gam/jagris/v12y2022i2p176-d734883.html
   My bibliography  Save this article

A Dynamic Attention and Multi-Strategy-Matching Neural Network Based on Bert for Chinese Rice-Related Answer Selection

Author

Listed:
  • Haoriqin Wang

    (School of Information and Electrical Engineering, Shenyang Agricultural University, Shenyang 110866, China
    College of Computer Science and Technology, Inner Mongolia Minzu University, Tongliao 028043, China
    National Engineering Research Center for Information Technology in Agriculture, Beijing 100097, China
    Research Center for Information Technology, Beijing Academy of Agriculture and Forestry Sciences, Beijing 100097, China)

  • Huarui Wu

    (National Engineering Research Center for Information Technology in Agriculture, Beijing 100097, China
    Research Center for Information Technology, Beijing Academy of Agriculture and Forestry Sciences, Beijing 100097, China
    Intelligent Equipment Technology Research Center, Beijing Academy of Agriculture and Forestry Sciences, Beijing 100097, China)

  • Qinghu Wang

    (College of Computer Science and Technology, Inner Mongolia Minzu University, Tongliao 028043, China)

  • Shicheng Qiao

    (College of Computer Science and Technology, Inner Mongolia Minzu University, Tongliao 028043, China)

  • Tongyu Xu

    (School of Information and Electrical Engineering, Shenyang Agricultural University, Shenyang 110866, China)

  • Huaji Zhu

    (National Engineering Research Center for Information Technology in Agriculture, Beijing 100097, China
    Research Center for Information Technology, Beijing Academy of Agriculture and Forestry Sciences, Beijing 100097, China
    Intelligent Equipment Technology Research Center, Beijing Academy of Agriculture and Forestry Sciences, Beijing 100097, China)

Abstract

To allow the intelligent detection of correct answers in the rice-related question-and-answer (Q&A) communities of the “China Agricultural Technology Extension Information Platform”, we propose an answer selection model with dynamic attention and multi-strategy matching (DAMM). According to the characteristics of the rice-related dataset, the twelve-layer Chinese Bert pre-training model was employed to vectorize the text data and was compared with Word2vec, GloVe, and TF-IDF (Term Frequency–Inverse Document Frequency) methods. It was concluded that Bert could effectively solve the agricultural text’s high dimensionality and sparsity problems. As well as the problem of polysemy having different meanings in different contexts, dynamic attention with two different filtering strategies was used in the attention layer to effectively remove the sentence’s noise. The sentence representation of question-and-answer sentences was obtained. Secondly, two matching strategies (Full matching and Attentive matching) were introduced in the matching layer to complete the interaction between sentence vectors. Thirdly, a bi-directional gated recurrent unit (BiGRU) network spliced the sentence vectors obtained from the matching layer. Finally, a classifier was employed to calculate the similarity of splicing vectors, and the semantic correlation between question-and-answer sentences was acquired. The experimental results showed that DAMM had the best performance in the rice-related answer selection dataset compared with the other six answer selection models, of which MAP (Mean Average Precision) and MRR (Mean Reciprocal Rank) of DAMM gained 85.7% and 88.9%, respectively. Compared with the other six kinds of answer selection models, we present a new state-of-the-art method with the rice-related answer selection dataset.

Suggested Citation

  • Haoriqin Wang & Huarui Wu & Qinghu Wang & Shicheng Qiao & Tongyu Xu & Huaji Zhu, 2022. "A Dynamic Attention and Multi-Strategy-Matching Neural Network Based on Bert for Chinese Rice-Related Answer Selection," Agriculture, MDPI, vol. 12(2), pages 1-17, January.
  • Handle: RePEc:gam:jagris:v:12:y:2022:i:2:p:176-:d:734883
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2077-0472/12/2/176/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2077-0472/12/2/176/
    Download Restriction: no
    ---><---

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Haoriqin Wang & Huarui Wu & Huaji Zhu & Yisheng Miao & Qinghu Wang & Shicheng Qiao & Haiyan Zhao & Cheng Chen & Jingjian Zhang, 2022. "A Residual LSTM and Seq2Seq Neural Network Based on GPT for Chinese Rice-Related Question and Answer System," Agriculture, MDPI, vol. 12(6), pages 1-19, June.

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jagris:v:12:y:2022:i:2:p:176-:d:734883. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.