| Literature DB >> 32260274 |
Liang Ye1,2, Le Wang1,3, Hany Ferdinando2,4, Tapio Seppänen5, Esko Alasaarela2.
Abstract
School bullying is a serious problem among teenagers. School violence is one type of school bullying and considered to be the most harmful. As AI (Artificial Intelligence) techniques develop, there are now new methods to detect school violence. This paper proposes a video-based school violence detecting algorithm. This algorithm first detects foreground moving targets via the KNN (K-Nearest Neighbor) method and then preprocesses the detected targets via morphological processing methods. Then, this paper proposes a circumscribed rectangular frame integrating method to optimize the circumscribed rectangular frame of moving targets. Rectangular frame features and optical-flow features were extracted to describe the differences between school violence and daily-life activities. We used the Relief-F and Wrapper algorithms to reduce the feature dimension. SVM (Support Vector Machine) was applied as the classifier, and 5-fold cross validation was performed. The accuracy was 89.6%, and the precision was 94.4%. To further improve the recognition performance, we developed a DT-SVM (Decision Tree-SVM) two-layer classifier. We used boxplots to determine some features of the DT layer that are able to distinguish between typical physical violence and daily-life activities and between typical daily-life activities and physical violence. For the remainder of activities, the SVM layer performed a classification. For this DT-SVM classifier, the accuracy reached 97.6%, and the precision reached 97.2%, thus showing a significant improvement.Entities:
Keywords: activity recognition; image processing; pattern recognition; school violence detecting
Mesh:
Year: 2020 PMID: 32260274 PMCID: PMC7181151 DOI: 10.3390/s20072018
Source DB: PubMed Journal: Sensors (Basel) ISSN: 1424-8220 Impact factor: 3.576
Figure 1Structure of the violence detecting system.
Figure 2Flow chart of the proposed violence detection method (KNN, K-Nearest Neighbors; CRF, circumscribed rectangular frame; and DT–SVM, Decision Tree–Support Vector Machine).
Figure 3Some examples of school violence and daily-life activities: (a) punch; (b) kick; (c) two people running; and (d) three people walking.
Figure 4Foreground target extraction with different algorithms: (a) original image; (b) Geometric Multigrid (GMG) detection; (c) Mixture of Gaussians (MOG2) detection; and (d) K-Nearest Neighbor (KNN) detection.
Figure 5Morphological processing: (a) original image; (b) target extraction and binarization; (c) opening operation; (d) erosion; (e) closing operation; and (f) dilation.
Figure 6Two examples of unexpected circumscribed rectangular frames: (a) one part separated from the whole and (b) a redundant circumscribed rectangular frame.
Figure 7Images after circumscribed rectangular frame integration: (a) fixed Figure 4a and (b) fixed Figure 4b.
Figure 8Flowchart of the state definition (CRF, circumscribed rectangular frame).
Numbering the features.
| Feature | Number |
|---|---|
| Max width of CRF(s) 1 | (1) |
| Max width variation of CRF(s) | (2) |
| Max height of CRF(s) | (3) |
| Max height variation of CRF(s) | (4) |
| Max area of CRF(s) | (5) |
| Max area variation of CRF(s) | (6) |
| Max aspect ratio of CRF(s) | (7) |
| Max aspect ratio variation of CRF(s) | (8) |
| Max centroid distance of CRF(s) | (9) |
| Max centroid distance variation of CRF(s) | (10) |
| Sum of areas of detected targets | (11) |
| Max area of detected targets | (12) |
| State of detected targets | (13) |
| Mean of optical flow | (14) |
1 CRF(s): circumscribed rectangular frame(s).
Accuracy variation during the “backwards” procedure.
| Removed Feature(s) | Accuracy (%) | Action |
|---|---|---|
| None | 89.15 | - |
| (1) | 89.02 ↓ | Retain (1) |
| (2) | 89.03 ↓ | Retain (2) |
| (3) | 88.82 ↓ | Retain (3) |
| (4) | 89.05 ↓ | Retain (4) |
| (5) | 89.12 ↓ | Retain (5) |
| (6) | 89.12 ↓ | Retain (6) |
| (7) | 88.60 ↓ | Retain (7) |
| (8) | 89.22 ↑ | Remove (8) |
| (8), (9) | 89.42 ↑ | Remove (9) |
| (8), (9), (10) | 89.35 ↓ | Retain (10) |
| (8), (9), (11) | 88.94 ↓ | Retain (11) |
| (8), (9), (12) | 89.42 = | Try (12) later |
| (8), (9), (12), (13) | 87.72 ↓ | Retain (13) |
| (8), (9), (12), (14) | 89.62 ↑ | Remove (14) |
| (8), (9), (14) | 89.52 ↓ | Remove (12) |
Accuracy variation during the “forwards” procedure.
| Added Feature(s) | Accuracy (%) | Action |
|---|---|---|
| None | 89.62 | - |
| (8) | 89.48 ↓ | Remove (8) |
| (9) | 88.86 ↓ | Remove (9) |
| (12) | 89.52 ↓ | Remove (12) |
| (14) | 89.42 ↓ | Remove (14) |
Figure 9Two examples of boxplots: (a) the sum of the areas of the detected targets and (b) the maximum areas of the detected targets.
Comparison of the four kernel functions.
| Kernel Function | Accuracy (%) |
|---|---|
| Linear | 86.2 |
| Polynomial | 86.7 |
| RBF | 89.2 |
| Sigmoid | 78.1 |
Selected features for DT (Decision Tree) and their corresponding thresholds (unit: pixel2 for area, and pixel for the others).
| Feature | Threshold | Classified As |
|---|---|---|
| Max area of detected targets | > 40,000 | School violence |
| Max area variation of CRF(s) 1 | > 50,000 | School violence |
| Sum of areas of detected targets | < 6000 | Daily-life activities |
| Number of CRF(s) | 0 | Daily-life activities |
| Max centroid distance of CRF(s) | > 300 | Daily-life activities |
| Max width of CRF(s) | < 50 | Daily-life activities |
| Max area of CRF(s) | < 10,000 | Daily-life activities |
| Max centroid distance variation of CRF(s) | > 400 | Daily-life activities |
| State of targets | = 1 | Daily-life activities |
| Mean of optical flow | > 2000 | Daily-life activities |
1 CRF(s): circumscribed rectangular frame(s).
Confusion matrix of SVM (Support Vector Machine) classification.
| Classified As | School Violence | Daily-life Activities |
|---|---|---|
| School violence | 96.1% | 3.9% |
| Daily-life activities | 18.5% | 81.5% |
Confusion matrix of the DT–SVM (Decision Tree – Support Vector Machine) classification.
| Classified As | School Violence | Daily-life Activities |
|---|---|---|
| School violence | 96.8% | 3.2% |
| Daily-life activities | 1.7% | 98.3% |