11 Jun 2018 --- A new algorithm may determine the ideal caffeine dosage and timing for alertness, a study has found. The research, published in the American Academy of Sleep Medicine and conducted at a US Army Medical Research facility, states that its algorithm could even lead to a reduction in caffeine intake for participants, with an improvement in alertness.