The present application relates to a method, apparatus, device, and medium for detecting bad web pages based on
multimodality. The method includes: obtaining a
web page to be detected, determining text feature information consisting of the
web page title,
web page text, web page tag, and web page address, image feature information consisting of a web page screenshot, and position feature information consisting of the one-dimensional position and two-dimensional coordinates of the text image, fusing the three features to form a comprehensive vector of the text and image position, entering the multimodal self-
attention network, and converting the vector into a two-dimensional vector through
hidden layer linear mapping and nonlinear activation for normalization. When the probability of a bad web page in the two-dimensional vector is greater than the probability of a normal web page, the web page to be detected is determined to be a bad web page. The present application can more accurately identify bad content, prevent website designers from taking improper means to improve web page rankings, promote the purification of
the Internet environment, and ensure users'
network security.