Hello there. This forum is in English so I will give you a response in English and hopefully you will understand or use Google translate
These are not badges. These are group avatars/pictures. When you create a group in your course - see the documentation on Groups - you can add a picture to represent that group. In places such as forums this picture is then displayed for each participant. If they are a member of several groups then several pictures will be displayed.