Research on video surveillance systems, for instance, in intelligent transportation systems, has advanced due to the growing requirement for monitoring, control, and intelligent management. One of the next issues is extracting patterns and automatically classifying them, given the volume of data produced by these systems. In this study, a theme approach was utilized to translate visual patterns into visual words in order to reveal and extract traffic patterns at crossings. The supplied video is first cut up into segments. The optical flux technique is then used to determine the clips' optical flux characteristics, which are based on a lot of local motion vector data, and translate them into visual words. The thin-group thematic coding method is then used to teach traffic patterns to the proposed system using a non-probable thematic model. By responding to a behavioral query like "Where is a vehicle going?" these patterns convey observable motion that can be utilized to characterize a scene. The results of applying the suggested method to the QM_UL video database demonstrated that the suggested method can accurately identify and depict significant traffic patterns such as left turns, right turns, and intersection crossings.