applied sciences
Article Performance Analysis and Improvement of Optical Camera Communication
Moh. Khalid Hasan , Mostafa Zaman Chowdhury , Md. Shahjalal , Van Thang Nguyen and Yeong Min Jang *
Department of Electronics Engineering, Kookmin University, Seoul 02707, Korea; [email protected] (M.K.H.); [email protected] (M.Z.C.); [email protected] (M.S.); [email protected] (V.T.N.) * Correspondence: [email protected]; Tel.: +82-2-910-5068
Received: 2 November 2018; Accepted: 3 December 2018; Published: 6 December 2018
Abstract: Optical camera communication (OCC) is a technology in which a camera image sensor is employed to receive data bits sent from a light source. OCC has attracted a lot of research interest in the area of mobile optical wireless communication due to the popularity of smartphones with embedded cameras. Moreover, OCC offers high-performance characteristics, including an excellent signal-to-interference-plus-noise ratio (SINR), high security, low interference, and high stability with respect to varying communication distances. Despite these advantages, OCC suffers from several limitations, the primary of which is the low data rate. In this paper, we provide a comprehensive analysis of the parameters that influence the OCC performance. These parameters include the camera sampling rate, the exposure time, the focal length, the pixel edge length, the transmitter configurations, and the optical flickering rate. In particular, the focus is on enhancing the data rate, SINR, and communication distance, which are the principal factors determining the quality of service experienced by a user. The paper also provides a short survey of modulation schemes used in OCC on the basis of the achieved data rate, communication distance, and possible application scenarios. A theoretical analysis of user satisfaction using OCC is also rendered. Furthermore, we present the simulation results demonstrating OCC performance with respect to variations in the parameters mentioned above, which include the outage probability analysis for OCC.
Keywords: optical camera communication (OCC); performance improvement; camera sampling rate; SINR; shutter speed synchronization; outage probability; user satisfaction
1. Introduction Optical wireless communication (OWC) has recently become a congruent complement of radio-frequency (RF) technologies due to its vast unregulated spectrum, as well as the dense formation of lighting infrastructures in both indoor and outdoor scenarios [1]. It has introduced a new venture for the Internet of Things (IoT) by increasing connectivity options. The optical spectrum is entirely cost-free and is a significant option to assist RF in handling the massive data traffic envisaged for the future. Optical camera communication (OCC) is a subsystem of OWC that uses visible or infrared light to communicate with a camera sensor [1]. Complementary metal-oxide-semiconductor (CMOS) cameras integrated into smartphones or mobile robots have become very common in recent years, making OCC immensely promising. Current commercial light-emitting diodes (LEDs) offer low costs, a low power consumption, high efficiency, and are established almost everywhere. Exploiting cameras to receive data sent from LED transmitters adds a significant dimension in the area of OWC systems. Accordingly, IEEE has developed a task group regarding OCC, called IEEE 802.15.7m [2]. OCC is
Appl. Sci. 2018, 8, 2527; doi:10.3390/app8122527 www.mdpi.com/journal/applsci Appl. Sci. 2018, 8, 2527 2 of 18 a directional technology that provides the users with a high level of security. Moreover, due to the nature of camera pixels, an OCC system is less affected by interference than any other OWC technologies. These characteristics open up possibilities for the system’s usability in a variety of applications, including vehicle-to-vehicle and vehicle-to-infrastructure (V2X) communications [3,4] digital signage, augmented reality (AR), and location-based services (LBS) [5–7]. However, several challenges have been observed while communicating using image sensors. First, cameras cannot detect LEDs blinking at a high frequency [8]. Second, very low frequencies lead to flickering observed by the human eyes, which is prohibited. Third, conventional cameras offer low sampling rates, resulting in a low-rate data reception. Fourth, synchronization between the LED modulation frequency and the camera shutter speed is also an important challenge for OCC. Without proper synchronization, the bit-error rate (BER) increases. Although OCC is very stable in terms of changing the communication distance, the limited angle-of-view (AOV) leads to the system not exploiting the full LED coverage area. Moreover, an image should appear in several pixels to decode the information sent from the LED. Therefore, the fifth reason that significantly affects OCC performance accounts to the pixel edge length. Different methods can be employed to improve OCC performance. Deep-learning-based algorithms can be utilized to increase the data rate and communication distance. A convolutional neural network was proposed in [2] in conjunction with OCC to receive data in outdoor environments. Communication in these scenarios is affected by sunlight and bad weather conditions (fog, rain, or snow). Computer vision techniques can also be utilized for accurate LED pattern classification and recognition to increase the signal-to-interference-plus-noise ratio (SINR), communication distance, and data rate for OCC. In recent times, red/green/blue (RGB) LEDs are used in OCC to improve the performance. Deep learning is a significant option to design the transceiver for RGB-LED-based communications [9]; however, this technique faces some limitations, such as its computation expensiveness and configuration complexities. Researchers have been investigating how to enhance the OCC performance for years. Enhancement of the signal performance of mobile-phone-based OCC using histogram equalization was reported in Reference [10]. An improved decoding method for OCC for vehicular applications using high-speed cameras was presented in Reference [11]. Recently, researchers have been exploring how to increase the maximum communication distance and data rate by introducing new modulation schemes. In Reference [12], a combination of modulation schemes has been proposed to achieve an improved data rate. On the other hand, RGB LEDs are utilized to enhance the communication distance for OCC [13]. Nonetheless, to the best of our knowledge, no researchers have briefly examined the OCC performance emphasizing on the effects of the LED and camera parameters. In this study, we provide a comprehensive discussion of these parameters that affect OCC performance. We emphasize cameras using the rolling shutter technique, as these types are very popular, cost-effective, and widely available. Our main contributions in this paper are summarized as follows:
• We briefly explore the role of LED and camera parameters in determining OCC performance. Variations in these parameters lead to our insights on variations in the OCC performance. We focus on key issues related to the quality of service, including data-rate enhancement, SINR improvement, increasing the communication distance, and decreasing BER. • We present a channel model for OCC based on Lambertian radiant intensity [14]. The channel model is also used as the basis for our analysis of pixel SINR. • We provide a theoretical representation of OCC users’ satisfaction. • We conducted a short survey of existing modulation schemes and categorize them according to communication distance and data-rate characteristics in order to enable us to select the appropriate scheme for a specific application. Appl. Sci. 2018, 8, 2527 3 of 18
• We present simulation results (including the outage probability analysis for OCC) that demonstrate which values of the parameters are optimal to achieve the required OCC output for Appl. performanceSci. 2019, 9 FOR improvement.PEER REVIEW 3
TheThe remainder of this this paper paper is is organized organized as as follows. follows. Section Section 2 provides2 provides an overview an overview of the of OCC the OCCdata data decoding decoding principle principle and and system system para parametersmeters that that include include the the OCC OCC channel channel model and and representationrepresentation ofof pixelpixel SINR.SINR. InIn SectionSection3 3,, we we outline outline the the analysis analysis of of parameters parameters that that determine determine the the performanceperformance ofof anan OCCOCC system.system. SectionSection4 4 presents presents a a short short survey survey of of existing existing techniques techniques to to modulate modulate thethe OCCOCC transmitter.transmitter. AnAn analysisanalysis ofof thethe OCCOCC useruser satisfactionsatisfaction isis presentedpresented inin SectionSection5 .5. Simulation Simulation resultsresults involvinginvolving OCCOCC performanceperformance variationsvariations regardingregarding changingchanging LEDLED andand cameracamera parametersparameters areare evaluatedevaluated in in Section Section6. Finally, 6. Finally, a brief a brief summary summary of our of work our and work possible and possibl future researche future are research provided are inprovided Section7 in. Section 7.
2.2. OCCOCC SystemSystem OverviewOverview FigureFigure1 1 shows shows a a generalized generalized blockblock diagramdiagram ofof thethe OCCOCC system. The data data is is modulated modulated using using a amodulation modulation technique, technique, and and an an LED LED driver driver is is used used to to activate activate the the LED. The projected image ofof thethe LEDLED isis thenthen processedprocessed toto demodulatedemodulate thethe datadata bits.bits. TheThe opticaloptical channelchannel characteristicscharacteristics ofof OCCOCC areare similarsimilar toto thosethose ofof otherother OWCOWC technologiestechnologies exceptexcept thatthat thethe systemsystem cancan achieveachieve higherhigher SINRsSINRs asas itit isis lessless susceptiblesusceptible toto interferences.interferences.
Transmitter Input LED Optical signal 0 1 0 . . . . 1 0 1 LED driver modulator
Communication channel Image sensor
Signal 0 1 0 . . . . 1 0 1 demodulator
Output Frame sampling Smartphone Image processing and data recovery
FigureFigure 1.1. TheThe schematicschematic blockblock diagramdiagram ofof anan OCCOCC system.system. 2.1. Data Decoding Principle 2.1. Data Decoding Principle An image sensor is built with pixel arrays and a built-in read-out circuit. Each pixel of an image An image sensor is built with pixel arrays and a built-in read-out circuit. Each pixel of an image sensor acts as a photodetector. The transmitted bits are decoded through several image-processing sensor acts as a photodetector. The transmitted bits are decoded through several image-processing techniques. At the beginning of the image processing, the LED is tracked and detected using a camera techniques. At the beginning of the image processing, the LED is tracked and detected using a camera that utilizes computer vision algorithms. In general, the image frames are examined when the pixels that utilizes computer vision algorithms. In general, the image frames are examined when the pixels receive optical pulses. Furthermore, each image is converted to grayscale with each pixel having receive optical pulses. Furthermore, each image is converted to grayscale with each pixel having a a certain value called the pixel value. Thereafter, a threshold is set to binarize the images. Finally, certain value called the pixel value. Thereafter, a threshold is set to binarize the images. Finally, the the data is extracted as binary bits. data is extracted as binary bits. There are two techniques that can be used to receive optical pulses sent from an LED: global There are two techniques that can be used to receive optical pulses sent from an LED: global shutter and rolling shutter. All the pixels of the image sensor are exposed to light at the same time for shutter and rolling shutter. All the pixels of the image sensor are exposed to light at the same time cameras with the global-shutter technique. However, this technique suffers from a high level of pixel for cameras with the global-shutter technique. However, this technique suffers from a high level of noise [15]. In addition, it is not useful for CMOS image sensors. With the rolling-shutter technique, pixel noise [15]. In addition, it is not useful for CMOS image sensors. With the rolling-shutter the image pixels are scanned on a sequential basis. This results in a sequential read-out of pixels that technique, the image pixels are scanned on a sequential basis. This results in a sequential read-out of leads to dark and bright strips on the image sensor. The data can be decoded by measuring the strip pixels that leads to dark and bright strips on the image sensor. The data can be decoded by measuring configurations, which will be discussed further in Section 3.2. the strip configurations, which will be discussed further in Section 3.2.
2.2. Illumination Model for Camera Pixels An OCC data transmission model is illustrated in Figure 2. The channel for optical signal transmission has two components: line-of-sight (LOS) and non-line-of-sight (NLOS). The asperity of the chip faces and the geometric conditions of the encapsulating lens affect the radiation pattern of Appl. Sci. 2018, 8, 2527 4 of 18
Appl. Sci. 2019, 9 FOR PEER REVIEW 4 2.2. Illumination Model for Camera Pixels the LED. The luminous intensity model is represented by the Lambertian radiant intensity [14,16] An OCC data transmission model is illustrated in Figure2. The channel for optical signal which is expressed as transmission has two components: line-of-sight (LOS) and non-line-of-sight (NLOS). The asperity of m the chip faces and the geometric conditions of the(1+ encapsulating m) cos l ( lens) affect the radiation pattern of the R (=) l ir , (1) LED. The luminous intensity model is0 represented ir by the2 Lambertian radiant intensity [14,16] which is expressed as where denotes the angle of irradiance of( 1the+ mLED,) cos andml (ψ m) is the Lambertian emission index ir R (ψ ) = l ir l, (1) 0 ir 2π originating from the radiation angle, 1 , at which the radiation intensity is half of that in the main where ψir denotes the angle of irradiance2 of the LED, and ml is the Lambertian emission index originatingbeam’s direction. from theml radiation is defined angle, as ς 1 , at which the radiation intensity is half of that in the main 2 beam’s direction. m is defined as l ln 2 m =− ln 2 . ml =l − ln(cos ) .(2) (2) ln(cos ς11 ) 22
LED
ir
AOV of camera
d,h
in d,
d,x
Camera
Figure 2. The System model.
Assuming that the Euclidean distance between α and β is d , the overall DC gain per pixel can Assuming that the Euclidean distance between and isα ,βd , the overall DC gain per pixel be expressed as , can be expressed as R0(ψ)Ac Hα,β = g cos(ψ )∆ , (3) op in σ 2 RA(dα),β H= g cos 0c, , opq( in ) 2 (3) 2 2d dα,β = dα,x + dα,h , (4) where ψin signifies the corresponding angle of incidence, gop represents the gain of the optical filter, d=+ d22 d (4) Ac is the entire area of the image projected, onto the ,x image ,h sensor, σ is the total number of camera pixels illumined by the LED, and ∆ is a rectangular function whose value is implied as where in signifies the corresponding angle of incidence, gop represents the gain of the optical ( filter, A is the entire area of the image projected0, ψ onto≥ ∂the image sensor, is the total number of c ∆ = in aov , (5) camera pixels illumined by the LED, and is1, a rectangularψin < ∂aov function whose value is implied as where ∂aov is the AOV of the camera. 0, = in aov , (5) 1, in aov where aov is the AOV of the camera.
2.3. Pixel SINR Appl. Sci. 2018, 8, 2527 5 of 18
2.3. Pixel SINR There are two things that significantly affect the SINR for OCC. The first one is the interference generated by the neighboring light sources. The second one is the image distortion effects originating from the motion of the users, unfocused images, bad weather (e.g., rain, snowfall, fog, etc.), and long distance between the transmitter and the receiver. Considering these effects, the pixel SINR is represented as