Keywords

1 Introduction

Every human being is born in an environment of different systems. These systems include the family, education, belief, and economic systems [10]. All these systems directly affect human behavior. The creation of human behavior models is so important. Human behavior is determined by biological, psychological, and sociocultural factors that are dependent on multiple variables, making the development of general behavior models complex [36]. Human behavior, on the other hand, evolves in a non-homogeneous manner over time [2]. For instance, the rate of muscle and bone loss increases with age and might approach 50%. To prevent undesirable situations, elderly individuals should be protected against muscle and bone loss while staying at home. Because especially after the age of 50, muscle loss called sarcopenia begins. People over 50 should move frequently to prevent muscle loss from occurring while they are sedentary at home. In addition, there is a risk of gaining more weight in a lifestyle with little movement. Over time, this weight gain brings with it joint disorders, sleep disorders, musculoskeletal disorders.

New opportunities have emerged in the industrial environment as a result of the continuous development of human society and the advancement of scientific and technological innovation and information technology [23]. Innovation in science and technology has significantly altered human society [27]. The Internet of Things (IoT) has emerged as a disruptive technology, with applications in smart cities, retail, agriculture, industrial automation, electronic-health (e-health), mobile-health (m-health), and a variety of other fields [26]. Interconnected wearable devices for physiological activity tracking are rapidly emerging, forming a new market segment known as Wearable IoT [22]. For improving life expectancy and healthcare access, behavior recognition using motion sensors is gaining traction over other systems such as e-healthcare and life-log analysis systems, especially in the healthcare domain [24].

Digital technology and data analytics advancements have created unparalleled potential to evaluate and change health behavior, accelerating science’s ability to comprehend and contribute to better health behavior and health outcomes [14]. The complexity and detail of human behavior is captured in digital health data, as well as the confluence of variables that influence behavior at any given time and the internal evolution of behavior over time. These data may contribute to translational science by supplying individualized and timely models of intervention delivery and discovery science by exposing digital signals of health/risk behavior [30]. Initiatives such as Obama’s 4P [35] (personalized, predictive, preventive, and participatory) are, in his words, a pioneer in a new model of patient-powered research that promises to accelerate biomedical discoveries and provide clinicians with new tools, knowledge, and therapies to select which treatments will work best for which patients.

Information systems supporting healthcare processes have significant difficulties in terms of design, implementation, and diagnosis since these processes are preeminently heterogeneous and multidisciplinary [11, 41]. Machine learning and pattern recognition techniques enable the development of models that represent human behaviors [15]. Although machine learning methods have contributed to individual tracking, they require complex iterations and have difficulty producing understandable visual results [12]. Process mining is a machine learning discipline that infers models from event logs and provides understandable human models by supplying significant human behavior details, which are typically in the form of workflows [13, 38]. Workflows are a simple representation of processes that can help human behavior analysis not only detect behavioral changes but also provide an understandable view of a person’s patterns and insights [1, 18].

Process mining is a new technique in this field that uses data from multiple sources to give detailed models and information on the processes that are actually being executed. Process mining has been used in various studies to identify human activities by treating human routes like a commercial process. Using significant human behavior details, typically in the form of workflows, it is a machine learning discipline that infers models from event logs and produces intelligible human models [12, 38]. Workflows are a straightforward depiction of processes that can help with human behavior analysis by not only spotting behavioral changes but also by providing a clear picture of a person’s habits and insights [18].

The movements of three retired men over the age of 50 who need sarcopenia treatment in their houses are observed in this study. Being active is very important in the treatment of sarcopenia. Therefore, the behavior of the patients at home (the state of being still) should be monitored.In order to better interpret these behaviors, process mining method was applied by using human activity data collected through sensors. Thus, the time spent in the rooms and the transitions between the rooms were examined. In the rest of the article, firstly, the studies in the literature are explained and the links between them are revealed in Sect. 2. The methodology of the study for understanding patient behavior is described in Sect. 3. The application is thoroughly explained in Sect. 4. Section 5 contains a discussion of the findings and their limitations.

2 Literature Review

Recently, there has been an increase in interest in employing smart home technology to find patterns of human behavior for applications that monitor health. The main goal is to study the behavioral traits of the residents in order to comprehend and foresee their actions that can signify health problems. In this part, we examine previous research in the literature that uses information from smart homes to study user behavior. Table 1 summarizes advantages and disadvantage of the mentioned studies.

Table 1. Studies based on human activity patterns

[8] focused on the detection of human activity in smart homes using data from smart meters. The paper proposes two approaches to analyze and detect user’s routines. The first technique employs a Semi-Markov-Model (SMM) for data training and habit detection, while the second provides an impulse-based method to identify activity in daily living (ADL) that focuses on the temporal analysis of concurrent activities. Similar to this purpose, [33] suggested using sensors classified according to the primary functions of the smart home to identify human activity for elderly people’s wellness monitoring. In order to establish the patterns of electrical appliance usage, the study collects preprocessed data from homes. A machine learning-based algorithm is then used to extract the main activities taking place inside the home. The problem is that to completely isolate the primary activities, the work needs to do two phases on the data.

Studies [4] and [5], used time series multi-label classifier to forecast appliance usage based on decision tree correlations, however, the study only considers the most recent 24 h and the sequential relationships between appliances. Hawarah et al. [21] used Bayesian networks to forecast occupant behavior from collected smart meters data. It suggests behavior as a service based on a single appliance, but does not offer a model that can be used in scenarios that occur in the real world. Gajowniczek and Zabkowski [19] applied hierarchical and c-means clustering to discover utilization trends while taking into account the ON and OFF status of the appliances. The study, however, does not take into account the length of appliance usage or the predicted variations in the order of appliance utilization.

Previous studies using process mining to understand the trajectories and individual behavior of people have been performed in nursing homes [18], in a shopping mall [14] and in the daily living of individuals [37]. Maarif [28] presented human daily activity patterns in a graphical presentation using process mining. By taking into account the connection between workload and service time, Nakatumba and van der Aalst [32] looked into how workload affects service times. Additionally, it was used to study the habits of people in operating rooms using 25-week data from nine individuals that was gathered using RFID technology [17]. When Maruster et al. [31] used process mining to connect insights with decision-making processes, they created a user behavior model for farmers’ behavioral patterns.

These studies show process mining can support to determine the personal behavior changes in specific day to day processes. However, human activities are not static and change in a not homogeneous way. The discovered trajectories by process mining algorithms are hard to interpret for experts. It creates the undesired spaghetti effect with high variability in human behaviors. One solution to overcome the spaghetti effect is to group similar behaviors [14]. Therefore, various grouping approaches including similar paths in process mining have been developed to decrease the spaghetti effect [6, 40].

3 Methodology

As can be seen in Fig. 1, where all the stages are given together, the solution presented in the article consists of four main components to track patients in healthcare domain . These stages are data collection, preprocessing of the data collected by process mining, extracting the behavior of the user and finally creating the behavior map.

Technological infrastructures (hardware and software) have been used in different methods that enable patient to be monitored in their home environments. Among these technologies used are a wide variety of technologies such as RFID [25], Bluetooth [34] and ZigBee [16]. Such systems have previously been used to support people’s activity recognition in smart homes [3], AAL solutions [7], and the design of activity primitives [29].

Phase 1 is the monitoring of human activities in all rooms of a house through a sensor located in each room. This study is based on a standard house model. It is thought that each house has five main rooms. These rooms; Bedroom, Living room, Kitchen, Bathroom and Hall. Sensors are installed and labeled in each room of individual residences. Thus, each position provided by the sensor corresponds to a single room and a single user. The sensors work with bluetooth technology. And a signal exchange is provided from these sensors every three seconds. If there is a signal from which sensor, it indicates that this person is in that room. Depending on the location of the wristband on the person’s arm, if data is also received from another sensor in the house, the measurement is made by taking the data of the closest signal.

Fig. 1.
figure 1

Methodology for understanding patient behavior

Phase 2, detailed models of human behavior are created using the data received from the System. And process mining techniques are used to extract meaningful information from these data. Event logs containing the information of the records of each user’s own ID are created. And it is saved in the dataset. An information table is created on the relevant day and time, when the person entered the room for the first time and how long they stayed in that room.

PatientID, a unique identifier (ID), was created to track every patient. The location shows the rooms in the smart home and is used to build patients’ paths. The dataset also contains timestamp data, including start and end times for each localization data. Sessions are separated by day by day.

We applied some filters to extract more information. The room duration filter alters that the occurrence duration must be more than one minute. Otherwise, it is assumed that the patient data is captured while walking instead of representing human behavior. After the room duration filter, we fuse successive patient data to bypass the disappearance. This filter adjusts the ending time of occurrence of a room by subtracting one second before the starting of the consequent event. Only the signals from the nearest location detected by iBeacon devices are assumed to be where the customer is. The other signals are ignored and can be considered missing data.

Utilizing data from the system, process mining techniques are utilized to provide detailed models and knowledge about human behaviour. An event log containing the pertinent information is created using the data extracted from these devices and can then be used in tools like ProM [39], PALIA Suite [9], and DISCO [20]. These tools produce a variety of models that permit detailed process visualizations.

A discovery algorithm called fuzzy miner is applied in process mining to determine the paths followed between rooms. Disco by Fluxicon was used to apply process discovery. It can also create variants that show the paths in the same order. The variants are used to understand the same patient behaviors in this study by decreasing the spaghetti effect.

Phase 3, process mining techniques are applied to the data set created with the records obtained from the event logs. The paths of the behaviors that the users (patients) follow as they move from one room in the house to another in a day are created. As a result, the paths followed by the users between the rooms are determined.

Phase 4, as a result of the applied techniques, the paths that follow the same or similar paths in line with the behaviors of the users are selected. And as a result, the behavior map of the users is created.

4 Case Study

This study used data collected from three different participants. When the time spent in each of the five rooms in the houses is examined, it is discovered that the room in which the most time is spent varies from day to day. According to the number of incidents that occurred in the rooms, the participants were mostly seen in the living room. The place where they were seen the least was the hall. While the number of occurrence in the bedroom and kitchen are nearly equal, the number of occurrence in the bathroom is the second lowest after the hall. Although the participants occurrence in the hall the least, they spent the most time in the hall with an average of 292 min. The average time spent in the bedroom is 213 min per week, the average time spent in the hall is 164 min per week, the average time spent in the living room is 131 min, and the average time spent in the kitchen is 36 min. Figure 2 shows the daily average amount of time spent and the number of occurrence in rooms.

Fig. 2.
figure 2

Daily comparison for average duration and number of occurrence

Furthermore, many different results were revealed based on analyses conducted on weekdays and weekends within the scope of the study. For all week, while the bedroom was the room where the most time was spent, the living room was the room with the most activity. The time spent at home and the activity in the rooms are higher on weekdays than on weekends. In addition to all these, while the average time spent in all rooms on weekdays is 77.2 min, the average time spent in all rooms on weekends is 45.90 min. The average number of movements seen in all rooms on weekdays is 7466 and on weekends the number of movements in all rooms is 2490. The map showing the movements during weekdays and weekends was given in Fig. 3.

Fig. 3.
figure 3

Weekly comparison for average duration and number of occurrence

It has been observed in Fig. 4 that on Thursdays, much more time is spent at home than on other days. The time spent by the participants in the living room and bedroom is much longer than the other days. In addition, the number of occurrence in the bedroom and kitchen is higher than the other days.

Fig. 4.
figure 4

Map showing movements on Thursday

On the other hand, Wednesdays were determined as the day spent least time at home with an average of 39 min. The time spent especially in the hall and bathroom seems very short on Wednesday. Although Wednesdays are the days spent at home the least, it stands out as the day spent the most in the kitchen. Wednesday’s map is shown in Fig. 5.

Fig. 5.
figure 5

Map showing movements on Wednesday

After Wednesday, Friday and Saturday are the days where the least time is spent at home. It is understood that people spend more time outside, especially on holidays and Fridays, the day before the holiday.

Participants who were tracked by sensors as part of the study were identified as P1, P2, and P3. When the activities of the participants are examined, the house of participant P1 has the most activity but the least amount of time spent. The P1 participant spends the most time in the kitchen. The P2 participant is the participant who spends the most time at home. P2 spent most of his time in the bedroom. The participant who spends the least amount of time at home is the P3 participant. The most of P3’s time was spent in the living room.

5 Conclusion and Discussions

In this study, it was aimed to understand and analyze the individual behavior of users (patients) in the home. Human behavior models were discussed with process mining techniques. Because of the sensors located in all the rooms of the users’ houses, it was determined how much time they spent in each room. Patient paths between the rooms were followed. By comparing the similarities in these ways, individual behavior maps of the people were drawn.

With the development of IoT technologies, it has become easy to collect data from people with wearable technologies. The analysis of human behavior is one of the important areas where this data collected through sensors can be used. Three people were given wristbands to wear as part of the study, and their daily activities were tracked and recorded in order to examine the patients’ at-home behaviors. The development of general behavioral models is complicated by numerous elements that affect human behavior. Process mining techniques have been selected to investigate unique behavioral patterns for these reasons. Sensors integrated into IoT devices ensure that the process proceeds quickly, reliably and smoothly with automatic monitoring and configuration features. The data is recorded by the devices so that it can be analyzed in real time.

As a result of the analyzes made within the scope of the study, many analysis were made about the behavior of the patients. The first of these findings is that the participants spend the majority of their time in their bedrooms and enter and leave the living room most frequently. It is seen that most of the time spent at home is spent in sleep. Considering the kitchen usage times, it is seen that it is 5.7 min on weekends and 4.1 min on weekdays. Despite the increase in the use of the kitchen on weekends, these times seem to be quite low. Based on this, it can be deduced that people are mostly fed from outside. It has been found that over the weekend, bathroom usage has practically doubled. There aren’t any noticeable differences when examining the use of hall.

For future studies, researchers can plan to analyze a more comprehensive map of individual behaviors by using advanced wristbands that can provide measurements of patients’ whole body movements, blood pressure, and heart rate. It would be more insightful to frame the study based on various demographic groups but the number of patients included in the research has limited his aim. Further studies can consider to extend the sample size. One of the limitations of the study is data loss due to possible network problems. In addition, the study was carried out with a limited number of people. Reliability of the results should be verified. For example, the time spent in the kitchen of 4–5 minutes is rather low compared to the amount of time someone needs to prepare a meal. It was concluded that the participants were fed from outside. However, it was not verified that the conclusion is correct.