Simulation of a Smart Sensor Detection Scheme for Wireless Communication Based on Modeling

: The principle of sensing and sending information applies to all kinds of communications in di ﬀ erent media like air, water, etc. During data transmission through sensors, the most important issue is sensing failure problems. In communication systems, sensing failure problems generally occur and a ﬀ ect sensor system performance. In this study, sensing failure issues are discussed, and a smart sensor is introduced that detects the communication signals. The characteristics of these sensors are identiﬁed with signal-to-noise ratio (SNR) readings. The proposed sensor system has high performance and it is better than many systems in the literature. Graphical ﬁndings show that the suggested scheme increases device e ﬃ ciency and has more performance than the energy detector (ED) and ED-ADT-2013 by 33.5%, adaptive spectrum sensing (ASS)-2012 by 41.5%, energy detecting technique for adaptive spectrum sensing (EDT-ASS)-2015 by 28.2%, energy detector, and cyclo-2010 by 57.0%, and energy-SNR adaptive threshold (ADT) detector-2016 by 52.8% at − 12 dB SNR, respectively. The proposed sensor detection scheme performs well compared to other existing sensors regarding sensing time. It was found that cooperative spectrum sensing (CSS) with the proposed method outperforms HwQ-2012 and CSS-EDT-ASS-2015 by 22.70% and 16.10% in terms of probability at − 12 dB SNR, respectively, and detects the signal at − 19.70 dB SNR.


Introduction
Scientists are developing different sensors with sensing technologies to enhance the identification efficiency of communication networks. Two-stage detectors (ED and Cyclo-2010) [1], were implemented in this context. Energy detectors (ED) and cyclo-stationary detectors interact with each other in sequence [2]. There are some disadvantages because the system is very complicated and takes longer observing time. Additionally, the researchers focused on measurement or sensing time, applying the technique of adaptive spectrum sensing (ASS-2012), [3,4]. There are 2 parallel sensors in ASS-2012 and they operate separately. Despite the time for measurement being shortened, the method was still complex [5]. The researchers predicted failure problems in detection [6] and subsequently proposed a spectrum detector.
This spectrum detector is composed of two sensor detectors. The first one has a set spectrum sensing threshold-based ED and the second one tracks the user spectrum because it has an adaptive double-threshold ED. Additionally, the researchers looked at the cost feature [7] and determined the existence of PU signals by suggesting an adaptive spectrum sensing (EDT-ASS-2015), [8]. On the other hand, the researchers suggested a new two-stage detection system, with only one stage operating at a time [9,10].
In this study, detection efficiency was increased by minimizing the sensing failure problem. Therefore, a detection strategy focused on smart sensors was developed. The sensing model proposed has two stages positioned in parallel. The 1st stage has SNR computing and the 2nd stage has energy detectors with a single adaptive threshold "ED-SAT" and with 2 adaptive thresholds "ED-TAT". The first stage computes SNR from SNR readings (S e ) of PU signals, then compares with a pre-determined threshold (λ) and, based on the resulting tests, chooses one of the detectors. ED-SAT is selected when S e ≥ λ, ED-TAT is selected otherwise.
A cooperative spectrum sensing (CSS) is introduced for the proposed sensing model [11]. Each cognitive radio (CR) user in CSS sends a local decision (0 or 1 bit) to a centralized node, called a fusion center (FC). Hard decision OR-rule (logical OR) is used by FC for declaring the decision. The advantage of the hard decision approach is that it needs a smaller bandwidth of the control channel [12]. According to the OR-rule, if any outcome of any CR is bit 1 then the final value of FC will be H 1 and will be H 0 for all 0 s. The originality in this study is the assumption that the detectors use adaptive thresholds to reduce the "sensing failure problem" [6]. The confused region, [6], is split into 2 levels (01 and 10) as seen in Figure 1. There were four levels (00, 01, 10, and 11) previously mentioned in [6,12]. Simulation tests suggest that by using two levels of "confused region system", the deployed detector model will boost detection efficiency and it will take time to decide if the PU frequency band is busy or free.
Electronics 2020, 9, x FOR PEER REVIEW 2 of 17 other hand, the researchers suggested a new two-stage detection system, with only one stage operating at a time [9,10]. In this study, detection efficiency was increased by minimizing the sensing failure problem. Therefore, a detection strategy focused on smart sensors was developed. The sensing model proposed has two stages positioned in parallel. The 1st stage has SNR computing and the 2nd stage has energy detectors with a single adaptive threshold "ED-SAT" and with 2 adaptive thresholds "ED-TAT". The first stage computes SNR from SNR readings (Se) of PU signals, then compares with a pre-determined threshold (λ) and, based on the resulting tests, chooses one of the detectors. ED-SAT is selected when Se ≥ λ, ED-TAT is selected otherwise.
A cooperative spectrum sensing (CSS) is introduced for the proposed sensing model [11]. Each cognitive radio (CR) user in CSS sends a local decision (0 or 1 bit) to a centralized node, called a fusion center (FC). Hard decision OR-rule (logical OR) is used by FC for declaring the decision. The advantage of the hard decision approach is that it needs a smaller bandwidth of the control channel [12]. According to the OR-rule, if any outcome of any CR is bit 1 then the final value of FC will be H1 and will be H0 for all 0 s.
The originality in this study is the assumption that the detectors use adaptive thresholds to reduce the "sensing failure problem" [6]. The confused region, [6], is split into 2 levels (01 and 10) as seen in Figure 1. There were four levels (00, 01, 10, and 11) previously mentioned in [6,12]. Simulation tests suggest that by using two levels of "confused region system", the deployed detector model will boost detection efficiency and it will take time to decide if the PU frequency band is busy or free. Therefore, the new two-level confused region system separates the new sensing system from the current systems. However, none of the researchers explored this identification method earlier with hypotheses, to the best of available information. The suggested system is an improved variant of the ESNR-ADT detector-2016 [9] which offers better performance as stated in the simulation results and analysis sections. Furthermore, this study is divided into several sections. Section 2 discusses the system description. Section 3 introduces the proposed system model. Section 4 discusses CSS with the proposed scheme. Section 5 shows the Simulation results and analysis and Section 6 gives the Conclusions.

System Description
The hypothesis test helps to determine the signals from PU. In an alternative hypothesis test (H1), the PU signal is expected to be in a noisy channel, and this channel consists of additive white Gaussian noise (AWGN) which has a 0 mean, referred to g(n), and the noise variance represented by 2 g σ . Hence the received signal, u(n) in the hypothesis check (H1) can be identified as [12], ( ) ( ) ( ) ( ) 1 , = * + u n v n h n g n H (1) where * represents the time-domain convolution operation. In the null hypothesis check (H0), the PU signal is found missing and hence the received signal u(n) can be called as: Therefore, the new two-level confused region system separates the new sensing system from the current systems. However, none of the researchers explored this identification method earlier with hypotheses, to the best of available information. The suggested system is an improved variant of the ESNR-ADT detector-2016 [9] which offers better performance as stated in the simulation results and analysis sections. Furthermore, this study is divided into several sections. Section 2 discusses the system description. Section 3 introduces the proposed system model. Section 4 discusses CSS with the proposed scheme. Section 5 shows the Simulation results and analysis and Section 6 gives the Conclusions.

System Description
The hypothesis test helps to determine the signals from PU. In an alternative hypothesis test (H 1 ), the PU signal is expected to be in a noisy channel, and this channel consists of additive white Gaussian noise (AWGN) which has a 0 mean, referred to g(n), and the noise variance represented by σ 2 g . Hence the received signal, u(n) in the hypothesis check (H 1 ) can be identified as [12], where * represents the time-domain convolution operation. In the null hypothesis check (H 0 ), the PU signal is found missing and hence the received signal u(n) can be called as: The parameter v(n) describes the PU signal, the parameter h(n) represents the channel boost, and the random variable g(n) gives AWGN with zero mean and the variance of σ 2 g in Equations (1) and (2). n is called the sample number and ranges from 1 to N.

Smart Sensor-Based Detection Technique
The flow chart of the proposed scheme "smart sensor-based detection technique" is presented in Figure 2. There are two parallel placed detectors, ED-TAT and ED-SAT. The detector selection relies on SNR readings (S e ) [13] and threshold (λ) which has pre-determined relationships with S e . Hence, there are 2 instances. If S e ≥ λ, ED-SAT carries out sensing activity, otherwise ED-TAT carries out sensing activity.
The parameter v(n) describes the PU signal, the parameter h(n) represents the channel boost, and the random variable g(n) gives AWGN with zero mean and the variance of 2 g σ in Equations (1) and (2). n is called the sample number and ranges from 1 to N.

Smart Sensor-Based Detection Technique
The flow chart of the proposed scheme "smart sensor-based detection technique" is presented in Figure 2. There are two parallel placed detectors, ED-TAT and ED-SAT. The detector selection relies on SNR readings (Se) [13] and threshold (λ) which has pre-determined relationships with Se. Hence, there are 2 instances. If Se ≥ λ, ED-SAT carries out sensing activity, otherwise ED-TAT carries out sensing activity.
In the first case, Se ≥ λ, the ED-SAT function detects the PU signal, determines signal energy (E), and then compares it with a pre-defined threshold (λ1). The detector confirms that the PU signal is present if the signal energy is greater than or equal to the threshold.
In the second case, Se < λ, the ED-TAT function follows a similar mechanism to ED-SAT. The distinction between ED-TAT and ED-SAT is that ED-TAT has 3 previously defined thresholds 1 γ , 2 γ , γ . Three thresholds are used to minimize the issue of sensing failure problems [6].   In the first case, Se ≥ λ, the ED-SAT function detects the PU signal, determines signal energy (E), and then compares it with a pre-defined threshold (λ 1 ). The detector confirms that the PU signal is present if the signal energy is greater than or equal to the threshold.
In the second case, Se < λ, the ED-TAT function follows a similar mechanism to ED-SAT. The distinction between ED-TAT and ED-SAT is that ED-TAT has 3 previously defined thresholds γ 1 , γ 2 , γ. Three thresholds are used to minimize the issue of sensing failure problems [6]. The detection probability of the proposed detector is False alarm probability, P Proposed F , can be expressed the same as the detection probability in Equation (4). The only difference is d is replaced by f in the equation. Hence, the error rate of the proposed detector is P Proposed e = P Proposed F In Equations (4) and (6) are the false alarm probability of ED-SAT and ED-TAT, respectively. The probability factor, P r , is between 0 and 1. The channel is less noisy if P r ≥ 0.5 or else the channel is very noisy.

SNR Calculation
SNR (S e ) values can be mathematically formulated as n = 1, 2, 3, . . . , N, where N is the total number of samples received in Equation (7). S e is compared to a pre-determined threshold (λ) in Equation (8) to make a decision.
Hence, ED-SAT detects the PU signal, if S e is less than λ in Equation (8), otherwise, ED-TAT detects the PU signal.

Energy Detectors with a Single Adaptive Threshold (ED-SAT)
ED is deployed in CR networks. ED-SAT supports the bandpass filter, that filters the detected user signal from noise and transmits it to the ADC. The ADC receives the filtered PU signals and converts the analog signal into a digital signal in the form of bit sequences. Such bit sequences are injected into a square-law (SLD) device to determine their energy levels. An integrator integrates the SLD received signals up to the T interval. Ultimately, DMD takes the final decision regarding the PU signal existence by examining the signals taking into account the single adaptive threshold value λ 1 . The single adaptive threshold (λ 1 ) value in ED-SAT detector, can be shown as [13], where N shows the total number of samples, Q −1 ( ) is reverse Q-function, and P f defines the probability of false alarm. The threshold (λ 1 ) in Equation (9) is proportional to the noise variance σ 2 g . σ 2 g depends on the random noise that varies with time. Noise variance σ 2 g also affects the threshold (λ 1 ) value and that is why the adaptive threshold can change for every instant of time. PU signal energy for ED-SAT can be defined as u(n) is the detected signal, N is the total number of samples, and E is the determined energy of u(n) in Equation (10). Hence, the local ED-SAT function can be expressed as

ED-SAT Detection Probability
The detection probability of the ED-SAT detector can be mathematically expressed as [3] N is the total number of samples, Q( ) is the Gaussian tail probability Q-function, and λ = λ 1 / σ 2 v + σ 2 g , where λ 1 is a single adaptive threshold, and σ 2 v , σ 2 g are variances of the signal and noise. σ 2 h is the variance of channel boost in the communication channel between PU and CR.

ED-SAT False Alarm Probability
The false alarm probability of ED-SAT detector can be mathematically expressed as [3] where N is the total number of samples, and λ = λ 1

ED-SAT Error Rate Probability
The probability of the rate of error depends on two factors. The first one is false alarm probability, (P f ), and the second one is the missed-detection probability, (P m ). Therefore, the total error rate is expressed, [6], as where (P m ) is equal to (1 − P d ), then Hence, Equation (15) can be expressed as

Energy Detectors with Two Adaptive Thresholds (ED-TAT)
In ED-TAT, the detector carries out the detection in 3 stages. The first stage is the pre-defined upper bound threshold (γ 2 ), the second stage is the pre-defined lower bound threshold (γ 1 ), and the third stage is, (γ), between pre-defined thresholds (γ 1 ) and (γ 2 ). See Figure 1.
In the first stage, E ≥ γ 2 , the detector indicates the presence of the PU signal. In the second stage, E < γ 1 , the detector signifies the non-existence of a PU signal. In the third stage, signal energy (E) Electronics 2020, 9,1506 6 of 17 varies between pre-defined thresholds shown as (γ 1 ) < E < (γ 2 ). This state is recognized as a confused region and identified as the sensing failure problem, [14]. The confused region is previously assumed to be zero or null by the researchers.
In this study, we focused on the confused region between γ 1 and γ 2 . It was divided into 2 parts as (γ 1 -γ) and (γ-γ 2 ). Hence, the entire four sections in Figure 1 are expressed as (i) below γ 1 and (ii) above γ 2 . These two sections are identified as the upper part (UP) of the detector.
Sections (iii) γ 1 -γ and (iv) γ-γ 2 are confused regions and they are identified as the lower part (LP) of the detector.
Hence, ED-TAT's output is given as Z is the summation of the upper part and the lower part in Equation (19). Z is compared with a pre-defined threshold (γ), and the ED-TAT output can be expressed shown as If the determined energy is less than γ 1 , the decision is H 0 . If the determined energy is higher than or equal to γ 2 , the decision is H 1 . For the confused region, if the determined energy lies in (γ 1 -γ), it shows a binary value 01, which is converted to a decimal 1. If the determined energy is in (γ-γ 2 ), it shows a binary value 10, which is converted to a decimal 2. The formulation for the pre-defined threshold (γ) will be, [13]: The values of the lower threshold (γ 1 ) and the upper threshold (γ 2 ) depend on noise variance. The lowest noise variance is under the lower threshold. Hence, the formulation of the lower threshold (γ 1 ) is given as The highest noise variance is under the upper threshold. Hence, the formulation of the upper threshold (γ 2 ) is given as The state of the noise is generally unpredictable in the wireless communication systems and it can usually be described as 1/ ρ × σ 2 g , ρ × σ 2 g , where ρ is constant and ρ > 1. It is deployed to calculate the size of uncertainty. The thresholds (γ 1 , γ 2 ) are dependent on noise variance σ 2 g . The noise variance changes according to the occurrence of variations in noise. Thresholds also fluctuate and they are adaptive. Hence, they are identified as adaptive thresholds.

ED-TAT Detection Probability
A received signal of sample u(n) is considered, and its normalized form is indicated by u i . The ED-TAT's cumulative distribution function is computed as P r ( ) denotes the probability of ED-TAT detection. An arbitrary constant is given by a, having a value of 2. By applying the conditional probability density function (CPDF) |u i | 2 in Equation (24) and following algebraic simplification, the CPDF of Z i under hypothesis H 1 is determined as [15].
ED-TAT detection probability is shown as The CPDF in Equation (27) is deployed in Equation (28) and shown in Equation (29) ED-TAT detection probability can be seen in Equation (30) after solving Equation (29)

ED-TAT False Alarm Probability
To calculate the false alarm probability P ED−ADT f , f |u i | 2 |H 0 is exponentially distributed as The probability of false alarm becomes Substituting CPDF from Equation (32) into Equation (33), The false alarm probability can be determined after solving Equation (34) and is shown as

ED-TAT False Alarm Probability
The total error rate depends on false alarm (P f ) and miss-detection probability (P m ), according to

Total Detection Time of the Proposed Technique
The time of spectrum sensing is defined as the time that the CR user spends to validate whether the spectrum of PU is available or not. The computational formula for determining the sensing time is The suggested T Proposed is the overall detector time taken to perceive the PU signal. T SNR is the sensing time of the SNR calculator. T ED-SAT and T ED-TAT are the sensing times of ED-SAT and ED-TAT, respectively. The overall sensing time for the SNR calculator is taken as [3] K is the detected number of channels by secondary users, and Y 0 is the average detection time for each channel shown as [3] M 0 is the total number of samples during the observation interval, and Q denotes channel bandwidth. The sensing time for the ED-SAT detector becomes Electronics 2020, 9, 1506 9 of 17 Y 1 is the mean observation time for each channel, whereas K is the number of sensed channels. where, MED-SAT is the number of samples and the Q is the channel bandwidth. Likewise, ED-TAT sensing time is formulated as: Y 2 is the mean observation time for each channel, (1 − P r ) is the probability factor of a channel used for ED-TAT. where, The number of samples is M ED-TAT . Thus, substitute Equations (39), (41), and (43) into Equation (38) for the calculation of the total observation or sensing time as Thus, the total observation or sensing time for the proposed detector can be determined as K is the total number of channels that CR users detect. Y 0 , Y 1 , and Y 2 are the variables for SNR calculator, ED-SAT, and ED-TAT respectively, whose values depend on the sample value and bandwidth.

Simulation Model
MATLAB is used for the creation of the simulation environment. Various steps are deployed as follows: 1.
The QPSK modulated signal v(n) is generated.

2.
Input v(n) signal passes through a Rayleigh channel, as per the Equation (1).

3.
The signal u(n), which is received by CRs, is defined as g(n) under H 0 , whereas it is v(n) * h(n) + g(n) under H 1 .

4.
SNR reading (Se) was calculated and then compared with a pre-determined threshold (λ) by Equation (8).

8.
Calculation of Z is done as per the Equation (19) and compared with threshold γ, to claim hypothesis H 0 (0 bit) or H 1 (1 bit) according to Equation (20) to maintain fixed P f = 0.1. 9.
Steps 1 to 8 are reiterated up to 1000 times to assess the P d versus SNR under consideration that P f is fixed at 0.1.

CSS with the Proposed Scheme
The CSS method holds its usefulness to improve the detection performance of CR users since it minimizes fading and shadowing effects [16]. In CSS, a centralized-CSS is considered where CR users work in more than one or all together as shown in Figure 3. Furthermore, CR local binary decision (0 or 1) is sent to a common FC that takes the final decision. On the other hand, in the de-centralized CSS method, the individual decision is taken by each CR user and then it is passed to each other. This makes de-centralized CSS quite complex and not reliable. Furthermore, in a centralized CSS scheme, it is seen in Figure 3 that k is the number of CRs and their local decision is I i and these were collected by an FC using the OR-rule decision. FC performs a hard decision method on this collected data to decide the presence of PU signal [17].
Electronics 2020, 9, x FOR PEER REVIEW 10 of 17 or 1) is sent to a common FC that takes the final decision. On the other hand, in the de-centralized CSS method, the individual decision is taken by each CR user and then it is passed to each other. This makes de-centralized CSS quite complex and not reliable. Furthermore, in a centralized CSS scheme, it is seen in Figure 3 that k is the number of CRs and their local decision is Ii and these were collected by an FC using the OR-rule decision. FC performs a hard decision method on this collected data to decide the presence of PU signal [17]. Hard decision-based spectrum sensing has been considered. Therefore, The examination of the CSS performance with the proposed scheme can be done via detection probability (PD). Therefore, the PD of the FC is expressed as In Equation (51), the detection probability of individual CR user is represented by Pd which is computed using Equation (4).

Simulation Model
By using MATLAB, the simulation environment is created and the simulation steps are given below: Hard decision-based spectrum sensing has been considered. Therefore, P is the summation of the local binary decisions I i sent by ith CRs. I i is the output of the proposed sensing scheme and it can be defined in the form of pre-defined thresholds as shown in Equation (48).
For global conclusion, the final output of FC expressed in functional representation form using the hard decision OR-rule can be shown as: The examination of the CSS performance with the proposed scheme can be done via detection probability (P D ). Therefore, the P D of the FC is expressed as In Equation (51), the detection probability of individual CR user is represented by Pd which is computed using Equation (4).

Simulation Model
By using MATLAB, the simulation environment is created and the simulation steps are given below:

1.
Repeat the above steps numbered from 1 to 9. This will generate local decisions using CRs according to Equation (48) from where they are sent to FC.

CR's output is collected by FC according to Equation (47). 3.
Finally, hard decision OR-rule at FC using Equation (49) is considered to claim hypothesis H 0 or H 1 .

4.
Steps 1 to 3 are repeated up to 1000 times to evaluate the Pd versus SNR under consideration that P f is fixed at 0.1. Figure 4 depicts the network distribution using NetSim software. Table 1 shows the simulation parameters to be assumed to get the results. Furthermore, the proposed technique is compared with, ED and Cyclo-2010 [1], ASS-2012 [3], ED and ED-ADT-2013 [6], EDT-ASS-2015 [7], and ESNR-ADT detector-2016 [9]. Figure 4 depicts the network distribution using NetSim software. Table 1 shows the simulation parameters to be assumed to get the results. Furthermore, the proposed technique is compared with, ED and Cyclo-2010 [1], ASS-2012 [3], ED and ED-ADT-2013 [6], EDT-ASS-2015 [7], and ESNR-ADT detector-2016 [9].    IEEE 802.22 states that the minimum detection probability is 0.9 for the false alarm probability (P f ) of 0.1. It means the implemented technique will detect PU signals below −12.0 dB SNR as seen in Figure 5 In Table 2, the proposed sensor-based smart detection technique shows a 79.27% detection performance. Consequently, it senses or forecasts accurate information of PU signal presence or noise better than any other sensing strategies. The performance of the proposed scheme in terms of Pe is shown in Figure 6. The suggested method has a smaller error rate than the current sensing approaches and the proposed system achieves Pe = 0.1 at −8 dB SNR.  In Table 2, the proposed sensor-based smart detection technique shows a 79.27% detection performance. Consequently, it senses or forecasts accurate information of PU signal presence or noise better than any other sensing strategies. The performance of the proposed scheme in terms of P e is shown in Figure 6. The suggested method has a smaller error rate than the current sensing approaches and the proposed system achieves P e = 0.1 at −8 dB SNR. In Table 2, the proposed sensor-based smart detection technique shows a 79.27% detection performance. Consequently, it senses or forecasts accurate information of PU signal presence or noise better than any other sensing strategies.  The performance of the proposed scheme in terms of Pe is shown in Figure 6. The suggested method has a smaller error rate than the current sensing approaches and the proposed system achieves Pe = 0.1 at −8 dB SNR. Figure 6. Error rate versus signal-to-noise ratio (SNR) values. Figure 6. Error rate versus signal-to-noise ratio (SNR) values. Table 3 shows that the proposed scheme has a smaller error rate of below 10%. It shows our detector has more accuracy than others. Receiver operating characteristic (ROC) graphs in Figure 7 show the relationship between P d and P f . The behavior of P d and P f for various SNR values such as (−6 dB, −8 dB, −10 dB, −12 dB, and −14 dB) is plotted in Figure 7. The values of P d and P f are always above 0.9 and 0.1, respectively for all the values of SNR who are greater than −12 dB. The proposed detector can detect those PU signals whose SNR value is above or at least −12 dB.

Simulation Results and Analysis
Electronics 2020, 9, x FOR PEER REVIEW 13 of 17 Table 3 shows that the proposed scheme has a smaller error rate of below 10%. It shows our detector has more accuracy than others. Receiver operating characteristic (ROC) graphs in Figure 7 show the relationship between Pd and Pf. The behavior of Pd and Pf for various SNR values such as (−6 dB, −8 dB, −10 dB, −12 dB, and −14 dB) is plotted in Figure 7. The values of Pd and Pf are always above 0.9 and 0.1, respectively for all the values of SNR who are greater than −12 dB. The proposed detector can detect those PU signals whose SNR value is above or at least −12 dB. IEEE 802.22 recommends that the detection time by CRs for the user's spectrum bands must be as small as possible. Figure 8 shows that the proposed technique performs well and takes lesser time than existing sensing techniques except for EDT-ASS-2015.  IEEE 802.22 recommends that the detection time by CRs for the user's spectrum bands must be as small as possible. Figure 8 shows that the proposed technique performs well and takes lesser time than existing sensing techniques except for EDT-ASS-2015.
Electronics 2020, 9, x FOR PEER REVIEW 13 of 17 Table 3 shows that the proposed scheme has a smaller error rate of below 10%. It shows our detector has more accuracy than others. Receiver operating characteristic (ROC) graphs in Figure 7 show the relationship between Pd and Pf. The behavior of Pd and Pf for various SNR values such as (−6 dB, −8 dB, −10 dB, −12 dB, and −14 dB) is plotted in Figure 7. The values of Pd and Pf are always above 0.9 and 0.1, respectively for all the values of SNR who are greater than −12 dB. The proposed detector can detect those PU signals whose SNR value is above or at least −12 dB. IEEE 802.22 recommends that the detection time by CRs for the user's spectrum bands must be as small as possible. Figure 8 shows that the proposed technique performs well and takes lesser time than existing sensing techniques except for EDT-ASS-2015.  IEEE 802.22 states that sensing time for any detector to detect the PU signal should be as small as possible. In Figure 8, the proposed scheme requires 45.52 ms sensing time at −20 dB whereas 44.48 ms at 0 dB SNR, which is lesser than ED and Cyclo-2010, ED and ED-ADT-2013, ESNR-ADT detector-2016, and ASS-2012.
In Table 4, the proposed smart sensor-based detection scheme takes 45.5218 ms to detect the correct signal. It shows that the proposed detector requires less observation time, except for EDT-ASS-2015.  Figure 9 shows the graphs between P d and threshold values for various SNR values such as −6 dB, −8 dB, −10 dB, −12 dB, and −14 dB. It can be seen that P d provides different results at different threshold values for different SNRs. IEEE 802.22 defines that if P f is 0.1, then the minimum P d value must be 0.9. This minimum value of P d declares whether the PU signal is present or not. Therefore, it can be concluded that the proposed detector produces the best results at −6 dB SNR throughout the range of threshold values.
Electronics 2020, 9, x FOR PEER REVIEW 14 of 17 IEEE 802.22 states that sensing time for any detector to detect the PU signal should be as small as possible. In Figure 8, the proposed scheme requires 45.52 ms sensing time at −20 dB whereas 44.48 ms at 0 dB SNR, which is lesser than ED and Cyclo-2010, ED and ED-ADT-2013, ESNR-ADT detector-2016, and ASS-2012.
In Table 4, the proposed smart sensor-based detection scheme takes 45.5218 ms to detect the correct signal. It shows that the proposed detector requires less observation time, except for EDT-ASS-2015. 45.5218 Figure 9 shows the graphs between Pd and threshold values for various SNR values such as −6 dB, −8 dB, −10 dB, −12 dB, and −14 dB. It can be seen that Pd provides different results at different threshold values for different SNRs. IEEE 802.22 defines that if Pf is 0.1, then the minimum Pd value must be 0.9. This minimum value of Pd declares whether the PU signal is present or not. Therefore, it can be concluded that the proposed detector produces the best results at −6 dB SNR throughout the range of threshold values.  Table 5 displays the comparisons of cooperative detectors. It can be seen that the proposed scheme produces the best detection performance when all CRs work collaboratively.   Table 5 displays the comparisons of cooperative detectors. It can be seen that the proposed scheme produces the best detection performance when all CRs work collaboratively.  Figure 10 shows the P d versus SNR graphs between the proposed scheme with CSS, hierarchical with quantization-2012 (HwQ-2012), and cooperative-EDT-ASS-2015 detection techniques. In CSS, three CR users are assumed to be included.
Electronics 2020, 9, x FOR PEER REVIEW 15 of 17 Figure 10 shows the Pd versus SNR graphs between the proposed scheme with CSS, hierarchical with quantization-2012 (HwQ-2012), and cooperative-EDT-ASS-2015 detection techniques. In CSS, three CR users are assumed to be included.  Figure 11 shows that detection probability improves as the amount of CRs rise. In the simulation, Pf was set at 0.1, and the number of CRs (k) is taken as 3, 4, 5, 6, 7, 8, 9, and 10. It was seen that the optimal value of Pd exists at k = 10 which means that 10 CR users together can detect PU signal till −19.70 dB SNR values.

Conclusions
In this study, a new smart sensor-based detection scheme for communication has been introduced. The detection efficiency can be increased by using the new sensing system, and it also overcomes problems of sensing loss. Simulation tests show that the new system is leading the current approaches in the area of detection probability. In addition to the enhancement of detection performance, it is concluded that the introduced scheme also performs well within detection time.  Figure 11 shows that detection probability improves as the amount of CRs rise. In the simulation, P f was set at 0.1, and the number of CRs (k) is taken as 3, 4, 5, 6, 7, 8, 9, and 10. It was seen that the optimal value of P d exists at k = 10 which means that 10 CR users together can detect PU signal till −19.70 dB SNR values.
Electronics 2020, 9, x FOR PEER REVIEW 15 of 17 Figure 10 shows the Pd versus SNR graphs between the proposed scheme with CSS, hierarchical with quantization-2012 (HwQ-2012), and cooperative-EDT-ASS-2015 detection techniques. In CSS, three CR users are assumed to be included.  Figure 11 shows that detection probability improves as the amount of CRs rise. In the simulation, Pf was set at 0.1, and the number of CRs (k) is taken as 3, 4, 5, 6, 7, 8, 9, and 10. It was seen that the optimal value of Pd exists at k = 10 which means that 10 CR users together can detect PU signal till −19.70 dB SNR values.

Conclusions
In this study, a new smart sensor-based detection scheme for communication has been introduced. The detection efficiency can be increased by using the new sensing system, and it also overcomes problems of sensing loss. Simulation tests show that the new system is leading the current approaches in the area of detection probability. In addition to the enhancement of detection performance, it is concluded that the introduced scheme also performs well within detection time.

Conclusions
In this study, a new smart sensor-based detection scheme for communication has been introduced. The detection efficiency can be increased by using the new sensing system, and it also overcomes problems of sensing loss. Simulation tests show that the new system is leading the current approaches in the area of detection probability. In addition to the enhancement of detection performance, it is concluded that the introduced scheme also performs well within detection time. Furthermore, the detector detects the PU signal at −19.70 dB SNR with a combination of the proposed model and CSS.
Basically, in the proposed model, it was focused on the data transmission/communication between sensors/nodes, and for this, a sensing technique was proposed that senses the signal and share between the nodes. During the data sense, there is a sensing failure problem that may be occurred which can degrade the system performance. In our proposed model, we tried to reduce the sensing failure problem.
The proposed detection technique is useful for every kind of wireless communication link. The novelty of this scheme is that the confused region is divided into two levels (01 and 10) as shown in Figure 1, whereas, earlier there were four levels (00, 01, 10, and 11) as discussed in the literature. Simulation results confirm that using a two-parts confused region scheme, our proposed detector model can enhance detection performance and it takes admissible sensing time to decide whether the PU frequency band is busy or free.
That is why the proposed two-part confused region scheme makes our sensing scheme differ and novel from the existing schemes. However, to the best of available sources, none of the researchers have discussed this detection technique with the assumptions earlier. The proposed scheme is an advanced version of ESNR-ADT detector-2016 and gives better results as discussed in the result and analysis section.
As future work, an appropriate sensor will be constructed with the proposed detection scheme. Real-life experiments will be carried out to compare the experimental results with the simulated results. Simulated results can be improved with the development of new algorithms.