Hyperspectral imaging (HSI) is one of the non-destructive quality assessment methods providing both spatial and spectral information. HSI in food quality and safety can detect the presence of contaminants, adulterants, and quality attributes, such as moisture, ripeness, and microbial spoilage, in a non-destructive manner by analyzing spectral signatures of food components in a wide range of wavelengths with speed and accuracy. However, analyzing HSI data can be quite complicated and time consuming, in addition to needing some special expertise. Artificial intelligence (AI) has shown immense promise in HSI for the assessment of food quality because it is so powerful at coping with irrelevant information, extracting key features, and building calibration models. This review has shown various machine learning (ML) approaches applied to HSI for quality and safety control of foods. It covers the basic concepts of HSI, advanced preprocessing methods, and strategies for wavelength selection and machine learning methods. The application of HSI to AI increases the speed with which food safety and quality can be inspected. This happens through automation in contaminant detection, classification, and prediction of food quality attributes. So, it can enable decisions in real-time by reducing human error at food inspection. This paper outlines their benefits, challenges, and potential improvements while again assessing the validity and practical usability of HSI technologies in developing reliable calibration models for food quality and safety monitoring. The review concludes that HSI integrated with state-of-the-art AI techniques has good potential to significantly improve the assessment of food quality and safety, and that various ML algorithms have their strengths, and contexts in which they are best applied.