That does not explain how the IDF know that the victims are at home. You'd more or less need security cameras for that.
I guess you can do some sort of common principal component analysis (CPCA) from known Hamas persons to create some sort of cluster based on cell phone location data or call data, somewhat like Spotify does with recommendation from "common songs".
I wonder if this might explain why so many journalists are killed, since they probably call Hamas leaders and meet them a lot more than most people in the data set.