<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Ambient Assisted Living and Personal Health Records - Requirements and Challenges</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Snezana Savoska</string-name>
          <email>snezana.savoska@uklo.edu.mk</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Blagoj Ristevski</string-name>
          <email>blagoj.ristevski@uklo.edu.mk</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Vladimir Trajkovik</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>University “Ss. Cyril and Methodius”</institution>
          ,
          <addr-line>Skopje, 1000, RN</addr-line>
          <country country="MK">Macedonia</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>University “St. Kliment Ohridski”</institution>
          ,
          <addr-line>ul. Partizanska bb, Bitola, 7000, RN</addr-line>
          <country country="MK">Macedonia</country>
        </aff>
      </contrib-group>
      <fpage>302</fpage>
      <lpage>316</lpage>
      <abstract>
        <p>We face enormous medical and health services demands due to the Covid-19 pandemic. This fact implies that the healthcare sector does not manage to cope with the considerable pressure from patients who experienced Covid-19, from which some fail to survive. The hospitals and medical practitioners everywhere were faced with significant stresses, and they were unable to cope with these problems. The patients were scared and unsatisfied with medical help, and the healthcare staff was exhausted everywhere. One of the solutions was implementing the concept of e-health with the usage of e-PHR of the patient and using some components of ambient assisted living (AAL), telemedicine, and telehealth. Many sensors for measuring vital signs of life are available on the market. Some applications can collect these data from IoT devices (sensors), wearables, or other devices that can help monitor the patient's healthcare condition in a pandemic situation. In this way, healthcare professionals can access patients' vital conditions and take actions such as e-prescription and e-referral. In the paper, we highlighted some aspects of possible healthcare improvement for the patients using AAL devices who can assist in improving access to medical and healthcare professionals, especially for the patients with chronic diseases, some disabilities, the elderly and children. This concept is based on the e-PHR concept, which understands that the patient owns their data and can access their e-Personal Health Record.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Ambient Assisted Living</kwd>
        <kwd>e-PHR</kwd>
        <kwd>telemedicine</kwd>
        <kwd>telehealth</kwd>
        <kwd>e-health</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>With the advent of the Covid-19 pandemic, the world became aware of the need
for e-health and services related to telehealth and telemedicine. The workload of the
health sector due to a pandemic has led to an increased demand for more health and
medical services worldwide. Particularly aefcted were those citizens who have
chronic diseases and some disabilities and need frequent health or medical care.
It was clear that the world’s moves toward e-health services are accompanied by
an intelligent environment that needs to be intensively developed to overcome the
gap between the required services and those delivered. Suppose we add to this that
more and more citizens are reaching old age, and thus their abilities are decreasing,
and they need more attention and help from health and social sta.f In that case, it
inevitably concludes that health and social workers are becoming more burdened.
They should use new technologies that can help improve the quality of everyday
life of this elderly population and relieve these employees by applying technology.</p>
      <p>
        It should be noted here that the number of citizens with some disability is
constantly growing, and thus the need to provide services for them is growing.
Due to these facts and the ageing of the world population, new policies, systems
and technologies are needed to support healthy ageing and people with
disabilities [
        <xref ref-type="bibr" rid="ref1 ref14 ref15">19, 20, 6</xref>
        ]. These policies may include the use of new technologies to track
activities of the older people to reduce their need for daily physical assistance and
thus extend their autonomous lives. Adherence to healthy habits, medical control
and proper nutrition, monitoring sleep or monitoring their vital parameters of life
can be helpful and, in this way, should solve the problems with the growing need
for health and social services. The second possibility is to monitor the health
status of citizens who are not very old and do not sufer from specific pathologies. It
can be a strategic approach to detect possible changes in their vital life parameters
and if react and be understood as a warning for some neurodegenerative diseases
at a very early stage [
        <xref ref-type="bibr" rid="ref24">29</xref>
        ].
      </p>
      <p>
        Let us consider that the lack of physical activity can be connected with
ageing and low social activity, depression and function of cognitive decrease [
        <xref ref-type="bibr" rid="ref2">7</xref>
        ].
We can state that Ambient Assisted Living (AAL) technologies have to be used
to intervene and support the elderly in diferent stages of ageing. AAL also can
provide disabled people with a high level of independent living. AAL aims to
introduce innovative methods, technologies and devices that should help people
from focus groups to connect, monitor their health, get some help and live
independently and without much help from others [
        <xref ref-type="bibr" rid="ref26 ref8">13, 31</xref>
        ]. AAL aims to develop
products and services that will help address problems diferently, find solutions to
the challenges of ageing, and help caregivers achieve their tasks.
      </p>
      <p>
        The AAL concept can include technologies with smart devices, wearables, and
part of the devices according to the concept of Smart cities that help this category of
citizens. These IoT sensors can be wearables / or static, IoMT class devices, various
auxiliary sensors and applications for monitoring metabolic processes, movement,
nutrition etc. Of course, all this data has to be collected, and for this reason, many
researchers worked on creating reference models for AAL. As a result, numerous
reference models and architectures have been developed [
        <xref ref-type="bibr" rid="ref25">30</xref>
        ].
      </p>
      <p>The context of usage of AAL – indoor/outdoor environment can be
restrictive for the technologies used. In addition, this usage influences whether they are
invasive or not, in which citizens’ category they are applied, and whether they are
people with chronic diseases, disabled persons or healthy persons. On the AAL
usage influence, did we have to get just warnings, do some vital signs parameters
have to be monitored, or do some correlations between data have to be detected as
time sequences and functionalities are implemented? Many choices can be made
for sensors and techniques with used methodologies in the diferent environments
and the diferent users.</p>
      <p>The scope of AAL systems is comprehensive and demands the inclusion of
high numbers of stakeholders, making them even more complex. However,
although several reference models (RMs) and reference architectures (RAs) have
been proposed, we found that the standardization legislation and technological
maturity in this field are still unsatisfactory in linking AAL systems with PHR
(personal health records) of the patient. PHR is the core part of monitoring
patients’ health conditions allowing them to receive health, social and medical
services using e-health, telemedicine and telehealth, i.e. gaining consultant help
from a distance if they need it.</p>
      <p>For this reason, the paper is structured as follows. In the first section af
ter the Introduction, the overview of related works highlights the AAL models
and architecture that proposed solutions for the domain, focusing on those who
connect AAL concepts with patients’ PHR and e-health services. The third
section highlights the prerequisites for using AAL services with PHR and e-health
services. This part highlights the ability of AAL systems that are very useful
for the patients with special needs, especially for the elderly, that have to be
provided with safe ageing and higher quality of life and health services through
e-health. The needs and data challenges for the proposed reference model suitable
for this AAL-PHR connection are considered in the fourth section. The data flow
has to be defined according to previously described rules and selected RM for
AAL-PHR. The fifth section provides a discussion and research results in order
to highlight the proposed model. In this part, increasing the citizens’ digital health
literacy to use the e-health services and create their PHR are considered. Diferent
alert algorithms that have to be activated in the case of need (if some vital signs of
life are out of normal parameters) are discussed in the paper. Concluding remarks
draw some research conclusions and give some future action recommendations.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Related works</title>
      <p>
        The substantial increase in the average age of the world population and the
growth of the number of elderly citizens inevitably increases the number of
citizens with reduced abilities for normal living, i.e., some disability or incapacity.
According to statistics, 8.5% of the population is over 65 years old [
        <xref ref-type="bibr" rid="ref14 ref15">19, 20</xref>
        ].
Therefore, it increases the need for caregivers, at home or out of home, centers
for rehabilitation and support centers that burdens the health sector to provide a
decent life for older citizens and a better quality of life with active and productive
ageing at afordable costs. For this reason, AAL is considered a socio-technical
system that provides welfare-oriented services primarily through network
artefacts embedded in AAL spaces [
        <xref ref-type="bibr" rid="ref4">9</xref>
        ].
      </p>
      <p>
        The scenarios that AAL have to be ofered are complex. A vital source of this
complexity is the built-in heterogeneity of the end-user population when
arranging their homes and beyond, the physical limitations of users, etc. [
        <xref ref-type="bibr" rid="ref6">11</xref>
        ]. The
design of these systems requires compliance with several characteristics and norms.
It needs to be personalized, adaptable to some capabilities, and responsive to
dynamic device changes. It should also be able to adapt to environmental
constraints. The AAL platform should have the ability to anticipate user preferences.
Perception sensors and actuators should be acceptable to the system [
        <xref ref-type="bibr" rid="ref17">22</xref>
        ], and
non-invasive and invisible devices are recommended [
        <xref ref-type="bibr" rid="ref23">28</xref>
        ]. The system must be
able to sense, reason and act in its environment with the ability to communicate
and interact [
        <xref ref-type="bibr" rid="ref4 ref6">9, 11</xref>
        ].
      </p>
      <p>
        Due to the importance of the concept, many eforts have been made to create
a reference model (RM) and reference architecture (RA) of the AAL domain to
provide a framework for the development of this type of system. Eforts have led
to the creation of multiple architectural models and architectures that have been
evaluated according to numerous criteria [
        <xref ref-type="bibr" rid="ref4">9</xref>
        ]. However, it is still concluded that
researchers cannot agree on the most appropriate RA due to a lack of
standardization, which is a crucial success factor for any infrastructure and data flow man
agement due to the heterogeneity of sources and their complex nature.
      </p>
      <p>
        However, the most appropriate architecture for integrating the AAL domain
with the PHR is the Feelgood [
        <xref ref-type="bibr" rid="ref5">10</xref>
        ] project’s architecture. It incorporates the RM of
PHR clinical IS, monitoring services, PHR services, measuring devices, portable
storage media, trusted software services, and Authorization, Authentication and
Accounting (AAA) services. The part represents the AAL domain for measurement
devices and portable media to collect and record data into their media and then in
PHR servers if FHIR (FH7) standards provide appropriate ontological support.
      </p>
      <p>
        However, this RA of Feelgood is not the most suitable according to the
evaluation [
        <xref ref-type="bibr" rid="ref4">9</xref>
        ], which shows that from all the analyzed, the RAFAALS RA for AAL
systems [
        <xref ref-type="bibr" rid="ref6">11</xref>
        ], based on Service-oriented architecture (SOA) has the most suitable
parameters [
        <xref ref-type="bibr" rid="ref6">11</xref>
        ]. The only architectural design that deals with the data flow, col
lection, processing and integration is RAFAALS. It is also easy to be understood.
It supports interoperability and can easily integrate new elements in it. The
architecture is independent of any material or software features. In addition, any of the
existing components are replaceable.
      </p>
      <p>
        Researchers are aware of the need for personalization in AAL systems, as
personalized environments may difer significantly from individual to general
population [
        <xref ref-type="bibr" rid="ref3">8</xref>
        ]. Therefore, some researchers propose collaborative filtering mod
els that enable highly personalized AAL data-driven models for the
networktraining unit. Such models can benefit indoor and outdoor activities related to
AAL [
        <xref ref-type="bibr" rid="ref7">12</xref>
        ], especially if previous data on their behavior are available to
personalize and prevent unusual situations.
      </p>
      <p>
        Many systems and methods have been developed for AAL systems to
monitor continuously biological, behavioral, or environmental data, implement
interventions, and assess their vital signs. By developing systems that collect data
from heterogeneous sensors and additional data from citizens, new information
can be obtained regarding physiological, psychological, emotional and
ecological conditions. [
        <xref ref-type="bibr" rid="ref7">12</xref>
        ] Behaviors analysis can be done by detecting anomalies while
comparing actual behavior with what is expected, and social activities and group
interactions can be monitored, whether it is in the home environment or
retirement neighborhoods, nursing homes, rehabilitation centers, or indoor or outdoor
settings. These are often activities such as nutritional guidance, physical exercise
promotion, cognitive practice, social activity, and positive care planning.
      </p>
      <p>
        The technologies used to develop AAL systems range from simple IoT and
IoMT devices to more sophisticated sensor networks of environmental sensors,
smart devices, camcorders, robots, and more. These diverse technologies use data
complex in size, heterogeneity, and sampling frequency and are often big data.
Data management inevitably has to involve complex communication protocols
with high-security controls because the sensitive personal data must be secured
and legal requirements must be met [2]. In addition, the energy consumption, the
possibility of detecting defects as well as interoperability between devices and
equipment vendors should be taken into account. Many more technical issues
should be considered when designing such a complex ALL-PHR structure [
        <xref ref-type="bibr" rid="ref4 ref5 ref6 ref7">3, 9,
10, 11, 12</xref>
        ].
      </p>
      <p>
        Although they are widespread, the diversity of technologies requires meeting
specific requirements, such as being non-invasive, readily accepted by citizens,
and not influencing users’ daily activities. In addition to the wide range of de
vices, four main categories of technologies can be distinguished. The first cat
egory consists of wearables that require user acceptance. The second one is less
invasive, smart objects or furniture, the next category is related to environmental
sensors, and the fourth one covers social assistance robots [
        <xref ref-type="bibr" rid="ref7">12</xref>
        ]. Wearables are
useful because they carry information, inside and outside. They detect
movement, behavior, vital signs of life, and possible falls (devices for monitoring vital
signs of life for various parameters, gyroscopes, etc.). The intention is to
incorporate them into mobile phones and smartwatches to free people from wearing
more special wearables. They provide valuable data for medical staf if they are
connected and send data into their PHR [
        <xref ref-type="bibr" rid="ref7">12</xref>
        ]. It should be noted that many eforts
have been made to create a variety of precise techniques for personalized
tracking of many SMART devices using intelligent methods and technological
frameworks to achieve efective monitoring of data. For example, that can be used to
obtain tools for alarming staf and caregivers who care for the people who wear
these devices [
        <xref ref-type="bibr" rid="ref13">18</xref>
        ].
      </p>
      <p>
        Every day’s SMART devices are objects that use IoT / IoMT and sensors as
well as processors to identify them and communicate with them, i.e. to be smart
and remotely controlled, providing residents of the home/institution with a wide
range of possibilities: detecting anomalies, preventing injuries, increasing safety,
or assessing health problems. For example, the first signs of cognitive impairment
can be easily seen in behavioral variations during meal preparation or stove
handling. Smart devices in the home and their use are limited only by the imagination
of designers and users’ requirements and have the potential to monitor the daily
behavior of users at home and their habits and detect inappropriate behavior.
They can be smart boxes from which medicines, carpets, refrigerators, doors,
pillows, and many other devices are taken to provide data using diferent methods
and algorithms for the users’ daily activities. If these data are available to health
and medical staf, they can quickly conclude the patient’s health status [
        <xref ref-type="bibr" rid="ref10 ref9">14, 15</xref>
        ].
      </p>
      <p>
        Environmental monitoring sensors are non-invasive devices that can overly
warn of air pollution, temperature or other parameters and are helpful in the AAL
environment. These include devices for analyzing radio frequency devices and
microwave sensors, intelligent optical systems and more that can help detect
behavior and aid in movement, sleep etc. Not all data from these sensors are needed
in the patients’ PHR. As a consequence, some data can be entered into auxiliary
databases. They will then be extracted with the help of intelligent data, if
necessary [
        <xref ref-type="bibr" rid="ref16">21</xref>
        ].
      </p>
      <p>
        Social assistance robots are a technology that is rarely used due to the still
high cost. However, it can be used to humanize some activities in hospitals,
rehabilitation centers. Wherever there is a need for frequent repetitive and quick
reactions, such as carrying food, lifting or grabbing objects, delivering, and releasing
medical staf. It is also important to personalize the human-robot interaction by
providing the robot with human-like social skills, such as natural language
processing, user emotion assessment, etc. [
        <xref ref-type="bibr" rid="ref11 ref7">12, 16</xref>
        ].
      </p>
      <p>
        All data collected from AAL systems have to be analyzed for AAL
situations. Some use data from heterogeneous sensors and advanced analysis
techniques such as Artificial Intelligence (AI), Support Vector Machines (SVMs), and
machine learning, which should lead to anomaly detection and intervention. The
cost of AAL systems largely depends on this. They generate vast amounts of data
to personalize systems and refine their reactions. Only some information obtained
from data using intelligent algorithms needs to be stored in the user’s PHR. Those
required for healthcare personnel include falls, loss of consciousness, balance,
physical inactivity, sensory measured vital signs of life, and similar data requiring
medical intervention [
        <xref ref-type="bibr" rid="ref12 ref7">12, 17</xref>
        ].
      </p>
      <p>
        However, it must be acknowledged that AAL systems play an essential
role in achieving greater well-being for the elderly and disabled by significantly
improving their quality of life and providing distance services, improving
autonomy, emergency treatment and comfort services [
        <xref ref-type="bibr" rid="ref13">18</xref>
        ]. Significant advances
in miniaturization, wireless technology, processing and computing power have
driven innovations in the healthcare sector, leading to the development of all
these related medical devices capable of detecting, recording, generating,
analyzing and transmitting data and creating information about warnings and
conditions. Together with the data itself, these devices create a useful infrastructure
of software applications, medical devices, and mobile applications connected to
various medical devices [
        <xref ref-type="bibr" rid="ref18">23</xref>
        ]. These health services can provide real-time
lifesaving monitoring in medical emergencies, such as asthma attacks, heart attacks,
diabetes, falls, and similar emergencies. With these systems, if connected to the
PHR available to the physician of their choice, the patient can also receive
assistance from remote locations by activating alerts and prompt intervention by
emergency medical teams. This can drastically improve patient care [
        <xref ref-type="bibr" rid="ref16 ref18">1, 21, 23</xref>
        ]
and even provide e-referrals and e-prescriptions to patients [
        <xref ref-type="bibr" rid="ref20">25</xref>
        ].
3.
      </p>
    </sec>
    <sec id="sec-3">
      <title>Prerequisites for connection of PHR and AAL data</title>
      <p>
        The model that integrates AAL data with the PHR of the patient assumes
that the data collected by the AAL systems are following the health standards
FH7 and all data collected should be following the ontology used as a basis for
creating standard PHR [
        <xref ref-type="bibr" rid="ref16">1, 21</xref>
        ]. Furthermore, due to the sheer volume of data
obtained from the many diferent types of AAL systems, estimated to be over 50
billion devices [
        <xref ref-type="bibr" rid="ref13">18</xref>
        ], it is necessary to typify the devices and their measurements.
Furthermore, it is important to investigate how that information afects the health
of users and how to proceed, whether to alert caregivers, relatives or loved ones.
      </p>
      <p>It is especially necessary to analyze data for measuring vital signs of life that
should alert medical personnel and caregivers to take swift action to save their
lives or provide emergency care. Because these data collected from AAL systems
are big data, it is often necessary to analyze them first using the big data analysis
tools and machine learning methods that are most suitable for this purpose. These
data can help detect the condition and the need to alarm the caregiver. These data
have to be recorded as additional data that can be accessed via PHR by selected
doctors or caregivers – medical staf [5].</p>
      <p>We believe that it is necessary to create additional data that would lead to
data detected as information from AAL systems. These additional PHR extended
functionalities that will collect data on user health-related situations detected
by AAL systems are important to healthcare professionals and patient care and
should be subject to detailed analysis. For example, suppose we consider the
wide range of AAL devices that collect data and alert users to the situation. In
that case, it can not be ignored that the flood of health professionals’ data from
such AAL generated data can lead to confusion, inability to analyze in time and
information flooding. Therefore, it is necessary to define priorities for those data
that mean life-threatening and alarming situations. Such requirements certainly
require an interdisciplinary approach to solving the problem of involving medics
and defining these priorities. Furthermore, to avoid information flooding in the
PHR of the patient, it is necessary to determine the data that will be stored in the
external tables that can be accessed through the PHR of the user.
4.</p>
    </sec>
    <sec id="sec-4">
      <title>Data in PHR and AAL – needs and challenges</title>
      <p>
        The data available to the patient and stored in the patient’s PHR are created
according to the FHIR standard ontology, which involves using patient data from
the patient-centric system. This cloud-based system [
        <xref ref-type="bibr" rid="ref16">1, 3, 21</xref>
        ] contains the
patient’s personal health data collected in various ways, by direct input into PHR,
through labs measurements, images from multiple medical devices, data entered
by the physician, scanned by the patient, data from doctor visits and diagnoses
according to the IC10 classification. The possibility of using other data is not lim
ited and depends on the patient’s needs. Even the information of public interest as
exposure data can be used by the patients and their selected physicians to assess
their health risk from ambient living conditions (Figure 1: High-level robotic
system model).
      </p>
      <p>
        An important issue for this paper is the part with the AAL Data Repository.
AAL data can be very extensive and collected in diferent formats. If it were pos
sible to obtain information on life-threatening situations for the patient, it would
mean that they would be received in the form of warnings, and alerts related to the
patient’s PHR from intelligent agents who would assess the situation according to
previously defined algorithms for generating alerts, depending on some devices
[
        <xref ref-type="bibr" rid="ref12 ref13">17, 18</xref>
        ]. Many examples use SVM algorithms and other machine learning
methods to detect behavior using diferent types of sensors and sensor networks [
        <xref ref-type="bibr" rid="ref19">24</xref>
        ].
      </p>
      <p>
        For the independent living of the elderly and maintaining a quality of life, one
of the key components of AAL applications is human activity recognition (HAR)
[
        <xref ref-type="bibr" rid="ref13">18</xref>
        ]. This can be done with one of the big data analysis tools. Emerging studies
have shown that high levels of accuracy in behavioral classifiers and the detec
tion of behavioral abnormalities can be achieved. Accelerometer and gyroscope
sensors were used on smartphones to collect data on the activities of the elderly
and caregivers and then make personalized models for each patient individually
[
        <xref ref-type="bibr" rid="ref19">24</xref>
        ]. These activities include motion detection, food tracking, social networking,
navigation and localization. There also possible to have comprehensive
monitoring of the elderly related to having a 3-tier architecture with perception, network
and application layers. Diagnostic information also can be included with sensors
for measuring cardiac parameters such as pressure, temperature, heart rate, and
ECG monitor associated with a mobile application. Mobile apps can record data
on a mobile device and then send them to the patient’s PHR. The selected doctor
by the patient has access to PHR, and if that data is outside the normal range, an
alert is sent to the doctor or caregiver. After receiving this alert, they can respond
immediately or in time and take appropriate action to save their life and improve
their life parameters [
        <xref ref-type="bibr" rid="ref19">24</xref>
        ].
      </p>
      <p>
        These are just a few examples of AAL usage that can be associated with
PHR and patient status warnings. The use of AAL technologies for warning and
improving the health care of patients in need is limited only by the imagination
of the designers of AAL-PHR systems. Some of these technologies are already
widely used in some hospitals, and the possibility of data connectivity and service
integration is increasing every day [
        <xref ref-type="bibr" rid="ref13 ref16 ref19">24, 18, 21</xref>
        ].
      </p>
    </sec>
    <sec id="sec-5">
      <title>5. Results and discussion</title>
      <p>
        The model from Figure 1: High-level robotic system model [
        <xref ref-type="bibr" rid="ref16">1, 3, 21</xref>
        ]
preparation is planned to be implemented in 4 steps (Figure 1: High-level robotic
system model): First step is the definition of the sensor infrastructure. The second
step is planning the database structure – the repository where it is planned to store
the data collected by the sensors. The third step is the analysis of the necessary
AAL actions that are important to alert them to and the fourth step is the
evaluation of the patient behavior, which is the subject of interest and with whose PHR
we want to relate the data from the AAL structure [
        <xref ref-type="bibr" rid="ref13">1, 18</xref>
        ]. According to AAL
systems detections, the alert of the responsible staf or the selected doctor is trig
gered by an intelligent agent, software that is triggered by the appearance of
indicators for the state in the PHR structure. Details for preparation steps for creating
the model presented in Figure 1: High-level robotic system model are shown in
Figure 1: High-level robotic system model.
      </p>
      <p>
        The first step defines the needs of AAL sensors for a specific patient. In this
step, the needed sensors for this patient are defined, depending on his chronic
disease or motor impairments or some other problems. In this step, the
functionalities that have to be covered and the needed sensors for measuring vital signs of
life have to be defined. Examples of this type of AAL system can be seen in [
        <xref ref-type="bibr" rid="ref19">24</xref>
        ],
where conditions are determined using infrared sensors to detect the patient’s
condition and movement. This step is essential to set up the necessary
infrastructure and define the data collection in the next phase. The usual structure of re
positories for data collection for some parts related to PHR data is determined by
the FHIR standard ontologies available for use for medical and health purposes.
      </p>
      <p>
        Collecting data in some big data formats for many of the sensory data is an
important part of being used to identify the behaviour of a specific PHR own
er using artificial intelligence, machine learning, and other AI methods used to
detect normal and abnormal behaviour of the patient or his vital parameters of
life. In the third step, it is necessary to define the conditions that will be subject
to warning of the selected doctor or caregivers and which should be defined as
changing states of indicators in PHR to activate the ALERT and to warn the
person responsible for providing care or the selected physician who has access to the
patient’s PHR [
        <xref ref-type="bibr" rid="ref19 ref2">24, 7</xref>
        ].
      </p>
      <p>The fourth step concerns the personalization of each patient’s behaviour and
the development of a specifically tailored model for each patient. To adjust the
parameters of a particular patient and his behavioural parameters to normal and
ability to detect anomalies, a big data analysis is needed from the data collected
by the machine learning methods and other AI methods that should lead to the
specific set of settings of its parameters that should alert for disturbance of its
normal state. This means that the mechanism AAL -data analysis – alert –
sending data about the condition – time of intervention is activated immediately or a
prediction for future deterioration of the condition and the period in which that
deterioration will occur. The intelligent agent triggers and alerts the people in
charge – caregivers or chosen doctors who immediately intervene for the patient
and decide on future activities based on the analysis of the results obtained from
the specific AAL systems. This AAL system can or cannot be part of the PHR, but
is accompanied and available for analysis by selected physicians and caregivers.</p>
      <p>
        The proposed model has a patient-centric architecture and strong AAA
security Keycloak server control. This strong Authentication control provides cross
border healthcare usage, routing patients to a suitable database server that
acquires patients’ data in the country of living. The patient can grant permission for
their PHR to the selected medical staf, enabling e-health services over distance.
The patient can use e-prescription and e-referral services [
        <xref ref-type="bibr" rid="ref20">25</xref>
        ] and services for
assessing the risk from public environmental services for pollutants [
        <xref ref-type="bibr" rid="ref21">26</xref>
        ]. The
patient and their doctor can also use labs and biomedical data from the patient’s
EHR, provided by state Hospital Information systems (scanned documents saved
into cloud-based patient’s PHR). Besides this, they can have a part of data
connected with sensors that measure their vital signs of life and data from AAL
system that can trigger alerts and demand the caregivers/doctors’ intervention. It
is done because of the patient’s dangerous condition in which the patient is in
the moment. For the patients with some chronic diseases, alerts should provide
life-saving and rapid caregivers/ doctors intervention. This model has to provide
safe living conditions for the elderly, disabled citizens, and patients with chronic
illnesses.
      </p>
      <p>
        This approach requires a complex AAL structure, support servers,
application and data service. Still, some of them can be done in a fog-computing
environment on the local network [
        <xref ref-type="bibr" rid="ref23">28</xref>
        ]. Such an analysis is related to the cost of such
systems and the benefits that can be obtained by people who need monitoring
and improved quality of life for independent living under supervision. In the long
term, the investment pays of because it frees up many caregivers and physicians
who can serve a much larger number of patients remotely in their homes. In this
way, they will yet have control over their vital signs of life, thus including AAL
systems in the control process and their connection to PHR available to those
caring for the patient.
      </p>
    </sec>
    <sec id="sec-6">
      <title>6. Conclusion</title>
      <p>The psychosocial factors of human-technology interaction, communication,
and their usage have to be considered when developing AAL systems and
connecting them with the PHR of the users. Together with data usage and processing
of AAL data, these factors are worthy of further investigation by the scientific
community. The aim is to develop complex, intelligent systems for independent
living support, improvement of healthcare services, tele monitoring and
consultation, social participation and well-being.</p>
      <p>In this paper, some attempts to propose a PHR-AAL model that will connect
AAL data with alerts that are important for the health status of PHR owners are
made according to the previously made analysis of PM and RA. This type of
communication should be done at the necessary level of alertness for a
condition that should be predefined and deviate from the patient’s normal behavior –
whether it is movement or some vital signs of life with wearables or IoMT / IoT
sensors measurement. The trend of deviations from normal behavior should be
detected in advance, and algorithms have to be trained using machine learning or
other intelligent methods. Alarms should be predefined, and the alert’s location
should be determined to provide an immediate response to Caregivers / Selected
doctors and allow an immediate response if needed. The need for this connection
is increasing due to the workload of the medical staf due to the pandemic and the
growing number of chronically ill, elderly and disabled citizens. They all need
regular monitoring to ensure independent living with the help of AAL systems
that provide multiple forms of monitoring of their health, condition and need for
health and social care.</p>
      <p>
        The model involves creating a patient-centric health record in a system in
which the patient owns the data and is the one who shares their health record with
the selected doctor that they decide to give grant permission and will need to take
care of their health. This model can be connected to health institutions that assist
patients with special needs and reap the benefits of the symbiosis of e-health,
PHR, telemedicine, AAL and remote assistance using IoMT, Mobile applications
and SMART devices related to the cloud with established security measures and
protection following the law on the protection of personal information [2, 5]. The
use of data from public data services does not require any higher security
mechanisms. It can be used to assess the risk of environmental conditions as exposome
data, at the place of residence [
        <xref ref-type="bibr" rid="ref21">4, 26</xref>
        ]. This concept may include the use of known
ontologies that may contribute to the integration of environmental data of
different nature as exposures [
        <xref ref-type="bibr" rid="ref22">27</xref>
        ] and the use of genetic information about users
associated with diferent diseases and the quantification of the impact on each.
Of course, such research requires multidisciplinary teams of medical researchers,
specialists, geneticists, immunologists, and data scientists who can connect data
and ontologies, define links, and detect human behavior for each specific PHR.
      </p>
    </sec>
    <sec id="sec-7">
      <title>7. References</title>
      <p>S.Snezana et al., Cloud-Based Personal Health Records Data Exchange
in the Age of IoT: The Cross4all Project. In: Dimitrova V., Dimitrovski I.
(eds) ICT Innovations 2020. Machine Learning and Applications;
Communications in Computer and Information Science, vol 1316. Springer, Cham
(2020) https://doi.org/10.1007/978-3-030-62098-1_3.</p>
      <p>S. Savoska et al,., Design of Cross Border Healthcare Integrated System
and its Privacy and Security Issues, In Proceedings of Computer and
Communications Engineering, Workshop on Information Security (2019), 9th
Balkan Conference in Informatics, Volume 13, 2/2019, pp. 58–64.
S. Savoska, I. Jolevski, Architectural Model of e-health PHR to Support the
Integrated Cross-border Services, In proceedings of ISGT conference Sofia
(2018), pp. 42–49.</p>
      <p>S. Savoska et al., Towards Integration Exposome Data and Personal Health
Records in the Age of IoT. In: 11th ICT Innovations Conference (2019) 17–
19 October, Ohrid, Republic of Macedonia. pp. 237–246.</p>
      <p>A. Bocevska et al., Cross4all Project Model of Integration of Healthcare
Data Using the Concepts of EHR and PHR in the Era of IoT. In: The 14-th
conference on Information Systems and Grid Technologies, May 28–29
(2021), Sofia, Bulgaria.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>S.</given-names>
            <surname>Savoska</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Ristevski</surname>
          </string-name>
          ,
          <article-title>Towards Implementation of Big Data Concepts in a Pharmaceutical Company</article-title>
          .
          <source>Open Computer Science (2020) Jan</source>
          <volume>1</volume>
          ;
          <issue>10</issue>
          (
          <issue>1</issue>
          ):
          <fpage>343</fpage>
          -
          <lpage>56</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>B.</given-names>
            <surname>Ristevski</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Savoska</surname>
          </string-name>
          ,
          <article-title>Healthcare and medical Big Data analytics. applications of Big Data in Healthcare (</article-title>
          <year>2021</year>
          ) Academic Press, pp.
          <fpage>85</fpage>
          -
          <lpage>112</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>E.</given-names>
            <surname>Zdravevski</surname>
          </string-name>
          et al.,
          <source>Importance of Personalized Health-Care Models: A Case Study in Activity Recognition. Stud Health Technol Inform</source>
          . (
          <year>2018</year>
          )
          <volume>249</volume>
          :
          <fpage>185</fpage>
          -
          <lpage>188</lpage>
          . PMID:
          <volume>29866979</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>A.</given-names>
            <surname>El Murabet</surname>
          </string-name>
          et al.,
          <article-title>Ambient Assisted Living system's models and architectures: A survey of the state of the art</article-title>
          .
          <source>Journal of King</source>
          Saud University - Computer and Information Sciences,
          <volume>32</volume>
          (
          <issue>1</issue>
          ),
          <fpage>1</fpage>
          -
          <lpage>10</lpage>
          . https://doi.org/10.1016/j. jksuci.
          <year>2018</year>
          .
          <volume>04</volume>
          .009 (
          <year>2020</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>H.</given-names>
            <surname>Hietala</surname>
          </string-name>
          et al.,
          <article-title>Feelgood - Ecosystem of PHR based products</article-title>
          and
          <source>services (Research report No. VTT-R-07000-09)</source>
          .
          <source>Finland</source>
          (
          <year>2009</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>A.</given-names>
            <surname>El</surname>
          </string-name>
          murabet et al.,
          <article-title>Towards an SOA Architectural Model for AAL-Paas Design and Implementation Challenges</article-title>
          .
          <source>Int. J. Adv. Comput. Sci. Appl. IJACSA 8</source>
          . https://doi.org/10.14569/IJACSA.
          <year>2017</year>
          .
          <volume>080708</volume>
          (
          <year>2017</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>G.</given-names>
            <surname>Cicirelli</surname>
          </string-name>
          et al.,
          <article-title>Ambient Assisted Living: A Review of Technologies, Methodologies and Future Perspectives for Healthy Aging of Population</article-title>
          .
          <source>Sensors (Basel)</source>
          .
          <source>(2021) May</source>
          <volume>19</volume>
          ;
          <volume>21</volume>
          (
          <issue>10</issue>
          ):
          <fpage>3549</fpage>
          . DOI:
          <volume>10</volume>
          .3390/s21103549. PMID: 34069727; PMCID:
          <fpage>PMC8160803</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>A.</given-names>
            <surname>Jayatilaka</surname>
          </string-name>
          et al.,
          <article-title>HoTAAL: Home of social things meet ambient assisted living</article-title>
          .
          <source>In Proceedings of the IEEE International Conference on Pervasive Computing and Communication Workshops</source>
          , Sydney,
          <string-name>
            <surname>NSW</surname>
          </string-name>
          , Australia,
          <fpage>14</fpage>
          - 18
          <string-name>
            <surname>March</surname>
          </string-name>
          (
          <year>2016</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>F.</given-names>
            <surname>Muheidat</surname>
          </string-name>
          , L. Tawalbeh,
          <article-title>In-Home Floor Based Sensor System-Smart Carpet to Facilitate Healthy Aging in Place (AIP)</article-title>
          .
          <source>IEEE Access</source>
          (
          <year>2020</year>
          ),
          <volume>8</volume>
          ,
          <fpage>178627</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [15]
          <string-name>
            <given-names>G.A.</given-names>
            <surname>Oguntala</surname>
          </string-name>
          et al.,
          <article-title>SmartWall Novel RFID-Enabled Ambient Human Activity Recognition Using Machine Learning for Unobtrusive Health Monitoring</article-title>
          . IEEE Access,
          <article-title>(</article-title>
          <year>2019</year>
          )
          <volume>7</volume>
          ,
          <fpage>68022</fpage>
          -
          <lpage>68033</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [16]
          <string-name>
            <given-names>N.</given-names>
            <surname>Ramdani</surname>
          </string-name>
          et al.,
          <string-name>
            <surname>A Safe</surname>
          </string-name>
          ,
          <article-title>Efficient and Integrated Indoor Robotic Fleet for Logistic Applications in Healthcare and Commercial Spaces: The ENDORSE Concept</article-title>
          .
          <source>In Proceedings of the 20th IEEE International Conference on Mobile Data Management (MDM)</source>
          ,
          <string-name>
            <surname>Hong</surname>
            <given-names>Kong</given-names>
          </string-name>
          , China,
          <fpage>10</fpage>
          -
          <lpage>13</lpage>
          June (
          <year>2019</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [17]
          <string-name>
            <given-names>K.</given-names>
            <surname>Mandaric</surname>
          </string-name>
          et al.,
          <article-title>Anomaly Detection Based on Fixed and Wearable Sensors in Assisted Living Environments</article-title>
          .
          <source>In Proceedings of the International Conference on Software, Telecommunications and Computer Networks (SoftCOM)</source>
          , Split, Croatia,
          <fpage>19</fpage>
          -21
          <string-name>
            <surname>September</surname>
          </string-name>
          (
          <year>2019</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [18]
          <string-name>
            <given-names>L.</given-names>
            <surname>Syed</surname>
          </string-name>
          , et al.,
          <article-title>Smart healthcare framework for ambient assisted living using IoMT and big data analytics techniques, Future Generation Computer Systems (</article-title>
          <year>2019</year>
          ), https://doi.org/10.1016/j.future.
          <year>2019</year>
          .
          <volume>06</volume>
          .004.
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          <source>[19] The World Bank DATA [WWW Document]</source>
          ,
          <year>2010</year>
          .
          <article-title>World Bank DATA</article-title>
          . URL https://data.worldbank.org/indicator/SP.POP.
          <year>65UP</year>
          .TO?end=
          <year>2016</year>
          <article-title>&amp;st art=1980&amp;view=chart.</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [20]
          <string-name>
            <given-names>United</given-names>
            <surname>Nations</surname>
          </string-name>
          ,
          <year>2015</year>
          . World Population Ageing,
          <string-name>
            <given-names>Economic &amp; Social</given-names>
            <surname>Affairs. United Nations</surname>
          </string-name>
          , U.N Department of Economic and Social Affairs, New York.
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [21]
          <string-name>
            <given-names>S.</given-names>
            <surname>Savoska</surname>
          </string-name>
          et al. (
          <year>2022</year>
          ).
          <article-title>Integration of IoMT Sensors' Data from Mobile Applications into Cloud-Based Personal Health Record</article-title>
          . In: Antovski,
          <string-name>
            <given-names>L.</given-names>
            ,
            <surname>Armenski</surname>
          </string-name>
          ,
          <string-name>
            <surname>G</surname>
          </string-name>
          . (eds) ICT Innovations (
          <year>2021</year>
          ),
          <article-title>Digital Transformation</article-title>
          .
          <source>Communications in Computer and Information Science</source>
          , vol
          <volume>1521</volume>
          . Springer, Cham. https://doi.org/10.1007/978-3-
          <fpage>031</fpage>
          -04206-5_
          <fpage>13</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [22]
          <string-name>
            <given-names>A.</given-names>
            <surname>Atanasov</surname>
          </string-name>
          et al.,
          <article-title>Testbed environment for wireless sensor and actuator networks</article-title>
          ,
          <source>Fifth International Conference on Systems and Networks Communications. IEEE</source>
          ,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          [23]
          <string-name>
            <given-names>N.</given-names>
            <surname>Tabakovska-Blazheska</surname>
          </string-name>
          et al.,
          <article-title>Implementation of Cloud-Based Personal Health Record Integrated with IoMT</article-title>
          .
          <source>In: The 14-th conference on Information Systems and Grid Technologies, May</source>
          <volume>28</volume>
          -
          <fpage>29</fpage>
          (
          <year>2021</year>
          ) Sofia, Bulgaria.
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          [24]
          <string-name>
            <given-names>E.</given-names>
            <surname>Zdravevski</surname>
          </string-name>
          et al.,
          <source>Importance of Personalized Health-Care Models: A Case Study in Activity Recognition. Stud Health Technol Inform</source>
          .
          <year>2018</year>
          ;
          <volume>249</volume>
          :
          <fpage>185</fpage>
          -
          <lpage>188</lpage>
          . PMID:
          <volume>29866979</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          [25]
          <string-name>
            <given-names>D.</given-names>
            <surname>Kitanovski</surname>
          </string-name>
          et al,
          <article-title>Implementation of a Cloud-Based Personal Health System for Cross-Border Collaboration</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          [26]
          <string-name>
            <given-names>M.</given-names>
            <surname>Radezova</surname>
          </string-name>
          Trifunovska et al.,
          <article-title>Environmental Data as Еxposome and Оpportunity of Combining with Cloud-Based Personal Health Records</article-title>
          .
          <source>In: The 14-th conference on Information Systems and Grid Technologies, May</source>
          <volume>28</volume>
          -
          <fpage>29</fpage>
          (
          <year>2021</year>
          ) Sofia, Bulgaria.
        </mixed-citation>
      </ref>
      <ref id="ref22">
        <mixed-citation>
          [27]
          <string-name>
            <given-names>S.</given-names>
            <surname>Savoska</surname>
          </string-name>
          et al.,
          <article-title>Toward the creation of an ontology for the coupling of atmospheric electricity with biological systems</article-title>
          .
          <source>Int J Biometeorol</source>
          <volume>65</volume>
          ,
          <fpage>31</fpage>
          -
          <lpage>44</lpage>
          (
          <year>2021</year>
          ). https://doi.org/10.1007/s00484-020-02051-3.
        </mixed-citation>
      </ref>
      <ref id="ref23">
        <mixed-citation>
          [28]
          <string-name>
            <given-names>A.</given-names>
            <surname>Dimitrievski</surname>
          </string-name>
          et al.,
          <source>Fog Computing for Personal Health: Case Study for Sleep Apnea Detection. The 13-th conference on Information Systems and Grid Technologie</source>
          ,
          <string-name>
            <surname>Bulgaria</surname>
          </string-name>
          (
          <year>2020</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref24">
        <mixed-citation>
          [29]
          <string-name>
            <given-names>T.</given-names>
            <surname>Loncar-Turukalo</surname>
          </string-name>
          et al.,
          <source>Literature on Wearable Technology for Connected Health: Scoping Review of Research Trends</source>
          , Advances, and
          <string-name>
            <surname>Barriers</surname>
            ,
            <given-names>J Med</given-names>
          </string-name>
          <string-name>
            <surname>Internet Res</surname>
          </string-name>
          (
          <year>2019</year>
          );
          <volume>21</volume>
          (
          <issue>9</issue>
          ):e14017, DOI: 10.2196/14017.
        </mixed-citation>
      </ref>
      <ref id="ref25">
        <mixed-citation>
          [30]
          <string-name>
            <surname>R. I. Goleva</surname>
          </string-name>
          et al.,
          <article-title>“AAL and ELE platform architecture”. Ambient assisted living and enhanced living environments</article-title>
          .
          <source>Butterworth-Heinemann</source>
          ,
          <year>2017</year>
          .
          <fpage>171</fpage>
          -
          <lpage>209</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref26">
        <mixed-citation>
          [31]
          <string-name>
            <surname>I. Chouvarda</surname>
          </string-name>
          et al.,
          <article-title>Connected health services: framework for an impact assessment</article-title>
          .
          <source>Journal of medical Internet research 21.9</source>
          (
          <year>2019</year>
          ):
          <fpage>e14005</fpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>