# Introduction he ability to identify the modulation type of an arbitrary noisy signal is desirable for different reasons like signal confirmation, spectrum management [1], electronic support measures (ESM), electronic counter measures (ECM) in warfare [2], selection of appropriate demodulator in intelligent modems and military threat analysis [3]. In defense applications, the analysis of hostile transmissions is important both for extracting secret messages from communication signals and for implementing counter measures. In spectrum monitoring application, unauthorized transmissions are continuously intercepted and analyzed in a given area and frequency band, to detect the unauthorized ones or deviations in the authorized transmissions and finally deciding on the corrective steps. In either of the above cases and in similar applications, the characteristics of the intercepted signals must be determined and before that the modulation type is to be estimated. A simple communication signal classifier comprises a bank of demodulators, each designed for only one type of modulation of the received signal [4]. An operator examining the demodulators' outputs could identify the type of modulation of the received signal. The obvious disadvantages of manual mode can be alleviated by the machine-based modulation classification techniques. More over such automatic classification techniques are to be invariably used in real time systems in modern warfare, surveillance and in situations where the signals are available only for short durations. Liedtke [5] and Jondral [6] used pattern recognition techniques for Classification of modulated signals which require large amounts of data to train the classifier. Dominguez et.al. [7] and Hagiwara et.al. [8] used histograms of instantaneous envelope and modulation indices respectively for classification purpose. However, none of these have the necessary analytical support. Further, the required carrier-to noise ratio (CNR) for correct classification is greater than 15 dB. In a recent paper [9], an autoregressive (AR) model applied on the instantaneous frequency has been proposed for the classification of PSK and FSK signals. However, this technique requires a CNR of 15dB or more, and is also limited to binary PSK and binary FSK (i.e. M=2) only. In another recent paper [10], higher order cumulants and moments (up to eighth order) were proposed as features in combination with a support vector machine (SVM) classifier to classify MPSK signals for M=2, 4, 8 along with quadrature amplitude modulated (QAM) signals at as low as CNR of 3 dB. The genetic algorithm (GA) was used here for the optimal design of the classifier. However, the FSK signals were not considered and the computation complexity is very high. In [11] modulation classification based on wavelet and fractional fourier transform was proposed but the technique is limited to 2PSK and 2FSK only. # T Year 2015 e In this paper, a simple but powerful technique for distinguishing between the digital angle modulated signals, that is between MPSK and MFSK signals is proposed. The method is based on the variance ratio of instantaneous frequency of the received signal passed through a pair of concentric band pass filters. The center frequencies of the filters are automatically determined from the short time fourier transform (STFT) analysis. The analytical expressions for the variance of instantaneous frequency of both MPSK and MFSK signals are derived. The expression for the variance ratio of filter outputs is also analytically obtained and is used as the decision statistic. Extensive simulations to validate the proposed method are carried out and the results are in close agreement with the theoretical predictions. # Global Journal of C omp uter S cience and T echnology Volume XV Issue III Version I ( ) # H # II. Instantaneous Frequency of mfsk and mpsk Signals In this section, analytical expressions for instantaneous frequency of a noisy sine wave derived by Rice [12] are adapted to obtain expressions for the statistics of instantaneous frequency of PSK and FSK signals. Consider a noisy sine wave given by ??(??) = A cos 2??ð??"ð??" ?? ?? + ??(??)(1)? ?? (??) = tan ?1 ??(??) ??(??) ; ð??"ð??" ?? (??) = ??? ?? (??) ???? ; ð??"ð??" ?? (??) = 1 2?? ??? ?? (??) ????(2)??(ð??"ð??" ?? ) = 1 2 ? ?? ?? ?? ?? ? (1 + ?? 2 ) ? 3 2 ?? ???+ ?? 2 ?(1 + ??)?? 0 ? ?? 2 ? + ???? 0 ? ?? 2 ??(3) where ?? 2 = ?? ?? ?? ??? ð??"ð??" ?? 2 ; ?? = ?? 2 2???? ?????? ?? = ?? 1 + ?? 2 (4) and I 0 and I 1 are Bessel functions of first the kind, B is the bandwidth of an ideal band pass filter, ?? ?? 2 and ?? ??? 2 the variances of the noise and its time derivative respectively and finally ? is the carrier-to-noise ratio (CNR). At high and moderate CNRs, this density approaches gaussian function with a mean of 2?f c and variance given by ?? ð??"ð??" ?? 2 = ?? 2 ???? 2 3?? 2(5) which can be obtained in terms of CNR as ?? ð??"ð??" ?? 2 = ?? 2 ?? 2 6?? (6) It is easy to see that the mean and variance of instantaneous linear frequency can be respectively written as ?? ð??"ð??" ?? = ð??"ð??" ?? (7)?? ð??"ð??" ?? 2 = ?? 2 24?? (8) In MFSK systems, the frequency of the carrier is allowed to take one of M possible values, the transmitted waveform corresponding to any one of the M symbols is given by ?? ?? (??) = ????????(2??ð??"ð??" ?? ??) = ????????{2??(ð??"ð??" ?? + ??ð??"ð??" ?? )?? ?? = ±1, ±2, ? , ±(?? ? 1)(9) The instantaneous frequency is constant within a given symbol but its value changes from symbol to symbol. But, in general, the instantaneous phase is continuous across the symbols as in case of continuous phase frequency shift keying (CPFSK). Within a given symbol the FSK signal is same as the single tone signal with a carrier frequency corresponding to that symbol. If the signal is contaminated by additive gaussian noise, the instantaneous frequency of the carrier within this symbol interval has gaussian density with variance given by eq. (8). Thus the probability density function of the instantaneous frequency of an MFSK signal becomes multimodal as given by ?? ?????????? (ð??"ð??" ?? ) = 1 ?? ? ?? ?µ ?? (??), ?? ?? (??)? ?? ??=1( 10) where µ ?? (??) = ð??"ð??" ?? + (2?? ? 1 ? ??) ð??"ð??" ?? 2 ?????? ?? ?? 2 = ?? 2 24?? (11) One may note that the noisy MFSK signal can be treated as a signal formed by interleaving the random vectors ?? ?? (??) ?? = 1,2, ? , ?? ? 1of individual symbols. Expressions for the mean and variance of such a random vector are derived from the mean and variance of the component random vectors in Appendix A. From the results of the Appendix A, we get µ ð??"ð??" ?? (??) = ð??"ð??" ?? (12)?? ð??"ð??" ?? 2 (??) = 1 ?? ? ?? ?? 2 ?? ??=1 (??) + 1 ?? ? µ ?? 2 (??) ?? ??=1 ? 1 ?? 2 ? ? µ ?? ?? ??=1 ?? ??=1 (??)µ ?? (??)(13 ) Year 2015 A Novel Classifier for Digital Angle Modulated Signals where n(t) is a zero mean band pass white noise with one sided power spectral density ? . The instantaneous phase ? ?? (??), the instantaneous angular frequency ð??"ð??" ?? (??) and the instantaneous linear frequency ð??"ð??" ?? (??) of s(t) is given by where ?? ?(??) is the Hilbert transform of the signal s(t). Rice [12] showed that the probability density function of angular frequency ð??"ð??" ?? (??) is given by The paper is organized as follows. In section II, derivation of analytical expressions of variances is presented. In section III, the expression for the proposed decision statistic is derived. The algorithm for the proposed novel classifier is presented in section IV. In section V, details of simulations and the results are presented. Finally concluding remarks and scope of future work are presented in Section VI. # Global Journal of C omp uter S cience and T echnology Volume XV Issue III Version I ( ) # H For a given f d and ? eq.( 13) is a monotonic increasing function of M, the number of frequency states. In M-ary PSK systems, the phase of carrier is allowed to take one of M possible values. However, the instantaneous frequency of this waveform is constant except at the phase transitions where it is theoretically infinite. If the signal is discrete in time, the instantaneous frequency at the phase transitions can not take infinite value but it does attain a very large value. In the presence of additive gaussian noise the instantaneous linear frequency assumes gaussian density with a mean and variance given by eq.( 7) and eq.( 8) respectively. Note that substituting M=1 (for a sine wave signal) in eq.( 12) and eq.( 13), and using eq.( 11) we get the eq.( 8). In the section to follow, we derive a decision statistic based on variance of instantaneous frequency MPSK and MFSK signals. # III. Discrimination Between mpsk and mfsk Signals Consider the eq. ( 12) which gives the variance of instantaneous frequency ?? ð??"ð??" ?? 2 (??) of a noisy MFSK signal. From this equation, we note that the variance is a function of the CNR (?), frequency deviation f d and the number of frequency states M. As explained earlier, the variance ?? ð??"ð??" ?? 2 (??) is a monotonic function of M and hence ?? ð??"ð??" ?? 2 (??1) < ?? ð??"ð??" ?? 2 (??) for M>1. From the eq.( 6), we note that the variance of instantaneous frequency of MPSK signals is a function of CNR (?). To illustrate the nature of dependence of variances of f i for both MPSK and MFSK, a plot of ?? ð??"ð??" ?? 2 (??) as a function of ? for a bit rate r b =250bps and a frequency deviation f d =500Hz and is shown in Fig 1a. From this plot we note that the variances ?? ð??"ð??" ?? 2 (??) are quite different for MPSK and MFSK signals and it is possible to discriminate these two types of modulations. However, since these variances change as a function of CNR and in a real world scenario we have no apriori knowledge of the available CNR, it is preferable that the decision statistic be independent of CNR. In what follows a technique to eliminate this dependence is presented. Consider a pair of concentric band pass filters having bandwidths B 1 and B 2 (B 2 = K B 1 ; K being a real number greater than unity). Let the received signal be passed through these filters. The variance of instantaneous frequency of a MPSK signal at the output of these filters can be obtained from eq.( 8) as ??? ð??"ð??" ?? 2 ? 1 ?????? = ?? 1 2 24?? 1 ; ??? ð??"ð??" ?? 2 ? 2 ?????? = ?? 2 2 6?? 2 (14) where ?? 1 and ?? 2 are the CNRs at the output of the filters of bandwidths B 1 and B 2 respectively. We note that ?? 1 = ?? 2 /??, if ?? 2 = ???? 1. Thus the variance expressions reduce to ??? ð??"ð??" ?? 2 ? ?????? = ?? 1 2 24?? 1 ; ??? ð??"ð??" ?? 2 ? 2 ?????? = ?? 3 ?? 1 2 24?? 1(15) The above equation suggests that by forming a ratio of variances, we get a parameter that becomes independent of ? for MPSK signal, which is given by ?? ?????? = ??? ð??"ð??" ?? 2 ? ?????? ??? ð??"ð??" ?? 2 ? ?????? = ?? 3 (16) An additional advantage is that the ratio can be set by choosing an appropriate value of K. Now, let us consider the ratio of variances for the case of MFSK signals. Using eq.( 13) for the ?? ð??"ð??" ?? 2 (??) of FSK at two different bandwidths and after some algebraic manipulation, we obtain the ratio as ?? ?????? = ?? 3 + ?? ?? + 1 (17) where ?? = 2 ð??"ð??" ?? 2 (?? 2 ? 1)?? 1 ?? 1 2 (18 ) which obviously has a dependence on CNR(?) and the frequency deviation f d . The bandwidth B 1 must be selected in such a way that signal components of the received signal are not lost or highly attenuated and at the same time keeping the noise entering the filter as low as possible. One of the ways for choosing appropriate B 1 is to identify the significant portion of the spectrum by any one of the spectral estimation methods and choose B 1 so as to pass the significant portions. From the power spectra of MFSK signals [13] it is easy to arrive at the required bandwidth of the filter B 1 as ?? 1 = (?? + 2)ð??"ð??" ?? (19) Substituting eq.( 19) in eq.( 18) we get ?? ?????? = 2 (?? 2 ? 1)?? 1 (?? + 2) 2 ( 20) Thus, for appropriately chosen filter bandwidth, R FSK is independent of f d . To illustrate the behavior of R FSK , both R FSK and R PSK are plotted as a function of ? and M, for K=1. IV. # Proposed Novel Classifier Though the analytical expressions for the variance Ration R are very promising for classification of digital angle modulated signals, some practical issues hamper the effectiveness of the classifier at the low CNRs. As mentioned earlier, the instantaneous frequency of MPSK signal will have spikes at phase transitions. The variance expressions derived earlier do not take this in to account. Thus, while implementing the proposed method, these spikes have to be suppressed. For the elimination of spikes in the instantaneous frequency, an impulse elimination filter which does not effect the flat portion of the instantaneous frequency is to be used. One of the simplest methods used for such purposes is the median filter. A median filter [14] of a size N w samples can suppress all the spikes having width of less than or equal to N w . Thus the proposed algorithm for discriminating MPSK and MFSK modulated signals can be stated as follows. Step1: Compute the averaged short time fourier transform (STFT) of the given noisy modulated signal s(t). Step 2 : Using threshold and peak detection algorithm identify the spectral band of signal activity. Step3 : Estimate the approximate centroid and bandwidth of the above identified signal band. Call them as ð??"ð??" ?? ? and ?? 1 ? Step 4 : Design a band pass filter centered at ð??"ð??" ?? ? and having a bandwidth ?? 1 ? . Step 5 : Design a second band pass filter centered at ð??"ð??" ?? ? and having a bandwidth ?? 2 ? . Step 6 : Pass the noisy modulated signal s(t) through the two band pass filters separately. Let the output signals be y 1 (t) and y 2 (t) respectively. Step 7 : Compute the analytical envelopes of the outputs of both the band pass filters. Step8 : Compute the instantaneous frequencies of both analytical envelopes. Step9 : Remove the spikes in the instantaneous frequencies using a median filter of size N w . Step 10 : Estimate the variances ??? ð??"ð??" ?? ? 2 ? 1 and ??? ð??"ð??" ?? ? 2 ? 2 of the median filtered instantaneous frequencies. Step11 : Compute the variance ratio ??? ð??"ð??" ?? ? 2 ? 2 /??? ð??"ð??" ?? ? 2 ? 1 . Step12 : Classify the signal as MPSK signal, if the variance ratio is greater than a threshold T H , else classify it as MFSK signal. V. # Simulation and Results To ascertain the theoretical predictions of the earlier sections, extensive computer simulations for discriminating between MPSK and MFSK signals were carried out. In these simulations, a random symbol sequence of length 128 with equal probability is taken as the message data. First ?? × 128 random bits are generated and then each set of M bits is converted into a symbol, thus making a total of 128 symbols. Thus for M=2, each bit is taken a symbol, while for M=3, each set of 3 bits makes a symbol. ??(??) = ?? ?????? ?2?? ?ð??"ð??" ?? + (2?? ? 1 ? ??) ð??"ð??" ?? 2 ? ?? + ?? 0 ? (22) The initial phase ?? 0 is set to be zero for simplicity. A zero mean white gaussian noise (WGN) of variance (?? ?? 2 ) were added to form the noisy versions of these signals. The variance ?? ?? 2 of the noise is chosen so as to give the required Carrier-to-Noise Ratio (?). Simulations are carried out for ? of 30dB, 20dB, 10dB, 5dB, 3dB and 0dB. The proposed novel classifying algorithm is applied on the noisy signals. First the signal activity band of the noisy signal is identified by the STFT analysis done by a customized matlab function mySTFTanalysis(). The band width of the signal is maximum for 8FSK signal and is found to be 2250Hz approximately which is nine times the bit rate, for the frequency deviation of 500Hz. For PSK signal bandwidth is almost constant and is around 500Hz, which is close to the theoretical value of 2r b . The estimated spectral centroid ð??"ð??" ?? ? is around 4000Hz, close to theoretical value of f c . The spectral centroid estimation is done by an algorithm described in [16]. The bandwidth including the first side lobe is found to be equal to the symbol rate i.e. 250Hz, 125Hz and 166Hz corresponding to M=2,3 and 4 respectively. The noisy signal is filtered using a pair of concentric band pass filters centered on ð??"ð??" ?? ? and having bandwidths B 1 . These filters are implemented as 6-th order type I chebyshev filters with a pass band ripple (?) of 40dB or maximally flat butterworth filters. The ratio of bandwidths K is set at 1.5. An analytical envelope ??(??) + ?? ?(??) computed for the output of each band pass filter. The hilbert transform ?(t) is obtained by using a customized matlab function myHilbert(). Then, instantaneous frequency is estimated using the eq.( 2) and median filtered to eliminate the spikes at the phase transitions that occur at the symbol boundaries. The size of the median filter is set as 5 samples. The variances of the median filtered instantaneous frequencies ??? ð??"ð??" ?? ? 2 ? 1 and ??? ð??"ð??" ?? ? 2 ? 2 were computed as the unbiased sample variances. From these the estimate of the variance ratio ?? ? is obtained. The noisy PSK and FSK signals are simulated as several realizations of random message bits and an additive gaussian noise. Here 128 random realizations of each modulated signals are carried out. Thus for M=2,3,4 (3 cases), for CNR=30dB, 20dB, 10dB, 5dB, 3dB and 0dB (6 cases), for PSK and FSK modulations (2 cases) and for 128 realizations (128 cases), a total of 3 × 6 × 2 × 128 = 4608 noisy modulated signals are generated. In what follows, the results of the simulations are presented in detail from Fig. 2 wanders around 3 which is very close to the theoretically derived value K 3 =1.5 3 =3.375. For 4PSK and 8PSK signals his value is 1.5 in stead of 3. The value of 3 can be obtained in these cases too by properly selecting the bandwidth B 1 . However, this is not going to be a limitation for our FSK/PSK signal classification problem, since a threshold T H of 1.4 would serve the purpose even at 0dB. With this threshold value Monte Carlo simulations were carried out for these signals and the misclassification error is found to be minimal as shown in table 1. The impressive performance of the proposed technique even at such a low CNR is attributed to the implicit CNR improvement offered by the band pass filters. The discrepancies in the variances and the variance ratios observed between the theoretical value R and estimated value ?? ? in all cases, which are attributed to the following: 1. The expression for the variance of the instantaneous frequency assumes an ideal band pass filter whose response is different from that of the 6-th order chebyshev or butterworth filters used in the simulations. (No notable difference is observed in the results by changing the filter type: chebyshev or butterworth. This is expected because we are finding the variance ratios and the trend in variance is the same in both numerator and denominator.) One more important point is that the values of r b , f c and f d used in the simulations are on lower side and closer to the values found in some ITU V series data modems [15]. These values are considered only for reducing the computational requirements. This, however, is not a limitation of the theory and the proposed algorithm developed in earlier sections. # VI. # Conclusions and Future Work In this paper a novel classification scheme based on the variance of instantaneous frequency to discriminate between noisy M-ary Phase Shift keyed (MPSK) and M-ary Frequency shift keyed (MFSK) signals is proposed. In the proposed method, the received signal is passed through the pair of band pass filters and the ratio of variances of instantaneous frequency of the filter outputs is used as decision statistic. Analytical expressions are developed for the decision statistic. These expressions show that the discrimination between PSK and FSK is possible even at a carrier-to-noise ratio (CNR) of 0dB. The satisfactory performance of the proposed technique even at such a low CNR is attributed to the implicit CNR improvement at the output of the band pass filters. Simulation results validate the theoretical predictions made and the analytical expressions derived. The effect of changing the filter bandwidths and the median filter size on the decision static and the classification within PSK or FSK group (M=2 or 4 or 8 ) can be considered as the extension of this work. ![5 and f d =500Hz in Fig 1b. From these plots we note that one can set a threshold of T H (here it is 3) Year 2015 A Novel Classifier for Digital Angle Modulated Signals Global Journal of C omp uter S cience and T echnology Volume XV Issue III Version I ( ) H Year 2015 A Novel Classifier for Digital Angle Modulated Signals on the decision static to discriminate between MPSK and MFSK signals up to a CNR as low as 0dB.](image-2.png "") 1CNR/ Modulation30dB 20dB5dB3dB0dB2/4/8PSK000022/4/8FSK00000 © 2015 Global Journals Inc. (US) © 2015 Global Journals Inc. (US) 1 . The effect of spikes in the instantaneous frequency that occur at the symbol boundaries are not considered in the theoretical derivations. 3. The analytical derivations does not include the effect of median filter used in the simulations to eliminate the spikes in the instantaneous frequency. * Smart Radio Spectrum Management for Cognitive Radio Partha PratimBhattacharya International Journal of Distributed and Parallel Systems (IJDPS) 2 4 July 2011 * Modulation Classification of LPI Radar using Higher Order Statistics(HOS) ASai Raghu TSrikanth DrCh Kumar International Journal of Engineering Research & Technology 3 April -2014 * Modulation based on statistical moments JackieEHipp IEEE MILCOM-86 Conference October 1986 20.2.1-20.2.6 * Sampling and algorithms aid modulation recognition TGCallaghan JLPerry JKTjho Sept.1985 Microwaves RF * Computer simulation of an automatic classification procedure for digitally modulated communication signals with unknown parameters FFLiedtke Signal Processing 6 4 Aug.1984 * Automatic classification of high frequency signals F Signal Processing 9 3 Oct.1985 * A general approach to the automatic classification to the radio communication signals LVDominguez Signal Processing 22 3 March 1991 * Automatic estimation of input signal type MHagiwara MNakagawa Proceedings GLOBECOM-87 GLOBECOM-87 May 1987 * A Novel Technique for Automatic Modulation Classification and Time-Frequency Analysis of Digitally Modulated Signals MVSubbarao International Journal of Signal Processing 6 2 April, 2013 IJSIP) * Recognition of communication signal types using genetic algorithm and support vector machines based on the higher order statistics EbrahimzadehAtaollah RezaShermeh Ghazalian Digital Signal Processing 20 2010 * based on daubechies5 wavelet and fractional fourier transform in cognitive radio JianLiu IEEE 14th International Conference on Communication Technology (ICCT) 2012 * Statistical properties of a Sine wave plus Noise SORice Bell systems Technical Journal 27 3 January 1948 * Digital Communications JohnGProakis 1983 Mc Graw-Hill * A Theoretical Analysis of the Properties of Median filters NealCGallagher JR GaryLWise IEEETrans.ASSP 29 6December 1981 * Itu-T Recommendations V.21, V.22, V.22bis. * Investigation of Window Effects And The Accurate Estimation Of Spectral Centroid MVenkata Krishna Rao Global Journal of Researches in Engineering XV Issue IV 2015