I think it can be any drain, not just a floor drain. So if you have a sink you don't use much, the water could be drying up during the time you don't use it, then you use it and the smell goes away or maybe cleaning Plug is not working properly. Check and replace it.
There is a possibility of...