This paper explores knowledge-informed machine learning and particularly taxonomy-informed neural networks (TINN) to enhance data-driven smart assets' maintenance by contextual knowledge. Focusing on assets within the same class that may exhibit subtle variations, we introduce a weighted Lehmer mean as a dynamic mechanism for knowledge integration. The method considers semantic distances between the asset-in-question and others in the class, enabling adaptive weighting based on behavioural characteristics. This preserves the specificity of individual models, accommodating heterogeneity arising from manufacturing and operational factors. In the adversarial learning context, the suggested method ensures robustness and resilience against adversarial influences. Our approach assumes a kind of federated learning from neighbouring assets while maintaining a detailed understanding of individual asset behaviours within a class. By combining smart assets with digital twins, federated learning, and adversarial knowledge-informed machine learning, this study underscores the importance of collaborative intelligence for efficient and adaptive maintenance strategies in Industry 4.0 and beyond.