Saudi officials are utilizing artificial intelligence to manage the influx of pilgrims during the hajj, employing over 15,000 cameras to monitor crowd movements and predict bottlenecks, thereby enhancing safety at this large-scale event. The technology also aids in guiding 20,000 buses for transportation between holy sites and assists in identifying unregistered pilgrims, with measures such as drones and thermal imaging cameras in place to secure the area. This proactive approach aims to prevent past tragedies, including deadly stampedes, by ensuring efficient crowd control and emergency response.