Hydrometer classification algorithm