P-ODN: Prototype-based Open Deep Network for Open Set Recognition

Yu Shu, Yemin Shi, Yaowei Wang, Tiejun Huang, Yonghong Tian

Abstract

Most of the existing recognition algorithms are proposed for closed set scenarios, where all categories are known beforehand. However, in practice, recognition is essentially an open set problem. There are categories we know called "knowns", and there are more we do not know called "unknowns". Enumerating all categories beforehand is never possible, consequently, it is infeasible to prepare sufficient training samples for those unknowns. Applying closed set recognition methods will naturally lead to unseen-category errors. To address this problem, we propose the prototype-based Open Deep Network (P-ODN) for open set recognition tasks. Specifically, we introduce prototype learning into open set recognition. Prototypes and prototype radiuses are trained jointly to guide a CNN network to derive more discriminative features. Then P-ODN detects the unknowns by applying a multi-class triplet thresholding method based on the distance metric between features and prototypes. Manual labeling the unknowns which are detected in the previous process as new categories. Predictors for new categories are added to the classification layer to "open" the deep neural networks to incorporate new categories dynamically. The weights of new predictors are initialized exquisitely by applying a distances based algorithm to transfer the learned knowledge. Consequently, this initialization method speeds up the fine-tuning process and reduce the samples needed to train new predictors. Extensive experiments show that P-ODN can effectively detect unknowns and needs only few samples with human intervention to recognize a new category. In the real world scenarios, our method achieves state-of-the-art performance on the UCF11, UCF50, UCF101 and HMDB51 datasets.

Introduction: The Open Set Challenge

Traditional deep learning models typically operate under a "closed-set" assumption: the set of categories encountered during testing is identical to the set encountered during training. However, real-world environments are inherently "open." A model trained to recognize specific animals will inevitably encounter species it has never seen, often misclassifying them with high confidence into one of the known categories.

This phenomenon, known as the Open Set Recognition (OSR) problem, presents two primary challenges. First, the model must be able to detect "unknowns" without prior exposure. Second, it must be able to evolve—incorporating these newly discovered categories into its knowledge base without requiring a complete retraining of the entire architecture.

Methodology: The P-ODN Framework

The Prototype-based Open Deep Network (P-ODN) addresses these challenges by shifting from traditional decision boundaries to a prototype-centric approach.

Prototype and Radius Learning

Instead of merely partitioning the feature space with linear boundaries, P-ODN learns a central representative feature vector (a "prototype") and a corresponding "radius" for each known category. This is achieved through a specialized loss function that combines standard cross-entropy with prototype and radius losses. The prototype loss ensures that features of the same class cluster tightly, while the radius loss defines the "territory" of the class, creating a bounded region of confidence.

Figure 1: Prototype and radius learning for known categories. The ellipses represent the learned confidence regions for each class.

Multi-Class Triplet Thresholding

To distinguish between knowns and unknowns, P-ODN employs a multi-class triplet thresholding method. By evaluating the distance between a sample's features and the learned prototypes, the model can reject samples that fall outside the established radiuses of all known classes, flagging them as "unknown."

Dynamic Network Expansion and Knowledge Transfer

Once an unknown is detected and manually labeled, P-ODN dynamically expands its classification layer by adding new predictors. A key innovation is the "exquisite" initialization of these new weights. By leveraging the distance to existing prototypes, the model transfers learned knowledge to the new category. This allows the network to achieve high accuracy with as few as 5 to 7 samples, significantly reducing the data requirements for incremental learning.

Figure 2: Dynamic expansion of the network. A new category (center) is incorporated into the feature space with its own learned prototype and radius.

Experimental Evaluation

The researchers evaluated P-ODN on several challenging action recognition benchmarks, including UCF11, UCF50, UCF101, and HMDB51. To simulate open-set conditions, the datasets were split, with 50% of categories treated as "knowns" and the remainder as "unknowns" to be discovered during testing.

Key Results

  • State-of-the-Art Detection: P-ODN outperformed previous models like OSDN and the original ODN, achieving a 7.24% improvement in F-score on the UCF50 dataset.
  • Data Efficiency: While standard models require nearly 100 samples per class for robust performance, P-ODN reached comparable accuracy with only 5-7 samples per new category.
  • High Accuracy: On UCF101, the model achieved a Top-1 accuracy of 78.64% in open-set scenarios, rivaling closed-set baselines that had full access to all labels from the start.

Discussion and Future Work

P-ODN demonstrates that learning class-specific radiuses provides a robust "memory unit" for what a category looks like, preventing over-generalization. However, the authors noted a slight performance decay in original categories as many new ones are added—a manifestation of "catastrophic forgetting." While their "Balance Training" method mitigates this, it remains an area for further research.

Future work will explore the use of Generative Adversarial Networks (GANs) to synthesize "fake" unknown samples during training, further hardening the model against unexpected inputs. Additionally, refining the feature space to increase margins between similar actions remains a priority.

Summary updated

BibTeX
@inproceedings{shu2020p,
  author = {Yu Shu and Yemin Shi and Yaowei Wang and Tiejun Huang and Yonghong Tian},
  title = {{P-ODN: Prototype-based Open Deep Network for Open Set Recognition}},
  booktitle = {Scientific},
  year = {2020},
  doi = {10.1038/s41598-020-63649-6},
}
Figure