By changing some of your habits and routines, you may be able to improve the quality of your sleep. Getting in some daily physical activity is one of the best remedies for insomnia. Exercise is good for your overall health, but research also shows that it helps to improve your quality of sleep.