A locality-preserving convolutional neural network is a deep learning model designed to learn discriminative feature representations by preserving the local neighborhood structure and geometric relationships of data in the feature space. Unlike standard networks that solely optimize for global class separation, this architecture incorporates locality-preserving loss objectives that pull locally proximate samples of the same class closer together while maximizing the distance between different classes. By maintaining the underlying manifold structure of the input data, it enhances the model capacity to handle complex visual patterns characterized by high intra-class diversity and subtle inter-class variations, making it particularly effective for challenging computer vision and recognition tasks.