High-altitude hypoxic brain injury (HHBI) is a kind of acute mountain sickness and the survival rate of patients with HHBI can be improved only if it is detected and treated at the early stage. However, limited by speediness and accuracy, it is still very difficult for most of current approaches to realize the early detection of HHBI. We propose herein a novel strategy for this goal based on spatiotemporal changes in the brain oxygen level. As revealed by in vivo electrochemistry, the characteristic changes of brain oxygen level under the high-altitude exposure are directly associated with the brain hypoxia status. Given brain hypoxia is the main pathogenesis of HHBI, the degree of HHBI can be diagnosed by the variation of brain oxygen, making the early detection of HHBI feasible. In addition, the risk of HHBI for mouse exposed to high-altitude hypoxia environments can be also prognosed days in advance.