Next Article in Journal
Partial Discharge Spectral Characterization in HF, VHF and UHF Bands Using Particle Swarm Optimization
Next Article in Special Issue
Design and Deployment of Low-Cost Sensors for Monitoring the Water Quality and Fish Behavior in Aquaculture Tanks during the Feeding Process
Previous Article in Journal
Facile Quantification and Identification Techniques for Reducing Gases over a Wide Concentration Range Using a MOS Sensor in Temperature-Cycled Operation
Previous Article in Special Issue
Optimal Scheduling and Fair Service Policy for STDMA in Underwater Networks with Acoustic Communications
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Low Cost Efficient Deliverying Video Surveillance Service to Moving Guard for Smart Home

by
Tatiana Gualotuña
1,
Elsa Macías
2,
Álvaro Suárez
2,*,
Efraín R. Fonseca C.
1 and
Andrés Rivadeneira
1
1
Computer Science Department, Fuerzas Armadas University (ESPE), Av. General Rumiñahui S/N, 170501 Sangolquí, Ecuador
2
Arquitecture and Concurrency Group, University Institute of Cybernetic Sciences and Technologies, Las Palmas de Gran Canaria University, Lugar Diseminado Lomo Blanco, 11, 35018 Las Palmas de Gran Canaria, Spain
*
Author to whom correspondence should be addressed.
Sensors 2018, 18(3), 745; https://doi.org/10.3390/s18030745
Submission received: 13 January 2018 / Revised: 13 February 2018 / Accepted: 27 February 2018 / Published: 1 March 2018
(This article belongs to the Collection Smart Communication Protocols and Algorithms for Sensor Networks)

Abstract

:
Low-cost video surveillance systems are attractive for Smart Home applications (especially in emerging economies). Those systems use the flexibility of the Internet of Things to operate the video camera only when an intrusion is detected. We are the only ones that focus on the design of protocols based on intelligent agents to communicate the video of an intrusion in real time to the guards by wireless or mobile networks. The goal is to communicate, in real time, the video to the guards who can be moving towards the smart home. However, this communication suffers from sporadic disruptions that difficults the control and drastically reduces user satisfaction and operativity of the system. In a novel way, we have designed a generic software architecture based on design patterns that can be adapted to any hardware in a simple way. The implanted hardware is of very low economic cost; the software frameworks are free. In the experimental tests we have shown that it is possible to communicate to the moving guard, intrusion notifications (by e-mail and by instant messaging), and the first video frames in less than 20 s. In addition, we automatically recovered the frames of video lost in the disruptions in a transparent way to the user, we supported vertical handover processes and we could save energy of the smartphone's battery. However, the most important thing was that the high satisfaction of the people who have used the system.

1. Introduction

The Internet of Things (IoT) [1] has guided several smart projects in the last ten years: Smart Body, Smart Car, Smart Home, and Smart City…. The usage of low cost Wireless Sensors Networks (WSNs) together with embedded computers, has made possible the implementation of cheap video surveillance systems for the Smart Home. Smart sensors [2] can measure physical variables such as [3] temperature, humidity, pressure, direction and wind speed, lighting intensity, vibration, sound intensity, power line voltages, chemical concentrations, pollution levels, vital body functions, and gas concentrations…. Surveillance systems connect sensors to fiber optic, wired or wireless networks (Internet access networks) to evacuate data of interest to the guard. Those sensors can trigger the start-up of video surveillance cameras that register an intrusion in the Smart Home. The wireless communication between sensors (or video cameras) and moving guard is usually interrupted sporadically. We argue for intelligent communication protocols between sensors and guard to avoid problems of uncontrolled disruption of communication between them.
Video surveillance over the Internet is a real-time service that applies to very varied environments (underwater [4], Smart City [5,6,7], and Ambient Assisted Living for Smart Home [8,9,10] among others). We focus on Smart Home video surveillance assisted by sensors. We are not interested in monitoring people in the Smart Home as in the previous works. However, we focus in the detection of intrusion of people (thieves) in the Smart Home and rapidly communicate video information to the moving guards.
Video surveillance aims to ensure the security of goods and people in the Smart Home, as well as the tranquility of their owners. Video surveillance over the Internet has become one of the most demanded security services in last recent years. This has led to: (a) telecommunication operators proposing this service to their customers’ homes; (b) proliferation of low-cost video surveillance systems that any user can deploy; managing them through Web in a Smart Phone; (c) a mature industry appears producing technologies and proprietary equipment of very different type. Low-cost video surveillance systems (especially for emergent countries) can be deployed using embedded computers like Raspberry Pi [11] and open hardware like Arduino sensors. We take advantage of RaspBerry Pi and Arduino open hardware and free software to implement a physical demonstrator of our video surveillance system. When Arduino sensors detect the thief, a Pi Cam [12] will start recording the video in the RaspBerry Pi. Simultaneously the RaspBerry Pi will send an instant message (Telegram [13]) and an e-mail to subscribed guards (and the owner of the Smart Home). When any of those messages are received, the guard (or the owner) could start receiving the real time video. Depending on the location of the guard, it could use Long Term Evolution (LTE) or Wireless Fidelity (WiFi) to receive the video streaming.
Wireless Internet access suffers intermittent and sporadic service disruptions as is well known and we have shown it for LTE [14] and WiFi [15]. The causes of real time video streaming service disruption are widely known. Among those causes are the following:
  • Coverage deficiencies in LTE (especially in emergent countries).
  • Range coverage and radio channel interferences in WiFi [16], prolonged access to the channel (long periods of contention) of WiFi terminal.
  • Bad planificafication of dense WiFi networks.
  • Inefficient behavior of transport protocols of Internet in WiFi and LTE.
  • Inefficient behavior of video servers (they usually do not detect efficiently if the wireless terminal effectively will receive video frames).
  • Inefficient behavior of video clients that cannot process the deadlines associated to the reception and visualization of video frames.
The above adverse effects affect [17] the Quality of Service (QoS) enormously because video frames occupy the wireless channel but will be never received (they are lost) by the Smart Phone. This impedes other WiFi terminals’ access to the channel degrading the effective bandwidth. Moreover, the video server must restart the video session due to the fact it closes the open video session when the duration of the disruption exceeds a small (approximately 1 min) time limit. That restart of video session process in presence of several consecutive disruptions degrades enormously the Quality of Experience (QoE). This causes the guard rejects the service and the rapid battery consumption of the Smart Phone (receiving continuously repeated video frames). What is worse, the loss of very valuable images that can facilitate the early detection of the thief in the Smart Home or its surroundings.
We implemented our video surveillance system with open software platforms. Nevertheless, far from making a particularized implementation for our open hardware, we specified a software architecture based on software design patterns. Software design patterns are generic solutions for common design problems; they are reusable assets that help transfer knowledge from experts to newbies [18,19] and they are standard software design agreements. Our goal was to provide a general architecture design for the rapid development of open hardware and software video surveillance systems (assisted by sensors). In this way, we facilitate the implementation of systems based on different hardware and software platforms.
The main original contribution of this paper is the novel design of a video surveillance system for Smart Home that mitigates the adverse effects of disruption of the real time video streaming service. This system includes an intelligent protocol among sensors, video server and the video client used by the moving guard. The novel specification based on software design patterns allows any researcher to implement it for any hardware architecture using their own software components. We implemented our system in a very low cost hadware architecture using cheap sensors and camera. We built a Smart Home model for measuring QoS and QoE parameters, battery’s energy comsumption for WiFi and LTE, and the arrival time of notification of intrusion detection to the guard wireless terminal. The experimental results showed the small time needed for the guard could come to the rescue while he can view video of the intruder’s actions. This is a novelty focusing in the surveillance system based on sensors, which have had a high interest of system testers (QoE).
In Section 2, we review the background of the real time video streaming surveillance and related works. In Section 3, we state the main ideas of the system architecture and its operation. We present the software pattern design, and the open hardware and software implementation of the prototype. In Section 4, we present an indicative formal model that informs the reader about the adverse effects of video service disruptions and how they affect the QoS and the QoE. In Section 5, we present the discussion of the experimental results we obtain after many tests of our prototype implementation. Finally, we sum up some conslusions and future work.

2. Background and Related Work

Firstly, we review some works on video surveillance service to state the main idea and aspects related to our system. Secondly, we review works on mitigating the adverse effects of service disruptions and differences with our method and finally, we review methods for programming systems similar to ours. The current video surveillance systems are very sophisticated and propose a video treatment focused, among others, on:
  • Intelligent image processing. In [20,21] video surveillance systems are focused mainly on the detection of activities such as fights, assaults or excesses that may occur within an environment. The system contains external sensors that allow capturing information from the environment using cameras, microphones and motion detectors. When a security alert occurs, a centralized broker, for example will call the police, or blocks doors.... It does not support smart phones so it does not mitigate adverse effects of service interruptions. In [22] authors proposed a prototype whose intrusion alerts allows the detection of movement and location of objects in a determined area by processing the video coming from different cameras. Our system detects movement of the thief but we are not interested in his exact localization. In [23] a system capable of processing images was presented to obtain relative positions of objects supporting environmental adversities and combining it with IoT to improve the acquisition of information. Kavi and Kulathumani [24] are able to detect orientation of objects. We are not interested in the segmentation of objects or the affectation of environmental conditions, but in a real-time reception of images that facilitates a first vision on the part of the guard who observes the intrusion in the Smart Home. In [25] is treated the problem of intelligent recognition of objects in nigthtime using visible light cameras. They proposed an interesting image recognition system for near infrared cameras that can operate in daytime and nighttime. Whichever type of camera is used the problem of video service disruptions still exists. That is the reason why we only considered visible light cameras and full delivery of video. In [26] authors proposed a solution through the design and development of a video surveillance system, which uses semantic reasoning and ontologies. This system is able to work with small and cheap cameras, reduce required bandwidth and optimize the processing power. Our system also is able to use ontologies over an embedded processor.
  • Smart codification and compression of objects. The main idea is to reduce the needed communication bandwidth between server (that processes a high amount of videos) and client, sending only relevant information to the client (user) [27]. Due to the low economic cost we imposed on our system, we consider a small number of video cameras, so we did not need to implement a system of this type. In [28] was presented a system to extract metadata of important objects to avoid the impossible to solve problem of monitoring large number of cameras. We did not treat with this problem due to the reduced number of cameras we considered.
  • High number of video streams synchronization. Pereira et al. [29] proposed a window strategy together with a correntropy function to synchronize video streams of line applications that require a low computational power. We did not focus in synchronization of video streams; on the contrary, we focused on the adequated reception of frames of a video stream. However, the application of that technique to the synchronization of several video streams in our system requires a deep study to solve the mitigation of adverse effects of several video streams at the same time.
  • Usage of low economic cost and embedded computers for hosting the video streaming server, which connects to a video camera through Universal Serial Bus (USB), and uses a mobile network for communicating the video streaming [30]. In [31] is used a built-in system based on the ARM9 processor (freely available), a 3G mobile network card, a USB camera that captures video using the H.264 standard and sends it to a video server. The user accesses it with an Android smart phone. The construction of an embedded system as a server and video processor is cheap because there are low economic cost freely distributed hardware and software to do it. However, in [31] they do not focus, as we did in real time streaming video. We used a general-purpose embedded computer (Raspberry Pi) for the good performance it offers and its low economic cost.
Current research in video surveillance systems does not focus on the communication of real time video to the guard’s wireless terminal (while he moves). This is due to the fact that usually, that video is received on a desktop computer (or specialized fixed terminal) and the physical level of the communication network is mainly optical fiber-based. We focused into the exploration of the communication of the video using a wireless access network to Internet kernel. That is, both the video server and the guard’s wireless terminal connected to a wireless network (LTE or WiFi). The mobility of the guard is essential for early acting in the Smart Home just in case he is close to the Smart Home. If the guard could use a WiFi network (for example, he is within an urbanization area), he would experiment video service disruptions. On the other hand, if the guard is not close to the Smart Home, and he wants to move rapidly to the Smart Home, while a colleague of him is visualizing the video, he would use LTE (also probably experimenting video service disruptions), to early visualize the movements of the thief. For both cases, the aim of our video surveillance system is to mitigate the adverse effects of real time video streaming service disruptions. In the same way, the smart phone of the guard must need to do vertical handover [32] between LTE and WiFi (or viceversa). In this case, the wireless network must implement rapidly the handover processes. We must assure that the smart phone is able to implement rapidly those network functions.
To mitigate the adverse effects of video disruptions, there are several techniques, which we present next. We distinguish adaptive video streaming algorithms into three categories:
  • Based on the regulation of the transmission rate. They estimate the highest possible rate of video transmission [33].
  • Based on adaptive video buffer. They seek the relationship between the occupation of the buffer and the selected video bit rate and the available bandwidth [34]. Latency would increase for real-time video. Our system must minimize the latency so this scheme would be limited. In [35] the starting latency, the reproduction fluidity, the average reproduction quality, the smoothness of the reproduction and the cost of real time video are improved. In [36] was managed the bandwidth tolerance of the QoS degradation.
  • Based on prediction of QoS parameters, which optimizes the allocation of resources and related variables in a control model such as the Markov Chains [37].
Most of the above algorithms keep multiple copies of video content with different bit rates, which create a huge storage load on the video server. In addition, video transcoding is expensive and difficult to apply for real time video streaming. These are two important problems for our system of low economic cost and calculation power, so it was not possible to use them. However, the main problem we wanted to solve was the fact that the server closes the video session and the client must start again to download the video from the beginning. When this problem occurs, the previous techniques do not solve it.
We next present other particular solutions.
The authors of [38] proposed a specific solution for real time video streaming in a mobile teaching domain. Intelligent software agents detected the video streaming service disruption. When the server detects the disruption it stores the video it was sending to the student, which can retrieve the class from the disruption point. This solution was designed for a particular firm real time service (video surveillance is a soft or hard real time service).
Several authors [39,40,41] have presented mechanisms to reduce the effect of video service disruptions in wireless environments and to maintain the continuity of the on demand streaming video service, for mobile phone. However, those proposals do not apply to real time streaming video.
We have used the Proxy software pattern to mitigate disruptions applying that technique to different smart phones and operating systems [42,43,44], supporting real time communications among Web browsers and for the videoconferencing service [45]. We used Web Real Time Communication (WebRTC) framework [46], to implement the Web communication system recovering disrupted sessions of real time video streaming service between Web browsers. Our technique Automatic Reconnection WebRTC (ARW) used tools of WebRTC to obtain traces of QoS from the WiFi channel to manage disruptions [47].
In this paper we refine our previous unpublished studies in [48,49] improving the high level abstraction model of performance, the software pattern design and showing new results, which demonstrate the effectiveness of the mitigation technique for early arrival of video to the guard, arrival of notification messages of intrusion, handover support and battery energy consumption.
Next, we review several similar works and analyze the contribution of the paper regarding the specification of the software architecture based on software design patterns.
Sanchez et al. [50] presented a hardware and software architecture for a video surveillance system. They did not specify the software architecture at design level. This is an example of a very particular software architecture implementation. The result is that it is very difficult to reproduce the software in other hardware platform. Our intention was to make a general specification implementable in any hardware platform. In this line, we followed the idea presented in [51] that made an interesting discussion about the utilization of software architectures for Health Care in the Smart Home and presented an application example. We have done a pioneer adaptation of that idea for video surveillance systems in the Smart Home.
The design of software based on software design patterns improves the quality of the artifacts produced and reduces the costs of software maintenance [52,53]. In addition, the analysis of the interrelationships of software design patterns in an application would make a more concise and more cohesive design than the application of patterns in isolation [54,55,56]. Several works study the impact of software design patterns on software quality (maintainability, reliability and proneness to errors [57]) implementing several experiments. The authors of [58,59,60] researched the energy consumption of the software design patterns. In [48] we did an exhaustive analysis for the formal derivation of the best software design patterns for a video surveillance system based on alarms of sensors in a Smart Home. In this paper, we seek to expand that derivation taking into account the smart phone energy consumption. We have treated to follow the guide provided in [61,62].

3. System Architecture and Operation

Figure 1 shows a schematic of the main components (black box model) of our video surveillance system: sensors, sensor alarm processor, real time video streaming server and client.
Broadly speaking, the video surveillance system has the following main operations:
  • The sensors are continuously sending sensed data (with a certain sampling period) to the alarm processor.
  • The video camera starts operating once the Alarm processor fuses the sensor data and determines that an intrrusion has occurred. At that moment, the video will be stored in the video server memory (a file that works as a buffer) and simultaneously an instant message (Telegram application) and/or an e-mail are sent to the Client (guard). The file containing the recorded video can be used before the judge.
  • The Client will receive a Telegram instant message and/or an e-mail. Whenever he wants, he can start a video streaming session on the Video Server, clicking a link (containing the Internet Protocol Address (@IP) of that server) in the instant message or in the e-mail text. If the Client receives the video while the server is producing it, the video will be delivered in real time. However, the Client could start an on demand video Streaming session whenever he wants, once the Video Server finished recording that video.
  • Video service disruption: The Video Server registers the last set of frames sent to the Client continuously and has not been consumed by the Client. When the Client experiments a service disruption, the Video Server will continue sending from the last set of video frames previously sent. There is no need to restart the video session because the Video Server also maintains the original session opened during at most 10 min (the time that lasts ussually an intrusion). In that simple way, nested disruptions can be easily managed.
An actor (represented as a small doll) is a person or other entity that interacts with the system been described. A use case (represented as an ellipse) describes the way an actor interacts with the system to reach its objective. Table 1 presents the behavior of actors and use cases. Figure 2 shows the diagram of two actors and eigth use cases for our system. Start Sensor Provider tests the sensors notifying, in parallel, the Start Messages Processor and Start Video Server use cases when an intrusion will be detected. Then (a) the Start Video Server triggers the recording of the video of the intrusion (Activate Recording Agent); (b) Start Messages Processor triggers the Activate Telegram Boot Agent and the Activate Mail Agent, which provide Uniform Relocator Locator (URL) links of the video to the User. Once the User clicks on those links (Start Video Service), he will receive the video streaming (Activate Transmission Agent).
Figure 3 shows a simple sequence diagram in which repeatedly, the Sensor provider receives and processes all the alarms generated by the sensors (different intrusions), the Message processor is notified to construct the message and the agents Telegram and Mail send the messages to the Client. The sensors work independently to the Video Server. That is, detected an intrusion, the alarm would occur and until the intruder’s movement ceases, no new alarms will be generated (it is not considered the unlikely event that there is an intrusion and a new one occurs before the first one ends).
Figure 4 refines the occurrence of a real time video streaming service disruption with four use actors and seven use cases. Table 2 presents the behaviour of actors and use cases for Figure 4. Transmission Agent continuously is testing the wireless channel (Test Transmission Channel). In parallel, the Video Interrupt actor controls a video service interruption. When a video service interruption is detected, the Video Service will stop (Stop Transmission) and in parallel Recording Agent will start recording the video (Start Recording Offline Video). When the interruption finalizes, the transmission is restarted (Restart Transmission) and in parallel the video offline recording stops (Stop Offline Video Recording). The Client can demand the offline video reception once recovered the video service interruption (Send Offline Video).
Figure 5 shows the sequence diagram of the treatment of a real time video streaming service disruption. The Video interrumption communicates to the Video Service the disruption, which will make a forward to the Transmission Agent so that the Recording Agent begins the recording of the video. The Transmission Agent continues checking the status of the wireless channel until the communication can be re-established at which time the video is still sent, in real time, to the Client.
In [48] we presented all the sequence diagrams among the objects that implement the components of the system according to the software design patterns used. We present the formal derivation of software design patterns in the next section.

3.1. Software Design Pattern Specification

The appropriate selection of patterns must take into account the cases of use and quality requirements of the software, and the technology chosen [18]. The software design pattern named Model-View-Controller (MVC) allows separating the application data, the Client interface and the logic (control). That allows making changes and adding new functionalities easily in different incremental prototypes. In addition, it supports the integration and reuse of components, provides scalability and eases the prototype development. The most abstract vision of any video surveillance system would start from the MVC:
  • Model (Server): it is located in the Video Server (video buffer that stored temporally the pending video still not sent to the Client and other stored videos). The Model consists in an Observer software pattern in charge to control de videos. An external Observer software design pattern abstracts the data model corresponding to the sensed data. That Observer is constantly testing the sensor data communicated to the Controller.
  • View (Client or user): It consists of several views: the video display, the e-mail and Telegram messages interfaces and the links that allow starting the video streaming. Other simple view is the warning of disruptions.
  • Controller: It is the most important software pattern. It is in charge to do all the control of video service disruptions, the control of the wireless channel to advertise possible disruptions and the cooperation with the sensor alarms. It consists in the cooperation among different standard software patterns that we present next. We distinguished internal software patterns to the Controller (inside the MVC) and other external software patterns to the Controller (outside the main MVC pattern).
The internal software patterns are Proxy, Strategy and Adapter. The first implements the actions of our previous solutions (coordinate the Model and the different views). In addition, it is in charge to test the state of sensors, to fuse the sensed data and to determine if an intrusion has occurred (received from external Observer). If a video service disruption occurs, it will invoke the Strategy, which will implement a particular algorithm for treating the disruption. This is very flexible design of software because the treatment of the disruption can be changed without changing the overall video surveillance system. The Adapter (ontologic software design pattern) receives data from the external Observer. That is, the sensed data are communicated to the Adapter which, can convert those data into the corresponding data service (we implement Web Services). The flexibility of this design decision allows the designer to change the communication of sensed data without change the overall video surveillance system. Figure 6 shows the general design based on software patterns and the relation among them.

3.2. Low Cost Hardware Implementation

We built a physical model that emulates a typical Smart Home with several rooms, garage, stairs… (Figure 7). Within that model, we installed the sensors and the video camera to generate intrusion alarms and to record the corresponding actions. Inside 2 light sensors were installed in the front and back of the Smart Home, 2 temperature sensors in the living room and kitchen, 4 infrared sensors for motion detection (front, rear, kitchen, bathroom) and 2 actuators for cooling (fans). The technical characteristics of the sensors used are:
  • Ligth: Dimensions 65 × 11 × 13 mm, series Photoresistor-BH1750, measurements 1-65535 LX, sampling 2 s.
  • Digital temperature (Ds28b20): Each device has a unique 64-bit serial code stored in its Read Only Memory (ROM), multipoint capability that simplifies the design of temperature detection applications, can be powered from the data line. The power supply range is 3.0 V to 5.5 V. Measures temperatures from −55 °C to +125 °C (−67 °F to +257 °F) ± 0.5 °C to the nearest −10 °C at +85 °C. The resolution of the thermometer is selectable by the user from 9 to 12 b and converts the temperature into 12 b codes in 750 ms (maximum).
  • Infrared Barrier: 10.2 × 5.8 × 7 mm phototransistor, peak operating distance: 2.5 mm, operating range for collector current variation greater than 20%: 0.2 mm to 15 mm, typical output current under test: 1 mA, ambient light blocking filter, emitter wavelength: 950 nm.
An Atmega 328 arduino microcontroller did the processing of the sensed data. We used a 20.7 Mpixels camera, LED flash, ½ 3 ′ ′ sensor, geotagging, and image stabilizer. To implement the videostreaming server and other storage control software, a RaspBerry Pi B+ was used with a 900 MHz quad-core ARM Cortex-A7 processor, 500 MB of RAM, 4 USB ports, 40 GPIO pins, interface of the camera (CSI), screen interface (DSI), Micro SD card slot and VideoCore IV 3D graphics core.

3.3. Software Implementation Based on Agents, Web Services and Free Platforms

We made use of Service Oriented Architecture (SOA) for implementing the software specified by software design patterns. Avila et al. [63] introduced SOA and reviewed its applicability in the field of IoT for telemedicine and Healthcare. We did not know other researchers that have applied that concept to video surveillance systems similar to ours. We used the Multi Agent System (MAS) platform named Java Agent DEvelopment Framework (JADE) and Web Service Integration Gateway (WSIG) [64] for implementing the video streaming service disruption proxies. This decisition is in the line of recent approaches to software design for IoT in Smart Home control [65,66]. We do not know any other work that has used MAS for video surveillance systems programming able to interoperate with Web services in the domain of Smart Home. Figure 8 shows a diagram of the different free software components used for the implementation of the video surveillance system.
With Raspduino, the Arduino sensor platform was interoperated with the RaspBerry Pi B+, enabling data to be collected: The sensor's identifier, the sensing measurement and a time stamp for that sensed value. These values are sent to a proxy capable of interacting with JADE agents. We defined the agents’ behavior which infere ab-normal situation (intrusion) based on the sensors’ values. Since JADE originally used its own ontology for the message passing, it was decided to make this communication interoperable through Web services. That is the reason why we installed WISG addon, which transforms those messages into Web services. With Web Services Description Language (WSDL) and Simple Object Access Protocol (SOAP), the data were passed to the Tomcat Web Application Server. Tomcat is necessary to support a Web browser compatible with the reception of video in Hiper Text Markup Language (HMTL) 5.
If an alarm was generated, the PiCam would be triggered to record what happens in the Smart Home. That camera connected to the RaspBerry Pi B+ video streaming server called RPiCam, which did not record audio natively, but it recorded video in the Motion Joint Photographic Expert Group (MJPEG) version 4. It communicated video in H.264 format that can be received in HTML5 in the Web browser (which can be anyone who accepts video in HTML5: practically any current browser).

4. High Level Abstraction Model of Performance

We focus now in the video service disruption performance. We first model the occurrence of disruptions not mitigated. The second model corresponds with the mitigation of service disruptions with our technique. We compare the results of both models with the case in which no video service disruptions occur. The objective is to show informally the impact of our technique in QoS and QoE.

4.1. Formal Model for Video Streaming without Service Disruptions Mitigation

Let us analyze the impact on QoS and QoE with a simple model abstracting details of the communication and observing only the amount of time and energy needed to send all the video. Figure 9 shows a diagram that facilitates the understanding of the model. If there is no video service disruption, the Client (C) will take Ts time units (t.u.) to start the video streaming session and it will indicate the beginning of the reception of video packets (SETUP, OK and PLAY are the tipycal commands in Real Time Streaming Protocol (RTSP)). After tp t.u., C will receive the first video package. From there, C will receive a new package after each di t.u. (delay of arrival of package i with respect to package i − 1, where i − 1 and i are independent on the numbering of packets in the server). Therefore, the optimal time (Topt) that C takes to receive the whole video is the one shown in Equation (1):
T o p t = T s + t p + i = 2 n d i
where n is the total number of sent packets, Ts is the initialization time of the session and tp is the arrival time of the first packet.
In case there are m video service disruptions (Iz, z = 1..m) then the time (Tint) it takes to receive the video will be considerably greater and is a function of the number of disruptions that occur and their duration (Tij), as indicated in Equation (2):
T i n t = ( T s + t p ) m + j = 1 m T i j + i = 2 K i d i + T o p t
where the factors Ki are the numbers of packets received before the video service disruption i occurs and we assume that at least one is received before any video service disruption.
An important adverse effect is the number of times a video packet is retransmitted. Equation (3) gives it:
i = 2 K i d i
In each of these retransmissions the packet is occupying the WiFi channel, preventing other packets from being communicated (thereby increasing the contention in the channel). In addition, if we assume that the smart phone has an expenditure of p units of energy consumption (u.e.), then the smart phone will be making an expense (extra inefficient battery consumption) indicated in Equation (4):
j = 2 K i p
The most important adverse effect is the degradation of QoE [67]. It is possible that the user accepts that the same packets were retransmitted once; but he would not be willing to have it retransmitted more than three times. In addition, most likely he could decide not to continue restarting video streaming sessions. This is important because in a video surveillance system like the one we designed, it is precisely a distinctive element that the user can make a visualization of the video as soon as possible while, for example, he is on his way home.
This is not a particular problem of our system, but occurs in other scenarios. For example, in [68] authors mathematically demonstrated that at the link level, disruptions whose duration varies between many seconds or a few minutes produce buffer underrun and it is proposed to mitigate them by buffering control, monitoring the network and regulating the injection of video packages from the Server. At the link level, this control can work, but when the disruptions have a certain duration, the problem is that the video streaming servers abort the video session and must be restarted as we indicated above. In [69] authors analyzes the optimization of the use of video caches in order to minimize the video disruptions and more specifically to minimize the Ts. In [70] a study of the implementation of a video surveillance system on LTE was presented in which it is recognized as one of the lessons learned that an appropriate buffering system must be provided in order to support real time video streaming without disruptions, in addition to modifying the Android buffering system. We in [48,49] analyzed the use of several video streaming buffers and the use of video streaming server proxies that allow monitorizing communication parameters between the client and the server to minimize the Ts and the retransmissions of packets. In addition, we automated the reconnection of the video streaming session to avoid the user having to do it manually. Thus, we reduced the adverse effect of video service disruption in the QoE. Our schemes can be adapted to build the solution presented in [70] taking into account the specific mechanisms of QoS.

4.2. Formal Model for Video Streaming Mitigating Service Disruptions

Figure 10 shows a time diagram invested in the video streaming system with our mitigation mechanism. All video packets are stored in the buffer the first time they are sent. When the disruption I1 occurs, the packets are still stored until all the video packets are completed. To prevent the C from sending an order to stop the video streaming, we choose to store the video for a predetermined but configurable amount of time (between 8 and 10 min, because this is the estimated length of intrusions in the Smart Home). At that time, the n packets of the video collected by the camera would be stored once the alarm server produces a new alarm.
As verified experimentally by Santos et al. [71] Ts is one of the most important performance factors in video streaming. They compare the efficiency of RTSP and WebRTC for video streaming concluding that the second is more inneficient than the first. Thus we are in the correct line trying to avoid the C must restart the video session each time a video service disruption occurs.
With the new mitigation technique, the time to send the full video is given by Equation (5):
T b u f = T s + t p m + j = 1 m T i j + i = 2 n m d i
With which, from Equations (1), (2) and (5), Equation (6) relates the different delivering times:
T o p t < T b u f T int
which indicates that the user would save a considerable amount of time in watching the video in the presence of disruptions in relation to if our method will not be applied. In addition, it provides greater comfort because the system makes reconnection automatically. This undoubtedly improves the QoE.
Another important aspect is the battery energy consumption. With our mitigation mechanism, it is possible to minimize the extra energy consumption in retransmissions. Indirectly, this also improves the QoE because the user has more time to connect the video surveillance system. On the other hand, it is important to maximize the life of the battery to ensure greater tranquility of the user in such a way that it does not perceive it can disconnect from the system and not know what is happening in the Smart Home.

5. Experimental Results: Discussion

To verify the operation of the video surveillance system, we implemented multiple tests. With those tests, we tried to observe the response times for the mitigation of disruptions of the real time video streaming service; the time of arrival to the client of the notifications via e-mail and Telegram; and the extra battery consumption due to real time video streaming service disruptions.

5.1. Discussion about QoE Performance

It is widely known that the optimization of the measurement of the QoS parameters is not enough to ensure a general satisfaction of the user, because each person is different and has different expectations of quality. For this reason, the International Telecommunication Union (ITU) has published a new set of ITU-T recommendations focused on parametric QoE monitoring of video services [72,73]. We focus on Mean Opinion Score (MOS) to observe the QoE for being a subjective metrics that complements the interpretation of QoS parameters.
According to [74] the sample size must include 5% of error, 95% of confidence and 50% of heterogeneity. Taking those aspects in mind, we considered 25 people (16 men and 9 women to reflect the fact that usually there are more men than women dedicated in guard profession). We were interested in the usability of the mobile application and video service interruptions. For that reason, we choose young people between 18 and 24 years old, undergraduate and normally user of Internet video streaming services. This sample can be considered the most critical one for evaluating video service interruptions because they have a lot of experience with video service interruptions and mobile applications. Their general cultural background is considered homogeneous because all of them live in Quito (Ecuador). However, their specific technical profile varies because they study different university grades (Computer Science, Law, Biology…).
We used the ITU P.800.1 for the opinion scale, and we asked the following questions (using a Google Forms form):
Q1.
How would you rate the design of the user interface of the application?
Q2.
How would you rate the usability of the application?
Q3.
How would you rate the interactivity of the application?
Q4.
Did you have problems accessing the application?
Q5.
Did the application have an execution error?
Q6.
Did the application reconnect the video without reloading the page?
Q7.
Did the application send e-mail and Telegram notification messages?
The response classes for questions Q1, Q2 and Q3 were Excellent, Very good, Good, Improvable, Very improvable. The response classes for the remainder questions were Yes or No. Respondents answering yes to Q4 and Q5, were asked to identify the problem. We did that to have feedback and improve the application and on the other hand, to ensure that the responder answered conscientiously. Only two people contributed feedback.
Figure 11 shows the percentages of responses to Q1, Q2 and Q3 in each category of the MOS. The QoE is Excellent or Very good in most cases and there are not Very Improvable cases. Another important factor is the homogeneity of the values for the three questions. Therefore, we can assure that the design of the interface, the usability and the interactivity of the application of the video surveillance system is Very good or Excellent.
Figure 12 shows the percentages of responses to Q4, Q5, Q6 and Q7 in each category of the MOS. The QoE is very high in most cases. All notification messages (e-mail and Telegram) reached users, so there is no risk that a guard is uninformed of a possible intrusion in the Smart Home. The errors and problems of access to the video surveillance system are very few, so the video surveillance system is accessible and works excellently. The answers to Q6 are the most important because they focus on verifying if, specifically the mitigation of adverse effects of the real time video streaming service disruptions will correctly be done (making the video recover from the point where it was disrupted). The operation is very good. This is important because in most cases the guard would not have problems accessing the video of the intrusion.

5.2. Discussion about QoS Performance

As mentioned in Section 4.1, there are key parameters (according to [75]) to define the efficiency of the QoS supported by our video surveillance system (assisted by sensors): Ts (initialization time of the session) and tp (arrival time of a packet). We call user Waiting Time (uWT) the delay time in starting the video playback in the Client since he requested to open the video session (issue of a SETUP command in RTSP). That is, uWT is the time the Client (user, guard or owner of Smart Home) waits to receive and visualize the first set of video frames. Abstracting insignificant values of computation in the wireless terminal, we could consider:
u W T = T s + t p
The uWT < 10 s (according to [75]) and because nobody, among the interviewees (informally questioned), was willing to support greater values.
The percentage of video packets loss (vpl) could explain part of the disruptions (Iz) and its duration, the jitter (di) and factor Ki. We are not interested in verifying our high level abstraction model, but we consider very important to obtain the values for vpl in order to show if it will be less than 25% (vpl < 25), according to [75].
The playback of video was embedded in a Web page (Web View). The Web page must be reloaded just in case the Video session must be restarted (long disruption or any other bad event occurred). We name this parameter WpR and we considered that if it is greater than 3 (WpR > 3), then adverse effects will occur and the mitigation mechanism has not worked well. We obtained this limit from the experience with interviewees (informally) in QoE measurements.
We tested those parameters making a full campaign of experiments considering several disruption patterns. We did six blocks (blkb, b = 1..6) of five tests (tst) each. In each block, we considered different amount of disruptions. Specifically, we considered one disruption in blk1 and blk4, two disruptions in blk2 and blk5, and three disruptions in blk3 and blk6. In this way, we wanted to do a full test of the mitigation of adverse effects of our video surveillance system. We used a 300 s video and intentionally provoked the disruptions moving along a full range and shadowed WiFi zones.
We also considered different kinds of wireless terminals to observe the influence of video consumption and the wireless communications:
  • WTerm 1: Smart phone Celular Sony Xperia Z3 Compact; 127 × 64.9 × 8.6 mm; 1280 × 720 pixels (4.6′′); Android 5.0; processor of 4 cores (2.5 GHz), Graphic Processor Unit Adreno; Battery capacity 2.600 mAh; 2 GB RAM; LTE and WiFi (IEEE 802.11 g/n/ac). This terminal was used in the blki (i = 1..3).
  • WTerm 2: Laptop Mac Book Pro 15′′; 1920 × 1200 pixels (15.4′′); Mac OS High Sierra; 2.2 GHz quad-core Intel Core i7, Turbo Boost up to 3.4 GHz, with 6 MB shared L3 cache; 4 GB de SDRAM DDR3 (two moduls SO-DIMM de 2 GB) to 1.333 MHz; WiFi (IEEE 802.11 g/n/ac). This terminal was used in the blki (i = 4..6).
Figure 13 shows the Client interface (in Spanish) name Recent Videos (Videos Recientes) of the video surveillance system for the WTerm 1 and WTerm 2 (the user has previously clicked in the link it received in the e-mail or Telegram notification message). That interface consists on a list of videos of recent instrusion in the Smart Home (each video is an un-disrupted part of the video of the instrusion). The user can decide to watch each video (first two window captures in Figure 13a) or automatic reconnection (last window of Figure 13a). That interface consists in a responsive Web application: The Web page automatically renders elements in it depending on the kind of terminal. This view has typical option to manage the stored videos in the video server (located at @IP: 190.15.140.7): select all (seleccionar todo), remove file (borrar selección), remove all (borrar todos), end session (finalizar sesión)… with those options the user can manage his subscribed videos for a particular Smart Home. The option < Back − Rpi Cam control allows the user to return to message notifications view.
We used Google Chrome browser (version 54.0.2840.85 for WTerm 1 and version 54.0.2840.98 for WTerm 2), and tcpdump version 4.3.0, and Wireshark version 1.11.1 for capturing traffic in the video server.
The place in which we did the test was the campus of the Escuela Politécnica del Ejercito (ESPE) in Sangolquí − Ecuador, closed to the installations of Computer Science Departament (longitude: −0.312981, latitude: −78.445633 in Google maps) in the uppest floor of the building. Several buildings and shadowed zones for WiFi and LTE surround the Department building. It is very appropriated to show the utility of our video surveillance system because a notification message can arrive to the Smart Phone of the guard that is in the campus and he will cross several WiFi shadowed zones before reaching the Smart Home model.
Figure 14 shows the values for uWT obtained for all blocks and tested in each block. We grouped the blocks attending to the number of disruptions. For nearly all experiments, the uWT for WTerm 2 was less than for the WTerm 1 (only the test number two was greater in WTerm 2 than in WTerm 1). This was due to the differences of bandwidth of WiFi and power processing of both terminals. Figure 15 shows the mean and standard deviation for each block. Only for two disruptions, the mean value was significative. However, in the rest of disruptions the differences are minimal. This is important because it showed that our mitigation mechanism was independent of the kind of wireless terminal. The standard deviation was relatively small which indicates a small deviation of values from the mean. This was interesting because showed the regular behavior of the mitigation mechanism for the different experiments.
The best news for uWT were that their maximum values were nearly less than 3 s (only in one case was greater but close to 3 s). This means that our mechanism is relatively fast and it will allow the guard to receive video and reconnect after a disruption quickly.
Figure 16 shows the values for vpl obtained for all blocks and tested in each block grouped by number of disruptions. There was nor correlation between the kinds of wireless terminals neither number of disruptions and vpl. This was because the loss of packets depends on the WiFi channel, not on the terminal. Figure 17 shows the mean and standard deviation for each block. The standard deviation was very small which shows high regularity in the experiments.
The best news for vpl were that their maximum values were nearly less than 3%. This means that our mitigation mechanism worked notably. This value of vpl could justify that in all cases we obtained WpR = 0. One important tip was that when disruptions last little time (less than 10 s), it was confortable to continue with video visualization. However, when the total visualization time reached 400 s (disruptions last more time) it was not confortable to continue visualizing the video.
The above values of uWT, vpl and WpR are in consonance with the MOS.

5.3. Notification Messages, Handover and Battery Consumption

In Section 5.1, we showed all the messages of intrusion notification arrived to the user. In this Section, we show the numerical time of arrival of those messages to the user. We conducted 24 different tests measuring the time of arrival for e-mail and Telegram notification messages. We used the LTE and WiFi networks. We measured all the times using a chronometer of an Iphone Smart Phone. Those values were not exact values but were significative values because we mainly wanted to reproduce the user experience.
Figure 18 shows all those times of arrival. The mean value of notification message for Telegram (7.42 s for LTE and 7.08 s for WiFi) was around 1 s greater than e-mail notification message (6.46 s for LTE and 6.08 s for WiFi). The standard deviation was small: 0.48 for LTE and 0.64 for WiFi for Telegram notification message, and 0.5 for LTE and 0.64 for WiFi for e-mail notification messages. In WiFi, those standard deviations were greater than in LTE because WiFi networks provided a poorer QoS than LTE. The interesting news were that the time of arrival of notification messages are always less than 8 s. Therefore, in uWT + 8 + G (s) the guard will receive the first images of the intrusion, where G is the time needed by the guard to discover the notification message and to click the link. We consider that in less than 20 s the guard could receive the intrusion images. That is, the guard will experiment a delay of 20 s about the movements of the intruder.
Another source of delay in the reception of the first images of the instrusion and disruptions are the time needed to make the vertical handover between LTE and WiFi (or viceversa). We conducted other 24 tests to measure those delays with the Iphone Chronometer. Figure 19 shows the very small times of handover (perceived by the user because we measured them in observing the effect of the handover in the user Smart Phone). The mean of handover from WiFi to LTE is 1.6 s. That value was less than the 1.9 s needed to do the handover from LTE to WiFi. However, the standard deviation is greater in the first case (0.21) than in the second case (0.13). This was because WiFi Qos is pooerer than LTE QoS. The important news are that those times are very small. So the influence of handover was considered as a very small disruption that could be always mitigated.
It is very difficult to measure the influence of the redundant packets of video on the battery consumption. That is because the consumption of the battery does not follow a linear model, and not necessary all the redundant messages would consume the same amount of energy. We conducted several informal experiments in which annotated the amount of remaining hours of battery energy every 2 min for a video lasting 20 m. Then we introduce 3 disruptions and repeated the experiment. We found that in average the variation of the remaining amount of minutes was 2. That is, with the disruptions we lost 2 min of battery energy.

6. Conclusions

In this paper, we have shown the performance of a technique to mitigate the real time video streaming service disruptions applied to a video surveillance system in a Smart Home model. We have proposed novel ideas and implementations of those ideas. The intelligent protocol communication among sensors, Alarm processor, video server and the client allow our system to mitigate disruptions. The novelty that represents to demonstrate that it is possible to deliver real time video of the intrusion to the moving guard is important. We have shown that our system is fast, it has very low cost and is programmed and implemented using a systematic hardware and software design (based on standard software design patterns) and implementation. The most important result is that the satisfaction of the interviewees was highly shown. Another important result is that informally we have shown that it is possible to save energy consumption in the Smart Phone.
Future work includes more research in energy saving in the Smart Phone. We plan to design a formal model of energy saving for our system. We will consider battery drop models, formalization of energy wasted in sending a video packet and receiving it in the Smart Phone and the design and implementation of specific operation for an Observer and Strategy patterns that could monitorize the energy consumtion in the Smart Phone. We will consider professional people of videovigilance systems in order to better validate our system.

Acknowledgments

This work has been funded by the Spanish Ministry of Economy and Competitiveness/FEDER under project TEC2015-67387-C4-4-R and it has been supported in part by a grant from Universidad de las Fuerzas Armadas ESPE research projects. Thank the people who offered to do the surveys for the MOS.

Author Contributions

Tatiana Gualotuña, Elsa Macías and Alvaro Suárez did the main idea, the software design and the mathematical model for real time video streaming service disruptions. The Physical model for obtaining experimental results was designed and built by Andrés Rivadeneira. The software implementation was done by Andres Rivadeneira and Tatiana Gualotuña. All the authors have contributed and discuss the organization of testing experimental results and have written of the paper.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Mandula, K.; Parupalli, R.; Murty, C.A.S.; Magesh, E.; Lunagariya, R. Mobile based home automation using Internet of Things (IoT). In Proceedings of the International Conference on Control, Instrumentation, Communication and Computational Technologies (ICCICCT), Kumaracoil, India, 18–19 December 2015; IEEE: Piscataway, NJ, USA, 2015; pp. 340–343. [Google Scholar]
  2. Lee, J.-H.; Morioka, K.; Ando, N.; Hashimoto, H. Cooperation of Distributed Intelligent Sensors in Intelligent Environment. IEEE/ASME Trans. Mechatron. 2004, 9, 535–543. [Google Scholar] [CrossRef]
  3. Karapistoli, E.; Economides, A.A. Wireless Sensor Network Security Visualization. In Proceedings of the Ultra Modern 4th International Congress on Telecommunications and Control Systems and Workshops (ICUMT), St. Petersburg, Russia, 3–5 October 2012; IEEE: Piscataway, NJ, USA, 2012; pp. 850–856. [Google Scholar]
  4. Macias, E.; Suarez, A.; Chiti, F.; Sacco, A.; Fantacci, R. A Hierarchical Communication Architecture for Oceanic Surveillance Applications. Sensors 2011, 11, 11343–11356. [Google Scholar] [CrossRef]
  5. Ferryman, J.M.; Maybank, S.J.; Worrall, A.D. Visual Surveillance for Moving Vehicles. In International Journal of Computer Vision; Springer: Berlin/Heidelberg, Germany, 2000; Volume 37, pp. 187–197. [Google Scholar]
  6. Milosavljević, A.; Rančić, D.; Dimitrijević, A.; Predić, B.; Mihajlović, V. A Method for Estimating Surveillance Video Georeferences. ISPRS Int. J. Geo-Inf. 2017, 6, 211. [Google Scholar] [CrossRef]
  7. He, B.; Yu, S. Parallax-Robust Surveillance Video Stitching. Sensors 2016, 16, 7. [Google Scholar] [CrossRef]
  8. Villarrubia, G.; Bajo, J.; De Paz, J.F.; Corchado, J.M. Monitoring and Detection Platform to Prevent Anomalous Situations in Home Care. Sensors 2014, 14, 9900–9921. [Google Scholar] [CrossRef]
  9. Fan, X.; Huang, H.; Qi, S.; Luo, X.; Zeng, J.; Xie, Q.; Xie, C. Sensing Home: A Cost-Effective Design for Smart Home via Heterogeneous Wireless Networks. Sensors 2015, 15, 30270–30292. [Google Scholar] [CrossRef]
  10. Braeken, A.; Porambage, P.; Gurtov, A.; Ylianttila, M. Secure and Efficient Reactive Video Surveillance for Patient Monitoring. Sensors 2016, 16, 32. [Google Scholar] [CrossRef]
  11. Sagar, R.N.; Sharmila, S.P.; Suma, B.V. Smart Home Intruder Detection System. International Journal of Advanced Research in Computer Engineering & Technology (IJARCET). 2017. Available online: http://ijarcet.org/wp-content/uploads/IJARCET-VOL-6-ISSUE-4-439-443.pdf (accessed on 26 February 2018).
  12. Getting Started with PiCam. Available online: https://projects.raspberrypi.org/en/projects/getting-started-with-picamera (accessed on 15 December 2017).
  13. Telegram.com. Available online: http://www.telegram.com/ (accessed on 15 December 2017).
  14. Rendon, W. Evaluación de Métodos para Realizar Mediciones de Calidad de Servicio VoIP en Redes Móviles de Cuarta Generación (LTE) en Ambientes Urbanos de la Ciudad de Guayaquil. Master Thesis, Polytechnic University of Litoral (ESPOL), Guayas, Ecuador, March 2017. Available online: http://www.dspace.espol.edu.ec/xmlui/handle/123456789/38433?show=full (accessed on 15 December 2017).
  15. Gualotuña, T.; Macias, E.; Suárez, A.; Rivadeneira, A. Mitigando Efectos Adversos de Interrupciones del Servicio de Video-vigilancia del Hogar en Clientes WiFi Inalámbricos. In Proceedings of the XIII Jornadas de Ingeniería Telemática (JITEL 2017), Valencia, España, 27–29 September 2017; pp. 15–22. [Google Scholar]
  16. Santana, J.; Marrero, D.; Macías, E.; Mena, V.; Suárez, Á. Interference Effects Redress over Power-Efficient Wireless-Friendly Mesh Networks for Ubiquitous Sensor Communications across Smart Cities. Sensors 2017, 17, 1678. [Google Scholar] [CrossRef]
  17. Macías, E.; Suárez, A.; Espino, F. Multi-platform video streaming implementation on mobile terminals. In Multimedia Services and Streaming for Mobile Devices: Challenges and Innovations; IGI Global: Hershey, PA, USA, 2012; Volume 14, pp. 288–314. [Google Scholar]
  18. Gamma, E.; Helm, R.; Johnson, R.; Vlissides, J. Design Patterns: Elements of Reusable Object-Oriented Software; Addison-Wesley Longman Publishing: Boston, MA, USA, 1995. [Google Scholar]
  19. Schmidt, D.C.; Fayad, M.; Johnson, R.E. Software patterns. Commun. ACM 39 1996, 10, 37–39. [Google Scholar]
  20. Nam, Y.; Rho, S.; Park, J.H. Intelligent video surveillance system: 3-tier context-aware surveillance system with metadata. In Multimedia Tools and Applications; Springer: Berlin/Heidelberg, Germany, 2012; Volume 57, pp. 315–334. [Google Scholar]
  21. Pang, J.M.; Yap, V.V.; Soh, C.S. Human Behavioral Analytics System for Video. In Proceedings of the IEEE International Conference on Control System, Computing and Engineering (ICCSCE), Batu Ferringhi, Malaysia, 28–30 November 2014; IEEE: Piscataway, NJ, USA, 2015. [Google Scholar]
  22. Liu, K.; Liu, T.; Jiang, J.; Chen, Q.; Ma, C.; Li, Y.; Li, D. Intelligent Video Surveillance System based on Distributed Fiber Vibration Sensing Technique. In Proceedings of the 11th Conference on Lasers and Electro-Optics Pacific Rim (CLEO-PR), Busan, Korea, 24–28 August 2015; OSA Publishing: Washington, DC, USA, 2015. [Google Scholar]
  23. Stepanov, D.; Tishchenko, I. The Concept of Video Surveillance System Based on the Principles of Stereo Vision. 2016. Available online: https://fruct.org/publications/fruct18/files/Ste2.pdf (accessed on 26 February 2018).
  24. Kavi, R.; Kulathumani, V. Real-Time Recognition of Action Sequences Using a Distributed Video Sensor. Network. J. Sens. Actuator Netw. 2013, 2, 486–508. [Google Scholar]
  25. Batchuluun, G.; Kim, Y.G.; Kim, J.H.; Hong, H.G.; Park, K.R. Robust Behavior Recognition in Intelligent Surveillance Environments. Sensors 2016, 16, 1010. [Google Scholar] [CrossRef]
  26. Calavia, L.; Baladrón, C.; Aguiar, J.M.; Carro, B.; Sánchez-Esguevillas, A. A Semantic Autonomous Video Surveillance System for Dense Camera Networks in Smart Cities. Sensors 2012, 12, 10407–10429. [Google Scholar] [CrossRef]
  27. Hamida, A.B.; Koubaa, M.; Nicolas, H.; Amar, C.B. Video surveillance system based on a scalable application-oriented architecture. In Multimedia Tools and Applications; Springer: Berlin/Heidelberg, Germany, 2016; Volume 75, pp. 17187–17213. [Google Scholar]
  28. Jung, J.; Yoon, I.; Lee, S.; Paik, J. Normalized Metadata Generation for Human Retrieval Using Multiple Video Surveillance Cameras. Sensors 2016, 16, 963. [Google Scholar] [CrossRef]
  29. Pereira, I.; Silveira, L.F.; Gonçalves, L. Video Synchronization with Bit-Rate Signals and Correntropy Function. Sensors 2017, 17, 2021. [Google Scholar] [CrossRef]
  30. Prasad, S.; Mahalakshmi, P.; Sunder, A.J.C.; Swathi, R. Smart Surveillance Monitoring System Using Raspberry PI and PIR Sensor. 2014. Available online: http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.658.6805&rep=rep1&type=pdf (accessed on 26 February 2018).
  31. Wang, Z.-Y.; Chen, L. Design of Mobile Phone Video Surveillance System for Home Security Based on Embedded System. In Proceedings of the 27th Chinese Control and Decision Conference (CCDC), Qingdao, China, 23–25 May 2015; IEEE: Piscataway, NJ, USA, 2015. [Google Scholar]
  32. Bukhari, J.; Akkari, N. QoS based approach for L TE-WiFi handover. In Proceedings of the 7th International Conference on Computer Science and Information Technology (CSIT), Amman, Jordan, 13–14 July 2016; IEEE: Piscataway, NJ, USA, 2016. [Google Scholar]
  33. Li, Z.; Zhu, X.; Gahm, J.; Pan, R.; Hu, H.; Begen, A.C.; Oran, D. Probe and Adapt: Rate Adaptation for HTTP Video Streaming At Scale. IEEE J. Sel. Areas Commun. 2014, 32, 719–733. [Google Scholar]
  34. Huang, T.Y.; Johari, R.; McKeown, N.; Trunnell, M.; Watson, M. A buffer-based approach to rate adaptation: Evidence from a large videostreaming service. In Proceedings of the ACM Conference on Special Interest Group on Data Communication (SIGCOMM), Chicago, IL, USA, 17–22 August 2014; ACM Digital Library: New York, NY, USA, 2014. [Google Scholar]
  35. Xing, M.; Xiang, S.; Cai, L. A Real-Time Adaptive Algorithm for Video Streaming over Multiple Wireless Access Networks. IEEE J. Sel. Areas Commun. 2014, 32, 795–805. [Google Scholar]
  36. Yan, K.L.; Yuen, J.C.H.; Edward, C.; Kan-Yiu, L. Adaptive Encoding Scheme for Real-Time Video Streaming Over Mobile Networks. In Proceedings of the 3rd Asian Himalayas International Conference on Internet (AH-ICI), Kathmandu, Nepal, 23–25 November 2012; IEEE: Piscataway, NJ, USA, 2012. [Google Scholar]
  37. Zhou, C.; Lin, C.W. A Markov decision based rate adaption approach for dynamic HTTP streaming. IEEE Trans. Multimed. 2016, 18, 738–751. [Google Scholar]
  38. Majumder, M.; Biswas, D. Real-time mobile learning using mobile live video streaming. In Proceedings of the World Congress on Information and Communication Technologies (WICT), Trivandrum, India, 30 October–2 November 2012; IEEE: Piscataway, NJ, USA, 2012. [Google Scholar]
  39. Nam, D.-H.; Park, S.-K. Adaptive multimedia stream presentation in mobile computing environment. In Proceedings of the IEEE Region 10 Conference TENCON 99, Cheju Island, Korea, 15–17 September 1999; IEEE: Piscataway, NJ, USA, 2002. [Google Scholar]
  40. Bellavista, P.; Corradi, A.; Giannelli, C. Mobile proxies for proactive buffering in wireless Internet multimedia streaming. In Proceedings of the 25th IEEE International Conference on Distributed Computing Systems Workshops, Columbus, OH, USA, 6–10 June 2005; IEEE: Piscataway, NJ, USA, 2005. [Google Scholar]
  41. Cha, S.; Du, W.; Kurz, B.J. Middleware Framework for Disconnection Tolerant Mobile Application Services. Proceeding of the 2010 Eighth Annual Communication Networks and Services Research Conference (CNSR), Montreal, QC, Canada, 11–14 May 2010; IEEE: Piscataway, NJ, USA, 2010. [Google Scholar]
  42. Suarez, A.; Macias, E.; Martin, J.; Gutierrez, Y.; Gil, M. Light Protocol and Buffer Management for Automatically Recovering Streaming Sessions in Wifi Mobile Telephones. In Proceedings of the Second International Conference on Mobile Ubiquitous Computing, Systems, Services and Technologies (UBICOMM’08), Valencia, Spain, 29 September–4 October 2008; IEEE: Piscataway, NJ, USA, 2008. [Google Scholar]
  43. Sarmiento, S.A.; Espino, F.; Macias, E.M. Automatic recovering of RTSP sessions in mobile telephones using JADE-LEAP. Latin Am. Trans. IEEE 2009, 7, 410–417. [Google Scholar]
  44. Gualotuña, T.; Marcillo, D.; López, E.M.; Suárez-Sarmiento, A. Mobile Video Service Disruptions Control in Android Using JADE. In Advances in Computing and Communications. ACC 2011. Communications in Computer and Information Science; Springer: Berlin/Heidelberg, Germany, 2011; Volume 193. [Google Scholar]
  45. Marcillo, D. Control de Interrupciones de Video Streaming Móvil en Arquitecturas Android Usando Técnicas de Realidad Aumentada y WebRTC. Ph.D. Thesis, Universidad de Las Palmas de Gran Canaria (ULPGC), España, Spain, February 2016. [Google Scholar]
  46. Manson, R. Getting Started with WebRTC. Explore WebRTC for Real-Time Peer-to-Peer Communication. 2013. Available online: https://www.packtpub.com/web-development/getting-started-webrtc (accessed on 26 Februry 2018).
  47. Marcillo, D.; Ortega, I.; Yacchirema, S.; Llasag, R.; Luje, D. Mechanism to control disconnections in multiple communication sessions using WebRTC. In Proceedings of the 12th Iberian Conference on Information Systems and Technologies (CISTI), Lisbon, Portugal, 21–24 June 2017; IEEE: Piscataway, NJ, USA, 2017. [Google Scholar]
  48. Gualotuña, T. Diseño de una Platalforma de Agentes para Control de Servicios de Video Streaming Móvil. Ph.D. Thesis, Supervisors: Alvaro Suárez y Elsa Macías. Universidad de Las Palmas de Gran Canaria (ULPGC), España, Febrero 2016. [Google Scholar]
  49. Rivandeneira, A. Video Vigilancia Autonoma Mediante Sistemas Empotrados-Hardware Libre. Master Thesis, Universidad de Las Fuerzas Armadas (ESPE), Guayas, Ecuador, June 2016. [Google Scholar]
  50. Sánchez, J.; Benet, G.; Simó, J.E. Video Sensor Architecture for Surveillance Applications. Sensors 2012, 12, 1509–1528. [Google Scholar] [CrossRef]
  51. Vega-Barbas, M.; Pau, I.; Martín-Ruiz, M.L.; Seoane, F. Adaptive Software Architecture Based on Confident HCI for the Deployment of Sensitive Services in Smart Homes. Sensors 2015, 15, 7294–7322. [Google Scholar]
  52. Hegedus, P.; Bán, D.; Ferenc, R.; Gyimóthy, T. Myth or Reality? Analyzing the Effect of Design Patterns on Software Maintainability. In Computer Applications for Software Engineering, Disaster Recovery, and Business Continuity; Springer: Berlin/Heidelberg, Germany, 2012; pp. 138–145. [Google Scholar]
  53. Huston, B. The effects of design pattern application on metric scores. J. Syst. Softw. 2001, 58, 261–269. [Google Scholar] [CrossRef]
  54. Bayley, I.; Zhu, H. Formal specification of the variants and behavioural features of design patterns. J. Syst. Softw. 2010, 83, 209–221. [Google Scholar] [CrossRef]
  55. Zamani, B.; Butler, G. Pattern language verification in model driven design. Inf. Sci. 2013, 237, 343–355. [Google Scholar] [CrossRef]
  56. Buschmann, F.; Henney, K.; Schmidt, D.C. Pattern-Oriented Software Architecture: On Patterns and Pattern Languages; Wiley (John Wiley & Sons): Hoboken, NJ, USA, 2007. [Google Scholar]
  57. 1061-1998—IEEE Standard for a Software Quality Metrics Methodology. 1998. Available online: http://ieeexplore.ieee.org/document/749159/ (accessed on 28 February 2018).
  58. Zhang, C.; Budgen, D. A survey of experienced user perceptions about software design patterns. Inf. Softw. Technol. 2013, 55, 822–835. [Google Scholar] [CrossRef]
  59. Sahin, C.; Cayci, F.; Gutierrez, I.L.M. Initial explorations on design pattern energy usage. In Proceedings of the 1st International Workshop on Green and Sustainable Software (GREENS), Zurich, Switzerland, 3 June 2012; IEEE: Piscataway, NJ, USA, 2012. [Google Scholar]
  60. Litke, A.; Zotos, K.; Chatzigeorgiou, A.; Stephanides, G. Energy Consumption Analysis of Design Patterns. 2005. Available online: http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.111.8624&rep=rep1&type=pdf (accessed on 26 February 2018).
  61. Henderson-Sellers, B.; Gonzalez-Perez, C.; McBride, T.; Low, G. An ontology for ISO software engineering standards: 1) Creating the infrastructure. Comput. Stand. Interfaces 2014, 36, 563–576. [Google Scholar]
  62. Gonzalez-Perez, C.; Henderson-Sellers, B.; McBride, T.; Low, G.C.; Larrucea, X. An Ontology for ISO software engineering standards: 2) Proof of concept and application. Comput. Stand. Interfaces 2016, 48, 112–123. [Google Scholar]
  63. Avila, K.; Sanmartin, P.; Jabba, D.; Jimeno, M. Applications Based on Service-Oriented Architecture (SOA) in the Field of Home Healthcare. Sensors 2017, 17, 1703. [Google Scholar] [CrossRef]
  64. JADE and WSI. Available online: http://jade.tilab.com/doc/tutorials/WSIG_Guide.pdf (accessed on 15 December 2017).
  65. Zheng, S.; Zhang, Q.; Zheng, R.; Huang, B.-Q.; Song, Y.-L.; Chen, X.-C. Combining a Multi-Agent System and Communication Middleware for Smart Home Control: A Universal Control Platform Architecture. Sensors 2017, 17, 2135. [Google Scholar] [CrossRef]
  66. Liao, C.-F.; Chen, P.-Y. ROSA: Resource-Oriented Service Management Schemes for Web of Things in a Smart Home. Sensors 2017, 17, 2159. [Google Scholar] [CrossRef]
  67. Aloman, A.; Ispas, A.I.; Ciotirnae, P.; Sanchez-Iborra, R.; Cano, M.D. Performance evaluation of video streaming using MPEG DASH, RTSP, and RTMP in mobile networks. In Proceedings of the 8th IFIP Wireless and Mobile Networking Conference (WMNC), Munich, Germany, 5–7 October 2015; IEEE: Piscataway, NJ, USA, 2015. [Google Scholar]
  68. Laksono, I. Achieve End-To-End Qos for Wireless Video Streaming. 2004. Available online: http://www.eetimes.com/document.asp?doc_id=1272006 (accessed on 26 February 2018).
  69. Sharma, N.; Krishnappa, D.K.; Irwin, D.; Zink, M.; Shenoy, P. GreenCache: Augmenting Off-the-Grid Cellular Towers with Multimedia Caches. In Proceedings of the 4th ACM Multimedia Systems Conference, Oslo, Norway, 28 February–1 March 2013; ACM: New York, NY, USA, 2013. [Google Scholar]
  70. Abu-Lebdeh, M.; Belqasmi, F.; Glitho, R. An Architecture for QoS-Enabled Mobile Video Surveillance Applications in a 4G EPC and M2M Environment. IEEE 2016, 4, 4082–4093. [Google Scholar] [CrossRef]
  71. Santos-González, I.; Rivero-García, A.; Molina-Gil, J.; Caballero-Gil, P. Implementation and Analysis of Real-Time Streaming Protocols. Sensors 2017, 17, 846. [Google Scholar] [CrossRef]
  72. Parametric Non-Intrusive Assessment of Audiovisual Media Streaming Quality. 2012. Available online: https://www.itu.int/rec/T-REC-P.1201/en (accessed on 26 February 2018).
  73. Parametric Non-Intrusive Bitstream Assessment of Video Media Streaming Quality—Higher Resolution Application Area. 2012. Available online: https://www.itu.int/rec/T-REC-P.1202.2 (accessed on 26 February 2018).
  74. Kimura, T.; Yokota, M.; Matsumoto, A.; Takeshita, K.; Kawano, T.; Sato, K.; Yamamoto, H.; Hayashi, T.; Shiomoto, K.; Miyazaki, K. QUVE: QoE Maximizing Framework for Video-Streaming. IEEE J. Sel. Top. Signal Process. 2017, 11, 1. [Google Scholar]
  75. Melendi, D.; Pañeda, X.G.; García, V.G.; García, R.; Neira, A. Métricas para el Análisis de Calidad en Servicios de Vídeo-Bajo-Demanda Reales. In Proceedings of the Congreso Iberoamericano de Telemática (CITA). Montevideo, Uruguay. 2003. Available online: https://www.academia.edu/23629317/M%C3%A9tricas_para_el_An%C3%A1lisis_de_Calidad_en_Servicios_de_V%C3%ADdeo-Bajo-Demanda_Reales (accessed on 28 February 2018).
Figure 1. Scheme of main components of the video surveillance system.
Figure 1. Scheme of main components of the video surveillance system.
Sensors 18 00745 g001
Figure 2. Diagram of actors and use cases of the video surveillance system.
Figure 2. Diagram of actors and use cases of the video surveillance system.
Sensors 18 00745 g002
Figure 3. Sequence diagram of the real-time communication protocol of the intrusion video once the sensors have been triggered.
Figure 3. Sequence diagram of the real-time communication protocol of the intrusion video once the sensors have been triggered.
Sensors 18 00745 g003
Figure 4. Diagram of actors and use cases of the video surveillance system when an interruption occurs.
Figure 4. Diagram of actors and use cases of the video surveillance system when an interruption occurs.
Sensors 18 00745 g004
Figure 5. Sequence diagram for the treatment of a real time video streaming service disruption.
Figure 5. Sequence diagram for the treatment of a real time video streaming service disruption.
Sensors 18 00745 g005
Figure 6. General software design pattern of the video surveillance system.
Figure 6. General software design pattern of the video surveillance system.
Sensors 18 00745 g006
Figure 7. Photograph of the model built to emulate unwanted intrusions in a Smart Home.
Figure 7. Photograph of the model built to emulate unwanted intrusions in a Smart Home.
Sensors 18 00745 g007
Figure 8. Scheme of the use of free software for the implementation of the components of the video surveillance system.
Figure 8. Scheme of the use of free software for the implementation of the components of the video surveillance system.
Sensors 18 00745 g008
Figure 9. Communication times without and with video service disruptions.
Figure 9. Communication times without and with video service disruptions.
Sensors 18 00745 g009
Figure 10. Communication times with video service disruptions and with the new method of mitigating the adverse effects of video service disruptions.
Figure 10. Communication times with video service disruptions and with the new method of mitigating the adverse effects of video service disruptions.
Sensors 18 00745 g010
Figure 11. Percentages by categories of the MOS for Q1, Q2 and Q3.
Figure 11. Percentages by categories of the MOS for Q1, Q2 and Q3.
Sensors 18 00745 g011
Figure 12. Percentages by categories of the MOS for Q4, Q5, Q6 and Q7.
Figure 12. Percentages by categories of the MOS for Q4, Q5, Q6 and Q7.
Sensors 18 00745 g012
Figure 13. Client interface (in Spanish) of the video surveillance system for the WTerm1 and WTerm 2: (a) Three different views for Wterm 1; (b) One view for Wterm 2.
Figure 13. Client interface (in Spanish) of the video surveillance system for the WTerm1 and WTerm 2: (a) Three different views for Wterm 1; (b) One view for Wterm 2.
Sensors 18 00745 g013
Figure 14. Values of uWT for one, two and three disruptions in the WTerm1 and WTerm2.
Figure 14. Values of uWT for one, two and three disruptions in the WTerm1 and WTerm2.
Sensors 18 00745 g014
Figure 15. Mean and standard deviation for values of uWT.
Figure 15. Mean and standard deviation for values of uWT.
Sensors 18 00745 g015
Figure 16. Values of vpl for one, two and three disruptions in the WTerm1 and WTerm2.
Figure 16. Values of vpl for one, two and three disruptions in the WTerm1 and WTerm2.
Sensors 18 00745 g016aSensors 18 00745 g016b
Figure 17. Mean and standard deviation for values of vpl.
Figure 17. Mean and standard deviation for values of vpl.
Sensors 18 00745 g017
Figure 18. Time of arrival of notification messages of e-mail and Telegram using LTE and WiFi.
Figure 18. Time of arrival of notification messages of e-mail and Telegram using LTE and WiFi.
Sensors 18 00745 g018
Figure 19. Time spent in the vertical handover (LTE←→WiFi).
Figure 19. Time spent in the vertical handover (LTE←→WiFi).
Sensors 18 00745 g019
Table 1. Description of actors and use cases of Figure 2.
Table 1. Description of actors and use cases of Figure 2.
ActorsAlert IntrusionPerson that Invades the Home and Provokes an Intrusion
Use Cases UserGuard in charge of process alert messages and visualize real time intrusion video
Start Sensor ProviderInitiates the processing of the alarm after the sensors, asynchronously, have captured the information inside the Smart Home. Tests the sensors. Evaluates the range values. Triggers alarm.
Start Message ProcesorInitiates the alert message processing, which constructs the messages to be sent to the User.
Activate Telegram Bot AgentSend the Telegram instant message to the User.
Activate Mail AgentSends an e-mail to the User.
Start Video ServerInitiates the Video Server to start the communication when requested by the User.
Activate Recording AgentActivates the agent that records the offline video.
Activate Transmission AgentActivates the agent that communicates the video to the User. Request the activation of the camera.
Start video serviceStarts the video session from the User. Visualize the video.
Table 2. Description of actors and use cases of Figure 4.
Table 2. Description of actors and use cases of Figure 4.
ActorsVideo InterruptionRepresents the Disruption Causes.
Use CasesRecording AgentManages video recording during disruptions.
ClientUser or Entity that request to visualize the video.
Transmission AgentManages video transmission and monitors the channel.
Video ServiceVideo deployment to the User or Client.
Test Transmission ChannelEvaluates the wireless channel state. When a video service disruption occurs an alarm is triggered, it will store the last not received video frames.
Interrupt Video ServiceTests if a video Service interruption occured.
Stop TransmissionStops the video streaming service to the Client.
Start Recording Offline VideoOnce a video service interruption was detected, the video storing will start.
Restart TransmisionOnce the service interruption finalizes, the previous stored video will start to be sent to the Client.
Stop Recording Offline VideoWhen video service interruption finalizes offline video will stop to be stored.
Send Offline VideoSends the video stored offline.

Share and Cite

MDPI and ACS Style

Gualotuña, T.; Macías, E.; Suárez, Á.; C., E.R.F.; Rivadeneira, A. Low Cost Efficient Deliverying Video Surveillance Service to Moving Guard for Smart Home. Sensors 2018, 18, 745. https://doi.org/10.3390/s18030745

AMA Style

Gualotuña T, Macías E, Suárez Á, C. ERF, Rivadeneira A. Low Cost Efficient Deliverying Video Surveillance Service to Moving Guard for Smart Home. Sensors. 2018; 18(3):745. https://doi.org/10.3390/s18030745

Chicago/Turabian Style

Gualotuña, Tatiana, Elsa Macías, Álvaro Suárez, Efraín R. Fonseca C., and Andrés Rivadeneira. 2018. "Low Cost Efficient Deliverying Video Surveillance Service to Moving Guard for Smart Home" Sensors 18, no. 3: 745. https://doi.org/10.3390/s18030745

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop