1.1. Background
Population ageing is an important global issue [
1]. Countries are forced to develop long-term care-related strategic planning and resource reorganization [
2]. The rapidly ageing population has been the biggest concern for the Taiwanese government [
3]. Taiwan’s elderly population will reach 14.5% of the total population in 2018 to create an elderly society, while this will be as high as 20.6% in 2026, transforming Taiwan into an extremely elderly society [
4]. With the rapid growth in the elderly population, the resulting long-term demands and family care responsibilities will become increasingly heavy. In order to construct a long-term care system that meets the needs of the elderly as well as the physically and mentally handicapped, the Executive Yuan of Taiwan passed the “10-year long-term care program 2.0” on 29 September 2016 [
5]. Meanwhile, the Taiwan government strongly applied the use of various Internet of Things (IoT) applications in the “10-year long-term care program 2.0”. It is expected that the long-term care system will be improved through information and communication technology (ICT) support [
6,
7].
“Ten-year long-term care program 2.0” is divided into A, B, and C levels for service. A-level is institutional care; B-level is community care; and C-level is family care [
8]. This will be linked by information and communication technologies (ICTs) to overcome the dilemma of long-term care services having different standards and lacking integration.
Based on the vision of the “10-year long-term care program 2.0”, Taiwan is building an IoT system of long-term care in order to overcome the shortcomings of the existing long-term care services. Managing the nutrition of the elderly in home-based care was difficult when the 1.0 plan was implemented. Therefore, this was prioritized in the application of IoT technical assistance in this newer plan [
9]. This study uses the IoT-based image recognition system to design smart home-delivered meal services and to provide an integrated service to provide nutrition to home-based elderly individuals. During the long-term care program 1.0, it was difficult to audit the service. Implementing smart home-delivered meal services will help solve this long-standing problem.
At the time that meals are delivered, we will use this application to confirm that our service can be delivered to the right person in the right place and at the right time. At the same time, information about the elderly individual’s physical status, psychological status, and dining status can also be collected. Following this, we pass the relevant information through the IoT technology for analysis, calculation, and interpretation. Eventually, the results of analysis will be sent back to the long-term care 2.0 care management unit for case assessment, risk forecasting, and care management aspects.
The core principle of this IoT-based image recognition system for smart home-delivered meal services is the statistical histogram-based k-means clustering (HKMC) for image segmentation. Segmentation is a process of decomposing certain interesting objects or some constituting regions that have similar characteristics [
10,
11,
12]. The simplest methods of image segmentation involve thresholding. The thresholding method is a technique of segmenting an image depending on the intensity value of pixels and the intensity nature. We can segment objective or defective areas away from the background through a thresholding method when their gray-scale values are significantly different from the image’s background. This method can also be applied to the medical images of X-ray-computed tomography [
13,
14]. Due to the different structures of the human body possibly having a similar radiopacity, it is not easy to partition them through adjusting imaging parameters. The solution is the thresholding method of segmentation.
Until now, there have been several well-known thresholding methods, such as Otsu’s method [
15], the maximum entropy method [
16], k-means clustering (KMC) [
17,
18], and so on. K-means clustering [
8,
9] requires the input of every pixel one by one in every iterative process, which slows down the computational speed. When an image is larger than 25 megapixels, the segmentation results of the original KMC cannot be displayed in real time. For this reason, the time-consuming phenomenon of the k-means algorithm is regarded as a fatal shortcoming in our study.
Therefore, this study proposes the k-means clustering method based on the statistical histogram. Without altering the basic sense of the KMC method, we can retain the image segmentation effect of the algorithm in addition to enhancing the time and speed of image calculation. The present study used the image segmentation dataset of University of California Berkeley Electrical Engineering and Computer Sciences (UC Berkeley EECS) to perform an experiment, which compares the image segmentation effect and time rate of the original method with the ones of the k-means clustering method based on the statistical histogram. The results show that the method we propose is much faster than traditional k-means clustering. In the multi-level segmentation of the traditional k-means, more clusters can lead to a clearly slower speed due to the increase in the number of clusters. However, there is a significant increase when HKMC is applied. Although the clustering numbers of segmentation are the control variables, the operation time for HKMC is significant less when compared to that of the original k-means.