Text this: Adaptive weight optimization with large pretraining for pest detection