Abstract

With the continuous development of social economy, tourism has become one of the many choices and is becoming more and more popular. However, it should be noted that how to provide high-quality and efficient tourism services is extremely important. This paper introduces the neural network algorithm and the optimal classification decision function, through unified combing, classification, and coding of scenic spots, to achieve the subclass classification of scenic spots, based on the optimal distribution function of random intelligent selection, and the formation of the corresponding scenic spots traversal clear tourism routes. The corresponding motivation iteration is obtained by using the corresponding travel route transmission, the best travel route is defined, the corresponding auxiliary decision support is provided, and the simulation experiment is carried out. The experimental results show that the neural network algorithm and the optimal classification decision function are effective and can support the intelligent decision assistance of rural tourism service.

1. Introduction

With the continuous development of social economy, tourism has become a more and more popular choice, especially in holidays as one of the important activities of many people [1]. In addition to the traditional natural features and cultural precipitation, rural tourism has gradually become an increasingly popular route in recent years [2, 3]. In terms of differentiation, the city’s tourism infrastructure construction is relatively perfect; from the tourism transportation facilities, tourism configuration, catering, and accommodation configuration are relatively intact. However, due to the weak infrastructure, rural tourism is deficient in food, accommodation, and other aspects to a certain extent, which needs further improvement [4, 5]. For tourists, if they have a high evaluation of the whole place, they will have a high willingness to travel. These factors are easy to exist in the bus routes and road congestion of scenic spots, causing the interference of tourism activities [6, 7]. Therefore, how to determine the best route according to the corresponding factors between scenic spots, maximize the benefits of tourism, and save the corresponding cost, for the provision of corresponding services is extremely important. The continuous implementation of rural revitalization policies has led to the transformation and development of more and more agricultural industries, and rural tourism has become an increasingly important choice due to its green and environmental protection [8, 9]. More rural recreation, fishing and other activities have become popular, and smart tourism has also become the trump development direction of rural tourism and an important new development trend of tourism. At the same time, farmers are increasingly active in thinking. They are not limited to traditional services, but are oriented to more intelligent services. In addition to traditional tourism accommodation and food, they also provide farming and rural experience [1, 10].

However, it should be noted that, in the process of rural tourism development, due to the lack of important planning and preliminary investigation, there are many development problems. How to promote rural tourism, on the one hand, ensures normal and healthy development, and on the other hand, harmoniously coexists with the natural environment [9, 11, 12]. Therefore, in view of these situations, this paper introduced the neural network algorithm and the optimal classification decision function, and through the study of the topology relation network construction of rural scenic spots, tourist attractions are formed by random choice; according to the corresponding iterative interference factors analysis, the quantitative analysis of different tours as a decision aid to support the reasonable route and sorting and the choice of maximum as the best route aim to promote rural tourism and develop the local economy.

2. Neural Network Algorithm and Optimal Classification Decision Function

For neural network algorithm and the optimal classification decision function is concerned, the first is geared to the needs of tourism route of the corresponding planning; for the tourists, the most important consideration is the time and effort, the need for a limited time to maximize the corresponding travel, realizing the maximization of tourist routes, through the fixed time, and visiting more classic. Therefore, how to choose tourist attractions is extremely important. A simple one-way tourist route cannot be arranged simply and directly. On the one hand, it will miss the corresponding classical scenic spot information, and on the other hand, it will waste too much time and lead to the waste of travel time.

2.1. Random Selection Model of Scenic Spot Classification Code

According to the corresponding rural scenic spots, the classification code selection analysis of scenic spots is made clear, and the corresponding scenic spots with feature points are set. The scenic spots are classified into CLASS h and expressed as by the formula. The subset of scenic spots is represented by , and scenic spots contain the corresponding rural scenic spot elements. The distribution function of the corresponding random variable is calculated and expressed as follows:

Set the corresponding classical classification subset to be represented by vector .

On this basis, the corresponding element matrix A of rural scenic spots is established, and the specific calculation is shown as follows:

For tourists to select the corresponding rural scenic spots randomly, select the corresponding scenic spots intelligently and carry out random number coding. For tourists, they can provide reasonable sorting of scenic spots and set up corresponding travel routes according to their interest demands and time costs. Generally speaking, the number of scenic spots should not exceed 4 per day, and they should be reminded of their travel itinerary.

Step 1. Select several elements of the corresponding rural scenic spots, set them into the corresponding rural scenic spots subset class, and determine the categories and corresponding numbers of scenic spots based on the tourists’ time and interest [13, 14].

Step 2. Set the corresponding scenic spot category, set the corresponding tourism subset elements, and provide the corresponding number of scenic spots.

Step 3. On the basis of Step 2, the corresponding random number of neural network is used to calculate, and the corresponding random code is produced, which is represented by . If 3ω is 1, the corresponding iteration is completed; if not, the corresponding iteration continues.

Step 4. Return to Step 3. The corresponding scenic spots are called separately, and the corresponding random number is generated, and the corresponding scenic spots are calculated until all the scenic spots are calculated.
The neural network algorithm is used to generate random numbers, and the specific calculation of scenic spots is shown as follows:

2.2. Neural Network Algorithm Modeling

Based on the classification of scenic spots, the modeling of the neural network algorithm is carried out. Firstly, according to the requirements of various input and single output, the neuron model is used to process and transmit to the next neuron according to the corresponding external signals. The specific neuron model is shown in Figure 1:

Set the corresponding input to ; neuron output is set to ; the connection strength between neurons is represented by . Set to the threshold. In addition, using F (x) as the action function, specific formulas can be calculated according to corresponding neurons, as follows:

The specific calculation algorithm is as follows:(i)Definition 1: set the corresponding motivation influence factor as K, that is, the index of the influence of tourists’ interest on the tourism motivation of selected scenic spots [15, 16].(ii)Definition 2: set the corresponding motivation influence fluctuation; when a scenic spot finishes the tour, the corresponding objective and subjective conditions are the corresponding motivation [1719].(iii)Definition 3: set the influence factor threshold. If the influence factor plays a promoting role, set the value to be positive. If it has side effects, set it to negative.(iv)Definition 4: motivation iteration value—transmission of the next scenic spot according to the corresponding scenic spot [2022].

According to the corresponding scenic spots, corresponding tourism route neurons are established, and each neuron is set as a scenic spot. The motivation influencing factors of tourism cause corresponding fluctuations, as shown in Figure 2.

On the basis of Figure 2, the corresponding one-way tourism neural network model is established, as shown in Figure 3:

The iterative function I (t) that affects tourism motivation is the volatility weight caused by p motivation factors. Calculate the iterative action value of kinds of tourism route motivation to get , where is the iterative action value of the best tourism route motivation of intelligent planning. Set the matrix to , and the descending iterative action value matrix M of the dimensional tourism route arranges the element value in descending order, which satisfies , as follows:

2.3. SVM Regression Problem for Decision Function Reduction

Given N training samples , set the input vector to and the output to . Construct the corresponding nonlinear mapping and establish the corresponding high-dimensional linear mapping as follows:

The expression of the decision function can be written in the following form:

The decision function is simplified in the form of order reduction [17, 18].

2.4. SVM Parameter Optimization

Lagrange multiplier method is adopted to solve the above constraint problems, as follows:where α is the Lagrange multiplier. According to the optimality condition, the dual question of the original problem can be obtained as follows:

The solution of formula (9) is obtained by training data set.

In order to obtain the best SVM parameters, the PSO algorithm is used to optimize the penalty parameter C, insensitive loss coefficient G, and kernel function σ parameters of SVM [19]. The final SVM model expression is shown as follows:

2.5. Linearization of SVM Model

Let , select RBF kernel function, which can be written as follows:

Equation (11) can be used as the prediction model of predictive control.

The performance index function is shown as follows:

The formula for particle updating is shown as follows:

Therefore,where and are the initial and final values of inertia weight, c1 and c2 are learning factors, and M is the maximum number of iterations. The magnitude of inertia weight represents the global and local search capability of the algorithm. The learning factors c1 and c2 reflect the information exchange between particle swarm.

3. Algorithm Design

Step 5. Firstly, classify the types of existing scenic spots in rural areas and encode the subunits of corresponding scenic spots, respectively, to build the corresponding scenic spot matrix.

Step 6. Rank the corresponding rural scenic spots.(1)Random number generation of uniform distribution function is carried out according to the corresponding optimal classification decision function, and iteration is conducted to generate the element attractions with different codes(2)Further call the optimal classification decision function to generate the random number of the uniform distribution function and carry out the second iteration to generate the element attractions with different codesMake h calls, use the optimal classification decision function to generate the random number of the uniform distribution function, and carry out the h iteration to generate the element attractions with different codes. The rural scenic spots are included in the evaluation, and the corresponding rural tourism route vector is finally formed.

Step 7. Identify the corresponding tourism motivation impact factor K and determine the corresponding motivation impact and impact factor fluctuation.(1)If the tourists have no special requirements for the order, the fourth step should be directly transferred(2)If the tourists have clear requirements on the route of the tour, it shall be carried out according to the corresponding considerations

Step 8. Iterate travel routes are formed by permutation and combination of m-dimensional travel route basis vector Q, and the action value of motivation iteration is calculated.

3.1. Scenic Spot Selection

According to the different scenic spots in the rural-urban fringe, the corresponding scenic spots can be classified into four categories, V1 to V4, as shown in Table 1:

Figure 4 shows the spatial distribution of selected scenic spots, and the constructed element scenic spot matrix is shown as follows:

In order to verify the effect of decision function reduction on the number of support vectors, 4000 data points in the database are used for verification.

3.2. Analysis of Example Results and Decision Support

Set the corresponding impact factor fluctuation threshold, as shown in Figure 5.

According to the scenic spots selected by tourists, determine the tourism route scheme. The first 6 items of the output value are taken as intelligent decision support cases to export the tourism order map and tourism roadmap (see Figure 6). The optimal travel route of the matrix M in descending order of elements is ②⟶①⟶③⟶④, and the iterative travel route motivation value is the largest. Tourists can easily obtain the maximum motivation benefit when choosing this travel route (see Figure 6).

According to the results of the example in Figure 5 and the first six cases, the following decision support is provided:(1)For tourists, there are no specific requirements on tourist routes and scenic spots. On the whole, the best route for route 1 is downward ②⟶①⟶③⟶④, and the second is upward ④ -- ③ -- ① -- ②(2)For tourists, there are certain requirements on tourist routes and scenic spots

Route 2 tours along the way; choosing the downward ②⟶①⟶③⟶④ best route can obtain the maximum motivation benefit and choose the upward ④ -- ③ -- ① -- ② route.

Route 3: ①⟶②⟶③⟶④ for sightseeing in the morning and shopping and leisure in the afternoon. Do not consider the route, shopping in the morning leisure, afternoon sightseeing, choose ④⟶③⟶②⟶① route.

For route 4, take a side trip in the morning and shopping and leisure in the afternoon. Choose the best route down ②⟶①⟶③⟶④ or the best route down ②⟶①⟶④⟶③. Consider the route, shopping and leisure in the morning, sightseeing in the afternoon, and choose the up ④⟶③⟶①⟶② route or up ③⟶④⟶①⟶② route.

The simulation results show that the influence of tourists’ motivation is great, and the neural network algorithm and optimal classification decision function are effective.

4. Intelligent Construction Path of Rural Tourism Service

In order to further realize the intelligent support of rural tourism services, corresponding measures should be taken to establish “man and nature” countermeasures.

4.1. Basic Ideas of Intelligent Construction of Rural Tourism Service

Rural tourism service of intelligent building should be corresponding resources, widen and update the corresponding information construction, according to the character of tourists for informatization construction, using the corresponding cloud computing, Internet of things, big data, such as technology, improve the corresponding rural tourism service management, improve the corresponding tourism configuration, and break through the traditional travel restrictions.

4.2. Specific Methods of Intelligent Construction of Rural Tourism Service

In the tour, VR, RFID, and other technologies can be used to understand the equipment. After the tour, the corresponding equipment or website can be used to give feedback on the tour. Good feedback can be used as an example of publicity, while bad information can be used as a basis for improving service quality.

5. Conclusions

With the continuous development of social economy, rural tourism has become an important tourism destination, so how to make an important choice is extremely important. In this paper, the neural network algorithm and the optimal classification decision function are introduced. The simulation results show that the neural network algorithm and the optimal classification decision function are effective and can support the intelligent decision assistance of rural tourism service.

Data Availability

The data used to support the findings of this study are included within the article.

Conflicts of Interest

The authors declare no conflicts of interest.

Acknowledgments

This work was supported by Chongqing College of Finance and Economics.