How do I know

I was deep in depression and self hatred gave up on my self for 4 years.