Web Interactive Content Filtering Model Integrating Prompt Classifier and Intent Understanding
DOI:
https://doi.org/10.13052/jwe1540-9589.2578Keywords:
Content filtering, prompt classifier, intent understanding, web interactive content, large language modelAbstract
To accurately identify and intercept harmful content generated in user interactions on Web platforms such as social media and online forums, this study proposes a Web interactive content filtering model that integrates Prompt classifiers and intent understanding. The model adopts a hierarchical review architecture with dual-module collaboration. The front-end deploys a Prompt classifier based on Deep Contrastive Learning (DCL), and uses the attention mechanism and deep convolutional network to perform rapid semantic analysis and preliminary screening of real-time comments and conversations. The back-end introduces an intent understanding module based on search-enhanced generation and Large Language Models (LLMs) to conduct in-depth contextual analysis of preliminary screening warning content to distinguish malicious attacks from legitimate sensitive topic discussions. Experiments showed that the system performed well on a test set containing 52,397 Chinese Web interactive texts. The Prompt classifier module achieved a precision of 95.2% and a recall of 96.5%. After collaborative calibration with the intent understanding module, the false alarm rate of the system was significantly reduced to 4.4%, while the recall rate remained at 96.1%. From the results, this study provides a content security solution for Web interactive scenarios that combines high accuracy, strong semantic understanding capabilities, and real-time response performance. It can effectively purify the cyberspace environment while ensuring freedom of interaction, with important practical application value.
Downloads
References
Budak C, Nyhan B, Rothschild D M, Thorson E. Misunderstanding the harms of online misinformation. Nature, 2024, 630(8015): 45–53. DOI: 10.1038/s41586-024-07417-w
Arcila Calderón C, Sánchez Holgado P, Gómez J, Barbosa M, Qi H, Matilla A. From online hate speech to offline hate crime: The role of inflammatory language in forecasting violence against migrant and LGBT communities. Humanities and Social Sciences Communications, 2024, 11(1): 1–14. DOI: 10.1057/s41599-024-03899-1
Rahman M R, Hezaveh R M, Williams L. What are the attackers doing now? Automating cyberthreat intelligence extraction from text on pace with the changing threat landscape: A survey. ACM Computing Surveys, 2023, 55(12): 1–36. 10.1145/3571726
Wang C, Ma W, Chen C, Zhang M, Liu Y, Ma S. Sequential recommendation with multiple contrast signals. ACM Transactions on Information Systems, 2023, 41(1): 1–27. DOI: 10.1145/3522673
Lin J, Dai X, Xi Y, Liu W, Chen B, Zhang H, Zhang W. How can recommender systems benefit from Large Language Models: A survey. ACM Transactions on Information Systems, 2025, 43(2): 1–47. DOI: 10.1145/3678004
Widayanti R, Chakim M H R, Lukita C, Rahardja U, Lutfiani N. Improving recommender systems using hybrid techniques of collaborative filtering and content-based filtering. Journal of Applied Data Sciences, 2023, 4(3): 289–302. DOI: 10.47738/jads.v4i3.115
Jiang K, Jin G, Zhang Z, Cui R, Zhao Y. Incorporating external knowledge for text matching model. Computer Speech & Language, 2024, 87(7): 101638–101652. DOI: 10.1016/j.csl.2024.101638
Xu L, Xie H, Li Z, Wang F L, Wang W, Li Q. Contrastive learning models for sentence representations. ACM Transactions on Intelligent Systems and Technology, 2023, 14(4): 1–34. DOI: 10.1145/3593590
Jing M, Zhu Y, Zang T, Wang, K. Contrastive self-supervised learning in recommender systems: A survey. ACM Transactions on Information Systems, 2023, 42(2): 1–39. DOI: 10.1145/3627158
Wu L, Zheng Z, Qiu Z, Wang H, Gu H, Shen T, Chen E. A survey on Large Language Models for recommendation. World Wide Web, 2024, 27(5): 60–78. DOI: 10.1007/s11280-024-01291-2
Zhao Z, Fan W, Li J, Liu Y, Mei X, Wang Y, Li Q. Recommender systems in the era of Large Language Models (LLMs). IEEE Transactions on Knowledge and Data Engineering, 2024, 36(11): 6889–6907. DOI: 10.1109/TKDE.2024.3392335.
Liu P, Yuan W, Fu J. Pre-train, prompt, and predict: A systematic survey of prompting methods in natural language processing. ACM computing surveys, 2023, 55(9): 1–35. DOI: 10.1145/3560815
Yu H, Wu H, Fang X, Li M, Zhang H. SR-CIBN: Semantic relationship-based consistency and inconsistency balancing network for multimodal fake news detection. Neurocomputing, 2025, 635(28): 1–12. DOI: 10.1016/j.neucom.2025.129997
Xia B, Qin J, Han L, Gao A, Ma C. Knowledge filter contrastive learning for recommendation. Knowledge and Information Systems, 2024, 66(11): 6697–6716. DOI: 10.1007/s10115-024-02158-8
Ma J, Liu Y, Han M, Hu C, Ju Z. Propagation structure fusion for rumor detection based on node-level contrastive learning. IEEE Transactions on Neural Networks and Learning Systems. 2023, 35(12): 18649–18660. DOI: 10.1109/TNNLS.2023.3319661
Wang H, Li R, Jiang H, Tian J, Wang Z, Luo C, Tang X, Cheng MX, Zhao T, Gao J. Blendfilter: Advancing retrieval-augmented Large Language Models via query generation blending and knowledge filtering. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, 2024, 23(4): 1009–1025. DOI: 10.18653/v1/2024.emnlp-main.58
Botello J G, Frew L, Padilla J J, Weigle M C. Exploring Large Language Models for analyzing changes in Web archive content: a Retrieval-Augmented Generation approach. In 2024 IEEE International Conference on Big Data (BigData), 2024, 1(5): 2410–2418. DOI: 10.1109/BigData62323.2024.10826069
Sun P, Wu L, Zhang K, Chen X, Wang M. Neighborhood-enhanced supervised contrastive learning for collaborative filtering. IEEE Transactions on Knowledge and Data Engineering, 2023, 36(5): 2069–2081. DOI: 10.1109/TKDE.2023.3317068
Hosseini S M, Ebrahimi A, Mosavi M R, Shahhoseini H S. A novel hybrid CNN-CBAM-GRU method for intrusion detection in modern networks. Results in Engineering. 2025, 28(1): 107103–107109. DOI: 10.1016/j.rineng.2025.107103
Lyu Y, Li Z, Niu S, Xiong F, Tang B, Wang W. Crud-rag: A comprehensive Chinese benchmark for Retrieval-Augmented Generation of Large Language Models. ACM Transactions on Information Systems, 2025, 43(2): 1–32. DOI: 10.1145/3701228
Yu Y, Yin X. A hypersensitive intelligent filter for detecting explicit content in learning environments. Journal of Web Engineering, 2024, 23(1): 89–110. DOI: 10.13052/jwe1540-9589.2314
Li X. Design of a Web content personalized recommendation system based on collaborative filtering improved by combining k-means and LightGBM. Journal of Web Engineering, 2025, 24(2): 267–290. DOI: 10.13052/jwe1540-9589.2425

