# How would you model this "strand" clustering problem? [P] — retained record

> Retained reddit record from reddit:MachineLearning.

Canonical: https://highsignal.app/data/records/cd357cdd2ec98f2d

[← sources](https://highsignal.app/data)


source: [reddit](https://highsignal.app/data/reddit) (reddit:MachineLearning)  published 2026-05-31 11:53 ingested 2026-06-01 11:12

[original source ↗](https://www.reddit.com/r/MachineLearning/comments/1tst8w4/how_would_you_model_this_strand_clustering/)

## extract

<table> <tr><td> <a href="https://www.reddit.com/r/MachineLearning/comments/1tst8w4/how_would_you_model_this_strand_clustering/"> <img alt="How would you model this &quot;strand&quot; clustering problem? [P]" src="https://preview.redd.it/llqlupnwng4h1.png?width=140&amp;height=69&amp;auto=webp&amp;s=6a4221ec8198b5cec6d3a06ce96ed8400f0814a8" title="How would you model this &quot;strand&quot; clustering problem? [P]" /> </a> </td><td> <!-- SC_OFF --><div class="md"><p><a href="https://preview.redd.it/llqlupnwng4h1.png?width=2188&amp;format=png&amp;auto=webp&amp;s=7fae5860babaffa1c8bfdcb1468b374eb38ac55d">https://preview.redd.it/llqlupnwng4h1.png?width=2188&amp;format=png&amp;auto=webp&amp;s=7fae5860babaffa1c8bfdcb1468b374eb38ac55d</a></p> <p>I'm currently building a computer vision application. I've managed to successfully train a YOLO model to detect the object I'm interested in for my videos. </p> <p>The image above shows some visualisations of the YOLO model outputs for some of the videos. I want to essentially cluster these strands in the image into groups based on their separation distance and return a string telling me the number of strands in each group from left to right (e.g. 1-2-3). </p> <p>The target value for each column in the image (where each column corresponds to a video) is 1-2-3, 1-2-3-2-3, 1-1-2-3-3-3-3 and don't worry about the fourth column for now 😄.</p> <p>The rows show the x vs t, y vs t and x vs y vs t for all the detections and the points are sized based on the detection box area. </p> <p>In the fourth column I have some background object detections which I want to ignore hence why I've also visualised detection box area. </p> <p>I've managed to train a XGBoost classification model that gives 70ish% accuracy however Bayes error is making me think I should be able to do much better than this. </p> <p>How would you approach trying to predict these strand clusterings? </p> <p>Some extra info that might help; there are at max 8 groups and each group can have only at max 3 strands. </p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/mitbull420"> /u/mitbull420 </a> <br /> <span><a href="https://www.reddit.com/r/MachineLearning/comments/1tst8w4/how_would_you_model_this_strand_clustering/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/MachineLearning/comments/1tst8w4/how_would_you_model_this_strand_clustering/">[comments]</a></span> </td></tr></table>

## retained text

No document body was retained for this record — only its metadata was stored.
