# What Should I Wear Today? An IoT-Based Dress Assistant for the e-Society

Javier Gomez

<figure><img src="image_1.png" /></figure>

## To cite this version:

Javier Gomez. What Should I Wear Today? An IoT-Based Dress Assistant for the e-Society. 17th Conference on e-Business, e-Services and e-Society (I3E), Oct 2018, Kuwait City, Kuwait. pp.255-263, 10.1007/978-3-030-02131-3_23. hal-02274200

HAL Id: hal-02274200

https://inria.hal.science/hal-02274200

Submitted on 29 Aug 2019

HAL is a multi-disciplinary open access archive for the deposit and dissemination of scientific research documents, whether they are published or not. The documents may come from teaching and research institutions in France or abroad, or from public or private research centers.

L'archive ouverte pluridisciplinaire HAL, est destinée au dépôt et à la diffusion de documents scientifiques de niveau recherche, publiés ou non, émanant des établissements d'enseignement et de recherche français ou étrangers, des laboratoires publics ou privés.

<figure><img src="image_2.png" /></figure>

Distributed under a Creative Commons Attribution 4.0 International License
# What should I wear today? An IoT-based dress assistant for the e-Society

Javier Gomez<fnref n="1" />,<fnref n="2" />

**Abstract.** Technology is turning into an augmentation of our memory and an invisible assistant in our daily lives. These issues arise many challenges but also opportunities for researchers, developers and even, final users. In this paper we present an example of this revolution, through an example of an Internet of Things (IoT) based smart shoe cabinet. Besides the assistance provided for different collectives with special needs, this prototype represent the new opportunities on data management and consumer profiling that these technologies already provide.

**Keywords:** IoT · Recommender System · Ubiquitous Computing · Assistant Technologies · Human-Computer Interaction

## 1 Introduction

The Ubiquitous Computing term was coined by Mark Weiser in 1991 [25]. From that moment on, many problems and opportunities have arisen from that vision of a world rich in information and interaction. Ambient intelligence environments (also called smart environments) are one of the fields where Ubiquitous Computing can be naturally applied. We can define an active environment as a space limited by physical barriers, which is capable to sense and interact with its inhabitants.

These environments range from smart rooms to smart cities [3] and are equipped with different technologies. In the recent years, the society has experience an immersion on these technologies, under the umbrella term of Internet Of the Things (IoT) [13]. The arise of IoT came together with the corresponding use of massive data and analysis for different purposes, such as health [14], education[11], urban design [22] or business [10].

In parallel to the emerge of IoT, data-driven business models [7] arose as a result of the increasing number of data sources, such as social networks or mobile and wearable devices. New services, and their success, relies on deep data analysis of consumers' preferences and habits. Many of the most popular online commerce portals record user interaction, ask the user directly and rely on users' comments and valuations to improve their marketing campaigns, product recommendations and cross selling [9].

<footnote n="1">¹ Norwegian University of Science and Technology, Trondheim, Norway
javier.escribano@ntnu.no</footnote>

<footnote n="2">² Universidad Autónoma de Madrid, Madrid, Spain
jg.escribano@uam.es</footnote>
These examples suggest a direct relation and trend on distributed sensing and customised services (for example, in health or business opportunities). The more information and more accurate data we have from the users, the more customised services and products we can offer to them.

In this paper we present an example of IoT device to address these different objectives. Particularly, we designed and developed a prototype of an IoT-based shoe cabinet that provides a smart service to help users choose the most appropriate shoes in order to: first, help users in their daily lives basic activities. Second, track users health by means of direct monitoring of their selection and use of different shoes and finally, provide an example of a service for brands to understand and measure users habits, preferences and narrow their targets.

Moreover, these systems, such as smart assistants, are conceived as assistive technologies for people with disabilities in many occasions. For example, dress selection relies on social conventions but, for some collectives, these conventions are not clear and then need support to choose appropriate clothes regarding the occasion. Although it may seem as a trivial task, they are usually trained on them at home but also in education centres, due to the relation of social skills and inclusion. Particularly, this is very important for job training. Being active in the job market and economically independent are key for autonomy [23].

Therefore, there seems to be a fruitful niche in which different collectives may benefit: people with or without disabilities, but also clothing companies, through the study of the data collected. As an example, in this paper we present a smart shoe cabinet that recommend (and register) the most appropriate pair of shoes to the user, regarding different variables.

This paper is organised as follows: in Section 2 we review the current state of the art and the related technologies. After that, in Section 3 we present the design and development process of the system. Finally, in Section 4 we discuss the possibilities that this type of system offer and future implications.

## 2 Related work

Do-It-Yourself (DIY) approaches and IoT solutions are becoming popular. Probe of that is the market that arose among these technologies[18]. However, there is still a limited number of studies addressing the challenges and opportunities from different perspectives and for different collectives.

If we focus on smart dress systems, many of the solutions in the market are limited in terms of the technologies involved but also the target population addressed. For example, there are multiple applications for smartphones, such as “I style my self” [1], which allows the user to register her clothes and tag them (colour, occasion, preference). Based on this information, the system provides different outfits to inspire the user. Or “Whatoweather” [2], which provides outfit inspiration based on the weather at the user’s location and current trends. However, it does not take into consideration the available clothes of the user. In contrast, “Stylebook” [4] allows users to register their clothes, but the recommendations are based on previous selections and trends. It also includes a calendar
to plan the outfit. Another example was presented in [17]. This system uses advanced computer vision techniques to detect colours and Analytic Hierarchy Process (AHP) to provide intelligent recommendations. Finally, “MyDressRecommender” [19] is a smartphone application that registers user's clothes and provides recommendations based on them, the weather and the agenda of the user. It was initially designed to help people with cognitive disabilities.

Although the number of smart wardrobes reported in the literature is limited, we can find interesting projects, such as HBar [24], a combination of smart garments and hangers that aim to make the management and maintenance of a smart wardrobe easier. The work provides a great view of the challenges around the topic, such as costs and reliability. These two factors seem to be the most decisive issues to address when developing IoT systems.

Finally, one recent contribution is an assistive technology solution to help people with dementia, presented in [6]. This system helps the user to pick the clothes and guides her to put them on properly. To do that, a special cabinet equipped with different sensors, a Kinect camera and an iPad was designed and developed. Besides, thanks to the use of visual marks, the system can check and help in the dressing process, as it is able to track the user and the clothes.

# 3 An IoT-based smart shoe cabinet

Shoe selection is influenced by different factors, such as the weather, the activities that will take place during the day (and the social conventions around it) and personal preferences. In order to facilitate users to make the decision, we designed and developed a prototype of a smart shoe cabinet. Following the idea of the “Ambient Umbrella” [20], that provides visual-light feedback in case of rain, we augmented a regular shoe cabinet by including sensors and actuators, as well as a recommender system. The experience is based on subtle interaction [12] and DIY technologies.

## 3.1 System architecture

The system is modular and easily expandable. It is based on a client-server architecture and communication with third party services. A sketch of the architecture is included in Figure 1. The server is unique in the system, while clients can be a varied number of shoe boxes that are organised in show cabinets.

All the modules communicate over a regular WiFi network, so no extra infrastructure nor wiring is needed, rather than the power cord.

1. **Server:** it is the main component of the system. It has different modules in order to address the different tasks, including the management tool, the recommendation engine, connection to third party services and communication with the shoe boxes.

2. **Shoe cabinet:** understood as a piece of furniture to store shoes. It is composed of one or more shoe boxes. This logic level in the architecture allows the server to arrange the shoe boxes for different users or locations.
3. **Shoe box**: it is the unit of the system, either from the logic point of view and also from the physical. Each box is autonomous, this is, contains all the hardware to sensor the user interaction, provide the feedback and communicate with the server.

4. **Third party services**: the weather forecast and calendar events are outsourced to popular external services.

<figure><img src="image_3.png" /><figcaption>Fig. 1. System architecture schema.</figcaption></figure>

## 3.2 Hardware components

One of the main problems related to the acceptance of new technologies is the price. In order to address this possible limitation, we opted to use open and low cost components, such as Arduino and Raspberry Pi.

Therefore, we developed the server using a Raspberry Pi Model 3. This small computer has enough computational capabilities to execute all the modules and store the data. Its reduced price, but its varied possibilities and ports, turned it into a popular computer for different purposes. It is widely used in different contexts such as education[15], making [8] and even assistive technologies [5].

On the other hand, shoe boxes are based on commercial systems to storage shoes, augmented with technology. Every one contains the minimal hardware to operate. A picture of the prototype and the different technology pieces added to it can be found in Figure 2. As can be seen in the Figure, all the hardware and wiring has been hidden as much as possible and installed so shoe boxes can be piled.

- **NFC reader**: shoes are identified by a NFC tag stuck on them. These stickers are cheap, can be stuck inside the shoe, under the insole without disturbing the user and allows the system to identify which shoe ID is stored in the box. This way, users can put any pair of shoes on any empty box,
<figure><img src="image_4.png" /><figcaption>Fig. 2. Front and back view of the augmented shoe box.</figcaption></figure>

without registering additional information or keeping an order. The NFC reader is hidden on the bottom part of the box, so there is no risk of breaking it when putting the shoes inside.

- **Distance sensor:** a distance sensor installed on the top of the box allows the system to detect user interacting with the box. This is, when the user is getting a pair of shoes or putting them inside, and trigger the recommender system if necessary.

- **RGB LED-strip:** the recommendation is provided by means of a subtle and straightforward notification system, based on light colours. Red is to notify the user that the shoes she is taking are not recommended. Yellow, when the pair of shoes are not the best according to the context and green to notify her about the most appropriate ones. To provide these different notification colours, and RGB LED-strip is installed on the top of the box.

- **Switch sensor:** one of the boxes of the cabinet is equipped with an additional sensor (switch type) to detect user intention of interaction. It can be a light sensor or a magnetic switch that detects when the door of the wardrobe is opened. It is used as the trigger of the system.

- **Microcontroller:** every shoe box is autonomous thanks to the microcontroller with network capabilities installed on each one. It is in charge of all the tasks related to the box, this is, detecting using interaction and informing the server, turn on and off the LED strip according to the server's instructions and reading the shoes ID through the NFC reader and tag.

## 3.3 Data model

In order to provide a functional and extendable example of system, both users and shoes were modelled in the system as related entities. Moreover, data registries, past recommendations and user actions are also modelled and stored in the database, so future analysis may be possible, in order to extract user preferences and patterns of usage.

The most important feature of users is the location. With that information the system can query weather services to provide an accurate recommendation. Besides, users configuration is also stored. Apart from user name and password,
the system stores a “proactivity” flag for each user. This is, if the flag is active, the system will show the recommendation as soon as the user triggers the system (for example, by opening the door of the wardrobe where the shoe boxes are stored). In contrast, if the flag is not active, the system will wait for the user to interact (put the hand into one of the boxes to take a pair of shoes) to provide the feedback with the recommendation.

Shoes are modelled including the features that the recommender system needs to make the suggestion: the appropriate weather conditions to wear the shoes such as temperature (a range) and the weather (rainy/snowy/sunny, etc.) and the type of events in which the shoes can be worn, such as sports, formal events, work, etc. In this case, this attribute is a 3-tuplet, as there can be stored up to three different type of events (a list of priorities) for which the shoes are appropriate. Besides, the shoes' model also include a short description (for example, to provide the brand and the model or the colour), the NFC ID saved on the sticker and the availability.

To make the management task easier, a web-based interface is provided to users. Through this tool, they can add, remove or edit the shoes registered in the system, as well as analyse the system's logs.

## 3.4 Recommender system

The recommender system provides feedback to the user regarding the most appropriate pair of shoes for the day, considering the weather and the events on the user's agenda. Besides, every recommendation include, when possible, two pairs of shoes that fit the requirements, so we provide an extra variable to take part in the recommendation: user's preferences.

The engine is based on a decision tree and penalties. In this scenario, only shoes with active available flags are computed, and they are assigned a starting value of 0. After that, and according to the criteria, they receive different penalties. Once the criteria is applied, the shoes are sorted and the ones with lower values are selected. This schema is extracted and adapted from [19].

The first characteristic to evaluate is the event tag. With this computation we evaluate to what extend does the shoes fit the social conventions for the event, if the user has any on the day's agenda. The following penalties are applied in this case:

+0 if the type of the agenda event matches the 1st on the shoe's events list.

+4 if the type of the agenda event matches the 2nd on the shoe's events list.

+10 if the type of the agenda event matches the 3rd on the shoe's events list.

+25 if the type of the agenda event is not listed on the shoe's events list.

The second characteristic included in the computation is the temperature. In this case, the penalty depends on the difference between the suitable temperature range for the shoe and the expected temperature during the day:

+0 if the temperature is in the range of the shoes.
+5 if the temperature is in the range of the shoes ±1°C.

+7 if the temperature is in the range of the shoes ±2°C.

+11 if the temperature is in the range of the shoes ±3°C.

+25 if the temperature is in the range of the shoes ±4°C.

The third criteria is the weather. In this case we try to penalty wrong decisions, such as wearing summer shoes in a snowy day. Therefore, the scoring system is:

+0 if the weather is the weather of the shoes.

+2 if the weather is “rainy” and the shoes are for “snowy” weather.

+2 if the weather is “snowy” and the shoes are for “rainy” weather.

+4 in other case.

# 4 Challenges and opportunities

As mentioned before, DIY technologies are opening a market to new customers and services. Besides, they usually offer customisation options, as users are the end point of the fabrication process. This may arise interest on users who need some adaptation or customisation, but they can not afford ad-hoc developments.

In this sense, a system like the smart shoe cabinet presented in this paper would help people with special needs, by providing them cues to dress appropriately for the weather and the social conventions related to their events. This additional level of independence may impact on their daily lives and contribute to self-realisation, as it is usually trained in the family and labour training centres. This distributed assistance, in combination with registries and analysis may increase the autonomy of the user to levels that were difficult to reach previously, due to the need of continuous supervision of the caregiver.

On the other hand, this system can also impact on the health of the user. It is widely known and reported the need of wearing the appropriate shoes and change them often. Wearing the same shoes every day may produce inflammation, injuries, feet pain, shoe deformation and shoe-life decrease. Therefore, a proactive system that include historical usage on their recommendations may lead to a healthier use of the shoes.

Finally, accurate user profiling and usage patterns discovery are two of the most important topics in marketing nowadays. Therefore, a sensor that would provide precise user preferences and habits may be also interesting for companies in order to target an specific population and run market studies.

Regarding the challenges, one of the most important issues that may arise is the privacy of the user. As long as technologies evolve, users are more aware of their privacy and, thus, Governments try to protect them with new laws and standards. In this sense, data has to be anonymised from the core of the system and shared information should be restricted. Moreover, users rights to read, edit or erase their information have to be granted. However, this collecting data on shoe preferences and usage is not a new issue. Mobile apps such as Nike+ [16] or Runtastic [21] already offer the option to record this information and they use it also as an input for rewards.
# 5 Conclusions and future work

In this paper we have presented the opportunities that IoT developments present to the e-Society, by means of an example of a smart shoe cabinet system. These approaches, based on open and reduced price technologies, as well as being conceived as Do-It-Yourself projects, illustrate the opportunities that may arise to help, know and improve people lives. Additionally, the collection of massive data may produce a valuable source of information for brands to study and know users' preferences and habits, opening another window to provide personalised market strategies (marketing, offers, etc.)

However, the paper only include the conception and development of a first prototype. For further iterations, a participatory design process and evaluation will take place, addressing the open questions that arose in this work.

# Acknowledgements

This project has been carried out during the ternure of an ERCIM "Alain Bensoussan" fellow and partially funded by the project "eMadrid-CM: Investigación y Desarrollo de Tecnologías Educativas en la Comunidad de Madrid" (S2013/ICE-2715). The authors would like to acknowledge the support provided by the student Miguel A. Serrando during the design and development process.

# References

1. I style myself. http://www.istylemyself.com/ (2018), [Online; accessed 18-June-2018]

2. 4gotas & ZIBLEC: Whatowetter. https://play.google.com/store/apps/details?id=com.ziblec.wtw (2018), [Online; accessed 18-June-2018]

3. Augusto, J.C., Nakashima, H., Aghajan, H.: Ambient intelligence and smart environments: A state of the art. In: Handbook of ambient intelligence and smart environments, pp. 3–31. Springer (2010)

4. brain/Right brain, L.: Stylebook. http://www.stylebookapp.com/ (2018), [Online; accessed 18-June-2018]

5. Brennan, C.P., McCullagh, P.J., Galway, L., Lightbody, G.: Promoting autonomy in a smart home environment with a smarter interface. In: Engineering in Medicine and Biology Society (EMBC), 2015 37th Annual International Conference of the IEEE. pp. 5032–5035. IEEE (2015)

6. Burleson, W., Lozano, C., Ravishankar, V., Lee, J., Mahoney, D.: An assistive technology system that provides personalized dressing support for people living with dementia: Capability study. JMIR medical informatics 6(2) (2018)

7. Chen, H., Chiang, R.H., Storey, V.C.: Business intelligence and analytics: from big data to big impact. MIS quarterly pp. 1165–1188 (2012)

8. Cohen, J.: Maker principles and technologies in teacher education: A national survey. Journal of Technology and Teacher Education 25(1), 5–30 (2017)

9. Danescu-Niculescu-Mizil, C., Kossinets, G., Kleinberg, J., Lee, L.: How opinions are received by online communities: a case study on amazon. com helpfulness votes. In: Proceedings of the 18th international conference on World wide web. pp. 141–150. ACM (2009)
10. Dijkman, R.M., Sprenkels, B., Peeters, T., Janssen, A.: Business models for the internet of things. International Journal of Information Management **35**(6), 672–678 (2015)

11. Divitini, M., Giannakos, M.N., Mora, S., Papavlasopoulou, S., Iversen, O.S.: Make2learn with iot: Engaging children into joyful design and making of interactive connected objects. In: Proceedings of the 2017 Conference on Interaction Design and Children. pp. 757–760. ACM (2017)

12. García-Herranz, M., Olivera, F., Haya, P., Alamán, X.: Harnessing the interaction continuum for subtle assisted living. Sensors **12**(7), 9829–9846 (2012)

13. Gubbi, J., Buyya, R., Marusic, S., Palaniswami, M.: Internet of things (iot): A vision, architectural elements, and future directions. Future generation computer systems **29**(7), 1645–1660 (2013)

14. Islam, S.R., Kwak, D., Kabir, M.H., Hossain, M., Kwak, K.S.: The internet of things for health care: a comprehensive survey. IEEE Access **3**, 678–708 (2015)

15. Jamieson, P., Herdtner, J.: More missing the boatArduino, raspberry pi, and small prototyping boards and engineering education needs them. In: Frontiers in Education Conference (FIE), 2015 IEEE. pp. 1–6. IEEE (2015)

16. Nike: Nike+ run club. https://itunes.apple.com/us/app/nike-run-club/id387771637?mt=8 (2018), [Online; accessed 18-June-2018]

17. Peifeng, H., Yuzhe, C., Jingping, S., Zhaomu, H.: Smart wardrobe system based on android platform. In: Cloud Computing and Big Data Analysis (ICCCBDA), 2016 IEEE International Conference on. pp. 279–285. IEEE (2016)

18. Perera, C., Liu, C.H., Jayawardena, S., Chen, M.: A survey on internet of things from industrial market perspective. IEEE Access **2**, 1660–1679 (2014)

19. Rojo Carracedo, J.A.: "MyDressRecommender": un asistente de vestimenta Android para personas con limitaciones cognitivas. Master's thesis (2013)

20. Rose, D.: Enchanted objects: Design, human desire, and the Internet of things. Simon and Schuster (2014)

21. Runtastic: Runtastic pro. https://www.runtastic.com/ (2018), [Online; accessed 18-June-2018]

22. Sanchez, L., Muñoz, L., Galache, J.A., Sotres, P., Santana, J.R., Gutierrez, V., Ramdhany, R., Gluhak, A., Krco, S., Theodoridis, E., et al.: Smartsantander: Iot experimentation over a smart city testbed. Computer Networks **61**, 217–238 (2014)

23. Taylor, J.L., Hodapp, R.M.: Doing nothing: Adults with disabilities with no daily activities and their siblings. American journal on intellectual and developmental disabilities **117**(1), 67–79 (2012)

24. Toney, A.P., Thomas, B.H., Marais, W.: Managing smart garments. In: Wearable Computers, 2006 10th IEEE International Symposium on. pp. 91–94. IEEE (2006)

25. Weiser, M.: The computer for the 21st century. Mobile Computing and Communications Review **3**(3), 3–11 (1999)