Machine Learning Driven Spectrum Sensing for CRWSN Using Logistic Regression, K-Nearest Neighbor and Few–Shot Learning Model

Authors

Mahadevan V

Department of Electronics and Communication Engineering, Puducherry Technological University, Puducherry (India)

Saraswady D

Department of Electronics and Communication Engineering, Puducherry Technological University, Puducherry (India)

Article Information

DOI: 10.51244/IJRSI.2026.13010217

Subject Category: Engineering & Technology

Volume/Issue: 13/1 | Page No: 2451-2463

Publication Timeline

Submitted: 2026-02-04

Accepted: 2026-02-10

Published: 2026-02-18

Abstract

Reliable spectrum sensing is a critical function in Cognitive Radio Wireless Sensor Networks (CRWSNs), where unlicensed Secondary Users (SUs) opportunistically access licensed bands without causing harmful interference to Primary Users (PUs). Classical sensing techniques, such as energy detection and cyclostationary analysis, suffer from poor robustness under low signal-to-noise ratio (SNR) and fading conditions and impose high computational overhead on resource-constrained sensor nodes. This paper presents a machine learning–driven spectrum sensing framework that comparatively analyzes Logistic Regression, k Nearest Neighbor, and a Few-Shot Learning (FSL)–based Prototypical Network. At the fusion center, sensing data are transformed into a ten-dimensional radio-frequency feature vector derived from multi-domain descriptors, including detected energy, estimated SNR, channel center frequency, RSSI variance, cyclostationary spectral correlation features, adjacent-channel power ratios, and average primary user presence probability. Logistic Regression and k-Nearest Neighbor serve as baseline models, highlighting the limitations of conventional supervised learning in non-linear and data-scarce environments. To address these limitations, the proposed FSL-based Prototypical Network learns a compact embedding space and class prototypes using episodic training, enabling robust classification with very few labeled samples. Simulations carried out over the 470–698 MHz UHF band under Rayleigh fading conditions demonstrate that the proposed FSL model significantly outperforms the baseline methods, achieving 94.0 % accuracy, a probability of detection of 93.8%, a probability of false alarm of 5.7 %, and an ROC–AUC of 98.0 %. These results indicate that the proposed approach is well suited for dynamic CRWSN deployments.

Keywords

Spectrum Sensing, Machine Learning, Few--Shot Learning Prototypical Networks, Logistic Regression, k-Nearest Neighbors.

Downloads

References

1. E. Axell, G. Leus, E. G. Larsson, and H. Vincent Poor, “Spectrum sensing for cognitive radio: State-ofthe-art and recent advances,” IEEE Signal Processing Magazine, vol. 29, no. 3, pp. 101–116, May 2012. [Google Scholar] [Crossref]

2. T. Yucek and H. Arslan, “A survey of spectrum sensing algorithms for cognitive radio applications,” IEEE Communications Surveys & Tutorials, vol. 11, no. 1, pp. 116–130, First Quarter 2009. [Google Scholar] [Crossref]

3. W. A. Gardner, Cyclostationarity in Communications and Signal Processing. New York, NY, USA: IEEE Press, 1994. [Google Scholar] [Crossref]

4. I. F. Akyildiz, W. Y. Lee, M. C. Vuran, and S. Mohanty, “Next generation/dynamic spectrum access/cognitive radio wireless networks: A survey,” Computer Networks, vol. 50, no. 13, pp. 2127– 2159, Sep. 2006. [Google Scholar] [Crossref]

5. A. Ghasemi and E. S. Sousa, “Spectrum sensing in cognitive radio networks: Requirements, challenges and design trade-offs,” IEEE Communications Magazine, vol. 46, no. 4, pp. 32–39, Apr. 2008. [Google Scholar] [Crossref]

6. A. Nasser et al., “Spectrum sensing for cognitive radio: Recent advances and future challenges,” MDPI Sensors Journal, vol. 21, no. 7, pp. 1–28, Apr. 2021. [Google Scholar] [Crossref]

7. D. Cabric, S. M. Mishra, and R. W. Brodersen, “Implementation issues in spectrum sensing for cognitive radios,” in Proc. IEEE Conf. on Signals, Systems, and Computers, Pacific Grove, CA, USA, 2004, pp. 772–776. [Google Scholar] [Crossref]

8. S. Solanki and P. Patel, “Deep learning approaches for spectrum sensing in cognitive radio networks,” MDPI Symmetry, vol. 27, pp. 2387–2401, 2021. [Google Scholar] [Crossref]

9. X. Wang, L. Gao, and S. Mao, “Deep learning-based spectrum sensing in cognitive radio,” IEEE Wireless Communications, vol. 26, no. 1, pp. 128–134, Feb. 2019. [Google Scholar] [Crossref]

10. T. J. O’Shea and J. Hoydis, “An introduction to deep learning for the physical layer,” IEEE Trans. Cognitive Communications and Networking, vol. 3, no. 4, pp. 563–575, Dec. 2017. [Google Scholar] [Crossref]

11. J. Snell, K. Swersky, and R. S. Zemel, “Prototypical networks for few-shot learning,” in Advances in Neural Information Processing Systems, 2017, pp. 4077–4087. [Google Scholar] [Crossref]

12. Z. Ji, X. Zhang, and Y. Zhang, “Improved prototypical networks for few-shot learning,” Neurocomputing, vol. 403, pp. 114–123, 2020. [Google Scholar] [Crossref]

13. T. Li et al., “Meta-WF: Meta-learning-based few-shot wireless impersonation detection for Wi-Fi networks,” IEEE Communications Letters, vol. 25, no. 11, Nov. 2021. [Google Scholar] [Crossref]

14. M. Falco et al., “AI-driven spectrum sensing: An in-depth meta-analysis of trends, challenges and opportunities,” Elsevier Computer Networks, Nov. 2025. [Google Scholar] [Crossref]

15. S. Haykin, “Cognitive radio: Brain-empowered wireless communications,” IEEE Journal on Selected Areas in Communications, vol. 23, no. 2, pp. 201–220, Feb. 2005. [Google Scholar] [Crossref]

16. T. Yucek and H. Arslan, “A survey of spectrum sensing algorithms for cognitive radio applications,” IEEE Communications Surveys & Tutorials, vol. 11, no. 1, pp. 116–130, 2009. [Google Scholar] [Crossref]

17. R. Tandra and A. Sahai, “SNR walls for signal detection,” IEEE Journal of Selected Topics in Signal Processing, vol. 2, no. 1, pp. 4–17, 2008. [Google Scholar] [Crossref]

18. I. Goodfellow, Y. Bengio, and A. Courville, Deep Learning. Cambridge, MA, USA: MIT Press, 2016. [Google Scholar] [Crossref]

19. X. Zhang, Y. Liu, and X. Wang, “Machine learning in cognitive radio networks: A survey,” IEEE Communications Surveys & Tutorials, vol. 22, no. 3, pp. 1806–1838, 2020. [Google Scholar] [Crossref]

20. S. Khan, S. M. A. Kazmi, and M. A. Imran, “Machine learning-based spectrum sensing in cognitive radio networks,” in Proc. IEEE International Conference on Communications, Shanghai, China, May 2019. [Google Scholar] [Crossref]

21. H. Tang et al., “SVM-based spectrum sensing for cognitive radio,” in Proc. IEEE Wireless Communications and Networking, vol. 2, Nov. 2010. [Google Scholar] [Crossref]

Metrics

Views & Downloads

Similar Articles