Official repository for our paper, "Unsupervised Audio-Visual Lecture Segmentation", WACV 2023.
Unsupervised Audio-Visual Lecture Segmentation
Darshan Singh S, Anchit Gupta, C. V. Jawahar, Makarand Tapaswi
IIIT Hyderabad
As a part of this work we introduce, AVLectures, a large-scale educational audio-visual lectures dataset to facilitate research in the domain of lecture video understanding. The dataset comprises of 86 courses with over 2,350 lectures for a total duration of 2,200 hours. Each course in our dataset consists of video lectures, corresponding transcripts, OCR outputs for frames, and optionally lecture notes, slides, and other metadata making our dataset a rich multi-modality resource.
Courses span a broad range of subjects, including Mathematics, Physics, EECS, and Economics (see Fig. a). While the average duration of a lecture in the dataset is about 55 minutes, Fig. b shows a significant variation in the duration. We broadly categorize lectures based on their presentation modes into four types: (i) Blackboard, (ii) Slides, (iii) Digital Board, and (iv) Mixed, a combination of blackboard and slides (Fig. c shows the distribution of
presentation modes in our dataset).
Among the 86 courses in AVLectures, a significant subset of 15 courses also have temporal segmentation boundaries. We refer to this subset as the Courses with Segmentation (CwS) and the remainder 71 courses as the Courses without Segmentation (CwoS).
Each course is provided as a tar file so the user can download any course of interest or download the entire dataset at once.
To untar a course execute the following: tar xvzf <courseID.tar.gz>
Courses with Segmentation (CwS)
After extracting the directory structure of a CwS course would be as follows:
--mitxyz
---metadata/
---OCR/
---subtitles/
---videos/
---segmentation/
------segments_stats.pkl
------segments_ts.txt
------subtitles/
------videos/
videos/
: Contains original downloaded lectures of that particular course.subtitles/
: Contains corresponding subtitle files (.srt
) for each of the video lecture invideos/
. The names of corresponding subtitle file and video file matches.OCR/
: Contains OCR of frames of the video lectures at a rate of 10 per second using Google Cloud OCR API. The no. of folders in this directory is equal to the no. of video lectures. The folders are named after the video lectures. Each file inside these folders is a.json
file and is named as follows:<frame_no>_<int_frame_rate>_<dec_frame_rate>_<timestamp>.json
. For example:13500_29_97_450.json
implies that this OCR is of the 13500th frame of video lecture whose frame rate is 29.97 fps (the timestamp can be calculated directly just by using these two i.e, frame no. and frame rate).segmentation/segments_ts.txt
: This text file has the segmentation information of that particular course. Each line will of the following form:
<clip_name>@@<segment_start_timestamp(in seconds)>@@<segment_end_timestamp(in seconds)>@@<lecture_name>
where @@
is the delimiter.
segmentation/segements_stats.pkl
: This pickle file has the complete segmentation information of that course in a OrderedDict. For each lecture of that course this file provides the following details: start timestamp, end timestamp, no. of segments and the total duration of the lecture.segentation/videos/:
Contains the processed video lectures. We remove the intro, outro and optionally merge segments.segmentation/subtitles/:
Contains the corresponding subtitle files (.srt
) for each video lecture insegmentation/videos/
.metadata/
: Contains the optional data of the course such as lecture notes, lecture slides, assignments etc.
Courses without Segmentation (CwoS)
Coming soon!
Code coming soon!
If you find our dataset/code useful, feel free to leave a star and please cite our paper as follows:
@InProceedings{S._2023_WACV,
author = {S., Darshan Singh and Gupta, Anchit and Jawahar, C. V. and Tapaswi, Makarand},
title = {Unsupervised Audio-Visual Lecture Segmentation},
booktitle = {Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision (WACV)},
month = {January},
year = {2023},
pages = {5232-5241}
}
Darshan Singh S ([email protected])
Anchit Gupta ([email protected])