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

Potato Disease and Pest Question Classification Based on Prompt Engineering and Gated Convolution

Author

Listed:
  • Wentao Tang

    (School of Physics and Electronic Information, Gannan Normal University, Ganzhou 341000, China)

  • Zelin Hu

    (School of Physics and Electronic Information, Gannan Normal University, Ganzhou 341000, China)

Abstract

Currently, there is no publicly available dataset for the classification of potato pest and disease-related queries. Moreover, traditional query classification models generally adopt a single maximum-pooling strategy when performing down-sampling operations. This mechanism only extracts the extreme value responses within the local receptive field, which leads to the degradation of fine-grained feature representation and significantly amplifies text noise. To address these issues, a dataset construction method based on prompt engineering is proposed, along with a question classification method utilizing a gated fusion–convolutional neural network (GF-CNN). By interacting with large language models, prompt words are used to generate potato disease and pest question templates and efficiently construct the Potato Pest and Disease Question Classification Dataset (PDPQCD) by batch importing named entities. The GF-CNN combines outputs from convolutional kernels of varying sizes, and after processing with max-pooling and average-pooling, a gating mechanism is employed to regulate the flow of information, thereby optimizing the text feature extraction process. Experiments using GF-CNN on the PDPQCD, Subj, and THUCNews datasets show F 1 scores of 100.00%, 96.70%, and 93.55%, respectively, outperforming other models. The prompt engineering-based method provides a new paradigm for constructing question classification datasets, and the GF-CNN can also be extended for application in other domains.

Suggested Citation

  • Wentao Tang & Zelin Hu, 2025. "Potato Disease and Pest Question Classification Based on Prompt Engineering and Gated Convolution," Agriculture, MDPI, vol. 15(5), pages 1-16, February.
  • Handle: RePEc:gam:jagris:v:15:y:2025:i:5:p:493-:d:1599335
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2077-0472/15/5/493/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2077-0472/15/5/493/
    Download Restriction: no
    ---><---

    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:15:y:2025:i:5:p:493-:d:1599335. 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.