MATLAB Answers

Are the following steps to calculate the accuracy correct or not?. Also, regarding to the sensitivity and specificity, should I do the same?

4 views (last 30 days)
FAS on 5 Feb 2018
Commented: FAS on 6 Feb 2018
I have a video clip that contains1500 frames. I trained my algorithm using a training video and detected the abnormalities in these frames. Thus, I have the detected frames which are logical frames and the ground truth dataset, which also is also logical frames. Now, I want to calculate the accuracy and ROC curve. I used the confusion function in this link (, which gives me the accuracy, sensitivity, and specificity. I applied the function to each row in the frame, then to each frame in the video to calculate the average accuracy.

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by