Text this: Dynamic resource allocation decision-making mechanism for mental health education optimized by reinforcement learning