{'fraction_non_alphanumeric': 0.02457218078104432, 'fraction_numerical': 0.009214567792891619, 'mean_word_length': 4.861182519280206, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
CNN-Based Inspection Module for Liquid Carton Recycling by the Reverse Vending Machine

To protect our planet, the material recycling of domestic waste is necessary. Since the COVID-19 pandemic began, the volume of domestic waste has surged overwhelmingly, and many countries suffered from poor waste management. Increased demand for food delivery and online shopping led to a huge surge in plastic and paper waste which came from natural resources. To reduce the consumption of resources and protect the environment from pollution, such as that from landfills, waste should be recycled. One of precious recyclable materials from household waste is liquid cartons that are made of high-quality paper. To promote sustainable recycling, this paper proposes a vision-based inspection module based on convolutional neural networks via transfer learning (CNN-TL) for collecting liquid packaging cartons in the reverse vending machine (RVM). The RVM is an unmanned automatic waste collector, and thus it needs the intelligence to inspect whether a deposited item is acceptable or not. The whole processing algorithm for collecting cartons, including the inspection step, is presented. When the waste is inserted into the RVM by a user after scanning the barcode on the waste, it is relocated to the inspection module, and the item is weighed. To develop the inspector, an experimental set-up with a video camera was built for image data generation and preparation. Using the image data, the inspection agent was trained. To make a good selection for the model, 17 pretrained CNN models were evaluated, and DenseNet121 was selected. To access the performance of the cameras, four different types were also evaluated. With the same CNN model, this paper found the effect of the number of training epochs being set to 10, 100, and 500. In the results, the most accurate agent was the 500-epoch model, as expected. By using the RVM process logic with this model, the results showed that the accuracy of detection was over 99% (overall probability from three inspections), and the time to inspect one item was less than 2 s. In conclusion, the proposed model was verified for whether it would be applicable to the RVM, as it could distinguish liquid cartons from other types of paper waste.