Machine Learning: creating a prediction without previous trends
At first sight I don't see the need for ML, you just need a similarity measure which would return a score between two objects:

Given the input object, say &quot;12345&quot;, compare it against any known object using the similarity measure. The result is a similarity score for every known object.
Rank the known objects according to their similarity against the input object, or just obtain the object with the highest similarity. for example &quot;12445&quot; is the most similar with score 0.8.
Apply a threshold $t$: if the max similarity is higher than $t$, then the corresponding known object is returned; otherwise the system says that the input object is &quot;completely new&quot;.

Of course ML could still be used, for instance to tune the similarity measure or to find the optimal threshold.