Due to their pleasant taste and nutritional value, nuts are consumed worldwide. They are also considered beneficial to health because they contain unsaturated fatty acids. However, unsaturated fatty acids can break down due to chemical and aging processes and provide a rancid taste. Therefore, the food industry needs a reliable method to identify rotten or rancid nuts within an otherwise perfect batch of a product.