Abstract
Industry 4.0 recommends utilizing novel technologies such as artificial intelligence (AI) for automating industrial operations, and the sustainable development goals express targets to decrease food losses during the supply chain, which both lead to increased productivity. One of the situations in which AI methods such as deep learning can be used is the warehousing step, where before storing the fruits, the rotten fruits need to be separated from healthy products due to intensified ethylene from rotten products, which leads to spoiling of fresh fruits. Therefore, to automate this process and prevent the old phrase "one rotten apple spoils the whole barrel" from happening, a classification system was built by a hybrid of the deep convolutional neural network and particle swarm optimization algorithms with 99.76% precision, which distinguish six different types of perishable products such as apple, banana, bitter gourd, tomato, capsicum, and orange from their rotten ones.