Exploring the Capability of ChatGPT for Cross-Linguistic Agricultural Document Classification: Investigation and Evaluation

  • Conference paper
  • First Online:
Neural Information Processing (ICONIP 2023)

Abstract

In the sustainable smart agriculture era, a vast amount of agricultural knowledge is available on the internet, making it necessary to explore effective document classification techniques for enhanced accessibility and efficiency. Over the past few years, fine-tuning strategies based on pre-trained language models (PLMs) have gained popularity as mainstream deep learning approaches, showcasing impressive performance. However, these approaches face several challenges, including a limited availability of training data, poor domain transferability, lack of model interpretability, and the challenges in deploying large models. Inspired by ChatGPT’s significant success, we investigate its capability and utilization in the field of agricultural information processing. We explore various attempts to maximize ChatGPT’s potential, including various prompting construction strategies, ChatGPT question-answering (Q &A) inference, and intermediate answer alignment technique. Our preliminary comparative study demonstrates that ChatGPT effectively addresses research challenges and bottlenecks, positioning it as an ideal solution for agricultural document classification. This findings encourage the development of a general-purpose agricultural document processing paradigm. Our preliminary study also indicates the trend towards achieving Artificial General Intelligence (AGI) for sustainable smart agriculture in the future. Code is available on Github (https://github.com/albert-**/agricultural_textual_classification_ChatGPT).

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
EUR 32.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or Ebook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
EUR 29.95
Price includes VAT (France)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
EUR 74.89
Price includes VAT (France)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
EUR 94.94
Price includes VAT (France)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free ship** worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

Notes

  1. 1.

    PromptPerfect service: https://promptperfect.**aai.cn/prompts.

  2. 2.

    https://github.com/albert-**/agricultural_textual_classification_ChatGPT.

  3. 3.

    PromptPerfect service is available at https://promptperfect.**aai.cn/prompts.

  4. 4.

    Spacy can be accessed on https://spacy.io.

  5. 5.

    PestObserver-France download: https://github.com/sufianj/fast-camembert.

  6. 6.

    https://github.com/albert-**/agricultural-_textual_classification_ChatGPT.

  7. 7.

    More details can be accessed from http://zjzx.cnki.net/.

  8. 8.

    https://github.com/Dong-UTIL/Natural-Hazards-Twitter-Dataset.

  9. 9.

    GloVe embedding: https://nlp.stanford.edu/projects/glove/.

  10. 10.

    Huggingface transformers: https://huggingface.co/docs/transformers/index.

  11. 11.

    Baidu Ernie Bot: https://wenxin.baidu.com/wenxin/nlp.

  12. 12.

    https://huggingface.co/docs/transformers/v4.29.1/en/index.

References

  1. Azeez, N., Al-Taie, I., Yahya, W., Basbrain, A., Clark, A.: Regional agricultural land texture classification based on GLCMS, SVM and decision tree induction techniques. In: 2018 10th Computer Science and Electronic Engineering (CEEC), pp. 131–135 (2018)

    Google Scholar 

  2. Bang, Y., et al.: A multitask, multilingual, multimodal evaluation of ChatGPT on reasoning, hallucination, and interactivity (2023)

    Google Scholar 

  3. Brown, T.B., et al.: Language models are few-shot learners. In: Proceedings of the 34th International Conference on Neural Information Processing Systems. NIPS 2020, Red Hook, NY, USA, pp. 182–207. Curran Associates Inc. (2020)

    Google Scholar 

  4. Cao, Y., Sun, Z., Li, L., Mo, W.: A study of sentiment analysis algorithms for agricultural product reviews based on improved Bert model. Symmetry 14(8), 1604 (2022)

    Article  Google Scholar 

  5. Devlin, J., Chang, M.W., Lee, K., Toutanova, K.: BERT: pre-training of deep bidirectional transformers for language understanding. In: Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), Minneapolis, Minnesota, pp. 4171–4186. Association for Computational Linguistics (2019)

    Google Scholar 

  6. Dunnmon, J., Ganguli, S., Hau, D., Husic, B.: Predicting us state-level agricultural sentiment as a measure of food security with tweets from farming communities (2019)

    Google Scholar 

  7. Gao, J., Yu, H., Zhang, S.: Joint event causality extraction using dual-channel enhanced neural network. Knowl.-Based Syst. 258, 109935 (2022)

    Article  Google Scholar 

  8. Gao, J., Zhao, H., Yu, C., Xu, R.: Exploring the feasibility of ChatGPT for event extraction (2023)

    Google Scholar 

  9. Jiang, S., Angarita, R., Cormier, S., Rousseaux, F.: Fine-tuning BERT-based models for plant health bulletin classification (2021)

    Google Scholar 

  10. Jiao, W., Wang, W., tse Huang, J., Wang, X., Tu, Z.: Is ChatGPT a good translator? yes with GPT-4 as the engine (2023)

    Google Scholar 

  11. **, W., Zhao, B., Liu, C.: Fintech key-phrase: a new Chinese financial high-tech dataset accelerating expression-level information retrieval. In: Wang, X., et al. (eds.) Database Systems for Advanced Applications, pp. 425–440. Springer, Cham (2023). https://doi.org/10.1007/978-3-031-30675-4_31

    Chapter  Google Scholar 

  12. **, W., Zhao, B., Yu, H., Tao, X., Yin, R., Liu, G.: Improving embedded knowledge graph multi-hop question answering by introducing relational chain reasoning. Data Mining and Knowledge Discovery (2022)

    Google Scholar 

  13. Liu, P., Qiu, X., Huang, X.: Recurrent neural network for text classification with multi-task learning. In: Proceedings of the Twenty-Fifth International Joint Conference on Artificial Intelligence, pp. 2873–2879. IJCAI 2016, AAAI Press (2016)

    Google Scholar 

  14. Liu, P., Yuan, W., Fu, J., Jiang, Z., Hayashi, H., Neubig, G.: Pre-train, prompt, and predict: a systematic survey of prompting methods in natural language processing. ACM Comput. Surv. 55(9), 1–35 (2023)

    Article  Google Scholar 

  15. OpenAI: Gpt-4 technical report (2023)

    Google Scholar 

  16. Raffel, C., et al.: Exploring the limits of transfer learning with a unified text-to-text transformer. J. Mach. Learn. Res. 21(1), 5485–5551 (2020)

    MathSciNet  Google Scholar 

  17. Shen, Y., et al.: Parallel instance query network for named entity recognition. In: Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), Dublin, Ireland, pp. 947–961. Association for Computational Linguistics (2022)

    Google Scholar 

  18. Yunlai, S., Yunpeng, C., Zhigang, D.: A classification method of agricultural news text based on Bert and deep active learning. J. Lib. Inf. Sci. Agricult. 34(8), 19 (2022)

    Google Scholar 

  19. Vaswani, A., et al.: Attention is all you need. In: Proceedings of the 31st International Conference on Neural Information Processing Systems, Red Hook, NY, USA, pp. 6000–6010. NIPS 2017. Curran Associates Inc. (2017)

    Google Scholar 

  20. Wang, J., et al.: Is Chatgpt a good NLG evaluator? A preliminary study (2023)

    Google Scholar 

  21. Wei, X., et al.: Zero-shot information extraction via chatting with ChatGPT (2023)

    Google Scholar 

  22. **a, N., Yu, H., Wang, Y., Xuan, J., Luo, X.: DAFS: a domain aware few shot generative model for event detection. Mach. Learn. 112(3), 1011–1031 (2023)

    Article  MathSciNet  MATH  Google Scholar 

  23. **ao, Y., Du, Q.: Statistical age-of-information optimization for status update over multi-state fading channels (2023)

    Google Scholar 

  24. Xu, J.L., Hsu, Y.L.: Analysis of agricultural exports based on deep learning and text mining. J. Supercomput. 78(8), 10876–10892 (2022)

    Article  Google Scholar 

  25. Zhao, B., **, W., Chen, Z., Guo, Y.: A semi-independent policies training method with shared representation for heterogeneous multi-agents reinforcement learning. Front. Neurosci. 17 (2023)

    Google Scholar 

  26. Zhao, B., **, W., Ser, J.D., Yang, G.: ChataGRI: exploring potentials of ChatGPT on cross-linguistic agricultural text classification (2023)

    Google Scholar 

  27. Zhong, Q., Ding, L., Liu, J., Du, B., Tao, D.: Can ChatGPT understand too? a comparative study on ChatGPT and fine-tuned BERT (2023)

    Google Scholar 

  28. Zhou, C., et al.: A comprehensive survey on pretrained foundation models: a history from BERT to ChatGPT (2023)

    Google Scholar 

Download references

Acknowledgements

This work was carried out during the first author’s (Wei-qiang **) and the second author’s (Biao Zhao) research time at **‘an Jiaotong University. Weiqiang ** is the corresponding author. The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence this work. We would like to thank Guizhong Liu for providing helpful discussions and recommendations. Thanks are also due to the anonymous reviewers and action editors for improving the paper with their comments, and recommendations.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Weiqiang ** .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2024 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

**, W., Zhao, B., Liu, G. (2024). Exploring the Capability of ChatGPT for Cross-Linguistic Agricultural Document Classification: Investigation and Evaluation. In: Luo, B., Cheng, L., Wu, ZG., Li, H., Li, C. (eds) Neural Information Processing. ICONIP 2023. Communications in Computer and Information Science, vol 1965. Springer, Singapore. https://doi.org/10.1007/978-981-99-8145-8_18

Download citation

  • DOI: https://doi.org/10.1007/978-981-99-8145-8_18

  • Published:

  • Publisher Name: Springer, Singapore

  • Print ISBN: 978-981-99-8144-1

  • Online ISBN: 978-981-99-8145-8

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics

Navigation