Web mining involves discovering useful information from web data through three main types: web structure mining analyzes hyperlink structures between pages, web content mining extracts information from page contents, and web usage mining analyzes patterns from user interactions on websites. Swarm intelligence is used to model collective behavior of decentralized self-organized systems and has been applied to problems like routing, robotics, and optimization through approaches like ant colony optimization and particle swarm optimization that are inspired by behaviors of social insects like ants and birds.