Scene-Level Recognition of Classroom Operational States Using VGG16 Transfer Learning

Authors

  • Ayesha Khattak School of Computer Science and IT, Institute of Management Science, Peshawar, Pakistan
  • Syed Asim Jalal Department of Computer Science, University of Peshawar, Peshawar, Pakistan
  • Laiba Awan Department of Computer Science, University of Peshawar, Peshawar, Pakistan
  • Muhammad Haseeb Department of Computer Science, University of Peshawar, Peshawar, Pakistan
  • Muhammad Sadeequllah Department of Computer Science, University of Peshawar, Peshawar, Pakistan
  • Saif Ur Rehman Department of Computer Science, University of Peshawar, Peshawar, Pakistan

Keywords:

Classroom Operational State Recognition; Computer Vision; Deep Learning; VGG16; Transfer Learning; Smart Classroom; Educational Technology

Abstract

Automatic recognition of classroom operational states can be useful for classroom availability, room-use monitoring, and academic administration. This paper investigates whether three general classroom states can be recognized using a deep learning-based computer vision approach. The three states are lecture in progress, students present but the teacher absent, and empty classroom. The dataset was collected locally and contains about 1,200 images, with nearly 400 images in each class. The images were preprocessed and then used to train a VGG16 convolutional neural network. The network was initialized with ImageNet weights and adapted for three output classes. The main experiment used an 80:20 training and testing split. On 240 test images, the model obtained an accuracy of 97.08%. The F1-score was 0.96 for lecture in progress, 0.96 for students present without the teacher, and 0.99 for the empty classroom. Most errors occurred between the two occupied classroom states. The empty classroom was identified more accurately. A small web application was also developed to demonstrate how a classroom image can be submitted to the model and a state prediction returned. The results are promising for the dataset, but they should be considered only as a proof of concept. The images were collected from more than one classroom, but no independent external classroom dataset was used for validation. Therefore, the study gives an initial basis for future work on classroom availability, room-use monitoring, and simple operational monitoring

Downloads

Published

2026-01-15

How to Cite

Ayesha Khattak, Syed Asim Jalal, Laiba Awan, Muhammad Haseeb, Muhammad Sadeequllah, & Saif Ur Rehman. (2026). Scene-Level Recognition of Classroom Operational States Using VGG16 Transfer Learning. Spectrum of Engineering Sciences, 4(1), 1564–1576. Retrieved from https://www.thesesjournal.com/index.php/1/article/view/3917