Proper packaging and seals are instrumental to achieving the expected shelf life for many food products. A common problem is that small pieces of food gets trapped in the seal and increases the risk of air, bacteria and fungal spores to contaminate the product. By using hyperspectral technology these pieces can be identified even when they are not visible to the human eye. Hyperspectral imaging can provide real-time analysis of packages and be applied to complete production lines for increased food safety and reduced food waste.