A broad introduction to machine learning and deep learning, followed by their applications in gravitational-wave searches. The lecture then develops transformers, large language models, and AI agents, with emphasis on algorithm discovery, independent verification, and practical research workflows.