Abstract

Big data processing includes multiple processing flows of data. But data quality is the most important part of the entire process. Every data processing link will have an impact on the quality of big data. Collision detection is an important research content in many fields such as computer graphics and computer virtual reality. In layman's terms, it means that the computer detects the signal voltage on the channel while sending data. When the signal voltage swing value detected by a station exceeds a certain threshold value, it will be considered that at least two stations on the bus are sending data at the same time, indicating that a collision has occurred. As the number of questions increases, the level becomes higher, the target information becomes more diverse, and the algorithm becomes more complex. The traditional evolutionary algorithm is far from being able to deal with this situation effectively, and the optimization target algorithm emerges as the times require. Evolutionary computing is a mature global optimization method with high robustness and wide applicability. It has the characteristics of self-organization, self-adaptation, and self-learning. It is not limited by the nature of the problem and can effectively deal with complex problems that are difficult to solve by traditional optimization algorithms. This paper aims to study the optimization algorithm of real-time collision detection based on Snake model in the field of big data. It is expected that, with the support of big data technology, the efficiency of real-time collision detection of Snake model will be improved and time will be saved. This paper proposes a multiline swarm particle swarm algorithm and combines it with the Snake model to improve the detection efficiency of the collision detection algorithm. It verifies the detection performance of traditional algorithms and tests their effectiveness in detection. The experimental results of this paper show that the frame rate of the Snake model algorithm is 15, the frame rate of the K-DOPs algorithm is 6.7, and the error of the algorithm is 1.04. It shows that the frame rate of Snake model algorithm is better.

1. Introduction

With the deepening and development of economic globalization, the competition among countries is becoming more and more intense. In the final analysis, the competition between countries is still the competition of technology. Therefore, mastering high-end technology will greatly promote the country's international competitiveness. With the take-off of modern science and technology and the development of computer technology, the information resources in our life are increasing exponentially. All these bring us into the era of big data. Big data refers to the amount of data involved that is too large to be captured, managed, processed, and organized into information that can help companies make more active business decisions within a reasonable period of time through mainstream software tools. During the age of big digital data, the growth of all industries is inseparable from big data. The development of big data applications has an important impact on enterprises, governments, and individuals. At present, 3D models have become an unavoidable problem in virtual reality. Collision detection is also an important part of animation simulation. However, the amount of calculation in the 3D model is greatly increased, and how to simplify the calculation is a problem that needs to be explored at present.

This paper explores from the perspective of collision detection algorithm, improves its key technology, and finally achieves the goal of optimizing speed. Its fast and accurate collision detection plays a decisive role in improving the authenticity of virtual simulation scenes and enhancing the immersion of virtual scenes.

Aiming at the problem that the concave part of the traditional Snake model does not converge and is easily disturbed by noise, the centripetal energy and control energy are added to the model. It combines the multiline swarm particle swarm algorithm with the Snake model to improve the calculation process.

As new and diverse IoT applications begin to emerge, handling streaming big data becomes critical. Liu et al. proposes a broker architecture for cloud environments to serve big data computing in a cost effective manner. The cloud service broker leases cloud services from multiple cloud providers with multiple service interfaces. A cloud environment refers to an Internet big data environment that can provide users or systems with computing power, storage capacity, or virtual machine services from dynamically virtualized resources. He also proposes a pricing strategy to maximize the revenue of multiple cloud intermediaries. Extensive simulations show that this pricing strategy results in higher revenue than other pricing methods [1]. Cloud mining removes the requirement of specialized storage area, and it only calls for massive calculation infrastructure to analyze and process data. Noraziah introduces big data handling in two dimensions: systematic and definite usage. It also presents the critical concerns of big data from the perspective of managing cloud data and big data handling mechanisms [2]. Lin proposed the serpentine model approach. In this method, map characteristics are transformed into agents. The quantitative properties of the attributes are controlled by the secondary associative agents. A corresponding task is given to each agent, and they all cooperate with one another to achieve ubiquity. Our experimental findings indicate that this approach can achieve good results [3]. Sha proposed the animated Snake phantom, which ensures the overall stability. It deals with the issue that the snake's shaft was often inhomogeneously distributed all over the silhouette line, thus achieving a nice localization of the parameters. The kinetic stencil solution intensely honors the morphological agility over the shape of the model, while preserving a respectable general roof structure for the snake. Experiments show that the algorithm can effectively prevent the Snake from self-intersecting or automatically decouple the self-intersecting contour lines [4]. Zhuo proposed a hybrid Gradient Vectored Flow Pattern on the basis of the hybrid gravity flow pattern. Since the characteristics differ among the LV apical and extracardiac membranes, these data streams are derived from the original cardiac TMR images separately. The average overlap of endocardial segmentation was 89.67%. The average degree of overlapping for epicardial segments was 95.88%. The experimental findings indicate that this approach effectively enhances the performance of fragmentation than some existing approaches [5]. To address the problem that particle filters cannot obtain accurate hand information, Yi proposes an algorithm combining the filter vector flow Snake model. It guides the rapid narrowing of the profiles to the profound recessed region of the palm profile and obtains the sophisticated palm profile precisely. The resulting method achieves online modification of the parameters of the chip element filtration and avoids the chip element float phenomenon. Test leads to the indication that the suggested arrangement can lower the root-mean-square estimation mistake of manual contour following by 53% [6]. Qu proposes an optimization operator-based collision detection algorithm. In finding the multidimensional community, a task-balancing principle is applied to allocate subtasks to be executed in advance to each core of multiple-core CPUs for concurrent implementation. It is demonstrated that the method provides superior capability in tackling the problem of man-machine communication in crash inspection compared to typical ICOLLIDE method [7]. In the process of human-robot collaboration and service robots, maintaining safety and reliability is very important. Lou introduced a new strain gauge knuckle moment load cell prototype. It has a low profile construction, fast reaction, and great flexibility. He proposed a perforated speaker construction to transfer the location of the largest force and to enhance the force allocation. The curved spoke structure is topologically optimized, thus obtaining the best structural parameters [8]. Although these theories discuss big data and real-time collision detection, the combination of the two is less and it is not practical.

3. Real-Time Collision Detection Optimization Algorithm Method Based on Snake Model in the Field of Big Data

3.1. Overview of Collision Detection

Collision refers to the contact between objects. The task of collision detection is to determine whether there is a coincidence between two target objects in a certain area. If the two are found to have overlapping parts, it is called a collision. If there is no coincidence between the two, then the target object does not collide [9, 10]. Collision detection is to detect whether there is a collision between two or more objects in the virtual courseware, that is, contact or penetration. This part of the content has been supplemented in the article. Not only can collision detection technology be used in two-dimensional space, but also, with the development of computer technology, it is widely used in many virtual scenes [11]. Figure 1 shows the algorithm classification of collision detection.

According to research, most of the current algorithm detection uses rigid object collision [12]. Because the morphological structure of the deformed object is complex and prone to change, it needs to perform collision update and collision response after each collision. Therefore, the collision efficiency of other objects is bound to be affected relatively to rigid objects. In order to meet market changes, people want to simulate the display world. Most important in this technology is real-time collision detection. Although the traditional detection method can also be simulated, when the complexity of the objects designed in the scene is relatively high, the traditional detection cannot meet the real-time requirements of the virtual system. With the promotion of Internet technology, personal computers have become very common, and virtual simulation technology has also begun to be used in all walks of life [13, 14]. For example, in the development of RPS online games, developers need to use simulation to test the smoothness of the game. These scenarios require fast modeling of a large number of deformable complex objects and very efficient collision handling techniques. Although all countries in the world have explored collision detection technology and achieved results in this field, collision detection technology is still at the primary level of exploration, and there are still many unknowns [15, 16].

3.2. Overview of Algorithm Optimization

Computers have been developing and progressing continuously since their appearance in 1946 and have been fully used in various fields of social production. As the productive culture keeps improving, the scale of computation involved is increasing, especially in the fields of management and engineering [17]. With the constant evolution of PC skills, and in order to reduce the complexity of the calculation, the optimization calculation came into being. In essence, optimization refers to the use of certain rules to meet the needs of users [18, 19]. Although the development is very rapid, the production needs of human beings are also expanding. The traditional computing performance cannot meet the current development needs, so more convenient algorithms emerge as the times require. With the increasing demand for computing power, high-performance computing is also constantly developing [20, 21]. High-performance computing clusters are mainly used to deal with complex computing problems and are widely used in meteorological, oceanographic, and environmental fields (numerical forecasting, etc.), life science fields (gene sequencing, alignment, homology analysis, etc.), and computer-aided engineering fields. Figure 2 shows the basic flow of optimization calculation.

Bayesian theory belongs to the statistical theory of systems; this entails the ability to, where are on behalf of the paramount expression; the following formula can be obtained:

In practical applications, spatial splits are considered to be standalone of each other. What if the decision of the market is , a posteriori probability which is available from the inspection probability and critical probability can be represented as shown in

GC-MS is an analytical instrument. During the experiment, a set of data in chronological order can be obtained. During the experiment, the target object is composed of t parts, then each component is . The specific function expression is as follows:

Among them, W stands for different components.

Introducing the above formula into a matrix, it can be simplified to

Evolutionary algorithms are random search methods. Compared with other enumeration techniques and heuristic search techniques, the global optimal solution probability of this problem is high [22, 23]. The evaluation information of the objective function is used to make it actionable and general. It is concise in form, can be operated with massively parallel computers, and can be easily combined with other methods [24, 25]. At present, evolutionary computing mainly includes genetic algorithm, evolutionary strategy, and evolutionary planning [26, 27]. Genetic algorithm refers to the population of solution sets, and the population is composed of several individuals encoded by genes. Essentially, genetic algorithms are optimization algorithms. It is a random search algorithm that uses natural selection and biological evolution to search for the optimal solution in the search space [28].

Formula (6) reveals the function expression of the capabilities optimization model, where represents the decision variable, represents the objective capabilities, and represents the spatial subset.

Formula (7) represents the decision variable inequality.

Formula (8) represents the feasible region of the decision solution, which is the set of all solutions in layman's terms. Figure 3 shows the basic flow structure of the algorithm.

To acquire the efficient method to solve the area, the model needs to be optimized.

When formula (9) satisfies , the model is said to have an optimal solution.

Among them, is the wavelet coefficient, is the wavelet basis function, and is the analysis signal.

Among them, L stands for cubic matrix, W stands for pure chromatogram, and D stands for pure mass spectrum.

In the genetic algorithm, the workout feature is usually employed to determine the condition of an individual, and the fitness function is used to meet the generality. Therefore, the calculation steps can be reduced in the actual use process.

Formula (12) represents the functional expression for the maximal optimization problem.

Formula (13) represents the functional expression for the minimal optimization problem.

For multiobjective optimization problems, researchers have proposed different evolutionary multiobjective research algorithms. In the process of problem solving, there are two goals to be achieved. First, the frontier of the approximate Pareto optimal solution set should be as close as possible to the frontier of the true Pareto optimal solution set. The closeness of the two fronts reflects the convergence of the algorithm [29, 30]. Second, the target vectors corresponding to the Pareto optimal solution set should be distributed as widely and uniformly as possible. This goal reflects the diversity of knowledge sets. Many practical problems that can be solved by evolutionary algorithms are multiobjective problems of optimal performance. Multiobjective optimization can be described by the following formula.

If the Pareto boundary solution set can solve the problem, it means that the algorithm is feasible. Figure 4 is a structural diagram of data information transmission.

In the formula, represents the decision vector of n dimension. is the objective function. z defines inequality constraints for z. defines the equality constraint function for q.

Traditional information representation has uncertainty, which can be expressed as

When , .

Formula (16) is intended to replace the quantity of energy available for the successful categorization of the product.

3.3. Overview of Big Data

Since big data has different functions in different fields, there is no uniform definition. With the continuous development of science and technology, the connotation of data has been expanded. It can not only be an exponential value, but also be used to represent a regular symbol, so the data is considered to be processed by certain encoding. Big data is a new way of thinking. The information of production processes is transformed into the form of data, which contributes to the socioeconomic and cultural development [31, 32]. Figure 5 shows a big data structure diagram.

Big data is a comprehensive technology. It involves processes such as data storage, data collection, data analysis, and data transformation. Companies that provide products or services to a large number of consumers can use big data for precise marketing. Small and microenterprises that are small and beautiful can use big data for service transformation. Some scholars believe that big data can be roughly divided into three stages of work [33]. Big data technology can be divided into four types, which cooperate with each other to realize information sharing. Figure 6 shows the information attribution structure in the big data processing flow.

4. Real-Time Collision Detection Optimization Algorithm Experiment of Snake Model

4.1. Experimental Data

As speed of scientific and artistic progress increases, computer skills can be utilized in a wide range of societies. Object collision detection between different dimensions is already very common. The task of collision detection is to determine whether the intersection of the geometric models of two objects is empty at a certain moment. In the actual calculation process, it needs to be analyzed according to the data. This is where an optimization algorithm is needed. To this end, the performance of the algorithm is briefly analyzed, and the specific situation is as follows.

From the experimental data in Table 1, it can be seen that comparing the values of ZDT1, ZDT2, and ZDT3, the algorithm NSGA-II is weaker than the algorithm UCMOEA in terms of the worst data, the mean value, or the best data. According to the data obtained by ZDT4, it can be seen that the algorithm NSGA-II is stronger and the algorithm UCMOEA is relatively weak. For the experimental data of ZDT6, it can be seen that the algorithm NSGA-II is better than the algorithm UCMOEA in the mean and worst cases. But the algorithm UCMOEA is stronger than the algorithm NSGA-II in the optimal data.

According to the data in Table 2, the storage capacity of the server used in this experiment is 16 TB and the memory is 64 GB. The network card standard is 2 Gbps, the CPU is 4 cores, and the hard disk is 2 TB.

4.2. Collision Algorithm Detection

Collision phenomena are very common, and there are many kinds of optimization algorithms. In order to verify the most suitable optimization algorithm, the performance of different algorithms is analyzed. Before the analysis of the experimental data, the computational goals of different algorithms are controlled to ensure the scientificity of the results. The specific analysis data is as follows.

According to the data in Table 3, this experiment simulates the performance of three different optimization algorithms. It can be seen from the experiment that the frame rate of the Snake model algorithm is 15, the time for every 800 steps is 613/s, and the error of the algorithm is 0.51. The frame rate of the experimental algorithm is 17, the time per 800 steps is 533/s, and the error of the algorithm is 0.44. The frame rate of the K-DOPs algorithm is 6.7, the time per 800 steps is 1632/s, and the error of the algorithm is 1.04. According to the data, the frame rate of the experimental algorithm is the best, and the frame rate of the K-DOPs algorithm is the worst. In terms of running time, the Snake model algorithm is better than the K-DOPs algorithm. From the error results, the error of the K-DOPs algorithm is larger, and the error of the other two algorithms is smaller.

4.3. Optimization Algorithm Data

In order to verify the effectiveness of different collision optimization algorithms and improve the accuracy of collision effects in different regions, the performance of different algorithms is explored. The details are as follows.

According to the data in Table 4, this experiment simulates the performance of four different optimization algorithms. It can be seen from the experiment that the frame rate of the ICDS algorithm is 24, the time for every 800 steps is 487/s, and the error of the algorithm is 0.31. The frame rate of the ACSMCD algorithm is 22, the time for every 800 steps is 499/s, and the error of the algorithm is 0.38. The frame rate of the CDSM algorithm is 19.3, the time per 800 steps is 531/s, and the error of the algorithm is 0.45. The frame rate of the CFCD algorithm is 7.3, the time per 800 steps is 1236/s, and the error of the algorithm is 1.01. Based on the figures, it is clear from that the frame rate of the ICDS algorithm is the best and the frame rate of the CFCD algorithm is the worst. In terms of running time, the CFCD algorithm is superior to the CDSM algorithm. From the error results, the error of the CFCD algorithm is larger, and the error of the other three types of algorithms is smaller.

5. Real-Time Collision Detection Optimization Algorithm for Snake Model

5.1. Collision Efficiency of Different Algorithms

When testing the swarm intelligence optimization algorithm, the parameter of the fitness value is an important reason that affects the test result. In the collision detection process, the difference of the collision area of the target object will have different effects on the test results. Therefore, when comparing different test algorithms, the variables of the target object must be known to prevent errors.

The size of the object collision area affects the experimental results, so the collision situation is presented differently. According to the data in Figure 7, it first analyzes the situation when the collision area is small. According to the data, when the triangle slice is 2000k, the detection time of the experimental algorithm is 2.3 ms, the detection time of the Snake model algorithm is 2.3 ms, and the detection time of the K-DOPs algorithm is 5 ms. When the triangle slice is 3000k, the detection time of the experimental algorithm is 3 ms, the detection time of the Snake model algorithm is 3.2 ms, and the detection time of the K-DOPs algorithm is 8.7 ms. When the triangle slice is 4000k, the detection time of the experimental algorithm is 3.4 ms, the detection time of the Snake model algorithm is 3.7 ms, and the detection time of the K-DOPs algorithm is 10 ms. When the triangle slice is 5000k, the detection time of the experimental algorithm is 4.7 ms, the detection time of the Snake model algorithm is 5.2 ms, and the detection time of the K-DOPs algorithm is 14.6 ms. When the triangle slice is 6000k, the detection time of the experimental algorithm is 5.5 ms, the detection time of the Snake model algorithm is 6 ms, and the detection time of the K-DOPs algorithm is 16.6 ms. According to this data, when there are more and more triangles, the collision detection time will also increase. But, horizontally, the detection efficiency of K-DOPs algorithm is the lowest.

The detection efficiency when the collision area is large is analyzed. According to the data, when the triangle slice is 2000k, the detection time of the experimental algorithm is 4 ms, the detection time of the Snake model algorithm is 4.5 ms, and the detection time of the K-DOPs algorithm is 5.3 ms. When the triangle slice is 3000k, the detection time of the experimental algorithm is 5.4 ms, the detection time of the Snake model algorithm is 6.1 ms, and the detection time of the K-DOPs algorithm is 9.2 ms. When the triangle slice is 4000k, the detection time of the experimental algorithm is 6.3 ms, the detection time of the Snake model algorithm is 10 ms, and the detection time of the K-DOPs algorithm is 14.2 ms. When the triangle slice is 5000k, the detection time of the experimental algorithm is 7 ms, the detection time of the Snake model algorithm is 11 ms, and the detection time of the K-DOPs algorithm is 15 ms. When the triangle slice is 6000k, the detection time of the experimental algorithm is 12 ms, the detection time of the Snake model algorithm is 12.7 ms, and the detection time of the K-DOPs algorithm is 16 ms. According to this data, when the number of triangles remains the same, but the collision area increases, the detection time increases accordingly. But the detection efficiency of K-DOPs algorithm is still the lowest.

5.2. Experimental Data

It can be seen from the data in Figure 8 that the collision detection efficiency is improved to a certain extent in the collision area using this experimental method. In order to detect the collision efficiency of different algorithms, different algorithms are analyzed. According to the data in Figure 9, when the target object belongs to a collision with a small deformation area and the number of triangles is 2000k, the detection time of the CFCD algorithm is 5 ms, the detection time of the CDSM algorithm is 2 ms, the detection time of the ACSMCD algorithm is 1.9 ms, the detection time of the ICDS algorithm is 1.9 ms, and the detection time is 1.7 ms. When the number of triangles is 3000k, the detection time of CFCD algorithm is 8.1 ms, that of CDSM algorithm is 3.7 ms, that of ACSMCD algorithm is 3.6 ms, and that of ICDS algorithm is 3.4 ms. When the number of triangles is 4000k, the detection time of CFCD algorithm is 10 ms, the detection time of CDSM algorithm is 4.3 ms, the detection time of ACSMCD algorithm is 4 ms, and the detection time of ICDS algorithm is 3.8 ms. When the number of triangle slices is 5000k, the detection time of CFCD algorithm is 14 ms, the detection time of CDSM algorithm is 6 ms, the detection time of ACSMCD algorithm is 5.7 ms, and the detection time of ICDS algorithm is 4.3 ms. According to the data, the CFCD algorithm has the highest detection efficiency.

When the collision area of the target object is enlarged during the experiment, it is found that the four different algorithms have the same trend as the small area in terms of detection efficiency. The detection efficiency of the CFCD algorithm is still the highest.

5.3. Convergence

According to the data in Figure 10, the convergence of the algorithm USMOEA is better than that of the algorithm NSGA-II. It can be clearly seen that the nondominated solution set obtained by the algorithm USMOEA is closer to the Pareto front than that of NSGA-II. The convergence of the algorithm USMOEA has been verified. Although the algorithm USMOEA is not as good as NSGA-II in terms of broadness retention, the original intention of our algorithm is to obtain a nondominated solution set that is closer to the Pareto front and more uniformly distributed. It can be known that the expected solution goal has been basically achieved. The algorithm can obtain the nondominated solution set with more uniform distribution and be closer to the Pareto front.

6. Conclusions

With the development of science and technology, people's production needs are getting bigger and bigger, and social needs are getting wider and wider. The emergence of the Snake model just solves this problem; it aims to minimize the energy objective function and control the deformation of the parameter curve. In particular, the emergence of virtual reality makes traditional computing unable to meet the needs of production. This paper aims to study the optimization algorithm of real-time collision detection based on Snake model in the field of big data. It is expected that, with the support of big data technology, the efficiency of real-time collision detection of Snake model will be improved and time will be saved; at the same time, the contradiction between upper-level knowledge and underlying image features is better reconciled. In this paper, a new calculation method is designed under the improvement of the traditional calculation method. Although experiments have been carried out, there are still shortcomings: when the single-objective particle swarm optimization algorithm solves high-dimensional complex problems, it is still easy to fall into the local optimal solution. And the convergence accuracy still has a large room for improvement. [35].

Data Availability

Data sharing is not applicable to this article as no new data were created or analyzed in this study.

Conflicts of Interest

The authors state that this article has no conflicts of interest.

Acknowledgments

This work was financially supported by Hainan Provincial Natural Science Foundation of China, Large-Scale Complex Scenario Based on Virtual Reality Is Rapid Real-Time Collision Detection Technology Research, item number 619QN247; and Key Project of “The Thirteenth-Five” Science and Technology Research of Jilin Provincial Department of Education on Optical Motion Capture Technology “Rapid Image Generation and Detection Technology Based on Virtual Reality,” item number JJKH20190907KJ.