There is one death by suicide every 40 seconds around the world, according to the World Health Organization. And although Facebook has offered suicide prevention features for many years already, much of that effort has involved direct human intervention, such as people reporting concerns about their friends.

Facebook says that it’s testing pattern-recognition technology that automatically detects whether a post is “very likely to include thoughts of suicide,” according to a Facebook blog post.

A post flagged by Facebook’s algorithms may be manually checked by the company’s Community Operations team — even if it hasn’t been reported by a friend — and the individual may be offered support directly.

Facebook is also launching a handful of new suicide prevention tools across video and Facebook Messenger.

With Facebook’s growing push into live video, the company is now expanding its existing suicide prevention tools into Facebook Live — this means that friends or strangers watching a livestreamed video can now contact the person directly or report the livestream to Facebook. This move comes almost two months after a U.S. teen reportedly broadcast her suicide through Facebook Live.

Facebook will provide various resources to the person reporting their concerns, as well as to the person who’s sharing the live video.

Above: New Facebook Tools for Suicide Prevention

With the rise of Messenger as a standalone messaging service, separate from the main platform, Facebook has also been working with various crisis support partners (e.g. Crisis Text Line and the National Suicide Prevention Lifeline) to make it easier for those considering suicide to contact a specialist over Messenger. Moving forward, there will be an option to message with someone from a relevant organization in real time, either through the aforementioned suicide prevention tools or from the organization’s Facebook Page.