Visual Encoding Method for Semantic Mapping with Federated Learning Concept