Complex sentence: This cluster label is decided based on the neighbors of the cell which have been previously scanned and labelled, and if the cell doesn't have any occupied neighbors then new label is assigned to the cell.
Split into simpler sentences: This cluster label is decided based on the neighbors of that cell. If the cell doesn't have any occupied neighbors then, a new label is assigned to the cell.