By piecing close events together.
Wyze Stories looks at whether the clips happened close together in time and whether they follow a logical path across your cameras. Someone seen on your driveway camera and then at your front door a few seconds or minutes later is read as one visit, not two separate events.