IntroductionMental health and cognitive development are critical aspects of a child’s overall well-being; they can be particularly challenging for children living in politically violent environments. Children in conflict areas face a range of stressors, including exposure to violence, insecurity, and displacement, which can have a profound impact on their mental health and cognitive development.MethodsThis study examines the impact of living in politically violent environments on the mental health and cognitive development of children. The analysis was conducted using machine learning techniques on the 2014 health behavior school children dataset, consisting of 6373 schoolchildren aged 10–15 from public and United Nations Relief and Works Agency schools in Palestine. The dataset included 31 features related to socioeconomic characteristics, lifestyle, mental health, exposure to political violence, social support, and cognitive ability. The data was balanced and weighted by gender and age.ResultsThis study examines the impact of living in politically violent environments on the mental health and cognitive development of children. The analysis was conducted using machine learning techniques on the 2014 health behavior school children dataset, consisting of 6373 schoolchildren aged 10-15 from public and United Nations Relief and Works Agency schools in Palestine. The dataset included 31 features related to socioeconomic characteristics, lifestyle, mental health, exposure to political violence, social support, and cognitive ability. The data was balanced and weighted by gender and age.DiscussionThe findings can inform evidence-based strategies for preventing and mitigating the detrimental effects of political violence on individuals and communities, highlighting the importance of addressing the needs of children in conflict-affected areas and the potential of using technology to improve their well-being.