Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2023 Feb 9;23(4):1935.
doi: 10.3390/s23041935.

A Real-Time Application for the Analysis of Multi-Purpose Vending Machines with Machine Learning

Affiliations

A Real-Time Application for the Analysis of Multi-Purpose Vending Machines with Machine Learning

Yu Cao et al. Sensors (Basel). .

Abstract

With the development of mobile payment, the Internet of Things (IoT) and artificial intelligence (AI), smart vending machines, as a kind of unmanned retail, are moving towards a new future. However, the scarcity of data in vending machine scenarios is not conducive to the development of its unmanned services. This paper focuses on using machine learning on small data to detect the placement of the spiral rack indicated by the end of the spiral rack, which is the most crucial factor in causing a product potentially to get stuck in vending machines during the dispensation. To this end, we propose a k-means clustering-based method for splitting small data that is unevenly distributed both in number and in features due to real-world constraints and design a remarkably lightweight convolutional neural network (CNN) as a classifier model for the benefit of real-time application. Our proposal of data splitting along with the CNN is visually interpreted to be effective in that the trained model is robust enough to be unaffected by changes in products and reaches an accuracy of 100%. We also design a single-board computer-based handheld device and implement the trained model to demonstrate the feasibility of a real-time application.

Keywords: convolutional neural network; k-means; real-time application; small data; smart vending machines; visual interpretation.

PubMed Disclaimer

Conflict of interest statement

The authors declare no conflict of interest.

Figures

Figure 1
Figure 1
(a) An overall view of a multi-purpose vending machine in which most racks are spirals. The mechanism of dispensing products by the spiral rack with (b) a potential failure case; and (c) a successful case.
Figure 2
Figure 2
An example of the processed image, and how the 4 classes are defined by the direction the red arrow points to.
Figure 3
Figure 3
Network architecture with feature maps of sizes {80, 40, 20, 10, 5}, and an example of the inference process. The image is labeled as “Left” and predicted as “Left”.
Figure 4
Figure 4
(a) The 2–D features where each point represents a type of product; (b) From the perspectives of both WCSS and silhouette, it is indicated that k is equal to 5; and (c) The clustering result when k is equal to 5.
Figure 5
Figure 5
The split result of our proposal. The dotted lines in the right two plots show the average silhouette values for the corresponding left two plots.
Figure 6
Figure 6
From top to bottom are the split results of the training data being biased towards (a) cluster 1; (b) cluster 3; (c) cluster 4; and (d) cluster 5, while the case of cluster 2 is omitted due to its similarity to cluster 1, as discussed in Section 3.3. The dotted lines in the right two plots show the average silhouette values for the corresponding left two plots. The worst case is shown in (b), where there is no intersection of clusters and the silhouette distributions are far apart.
Figure 7
Figure 7
Grad-CAMs for 4 classes (a) “Down”, (b) “Left”, (c) “Right”, and (d) “Up”. For each subplot, the input images are in the first row, the second row shows the results of our proposal, and the subsequent rows show the results of cases (ad).
Figure 8
Figure 8
Design block diagram.
Figure 9
Figure 9
Experimental setup of our handheld device for real-time inference and display.

References

    1. Gruber S., Buber R., Ruso B., Gadner J. The commodity vending machine. InForum Ware Int. 2005;2:32–42.
    1. Higuchi Y. History of the development of beverage vending machine technology in Japan. Natl. Mus. Nat. Sci. Surv. Rep. Syst. Technol. 2007;7:1–69.
    1. Yokouchi T. Today and tomorrow of vending machine and its services in Japan; Proceedings of the 2010 7th International Conference on Service Systems and Service Management; Tokyo, Japan. 28–30 June 2010; - DOI
    1. DeYoung R., Lang W.W., Nolle D.L. How the Internet affects output and performance at community banks. J. Bank. Financ. 2007;31:1033–1060. doi: 10.1016/j.jbankfin.2006.10.003. - DOI
    1. Goode M., Moutinho L. The effects of free banking on overall satisfaction: The use of automated teller machines. Int. J. Bank Mark. 1995;13:33–40. doi: 10.1108/02652329510082942. - DOI

LinkOut - more resources