I think giving more weight to positive classes can work in general, but there might be reasons it does not work for you. If some classes are very rare, you might look into oversampling them. In the context of detection, people have used focal loss to get around.
Best regards
Thomas