The films teenagers watch have a significant influence on their behavior. After witnessing a film starring an actor with a particular social habit or personality trait, viewers, particularly youngsters, may attempt to adopt the actor’s behavior. This study proposes an algorithm-based technique for predicting the market potential of upcoming science fiction films. Numerous science fiction films are released annually, and working in the film industry is both profitable and delightful. Before the film’s release, it is necessary to conduct research and make informed predictions about its success. In this investigation, different machine learning methods written in MATLAB are examined to identify and forecast the future performance of movies. Using 14 methods for machine learning, it was feasible to predict how individuals would vote on science fiction films. Due to their superior performance, the fine, medium, and weighted KNN algorithms were given more consideration. In comparison to earlier studies, the KNN-adopted methods displayed greater precision (0.89–0.93), recall (0.88–0.92), and accuracy (90.1–93.0%), as well as a rapid execution rate, more robust estimations, and a shorter execution time. These tabulated statistics illustrate that the weighted KNN method is effective and trustworthy. If several KNN algorithms targeting specific viewer behavior are logically coupled, the film business and its global expansion can benefit from precise and consistent forecast outcomes. This study illustrates how prospective data analytics could improve the film industry. It is possible to develop a model that predicts a film’s success, effect, and social behavior by assessing features that contribute to its success based on historical data.