Hello, the test which can differentiate is called sleep study
. This can be done both At home or at an hospital. The Hospital one has more parameters and is better but many patients have difficulty in sleeping at a hospital. The one done at home has less parameter but easily done.