Hello,
Twitching in the knees is commonly due to
dehydration, intense heat, depletion of salt (sodium and potassium),
electrolyte imbalance of the body. It may also be due to
muscle fatigue, lack of exercises, poor stretching, developing
osteoarthritis, torn meniscus or
muscle strain. You are suggested to get clinically examined by a GP, get blood tests and investigations (CT, MRI) done to detect the pathology so that the treatment can be started at the earliest.
In the meantime, get connected to a Physical therapist. Your Physiotherapist will help you do stretching exercises. Consistent, targeted, stretching exercises helps to lengthen the muscle-tendon connection and reduce muscle spasm. It may take some time. Stay adequately hydrated and avoid addictions if any.
Take care. Hope I have answered your question. Let me know if I can assist you further.
Regards,
Dr. Nupur K., General & Family Physician