Recognition of compact astrophysical objects