AI can optimize resource allocation by predicting healthcare needs and identifying areas that require more attention. For example, AI can analyze data to determine which regions are at higher risk for certain diseases and allocate vaccines or medical supplies accordingly.