A simple, cost-effective, and rapid method is desired to identify potential pathogen contamination in food products and thus prevent foodborne illnesses and outbreaks. This study combined artificial intelligence (AI) and optical imaging to detect bacteria at the microcolony stage within 3 h of inoculation.