Yeah, I could definitely see this given the correct algorithm. I'm sure there was a story about a supermarket (Tesco?) identifying that a woman was pregnant and sending her coupons for baby stuff before she even knew herself, purely based on the products she was buying? (This may have been some urban myth ).
Unfortunately I doubt they'd ever consider using this data for some kind of "good" purpose like this, unless they can make money from it.
I heard that story too, I thought it was FB and a young girl though, so likely a myth, but conceivable, if you'll forgive the pun.
But yeah, they'll already commercialise that info. I know when i was very down and on medication i got served up self-help books and courses and dubious consumable products claiming to give you a boost.