J. K. Rowling has revealed that the inspiration for Dementors came from her bout with severe depression prior to her phenomenal success.
She described as an "absence of being able to envisage that you will ever be cheerful again. The absence of hope.
That very deadened feeling, which is so very different from feeling sad."
the dementors were really awful in those books