Next Article in Journal
Recent Advances in Fluorescence Lifetime Analytical Microsystems: Contact Optics and CMOS Time-Resolved Electronics
Next Article in Special Issue
Energy Efficient Real-Time Scheduling Using DPM on Mobile Sensors with a Uniform Multi-Cores
Previous Article in Journal
Frequency-Locked Detector Threshold Setting Criteria Based on Mean-Time-To-Lose-Lock (MTLL) for GPS Receivers
Previous Article in Special Issue
Toward a Robust Security Paradigm for Bluetooth Low Energy-Based Smart Objects in the Internet-of-Things
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Obstacle Detection as a Safety Alert in Augmented Reality Models by the Use of Deep Learning Techniques

Institute of Mathematics, Silesian University of Technology, Kaszubska 23, 44-100 Gliwice, Poland
*
Author to whom correspondence should be addressed.
Sensors 2017, 17(12), 2803; https://doi.org/10.3390/s17122803
Submission received: 6 November 2017 / Revised: 23 November 2017 / Accepted: 24 November 2017 / Published: 4 December 2017
(This article belongs to the Special Issue Mobile Sensing Applications)

Abstract

:
Augmented reality (AR) is becoming increasingly popular due to its numerous applications. This is especially evident in games, medicine, education, and other areas that support our everyday activities. Moreover, this kind of computer system not only improves our vision and our perception of the world that surrounds us, but also adds additional elements, modifies existing ones, and gives additional guidance. In this article, we focus on interpreting a reality-based real-time environment evaluation for informing the user about impending obstacles. The proposed solution is based on a hybrid architecture that is capable of estimating as much incoming information as possible. The proposed solution has been tested and discussed with respect to the advantages and disadvantages of different possibilities using this type of vision.

1. Introduction

Augmented reality (AR) is no more than an expansion of reality with virtual elements that interact with some senses that comprise the perceptions of the user. The idea of integrating the real world with some virtual extensions has been a breakthrough in current technology. The simplicity of acquisition and the huge possibilities for facilitating various applications in our lives are the main advances. Recently, the solutions have been primarily used in mobile platforms as new aspects in various games. Sensors and devices transfer actions from the user into the game engine that reacts to these over virtual extensions. These man-machine interactions extend human senses and let users experience various stimuli from the virtual world that make the game more real and interesting. This type of interaction contributes to modifications in our lives. In particular, such games encourage children to leave the house and play in the open air while staying in contact with their favorite electronics. This represents a big change to modern lifestyle and reality, where many consoles and computers simply keep children at home in front of monitor. One of the most popular games based on AR is Pokemon GO, which has contributed to the popularization of this technology among young people. The authors of [1] presented how AR can improve state of health for children with social withdrawal, and the authors of [2] discussed how participation in Pokemon GO can encourage children to undertake more physical activity outside. Aspects of the popularity of this game were discussed in [3], where the authors discussed different aspects, including social, emotional, hedonic, and even nostalgic factors. As the main limitation, physical risk is pointed out.
Another aspect of AR is its excellent contribution to educational applications. In [4] the authors presented the use of AR as a tool in learning processes. The proposed idea discussed benefits from the creation of virtual models of different parts of human body in order to use them for explanation of the structure and working of tissues. Another idea with respect to the didactic application of AR was shown in [5]. The authors undertook this project in a primary school with teachers and students. They created a game which helps to discover the significance of historical buildings in Greece. Also, in [6], educational aspects of AR were discussed for more efficient learning processes. The merit was in creating a game that was useful in astronomy classes. However, AR is not only useful for educational purposes, but also medical ones. This technology can be used for assistance during surgery. One such example is presented in [7], where the automatic localization of the endoscope in intraoperative computed tomography. images was presented. AR for reducing the problem of childhood obesity was described in [8]. An interesting application is to use AR for tourists as a general guide [9]. Moreover, AR can be used to assist disabled people. One such proposition was described in [10,11] as a system for the visually impaired with the use of this technology. Another example is found in [12,13] where robotic aspects were analyzed. This example was very useful for wheelchairs in a circular environment.

Related Works

Despite so many varied possibilities for applications, currently, gaming is the most developed area. Here, AR can exceed the imposed limits by enhancing playability as well as the perceptions of players. In [14] the game in AR was described as application dedicated to smartphones. The action may take place in streets or other public places that can move users far from digital screens. Other applications in mobile devices were presented in [15]. This article demonstrates the AR–Zombie game, where a player has to kill virtual zombies displayed on the screen. Players distinguish between visible creatures by using a face recognition system which intensifies player interactions and experiences. Some other augmented reality touch-less games are shown in [16]. A multiplayer game called Robot Devastation was described in [17]. To play it is necessary to have an inexpensive robot and a PC. AR was also applied in a mobile game called Rediscovering Daereungwon [18]. This idea assists tourists exploring historic Korean places by integration of the Memorable Experience Design and Interest Curve. In [19] authors extended geocaching possibilities in augmented reality. This allows users to learn new information about historic landmarks en route and take part in games providing guidance on the next steps of the search. An interesting concept was presented in [20], where it was proposed that traditional trading cards be replaced with Stereo Cards based on augmented reality. These new cards are identified by electronic devices (for instance digital cameras) where makers describe their usage. Of course, games that are played in real-time in the real world involve many dangers caused by the inattention of the players. A player who is lost in a game and wants to cross the road can forget to look if a car is coming. Another risk may be when a player has to move and react quickly to a variety of actions. This can cause some accidents, like falling over a low fence, tree, or lantern. All of these situations are related to certain obstacles that occur when playing in the real world. Therefore, intelligent sensing technologies are useful in various detection systems constructed for ad hoc networks [21] and vehicle parking slots [22].
In this article, the idea of obstacle detection based on deep learning methods is presented. We present a system based on AR in which implemented methods work as detectors of obstacles on the way. The proposed architecture uses not only video but also real-time information processing from mobile devices that support AR technology. The presented solution has been tested on a dedicated application and the results show high efficiency in detection over various objects placed in different landscapes. The technology is easy to transfer to more sophisticated applications that can support elder people or work in complex systems for unmanned vehicles. The novelty of this solution is the possibility of interacting in real-time with humans or other devices by suggesting other routes and warning about possible accidents. The system can work in motion at various speeds. The composition of detection mechanics is based on a complex structure of convolutional and spiking neural networks which are used as detectors of various aspects of moving objects. The information over the path is evaluated in different parts of the system, where each of the structures focuses on other aspects of the input. This complex structure is novel, and due to the particular detection advances of these structures is efficient over various obstacles.

2. Capturing Data in Environment

Perception in augmented reality is accompanied by some electronic devices—in most cases mobile phones with installed software allowing a view of the modified environment. The simplest model of the AR application requires a camera, a microphone, and additional sensors that are built into today’s mobile phones. To obtain the most spectacular effect, a lot of information from the environment is needed for the analysis of the surrounding world. In this section, the data and the feature extraction processes from each of sensors are presented.

2.1. Data Extraction from the Camera Registry

The main advantage of the AR technology is obtained by the sensor of the camera, which transmits the image to the display. When the user moves, objects in the real environment move with him/her or move away. The display expands or reduces these objects in the transmitted image. Captured video is mostly composed of 24 frames per second. The analysis of each frame would require a huge number of calculations. This would make it impossible to use in real time. To avoid this, in the proposed solution one frame is taken every 2 s. User movement in a given time interval can indicate the location of the objects. Frame analysis is based on finding key points, reducing their number, and ultimately determining whether any of visible objects is the obstacle. Each frame is analyzed by the SURF (Speeded up robust features) algorithm [23]. The algorithm is based on calculating the Hessian matrix to locate the important pixels with the neighborhood. This matrix is represented as:
H ( x , ω ) = L x x ( x , ω ) L x y ( x , ω ) L x y ( x , ω ) L y y ( x , ω )
where L i i ( i , ω ) is an image convolution of I ( x ) with the Gaussian second derivative (using Gaussian kernel g ( ω ) ) which can be formulated as:
L x x ( x , ω ) = I ( x ) 2 x 2 g ( ω )
L y y ( x , ω ) = I ( x ) 2 y 2 g ( ω )
L x y ( x , ω ) = I ( x ) 2 x y g ( ω )
In the above formulas, the argument x is the sum of all pixels in the neighborhood of the analyzed point defined as:
I ( x ) = i = 0 i x j = 0 j y I ( x , y )
With all these formulas, the SURF algorithm detects the important points using non-maximal suppression of the matrix determinant calculated using the following equation:
d e t ( H a p p r o x i m a t e ) = D x x D x y ( w D x y ) 2
where D x x indicates L x x ( x , ω ) , and w is the weight. All the points that can be described as the extremes are marked as key points.
Of course, the number of found points is usually very large. To minimize the number, we delete all points that do not have neighbors in the radius r. The radius of the neighborhood should depend on the size of the image (supposing the width is marked as w and height as h). Moreover, when the radius is too large, it may leave points that are not significant in the vicinity of the various objects. Using all these facts, the radius can be calculated as:
r = w + h π
The minimized number of points can be grouped into certain clusters of objects. We understand as clusters the set of points { x 0 , , x n } where each element has at least one neighbor in that set. Each cluster will be evaluated with respect to the changing intensity between two frames. We understand the intensity as follows:
Φ { x 0 , , x n } = Φ x = max ( x w i d t h ) min ( x w i d t h ) 2 + max ( x h e i g h t ) min ( x h e i g h t ) 2
Hence, the defined intensity can be used as a tool to check what has changed in the environment. An increasing or decreasing value of intensity in particular areas is caused by the movement of the object or the user. In our consideration, we want to search for obstacles, so we will be interested in objects that are approaching. Therefore, for our purposes the intensity comparison process for searching obstacles can be illustrated as:
Φ i ( { x 0 , , x n } n 1 ) Φ i ( { x 0 , , x n } n ) approaching   obstacle Φ i ( { x 0 , , x n } n 1 ) > Φ i ( { x 0 , , x n } n ) receding   obstacle
where i means a cluster number, and n, and n 1 mean the n-th and n 1 -th frames, respectively.

2.2. Data Extraction from the Sound Registry

Analysis of sounds from the environment may prevent various problems with oncoming cars or other objects. In the ideal situation, the driver uses a horn on a pedestrian who does not pay attention to what is going on around him/her. Quite often, drivers listen to loud music, which can also inform about the approaching vehicle. It is the same with privileged cars that use continuous sound when on duty throughout the day. Quick detection may allow for reporting any nearby danger to users.
The audio signal s is a wave that can be defined as follows:
s ( t ) = i = 1 N A i ( t ) sin [ 2 π F i ( t ) t + ω i ( t ) ]
where t is time, A ( t ) is the amplitude, F ( t ) means frequency, and ω ( t ) is a phase. Unfortunately, this form cannot be analyzed. Hence, some transform is needed. The most popular and well known is the short-time Fourier transform (STFT) [24] described in discrete form as:
S { s [ n ] } ( m , f ) = n = s [ n ] w [ n m ] exp ( j f n )
Application of the STFT gives a discrete signal that can be analyzed and used in different applications. We propose calculating an estimation of energy density in time-space for the possibility of presenting the signal in a 2 D graphical representation, more accurately a flattened 3 D graph. It is called a spectrogram and can be done by calculating the following formula:
s p e c t r o g r a m { s ( t ) } ( t , f ) | S ( t , f ) | 2
The flattening of the graph means that for each point ( x , y ) (where x is a representation of time and y of frequency), the value is understood as the intensity of that point on the given axes. The intensity is depicted by the shade of color—the darker color, the higher the intensity.
In order to remove as much noise as possible, the graph will be treated as a graphic image that needs to be simplified. Simplification involves the use of simple graphic filters. Assume that the pixel is marked as ϕ and interpreted in an RGB color model. Each of the color components for a given pixel can be described as a function for R ( ϕ ) , G ( ϕ ) , and B ( ϕ ) . To simplify the formulas, we denote ω ( ϕ ) as each of these components, which can be formulated as ω = R ( ϕ ) ω ( ϕ ) = G ( ϕ ) ω ( ϕ ) = B ( ϕ ) . At first, the image is converted to grayscale which consists of replacing each pixel component with the shade of gray defined as:
ω ( ϕ ) = R ( ϕ ) + G ( ϕ ) + B ( ϕ ) 3
The next step is to decrease the gamma value by the so-called gamma correction described as:
ω ( ϕ ) = 255 × ω ( ϕ ) 255 γ , where γ > 0
After this step the contrast is increased. For this operation, the contrast correction factor is calculated as:
v = 259 ( α + 259 ) 255 ( 259 α )
where α is a level of contrast and it is used to calculate the adjustment in contrast by the following formula:
ω ( ϕ ) = v ( ω ( ϕ ) 128 ) + 128
These filters allow to us simplify the graphics. We have investigated different values of γ and α to find the optimal ones that can be used in general purposes. This is important for the efficiency of AR applications since there are different types of microphones in mobile phones and in addition, the intensity of the recorded sound may vary. The main idea is to simplify the spectrograms in such a way that they can be used as sources of knowledge that describe the environment for later classification. These two values cannot be analyzed separately because there may be a situation when the best results from first filter will be deteriorated by using a second filter, which gives excellent results for the image without the operation of the first one.
To find the best match between the two parameters, different variants have been tested in terms of information quality (pixels) through the entropy equation, where the probability of each pixel remains the same, which can be defined as:
H ( X ) = log 2 ( n )
where X is a set of pixels and n is the number of elements in this set. Of course, this calculation cannot be done for only one sample image. For this purpose, we used 100 grayscale spectrograms and then calculated entropy as:
H ( X ) = log 2 1 100 i = 0 100 n i
Calculated information about entropy is presented in Figure 1 and it is easy to see that the best results are obtained for γ = 0.75 and α = 5 , where the entropy is almost 10.23 . Slightly poorer values were obtained for γ = 1 and α { 3 , 4 , 5 } .
So, these simplified graphics are used as the input features describing the sound in the real-time environment.

2.3. Data Extraction from Other Sensors

Mobile phones or tablet have built-in sensors that allow to better analysis of the environment. A few of them can be used in the terms for finding some obstacles in the range of the user. The most important is the gyroscope which is used to measure the position of the device relative to the axes O X , O Y , and O X . This provides the opportunity to control various functions and movements in applications by moving the device. In practice, this sensor gives us three values representing the exact position of the device, which can be described as a set of coordinates { x d e v , y d e v , z d e v } . Other built-in sensors are thermometers, hygrometers, and altimeters, which offer data about the temperature, humidity, and altitude above the sea level, respectively. These data can be used in analyzing environmental changes when the user moves. Moreover, in our consideration, rain or fog may limit movement and cause problems during the use of various applications. These weather phenomena reduce the visibility of the player, so the importance of alerting the user to emerging hurdles or problems must be based on other sensors. Such information is supplied by the moisture sensor.

3. Neural Techniques

Hybrid solutions are composed as complex structures that have co-working modules made up of specific tasks in the project. The system we present in this article is a complex structure where we have used various models of neural networks, each of which has special properties that makes it more efficient in this implementation.

3.1. Spiking Neural Network

A model of the spiking neural network (SNN) architecture simulates voltage change that occurs in the axons of the neurons while transmitting the signal over the tissues in our bodies [25,26]. We name this signal an impulse of the information. From the technical point of view, this impulse is a spike of the voltage that comes from the change in the potential of the neural membrane while sending information to other neurons. Each impulse is passing through whole network and is perceived by specific areas in brain. This kind of stimulation can cause, among other things, memories or processing of received information. A mathematical model of this situation assumes that the impulse is generated after exceeding a threshold value. This type of neural architecture is perfect for processing various signals that vary over time intervald.
The basic unit of the SNN architecture is a neuron. All layers in the SNN are composed of connected neurons that communicate to forward the impulses of information. A set of neurons Ξ j forming the layer i-th is connected with another set of neurons from the previous layer i-th. The impulse of information is sent over the interlayer connections in time t i if the threshold value ν exceeds the limit level. The state of each neuron x j ( t ) defined for the exact time t is defined as:
x j ( t ) = i Ξ j w i j ϵ ( t t i )
where w i j is the connection weight for the neurons i-th and j-th, and ϵ ( t ) is an impulse function defined as:
ϵ ( t ) = t τ exp 1 t τ
where τ is the constant value that represents membrane potential.
Each of the neurons changes between the reproduction of the impulse and its retrieval. This delay in time is marked as d k for the k-th connection and the time between the states is calculated as:
y j k ( t ) = ϵ ( t t j d k )
where the impulse after first exceeding threshold limit ν by neuron x j ( t ) was generated in time t j .
We calculate the state of neuron x j using Equations (19)–(21) as:
x j ( t ) = i Ξ j k = 1 m w i j k y i k ( t )
The topology of the SNN is similar to classical neural networks: we have the input, multiple hidden layers, and the output.

Training

The network must be tuned to process the input, and for this we use algorithms that correct the weights of the connections between the network layers. SpikeProp is a devoted method for training the SNN. This method, proposed in [27], is derived from the classic back-propagation algorithm. To describe the procedure we use symbols: H for the input, I for hidden layers, and J for the output.
Input data that enters into the input layer can be described as { [ t 1 , , t h ] , } , and the time to generate the impulse in neuron j J as { t j d } . The least squares method may be used as error function defined as:
E = 1 2 j J t j a t j d 2
where t j a is the last time the impulse was generated and t j d is called the expected time.
For the training we first calculate the change of the connection weights for the output layer:
Δ w i j k = η y i k ( t j a ) δ j
where η is the change coefficient given as a constant value, and δ j is calculated as:
δ j = E t j a t j a x j ( t j a )
The change of the connection weights for the hidden layers is:
Δ w h i k = η y h k ( t i a ) δ i
where
δ i = j Ξ i δ j k w i j k y i k ( t j a ) t i a h Ξ i l w h i l y h l ( t i a ) t i a

3.2. Convolutional Neural Network

The convolutional neural network (CNN) proposed in [28] simulates the primary brain cortex. The CNN is devoted to image processing, since the construction of the layers adjusts to the information presented in the images during convolution, pooling, and full processing of the neural units.
The convolution layer extracts information from input images. It is a three-dimensional system of neurons that is composed as an extraction system. Over the width, height, and depth we compute average values of the filters for the input image. The ω filter is run over the image as a matrix of coefficients that blur the content. We use the matrix to change pixel values using the step of S pixels. The size of the convolutional layer depends on the size of the image, i.e., for the image size N × N pixels we use filter matrix m × m to calculate the output:
s o u t p u t = N m S + 1
where s o u t p u t is the output size. As a result we have the feature maps. Next the input neuron x i j on each layer l, computes the sum from the previous layer l 1 multiplied by the weight of the filter matrix as:
x i j l = a = 0 m 1 b = 0 m 1 ω a b y ( i + a ) ( j + b ) l 1
The pooling (also known as the sub-sampling) layer reduces the size of received images. For this operation we use the maximum value from the pixels in the ω filter of the size a × a . The maximum for each of the filters simply replaces the window, and then we move the filter by a step and again replace all the pixels with the maximum value. This helps to reduce the information from the convolution layer.
Fully connected layers process the information from pooling. This structure is similar to the regular construction of neural networks. Each pixel from pooling is forwarded as a single input to the network. Therefore, the number of neurons is equal to the number of pixels in the image from pooling. The number of the layers consists of assumed fully-connected layers plus the output layer.

Training

The CNN structure must be tuned for proper classification. We use the back-propagation algorithm. The error function f ( · ) is used for correction of the output f y i j l of the neuron at position i , j in the layer l.
We calculate the error f y i j l for the output layer. Then we use a chain rule to modify connection weights using information gradient for all neurons x i j l as:
f ω a b = i = 0 N m j = 0 N m f x i j l x i j l ω a b = i = 0 N m j = 0 N m f x i j l y ( i + 1 ) ( j + b ) l 1
The applied information gradient value is calculated using the error value f x i j l :
f x i j l = f y i j l y i j l x i j l = f y i j l σ ( x i j l ) x i j l = f y i j l σ ( x i j l )
where σ ( x ) is the activation function.
The correction of the weights is back-propagated over the network, however pooling layer does not take part in the training. Therefore, after calculations for fully-connected layers we come to the convolutional layer. The information gradient value for the convolutional layer is calculated using the propagated signal as:
f y i j l 1 = a = 0 m 1 b = 0 m 1 f x ( i a ) ( j b ) l x ( i a ) ( j b ) l y i j l 1 = a = 0 m 1 b = 0 m 1 f x ( i a ) ( j b ) l ω a b
The formula from Equation (32) takes the final form:
x ( i a ) ( j b ) l y i j l 1 = ω a b

4. Hybrid Architecture for Object Detection

The data obtained by the sensors in the device is complex. We have not only numerical values but also graphical samples. Very large amounts of different types of information become a big problem for one classifier, so we suggest using a hybrid architecture based on a variety of machine learning techniques. The hybrid composition we have used in the project is oriented around efficiency to get the best results. The proposed architecture operates on the flow of information between different classifiers and mechanisms, like SNN and CNN used for evaluation of sounds and images. In addition to these neural techniques we have also used other to compose a complex evaluation system for the proposed augmented reality technology. The sample visualization of the operating scheme is presented in Figure 2 and Figure 3.

Hybrid Architecture

Incoming information cannot be interpreted separately, but all of indications need to be processed as complex data for the extraction of important features. Incoming data are composed of video, audio, and some numerical values from other sensors. The main problem is with the first two types of data—video and audio. Both types of data need to be reduced to decrease the number of calculations. For that purpose, we take only one frame every two seconds. The same is done with audio, where the spectrogram is made for these particular moments using Equation (12). Other data are selected ad hoc to obtain the specific data according to extracted frame.
On obtaining specific data, they are processed in different ways to get the most accurate evaluation results. Video is processed based on the method described in Section 2.1 and as a result we get a fragment of the image with a potential obstacle which is analyzed with Equation (9). These images are transferred to the CNN system. Sound is processed almost in the same way, in another CNN system with samples described exactly in the same way. As a result, from both networks the numerical values are returned—these networks are trained with data which contain images described with the value of 1 as an obstacle or 0 otherwise.
Both networks returned two numerical values as the responses about potential obstacles in the presented samples. Gathering these with all values received from other sensors, it is possible to create a state vector that describes situation around the user using the input data in the following manner:
x d e v , y d e v , z d e v , v t e m p , v h u m i , v a l t , i
where x d e v , y d e v and z d e v are important values for the obstacle detection captured from the recorded point of the camera. However, in the system we assume that if the camera is working and records the sky, the user should not be notified of the detected obstacles in the form of clouds. The values v t e m p , v h u m i , v a l t , v m o i are the current numerical values from other sensors. More specifically, we record them from thermometers, hygrometers, and altimeters. An obstacle is marked as i { 0 , 1 } where 0 means no obstacle and 1 means that there is an obstacle in the area recorded by the devices.
To increase the precision, obtained results are used in next step of the proposed architecture. The spiking neural network returns the decision about a potential obstacle evaluating received information from other networks and sensors. This work is perfect for SNN, since using the model from Section 3.1 we can evaluate user state in real time. Unfortunately, this decision might be incomplete and sometimes wrong. To make sure that it is a correct result, another classifier verifies this decision based on the image from camera. The final verification is made by analyzing frames with the respect to output decision.
Suppose that the returned decision was 1 which means there was an obstacle. It should be easy to find it in the given frames. We propose the use of template technique, which means matching of the given data to the pattern—in this case, it is the obstacle. The key points in each of input frames should create a shape that can be analyzed in both frames. In the second one, the shape should be not only bigger but also more precisely visible. As “precise” we have in mind the acutance value for a random square region placed between the key points. Assume that the region size is q × q and it is converted to grayscale using Equation (13). Each pixel in the grid has 8 or 24 neighbors (which can be marked as Δ I , and the number of neighbors depends on the size of neighborhood). The difference between the center and one of the neighbors can be calculated as Δ X . By Δ I we understand the difference between the center and the neighbors in the gray scale value of the pixels, where I 0 is the double value of the squared mean value of the image. All these values are used to define acutance Ξ as:
Ξ = 1 I 0 Δ I Δ X 2 · 1 n
Hence, the defined acutance value can be used in the template matching evaluation processes based on the input video frame. The obtained important cluster should be repeated on the next frame with higher acutance. In case, when the cluster is in both frames, but the acutance value is lower, it means that the obstacle moves away. Of course, the same thing is done with voice, but here we search only for a repeating beep (a sound issued by privileged vehicles) which can be seen on video frames because of the long distance.

5. Data Collection

We captured data from three different users with various devices. The motivation for this was to obtain data of different quality to allow analysis of our system on the data from various perspectives. Each user had to record 40 different movies, with a minimum duration of one minute in an attempt to approach any obstacles in different weather conditions. During the recording processes a simple program was required to record the data from various sensors to the file with a time stamp. Recorded time was important for further matching of the information to the captured video files. Stored data from the first user gave 2160 frames (taking 1 frame for each two seconds of the video), 1560 frames from the second user, and 2904 frames from the third one.

6. Experiments

The extensive detection architecture has many different parameters that need to be controlled to obtain the highest accuracy. Each network was trained to different error values, which are 0.1 , 0.01 , and 0.001 . Moreover, the training set was composed of 2000 frames with information from other sensors. The rest of the collected data was selected and used for the verification of correctness of the proposed architecture. In Table 1, Table 2 and Table 3 the average correctness is presented in the terms of neural network error value.
For the best correctness, we evaluated this architecture by the use of classic measures like T P (true positive), T N (true negative), F P (false positive), and F N (false negative). These values allow the calculation of more sophisticated parameters for the system: accuracy Γ , Dice’s coefficient Λ , overlap Ψ , sensitivity Υ , and specificity Φ defined as:
Γ = T P + T N T P + T N + F P + F N
Λ = 2 T P 2 T P + F P + F N
Ψ = T P T P + F P + F N
Υ = T P T P + F N
Φ = T N T N + F P
The results of our calculations are presented in Table 4 and in the form of a confusion matrix on Figure 4, Figure 5 and Figure 6.

Conclusions

For each of the three users the average correctness of evaluation is high. The best results were achieved by User 3. These recordings were done in a city during sunny day with no clouds and high visibility. The measurements were performed by walking in the streets, crossing, passing by, etc. Results show that for this kind of detection the system was able to achieve about 70% correctness. The second type of detection was measured by User 2. The recordings were done in corridors, buildings, inside constructions, etc. Conditions were independent of the weather outside, and some of the rooms and corridors were well lighted, but in others the visibility was not so good. The results of detection for User 3 reflect these conditions. The average correctness is lower but still shows that the proposed system works well. Recordings by User 1 were done from moving vehicles like cars and small boats. Weather conditions were an additional disadvantage since as we can see from Figure 7 we had restricted visibility and lightness. The objects were moving with a motor speed that implied additional difficulties for the system. Average correctness is about 50%, however the results show potential for improvement. Confusion matrices confirm that proposed solution has a high potential for further development. We can say that proposed complex system works well and it was possible to train the system with high efficiency even for three users. Therefore, for many more users working in various environments and by using additional sensors we can achieve a boost in the proposed technology.
While the results show great accuracy and many possibilities for practical applications, the number of different objects that can be encountered in reality is, unfortunately, still a problem. There is a situation where the technique will not be able to extract the features of objects, which will make the solution unusable. An example is poor recording quality, which can occur especially at night, in fog, or during heavy rain. We have also noticed that the speed of rotation of the camera must be stable. The system is not able to recognize objects if the rotation is fast. These are the main drawbacks that we have encountered in this stage of the project.
On the other hand, the solution has many positive aspects. We can use it as a system that helps older people to walk in the city, cross streets, etc. The solution is very simple in its concept, so by having a simple set of electronic devices that can provide measures of the environment in real time we can evaluate the situation and actively support older people.

7. Final Remarks

Increasingly practical use of augmented reality is leading to developments in technology with many possible applications. This article presents an opportunity to analyze the environment through various sensors to avoid collisions with approaching objects. This kind of technology has many uses, e.g., to help older people to cross a street, assist safer driving, or simply in supervision. For this purpose, a special architecture has been proposed which uses, among other things, deep learning algorithms and a dedicated method of data extraction from the samples obtained in real time. The proposed solution was tested and evaluated in terms of advantages and disadvantages of possible implementation in practice.
In future research, we will focus on the possibility of implementing this solution with low exposure so that the device would not be overloaded with too many operations.

Acknowledgments

The authors would like to acknowledgment the contribution to this research from the Rector of Silesian University of Technology under grant RGH 2017 No. 09/010/RGH17/0026 for prospective professors, which was received for covering the costs of this publication in open access. A contribution was also received from the “Diamond Grant 2016” No. 0080/DIA/2016/45 funded by the Polish Ministry of Science and Higher Education.

Author Contributions

Dawid Połap, Karolina Kęsik, Marcin Woźniak and Kamil Książek designed the method, performed experiments and wrote the paper.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Tateno, M.; Skokauskas, N.; Kato, T.A.; Teo, A.R.; Guerrero, A.P. New game software (Pokémon Go) may help youth with severe social withdrawal, hikikomori. Psychiatry Res. 2016, 246, 848–849. [Google Scholar] [CrossRef] [PubMed]
  2. LeBlanc, A.G.; Chaput, J.P. Pokémon Go: A game changer for the physical inactivity crisis? Prev. Med. 2017, 101, 235–237. [Google Scholar] [CrossRef] [PubMed]
  3. Rauschnabel, P.A.; Rossmann, A.; Dieck, M.C.T. An adoption framework for mobile augmented reality games: The case of Pokémon Go. Comput. Hum. Behav. 2017, 76, 276–286. [Google Scholar] [CrossRef]
  4. Juan, C.; Beatrice, F.; Cano, J. An augmented reality system for learning the interior of the human body. In Proceedings of the Eighth IEEE International Conference on Advanced Learning Technologies (ICALT’08), Santander, Cantabria, Spain, 1–5 July 2008; pp. 186–188. [Google Scholar]
  5. Koutromanos, G.; Styliaras, G. “The buildings speak about our city”: A location based augmented reality game. In Proceedings of the 2015 6th International Conference on Information, Intelligence, Systems and Applications (IISA), Corfu, Greece, 6–8 July 2015; pp. 1–6. [Google Scholar]
  6. Kumar, C.P.; Poovaiah, R.; Sen, A.; Ganadas, P. Single access point based indoor localization technique for augmented reality gaming for children. In Proceedings of the 2014 IEEE Students’ Technology Symposium (TechSym), Kharagpur, India, 28 February–2 March 2014; pp. 229–232. [Google Scholar]
  7. Bernhardt, S.; Nicolau, S.A.; Agnus, V.; Soler, L.; Doignon, C.; Marescaux, J. Automatic localization of endoscope in intraoperative CT image: A simple approach to augmented reality guidance in laparoscopic surgery. Med. Image Anal. 2016, 30, 130–143. [Google Scholar] [CrossRef] [PubMed]
  8. Kim, S.L.; Suk, H.J.; Kang, J.H.; Jung, J.M.; Laine, T.H.; Westlin, J. Using Unity 3D to facilitate mobile augmented reality game development. In Proceedings of the 2014 IEEE World Forum on Internet of Things (WF-IoT), Seoul, Korea, 6–8 March 2014; pp. 21–26. [Google Scholar]
  9. Dieck, M.C.T.; Jung, T. A theoretical model of mobile augmented reality acceptance in urban heritage tourism. Curr. Issues Tour. 2015, 1–21. [Google Scholar] [CrossRef]
  10. Katz, B.F.; Kammoun, S.; Parseihian, G.; Gutierrez, O.; Brilhault, A.; Auvray, M.; Truillet, P.; Denis, M.; Thorpe, S.; Jouffrais, C. NAVIG: Augmented reality guidance system for the visually impaired. Virtual Real. 2012, 16, 253–269. [Google Scholar] [CrossRef]
  11. Joseph, S.L.; Zhang, X.; Dryanovski, I.; Xiao, J.; Yi, C.; Tian, Y. Semantic indoor navigation with a blind-user oriented augmented reality. In Proceedings of the 2013 IEEE International Conference on Systems, Man, and Cybernetics (SMC), Manchester, UK, 13–16 October 2013; pp. 3585–3591. [Google Scholar]
  12. Maule, L.; Fornaser, A.; Tomasin, P.; Tavernini, M.; Minotto, G.; Da Lio, M.; De Cecco, M. Augmented Robotics for Electronic Wheelchair to Enhance Mobility in Domestic Environment. In Proceedings of the International Conference on Augmented Reality, Virtual Reality and Computer Graphics, Ugento, Italy, 12–15 June 2017; Springer: Cham, Switzerland, 2017; pp. 22–32. [Google Scholar]
  13. Gelenbe, E.; Hussain, K.; Kaptan, V. Simulating autonomous agents in augmented reality. J. Syst. Softw. 2005, 74, 255–268. [Google Scholar] [CrossRef]
  14. Mesarosova, A.; Hernandez, M.F. ARecycle NOID ARt Game: The Augmented Reality Game in Public Space. In Proceedings of the 2014 International Conference on Cyberworlds (CW), Santander, Spain, 6–8 October 2014; pp. 421–424. [Google Scholar]
  15. Cordeiro, D.; Correia, N.; Jesus, R. ARZombie: A mobile augmented reality game with multimodal interaction. In Proceedings of the 2015 7th International Conference on Intelligent Technologies for Interactive Entertainment (INTETAIN), Turin, Italy, 10–12 June 2015; pp. 22–31. [Google Scholar]
  16. Lv, Z.; Halawani, A.; Feng, S.; Ur Réhman, S.; Li, H. Touch-less interactive augmented reality game on vision-based wearable device. Pers. Ubiquitous Comput. 2015, 19, 551–567. [Google Scholar] [CrossRef]
  17. Estevez, D.; Victores, J.G.; Morante, S.; Balaguer, C. Robot devastation: Using DIY low-cost platforms for multiplayer interaction in an augmented reality game. In Proceedings of the 2015 7th International Conference on Intelligent Technologies for Interactive Entertainment (INTETAIN), Turin, Italy, 10–12 June 2015; pp. 32–36. [Google Scholar]
  18. Shin, J.; Kim, J.; Woo, W. Narrative design for Rediscovering Daereungwon: A location-based augmented reality game. In Proceedings of the 2017 IEEE International Conference on Consumer Electronics (ICCE), Las Vegas, NV, USA, 8–10 January 2017; pp. 384–387. [Google Scholar]
  19. Garay-Cortes, J.; Uribe-Quevedo, A. Location-based augmented reality game to engage students in discovering institutional landmarks. In Proceedings of the 2016 7th International Conference on Information, Intelligence, Systems & Applications (IISA), Chalkidiki, Greece, 13–15 July 2016; pp. 1–4. [Google Scholar]
  20. Nguyen, M.; Yeap, W.; Hooper, S. Design of a new trading card for table-top augmented reality game environment. In Proceedings of the 2016 International Conference on Image and Vision Computing New Zealand (IVCNZ), Palmerston North, New Zealand, 21–22 November 2016; pp. 1–6. [Google Scholar]
  21. Wei, W.; Qi, Y. Information potential fields navigation in wireless Ad-Hoc sensor networks. Sensors 2011, 11, 4794–4807. [Google Scholar] [CrossRef] [PubMed]
  22. Wei, W.; Song, H.; Li, W.; Shen, P.; Vasilakos, A. Gradient-driven parking navigation using a continuous information potential field based on wireless sensor network. Inf. Sci. 2017, 408, 100–114. [Google Scholar] [CrossRef]
  23. Bay, H.; Tuytelaars, T.; Van Gool, L. Surf: Speeded up robust features. Computer Vision–ECCV 2006; Springer: Berlin/Heidelberg, Germany, 2006; pp. 404–417. [Google Scholar]
  24. Sejdić, E.; Djurović, I.; Jiang, J. Time–frequency feature representation using energy concentration: An overview of recent advances. Digit. Signal Process. 2009, 19, 153–183. [Google Scholar] [CrossRef]
  25. Maass, W. Networks of spiking neurons: The third generation of neural network models. Neural Netw. 1997, 10, 1659–1671. [Google Scholar] [CrossRef]
  26. Xin, J.; Embrechts, M.J. Supervised learning with spiking neural networks. In Proceedings of the International Joint Conference on Neural Networks (IJCNN’01), Washington, DC, USA, 15–19 July 2001; Volume 3, pp. 1772–1777. [Google Scholar]
  27. Bohte, S.M.; Kok, J.N.; La Poutre, H. Error-backpropagation in temporally encoded networks of spiking neurons. Neurocomputing 2002, 48, 17–37. [Google Scholar] [CrossRef]
  28. Hubel, D.H.; Wiesel, T.N. Receptive fields of single neurones in the cat’s striate cortex. J. Physiol. 1959, 148, 574–591. [Google Scholar] [CrossRef] [PubMed]
Figure 1. Graph of entropy values for spectrograms with the respect to parameters γ (on O X ), α (on O Y ), and average entropy (on O Z ).
Figure 1. Graph of entropy values for spectrograms with the respect to parameters γ (on O X ), α (on O Y ), and average entropy (on O Z ).
Sensors 17 02803 g001
Figure 2. Sample presentation of the idea for an augmented reality detection system which by the use of proposed deep learning techniques evaluates readings from sensors in real time.
Figure 2. Sample presentation of the idea for an augmented reality detection system which by the use of proposed deep learning techniques evaluates readings from sensors in real time.
Sensors 17 02803 g002
Figure 3. Visualization of the proposed architecture for data analysis in order to inform system users about possible obstacles.
Figure 3. Visualization of the proposed architecture for data analysis in order to inform system users about possible obstacles.
Sensors 17 02803 g003
Figure 4. Confusion matrix for User 1.
Figure 4. Confusion matrix for User 1.
Sensors 17 02803 g004
Figure 5. Confusion matrix for User 2.
Figure 5. Confusion matrix for User 2.
Sensors 17 02803 g005
Figure 6. Confusion matrix for User 3.
Figure 6. Confusion matrix for User 3.
Sensors 17 02803 g006
Figure 7. Sample frames from selected video files recorded with different devices in different weather conditions. Yellow circles indicate detected obstacles. The users were recording in various conditions: from moving vehicles with low visibility (User 1), in corridors and buildings with various levels of lighting (User 2), and in an open city space with good visibility and lightness (User 3).
Figure 7. Sample frames from selected video files recorded with different devices in different weather conditions. Yellow circles indicate detected obstacles. The users were recording in various conditions: from moving vehicles with low visibility (User 1), in corridors and buildings with various levels of lighting (User 2), and in an open city space with good visibility and lightness (User 3).
Sensors 17 02803 g007
Table 1. Average correctness for various neural compositions applied for User 1. CNN: convolutional neural network; SNN: spiking neural network.
Table 1. Average correctness for various neural compositions applied for User 1. CNN: convolutional neural network; SNN: spiking neural network.
Error ValueAverage
Correctness
CNN FramesCNN for AudioSNN
0.10.10.132%
0.10.10.0135%
0.10.10.0136.5%
0.10.010.138%
0.10.010.0139%
0.10.010.00139.5%
0.10.0010.141%
0.10.0010.0139%
0.10.0010.00144%
Table 2. Average correctness for various neural compositions applied for User 2.
Table 2. Average correctness for various neural compositions applied for User 2.
Error ValueAverage
Correctness
CNN FramesCNN for AudioSNN
0.010.10.141%
0.010.10.0143.5%
0.010.10.0144%
0.010.010.143%
0.010.010.0146%
0.010.010.00149%
0.010.0010.148.5%
0.010.0010.0153%
0.010.0010.00155%
Table 3. Average correctness for various neural compositions applied for User 3.
Table 3. Average correctness for various neural compositions applied for User 3.
Error ValueAverage
Correctness
CNN FramesCNN for AudioSNN
0.0010.10.163%
0.0010.10.0164.5%
0.0010.10.0166%
0.0010.010.162%
0.0010.010.0168%
0.0010.010.00171%
0.0010.0010.165%
0.0010.0010.0176%
0.0010.0010.00179%
Table 4. The results of user verification for the proposed methodology.
Table 4. The results of user verification for the proposed methodology.
UserTPTNFPFN Γ Λ Ψ Υ Ψ
119126142654020.790.850.740.820.7
214052311906000.670.780.640.70.54
325124011111740.910.950.90.940.78
Average1943415.33188.673920.790.860.760.820.68

Share and Cite

MDPI and ACS Style

Połap, D.; Kęsik, K.; Książek, K.; Woźniak, M. Obstacle Detection as a Safety Alert in Augmented Reality Models by the Use of Deep Learning Techniques. Sensors 2017, 17, 2803. https://doi.org/10.3390/s17122803

AMA Style

Połap D, Kęsik K, Książek K, Woźniak M. Obstacle Detection as a Safety Alert in Augmented Reality Models by the Use of Deep Learning Techniques. Sensors. 2017; 17(12):2803. https://doi.org/10.3390/s17122803

Chicago/Turabian Style

Połap, Dawid, Karolina Kęsik, Kamil Książek, and Marcin Woźniak. 2017. "Obstacle Detection as a Safety Alert in Augmented Reality Models by the Use of Deep Learning Techniques" Sensors 17, no. 12: 2803. https://doi.org/10.3390/s17122803

APA Style

Połap, D., Kęsik, K., Książek, K., & Woźniak, M. (2017). Obstacle Detection as a Safety Alert in Augmented Reality Models by the Use of Deep Learning Techniques. Sensors, 17(12), 2803. https://doi.org/10.3390/s17122803

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