A method, system, device and medium for processing visual cognitive response data
By improving the flower algorithm and using the optimal selection flower algorithm to optimize the parameters of the ex-Gaussian model, the problem of parameter search in visual data processing is solved, the accuracy of visual cognitive data analysis is improved, and the understanding of the visual cognitive process is enhanced.
Patent Information
- Application Number
- CN202210453889.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-24
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-04-24
AI Technical Summary
The existing technology fails to effectively find suitable parameters in the ex-Gaussian model in visual data processing, resulting in low accuracy in analyzing top-down and bottom-up cognitive processing and response processes in visual cognition.
The basic flower algorithm is improved. By using the negative log likelihood value of the ex-Gaussian model of the reaction time data as the objective function, and using the optimal selection flower algorithm to optimize, the parameters μ, σ, and τ corresponding to the best fitness value are obtained. , and then more accurately analyze the cognitive process in visual cognition experiments.
It improves the optimization performance of the algorithm, can better fit the ex-Gaussian model, improves the accuracy of visual cognitive data analysis, and understands the top-down and bottom-up cognitive processing processes of the human visual attention system.
Smart Images

Figure CN114861534B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of computational intelligence and visual cognition technology, and in particular, relates to a method, system, device and medium for processing visual cognition response data. Background Art
[0002] At present, with the continuous development of intelligent algorithms, they are used in almost all optimization fields. The flower algorithm is a typical algorithm in intelligent algorithms. The algorithm has the advantages of simple structure and few parameters, and has been applied by many scholars to the fields of medicine, electricity, function optimization, etc. However, the algorithm also has the disadvantages of being easy to fall into local extreme values and low convergence accuracy. Therefore, the present invention first optimizes the basic flower algorithm to improve the optimization performance of the algorithm.
[0003] The human visual system continuously receives massive amounts of information input from the outside world, but is limited by the information processing capacity of the nervous system and cannot process all of the input. The attention mechanism of the human brain helps us selectively focus on information that needs to be processed, while ignoring other irrelevant or unimportant stimuli. The attention mechanism is a basic ability for human survival and evolution, and it is also the focus of visual cognitive analysis. The experimental results of visual attention-related analysis are usually the reaction time required for subjects to complete a task (such as identifying or detecting specific visual stimuli). In order to deeply analyze the cognitive processing process behind the reaction time data, it is necessary to use various cognitive computational models to analyze the data. The ex-Gaussian model is a descriptive model commonly used for reaction time analysis in the field of visual cognition. This model consists of two parts, one with a mean of μ 0 The variance is σ 0 The Gaussian distribution part and a 0 is the exponential distribution part of the parameter. Some analysis believes that the model with parameter μ 0 The part represented is derived from the cognitive processing of the visual stimulus itself, with parameter τ 0 The part represented reflects the top-down cognitive processing process, and the parameter σ 0 It reflects the difficulty of the response. The difference in the reaction time data under different experimental conditions may be reflected in the ex-Gaussian model. 0 The change of parameter τ 0 If the parameter τ 0 If the contribution to the change is greater, it may indicate that the change in reaction time in the attention cognition experiment is mainly due to the top-down cognitive process of the subjects actively using visual stimuli, rather than changes in the experimental process or stimulus characteristics (such as salience). Changing the difficulty of distinguishing cue stimuli in the ex-Gaussian model may cause the parameter σ 0The change is that difficult tasks have larger standard deviation parameters. The accuracy of parameter fitting results has a crucial impact on the role of ex-Gaussian model in cognitive analysis. Currently, correlation analysis generally uses the optimization method provided by the development tool, such as Matlab's fminsearch function. Its specific implementation uses the older Nelder-Mead simplex method to optimize, and the optimization effect is limited.
[0004] Through the above analysis, the problems and defects of the prior art are as follows:
[0005] In the prior art visual data processing, the three appropriate parameters in the ex-Gaussian model are not found in the parameter population to analyze the top-down and bottom-up cognitive processing and response processes in visual cognition, resulting in low accuracy of the obtained data. Summary of the invention
[0006] In view of the problems existing in the prior art, the present invention provides a method, system, device and medium for processing visual cognitive response data, and specifically relates to a method for solving the parameters of an ex-Gaussian model for visual cognitive response based on an optimally selected flower algorithm.
[0007] The present invention is implemented in this way: a method for processing visual cognitive response data based on the flower algorithm of optimal selection includes:
[0008] First, the basic flower pollination algorithm is improved; the negative log-likelihood value of the ex-Gaussian model of reaction time data is used as the objective function; finally, the optimal flower selection algorithm is used to optimize the objective function, and the three parameters μ, σ, and τ corresponding to the fitness value of the best function are obtained. These three parameters can better fit the ex-Gaussian model, making it easier to more accurately analyze the cognitive process behind the reaction time data in visual cognition experiments.
[0009] Further, the specific steps of the method are as follows:
[0010] Step 1. Arrange the operating environment required by the flower algorithm based on optimal selection, and use Matlab to initialize parameters on the Windows 10 platform. The algorithm parameters include the maximum number of iterations N_iter, the Levy flight index L, and the parameter [μ, σ, τ] population N. μ corresponds to the cognitive processing process of the visual stimulus itself, σ corresponds to the difficulty of the response, and τ corresponds to the top-down cognitive processing process.
[0011] Step 2: Calculate the fitness of each individual in the population according to the objective function of the ex-Gaussian model, obtain the global optimal model parameters of the current population, the maximum fitness value and the average fitness value of the population, and then calculate the transition probability p.
[0012] Step 3, use the sorting function to sort the negative log-likelihood values, and select j groups of [μ, σ, τ] parameter individuals with better fitness from the parameter population to form a population of excellent individual sequences;
[0013] Step 4: Randomly select 2 excellent individuals from the excellent individual sequence for crossover to obtain new excellent individuals, and compare the fitness with the global optimal individual of the current population. If it is less than, the excellent individual after crossover enters the population; otherwise, the global optimal individual enters various populations for learning by other individuals in the population. This makes the individuals in the parameter population move towards the direction of excellent individuals, reducing the possibility of falling into the local optimum.
[0014] Step 5. Generate a random number in the range of [0,1] and compare it with the conversion probability corresponding to the population N. If it is less than, perform a global search operation; otherwise, perform a local search operation;
[0015] Step 6, update the global optimum of N;
[0016] Step 7, determine whether the termination condition is met, if yes, jump to step 8; otherwise, loop steps 2-6;
[0017] Step 8. Output the optimal pollen position (i.e., three parameters [μ, σ, τ]) and negative log-likelihood value.
[0018] Furthermore, in the step Step 2, the maximum fitness value and the average fitness value of the population are calculated, and then the conversion probability p is calculated. The specific steps are as follows:
[0019] Step 2.1, calculate the fitness value of each individual in the population:
[0020]
[0021] in is the probability density that obeys the ex-Gaussian distribution, i represents the i-th reaction time data obtained from a cognitive experiment, t represents the probability density that obeys the ex-Gaussian distribution of the t-th generation, and the data dimension is D.
[0022] The specific calculation method is as follows:
[0023]
[0024] Where pnf is the normalized cumulative probability of the ex-Gaussian distribution, and eps is the relative precision of the floating point.
[0025] Step 2.2, calculate the maximum fitness value and average fitness value of the population as follows:
[0026] f max =max(y)
[0027] f mean =mean(y)
[0028] Step 2.3, the steps to calculate the conversion probability p are as follows:
[0029]
[0030] where f mean and f max are the average fitness and maximum fitness in the population, respectively. As the population continues to evolve, the positions of individuals in the population in the solution space will be relatively concentrated, which is not conducive to optimization. The above formula uses a nonlinear dynamic conversion probability. As the algorithm proceeds, The ratio will decrease, resulting in an increase in p, which will allow the algorithm to jump out of the local search among similar individuals and perform a global search to achieve the goal of searching for excellent solutions in other locations in the solution space.
[0031] Furthermore, the specific steps of Step 3 to select j individuals with good fitness from various populations to form a population good individual sequence are as follows:
[0032] Dynamically select a certain number of excellent individuals j from the population composed of parameters to form an excellent individual sequence m = {m 1 ,m 2 ,...m j}, where j<N, the update rule is as follows:
[0033]
[0034] where γ is a constant.
[0035] Furthermore, in step 4, two excellent individuals are randomly selected from each excellent individual sequence for crossover to obtain three new excellent individuals, and the fitness is compared with the global optimal individual of the current population. If it is less than, the excellent individuals after crossover enter their respective populations; otherwise, the global optimal individual enters each population for learning by other individuals in the population. The specific steps are as follows:
[0036] Step 4.1. Randomly select two different excellent individuals m from the excellent individual sequence m up , m down .
[0037] Step 4.2, cross these two excellent individuals:
[0038] c * =rand*m up +(1-rand)*m down ;
[0039] Step 4.3, the new excellent individual c * Compare the calculated fitness with the global optimal fitness of the population. If it is better, then c * Enter the population for other individuals in the population to learn from.
[0040] Furthermore, the step Step5 generates a random number in the range of [0,1] and compares it with the conversion probability corresponding to the population N. If it is less than, a global search operation is performed; otherwise, a local search operation is performed. The specific steps are as follows:
[0041] Step 5.1. If the random number is less than the conversion probability corresponding to the population N, then perform a global search operation:
[0042]
[0043] where g * is the global optimal individual, and are the positions of the i-th pollen in the population that evolves to the t-th generation and the t+1-th generation respectively.
[0044] Step 5.2: If the random number is greater than the conversion probability corresponding to the population N, then perform a local search operation:
[0045]
[0046] in and are the positions of the j-th and k-th pollens in the population that have evolved to the t-th generation.
[0047] Furthermore, the improved flower algorithm is used to optimize the objective function, and the three parameters μ, σ, and τ corresponding to the optimal function fitness value are obtained. The specific steps are as follows: the objective function is used as the fitness function, and the improved algorithm is used to solve the fitness function to obtain the three parameters μ and σ of the ex-Gaussian model corresponding to the optimal fitness.
[0048] Another object of the present invention is to provide a processing system for visual cognitive response data based on the flower algorithm of optimal selection, comprising:
[0049] The parameter initialization module is used to initialize the parameters. The algorithm parameters include the maximum number of iterations N_iter, the Levy flight index L, and the parameter [μ, σ, τ] population N.
[0050] The individual fitness calculation module is used to calculate the fitness of each individual in the population according to the fitness function, obtain the global optimal individual of the current population and the maximum fitness value and average fitness value of the population, and then calculate the conversion probability p.
[0051] The individual sequence screening module is used to select j individuals with better fitness in the population to form an excellent individual sequence of the population;
[0052] The excellent individual screening module is used to randomly select 2 excellent individuals from the excellent individual sequence for crossover to obtain new excellent individuals, and compare the fitness with the global optimal individual of the current population. If it is less than, the excellent individual after crossover enters the population; otherwise, the global optimal individual enters various populations for learning by other individuals in the population.
[0053] The random number generation module is used to generate a random number in the range of [0,1] and compare it with the conversion probability corresponding to the population N. If it is less than, a global search operation is performed; otherwise, a local search operation is performed.
[0054] The global optimal update module is used to update the global optimal of N.
[0055] The termination condition determination module is used to determine whether the termination condition is met.
[0056] The fitness output module is used to output the optimal pollen position (i.e., three parameters μ, σ, τ) and fitness.
[0057] Another object of the present invention is to provide a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes a method for processing visual cognitive response data based on an optimally selected flower algorithm.
[0058] Another object of the present invention is to provide a computer-readable storage medium storing a computer program, which, when executed by a processor, enables the processor to execute a method for processing visual cognitive response data based on an optimally selected flower algorithm.
[0059] Another object of the present invention is to provide an information data processing terminal, which is used to implement a method for processing visual cognitive response data based on an optimally selected flower algorithm.
[0060] In combination with the above technical solutions and the technical problems solved, please analyze the advantages and positive effects of the technical solutions to be protected by the present invention from the following aspects:
[0061] First, in view of the technical problems existing in the above-mentioned prior art and the difficulty of solving the problems, the technical solutions to be protected by the present invention and the results and data during the research and development process are closely combined to analyze in detail and deeply how the technical solutions of the present invention solve the technical problems, and some creative technical effects brought about after solving the problems. The specific description is as follows:
[0062] The present invention improves the basic flower algorithm. First, the maximum fitness value and the average fitness value in the population are calculated. Secondly, the conversion probability P is calculated based on the maximum fitness value and the average fitness value, so that the algorithm can dynamically control the global pollination and local pollination behaviors according to the evolutionary period, and strengthen the algorithm's search ability and ability to get rid of local optimality. Finally, a Lamarck-based excellent individual crossover mechanism is proposed to inherit the excellent genes in the pollen individuals to the next generation of individuals, further strengthening the algorithm's optimization ability and improving the algorithm's optimization performance. It can be better applied to the ex-Gaussian model parameter solution problem, so as to more accurately explore the correspondence between the three parameters and each stage in the visual cognitive process.
[0063] Second, considering the technical solution as a whole or from the perspective of the product, the technical effects and advantages of the technical solution to be protected by the present invention are described in detail as follows:
[0064] The present invention can find three appropriate parameters in the ex-Gaussian model in the reaction time data to analyze the top-down and bottom-up cognitive processing and response processes in visual cognition, so as to better understand the human visual attention system and provide empirical data and theoretical hypotheses for related analysis.
[0065] The experimental results show that: in the laboratory test using the method of the present invention, the optimal value is the result closest to [200, 20, 100] among the 60 results, the average value is the average of the 60 results, and the worst value is the result with the largest difference from [200, 20, 100] among the 60 results. It can be seen that the best selected flower algorithm has a similar performance in the worst value and average value as the basic flower pollination algorithm and the fminsearch algorithm, while in the optimal value, the best selected flower algorithm has an optimal value [199.7, 20.1, 100.3] for solving the ex-Gaussian model parameters, which is closer to the theoretical optimal value [200, 20, 100] and better than the optimal value [200.5, 20.2, 99.1] in the basic flower algorithm and the optimal value [200.3, 20.2, 99.6] in the fminsearch algorithm. This shows that the best selected flower algorithm can find better results for solving the ex-Gaussian model parameters. Figure 3It can be seen that the three parameters calculated have a good fitting effect on the reaction time data, which is convenient for analyzing the cognitive processing of the visual stimulus itself, the difficulty of responding, and the top-down cognitive processing process.
[0066] Third, as auxiliary evidence of the inventiveness of the claims of the present invention, it is also reflected in the following important aspects:
[0067] The expected benefits and commercial value of the technical solution of the present invention after transformation are: improving the ability of the human brain's attention allocation mechanism to process external information, selectively focusing on information that needs to be processed, and ignoring other irrelevant or unimportant stimuli. Better exploring the cognitive principles of the human visual system and attention mechanism, and clarifying the cognitive function and structure of the human brain. The above theory can be transformed into a practical product to train the human attention mechanism. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] Figure 1 is a flow chart of a method for processing visual cognitive response data based on an optimally selected flower algorithm provided in an embodiment of the present invention;
[0069] Figure 2 It is a principle diagram of a method for processing visual cognitive response data based on an optimally selected flower algorithm provided in an embodiment of the present invention;
[0070] Figure 3 It is a reaction time data fitting diagram of the algorithm of the present invention for solving the ex-Gaussian model parameters provided by the embodiment of the present invention;
[0071] Figure 4 It is a schematic diagram of a system for processing parameter data of visual cognitive response based on the flower algorithm of optimal selection provided by an embodiment of the present invention.
[0072] In the figure: 1. Parameter initialization module; 2. Individual fitness calculation module; 3. Individual sequence screening module; 4. Excellent individual screening module; 5. Random number generation module; 6. Global optimal update module; 7. Termination condition judgment module; 8. Fitness output module. DETAILED DESCRIPTION
[0073] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0074] 1. Explanatory Examples In order to enable those skilled in the art to fully understand how to implement the present invention, this section provides an illustrative example that expands and describes the technical solution of the claims.
[0075] The method for processing visual cognitive reaction data based on the optimally selected flower algorithm provided in the embodiment of the present invention first improves the basic flower pollination algorithm; takes the negative log-likelihood value of the ex-Gaussian model of the reaction time data as the objective function; and finally optimizes the objective function using the optimally selected flower algorithm to obtain three parameters μ, σ, and τ corresponding to the fitness value of the best function. These three parameters can better fit the ex-Gaussian model, facilitating a more accurate analysis of the cognitive process behind the reaction time data in the visual cognitive experiment.
[0076] The embodiment of the present invention is specifically as follows: first, the operating environment required by the flower algorithm based on the optimal selection is arranged, the basic flower algorithm is improved, and the efficiency of optimization is improved; secondly, the negative log-likelihood value of the ex-Gaussian model of the reaction time data is used as the optimization target of the flower algorithm based on the optimal selection; finally, the minimum negative log-likelihood value is obtained through iterative calculation, and the optimal three parameters [μ, σ, τ] of the ex-Gaussian model are obtained at the same time. These three parameters can better fit the ex-Gaussian model, facilitate more accurate analysis of the cognitive process behind the reaction time data in the visual cognition experiment, and thus help us selectively focus on important information from the outside world.
[0077] Example 1
[0078] like Figure 1 As shown, the method for processing visual cognitive response data based on the optimally selected flower algorithm provided in the embodiment of the present invention includes:
[0079] S101, perform parameter initialization, the algorithm parameters include the maximum number of iterations N_iter, the Levy flight index L, and the parameter [μ, σ, τ] population N.
[0080] S102, calculating the fitness of each individual in the population according to the fitness function, obtaining the global optimal individual of the current population and the maximum fitness value and average fitness value of the population, and then calculating the conversion probability p.
[0081] S103. Select j individuals with better fitness in the population to form a sequence of excellent individuals in the population.
[0082] S104. Randomly select 2 excellent individuals from the excellent individual sequence for crossover to obtain new excellent individuals, and compare the fitness with the global optimal individual of the current population. If it is less than, the excellent individual after crossover enters the population; otherwise, the global optimal individual enters various populations for learning by other individuals in the population.
[0083] S105, generate a random number in the range of [0,1] and compare it with the conversion probability corresponding to the population N. If it is less than, perform a global search operation; otherwise, perform a local search operation.
[0084] S106: Update the global optimum of N.
[0085] S107, determine whether the termination condition is met, if so, jump to step S108; otherwise, loop steps S102 to S106;
[0086] S108. Output the optimal pollen position (i.e., three parameters μ, σ, τ) and fitness.
[0087] Example 2
[0088] Based on the method for processing visual cognitive response data based on the optimally selected flower algorithm described in Example 1, as a further embodiment,
[0089] In step S101, parameters are initialized, including the maximum number of iterations N_iter=100 and the Levy flight index L: Parameters [μ, σ, τ], population N = 100.
[0090] In step S102, the maximum fitness value and the average fitness value of the population are calculated, and then the conversion probability p is calculated. The specific steps are as follows:
[0091] Step 2.1. Take the negative log-likelihood value of the initial parameters in the ex-Gaussian model of the reaction time data as the objective function and calculate the fitness value of each individual in the population:
[0092]
[0093] in is the probability density that obeys the ex-Gaussian distribution, i represents the i-th reaction time data obtained from a cognitive experiment, t represents the probability density that obeys the ex-Gaussian distribution of the t-th generation, and the data dimension is D.
[0094] The specific calculation method is as follows:
[0095]
[0096] Where pnf is the normalized cumulative probability of the ex-Gaussian distribution, and eps is the relative precision of the floating point.
[0097] Step 2.2, calculate the maximum fitness value and average fitness value of the population as follows:
[0098] f max =max(y)
[0099] f mean =mean(y)
[0100] Step 2.3, the steps to calculate the conversion probability p are as follows:
[0101]
[0102] where f mean and f max are the average fitness and maximum fitness in the population, respectively. As the population continues to evolve, the positions of individuals in the population in the solution space will be relatively concentrated, which is not conducive to optimization. The above formula uses a nonlinear dynamic conversion probability. As the algorithm proceeds, The ratio will decrease, resulting in an increase in p, which will allow the algorithm to jump out of the local search among similar individuals and perform a global search to achieve the goal of searching for excellent solutions in other locations in the solution space.
[0103] Example 3
[0104] Based on the method for processing visual cognitive response data based on the flower algorithm based on optimal selection recorded in Example 1, as a further embodiment, in the step S103, the specific steps of selecting j individuals with excellent fitness in each population to form a population excellent individual sequence are as follows:
[0105] Dynamically select a certain number of excellent individuals j from the population composed of parameters to form an excellent individual sequence m = {m 1 ,m 2 ,...m j}, where j<N, the update rule is as follows:
[0106]
[0107] where γ is a constant.
[0108] Example 4
[0109] Based on the method for processing visual cognitive response data based on the flower algorithm based on optimal selection recorded in Example 1, as a further embodiment, in the step S104, two excellent individuals are randomly selected from the excellent individual sequence for crossover to obtain three new excellent individuals, and the fitness is compared with the global optimal individual of the current population. If it is less than, the excellent individuals after crossover enter their respective populations; otherwise, the global optimal enters various populations for learning by other individuals in the population. The specific steps are as follows:
[0110] Step 4.1. Randomly select two different excellent individuals m from the excellent individual sequence m up , m down .
[0111] Step 4.2, cross these two excellent individuals:
[0112] c * =rand*m up +(1-rand)*m down ;
[0113] Step 4.3, the new excellent individual c * Compare the calculated fitness with the global optimal fitness of the population. If it is better, then c * Enter the population for other individuals in the population to learn from.
[0114] Example 5
[0115] Based on the method for processing visual cognitive response data based on the flower algorithm based on optimal selection recorded in Example 1, as a further embodiment, in the step S105, a random number in the range of [0,1] is generated and compared with the conversion probability corresponding to the population N. If it is less than, a global search operation is performed; otherwise, a local search operation is performed. The specific steps are as follows:
[0116] Step 5.1. If the random number is less than the conversion probability corresponding to the population N, then perform a global search operation:
[0117]
[0118] where g * is the global optimal individual, and are the positions of the i-th pollen in the population that evolves to the t-th generation and the t+1-th generation respectively.
[0119] Step 5.2: If the random number is greater than the conversion probability corresponding to the population N, then perform a local search operation:
[0120]
[0121] in and are the positions of the j-th and k-th pollens in the population that have evolved to the t-th generation.
[0122] Example 6
[0123] Based on the method for processing visual cognitive response data based on the flower algorithm based on the optimal selection recorded in Example 1, as a further embodiment, in the step S108, the improved flower algorithm is used to optimize the objective function, and the three parameters μ, σ, τ corresponding to the obtained optimal function fitness value are specifically as follows: the objective function is used as the fitness function, and the fitness function is solved by the improved algorithm to obtain the three parameters μ, σ, τ of the ex-Gaussian model corresponding to the optimal fitness.
[0124] Example 7
[0125] Based on the method for processing visual cognitive response data based on the optimally selected flower algorithm described in Example 1, as a further embodiment, Figure 2 As shown, the method for processing visual cognitive response data based on the flower algorithm of optimal selection includes:
[0126] Initialize the ex-Gaussian model parameter population and the various parameters in the initialization algorithm.
[0127] Calculate the fitness and sort them to get the maximum fitness and average fitness value of the population and the individual with the current optimal model parameters.
[0128] Calculate the transition probabilities.
[0129] Select individuals with excellent model parameters.
[0130] After crossover, new excellent individuals with model parameters are obtained.
[0131] Compare the current optimal and new model parameters and the good individual fitness values.
[0132] Select individuals with good model parameters from 6 to guide population evolution.
[0133] According to the comparison between the random number and the conversion probability, the corresponding search behavior is selected to output the optimal model parameters.
[0134] Example 8
[0135] Based on the method for processing visual cognitive response data based on the optimal selection flower algorithm recorded in Example 1, Figure 3 As shown, an embodiment of the present invention provides a processing system for visual cognitive response parameter data based on an optimally selected flower algorithm, including:
[0136] Parameter initialization module 1 is used to initialize parameters. The algorithm parameters include the maximum number of iterations N_iter, the Levy flight index L, and the parameter [μ, σ, τ] population N.
[0137] The individual fitness calculation module 2 is used to calculate the fitness of each individual in the population according to the fitness function, obtain the global optimal individual of the current population and the maximum fitness value and average fitness value of the population, and then calculate the conversion probability p.
[0138] The individual sequence screening module 3 is used to select j individuals with better fitness in the population to form an excellent individual sequence of the population;
[0139] The excellent individual screening module 4 is used to randomly select 2 excellent individuals from the excellent individual sequence for crossover to obtain new excellent individuals, and compare the fitness with the global optimal individual of the current population. If it is less than, the excellent individual after crossover enters the population; otherwise, the global optimal individual enters various populations for learning by other individuals in the population.
[0140] The random number generation module 5 is used to generate a random number in the range of [0, 1] and compare it with the conversion probability corresponding to the population N. If it is less than , a global search operation is performed; otherwise, a local search operation is performed.
[0141] The global optimum updating module 6 is used to update the global optimum of N.
[0142] The termination condition determination module 7 is used to determine whether the termination condition is met.
[0143] The fitness output module 8 is used to output the optimal pollen position (ie, three parameters μ, σ, τ) and fitness.
[0144] 2. Application Examples: In order to prove the creativity and technical value of the technical solution of the present invention, this section provides application examples of the technical solution of the claims on specific products or related technologies.
[0145] This method should be used in the field of visual cognition and can also be applied to products for training attention.
[0146] 3. Evidence of the effects of the embodiments. The embodiments of the present invention have achieved some positive effects during the development or use process, and indeed have great advantages over the prior art. The following content is described in conjunction with the data, charts, etc. of the test process.
[0147] The present invention uses the basic flower algorithm, the fminsearch algorithm and the best selected flower algorithm to solve the ex-Gaussian model parameters, respectively, to demonstrate the optimization performance of the best selected flower algorithm and the accuracy of solving the ex-Gaussian model parameters. For the convenience of comparison, the reaction time data used in the experiment are random numbers generated based on the ex-Gaussian model. The values of the three parameters μ, σ, and τ in the ex-Gaussian model used to generate data are [200, 20, 100]. The closer the algorithm optimization result is to this theoretical optimal value, the better the algorithm optimization effect is. The three algorithms are run independently 60 times.
[0148] The following table compares the results of solving the ex-Gaussian model parameters using the basic flower algorithm, the fminsearch algorithm commonly used in the ex-Gaussian model, and the optimal flower algorithm:
[0149] The optimal value in the above table is the result closest to [200,20,100] among the 60 results, the average value is the average of the 60 results, and the worst value is the result with the largest difference from [200,20,100] among the 60 results. From the table, it can be seen that the best selected flower algorithm has the worst value and the average value performance is not much different from the basic flower pollination algorithm and the fminsearch algorithm. In terms of the optimal value, the best selected flower algorithm has the optimal value [199.7,20.1,100.3] of the solution result of the ex-Gaussian model parameters, which is closer to the theoretical optimal value [200,20,100], and is better than the optimal value [200.5,20.2,99.1] in the basic flower algorithm and the optimal value [200.3,20.2,99.6] in the fminsearch algorithm. This shows that the best selected flower algorithm can find better results for the solution of the ex-Gaussian model parameters. Figure 3 It can be seen that the three parameters calculated have a good fitting effect on the reaction time data, which is convenient for analyzing the cognitive processing of the visual stimulus itself, the difficulty of responding, and the top-down cognitive processing process.
[0150] It should be noted that the embodiments of the present invention can be implemented by hardware, software, or a combination of software and hardware. The hardware part can be implemented using dedicated logic; the software part can be stored in a memory and executed by an appropriate instruction execution system, such as a microprocessor or dedicated design hardware. It can be understood by a person of ordinary skill in the art that the above-mentioned devices and methods can be implemented using computer executable instructions and / or contained in a processor control code, such as a carrier medium such as a disk, CD or DVD-ROM, a programmable memory such as a read-only memory (firmware), or a data carrier such as an optical or electronic signal carrier. Such code is provided on the carrier medium. The device and its modules of the present invention can be implemented by hardware circuits such as very large-scale integrated circuits or gate arrays, semiconductors such as logic chips, transistors, etc., or programmable hardware devices such as field programmable gate arrays, programmable logic devices, etc., can also be implemented by software executed by various types of processors, and can also be implemented by a combination of the above-mentioned hardware circuits and software, such as firmware.
[0151] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any modifications, equivalent substitutions and improvements made by any technician familiar with the technical field within the technical scope disclosed by the present invention and within the spirit and principle of the present invention should be covered by the protection scope of the present invention.
Claims
1. A method for processing visual cognitive response data based on the flower algorithm of optimal selection, characterized in that: The method for processing visual cognitive reaction data based on the flower algorithm of optimal selection includes: taking the negative log-likelihood value of the ex-Gaussian model of the reaction time data in visual cognition as the objective function; optimizing the objective function using the improved basic flower pollination algorithm to obtain the parameters μ, σ, τ corresponding to the fitness value of the optimal function; fitting the ex-Gaussian model using the above three parameters to recognize the reaction time data in visual cognition; The method for processing visual cognitive response data based on the flower algorithm of the optimal selection specifically comprises the following steps: Step 1, initialize the parameters, the algorithm parameters include the maximum number of iterations N_iter, Levy flight index L, parameter [μ, σ, τ] population N; Step 2, calculate the fitness of each individual in the population according to the fitness function, obtain the global optimal individual of the current population, the maximum fitness value and the average fitness value of the population, and then calculate the conversion probability p; Step 3, select j individuals with better fitness in the population to form a sequence of excellent individuals in the population; Step 4: Randomly select 2 excellent individuals from the excellent individual sequence for crossover to obtain new excellent individuals, and compare the fitness with the global optimal individual of the current population. If it is less than, the excellent individual after crossover enters the population; otherwise, the global optimal individual enters various populations for learning by other individuals in the population; Step 5. Generate a random number in the range of [0,1] and compare it with the conversion probability corresponding to the population N. If it is less than, perform a global search operation; otherwise, perform a local search operation; Step 6, update the global optimum of N; Step 7, determine whether the termination condition is met, if so, jump to step 8; otherwise, loop steps Step 2 to Step 6; Step 8, output the optimal pollen position and fitness. The pollen position includes three parameters μ, σ, τ; In the step Step 2, the maximum fitness value and the average fitness value of the population are calculated, and then the conversion probability p is calculated. The specific steps are as follows: Step 2.1, calculate the fitness value of each individual in the population: in is the probability density that obeys the ex-Gaussian distribution, i represents the i-th reaction time data obtained from a cognitive experiment, t represents the probability density that obeys the ex-Gaussian distribution for the t-th generation, and the data dimension is N; The specific calculation method is as follows: Where pnf is the normalized cumulative probability of the ex-Gaussian distribution, and eps is the relative precision of the floating point; Step 2.2, calculate the maximum fitness value and average fitness value of the population as follows: f max =max(y) f mean =mean(y) Step 2.3, the steps to calculate the conversion probability p are as follows: where f mean and f max are the average fitness and the maximum fitness in the population respectively.
2. The method for processing visual cognitive response data using the optimally selected flower algorithm according to claim 1, wherein: The improvement of the basic flower pollination algorithm includes: calculating the maximum fitness value and the average fitness value in the population; calculating the conversion probability P based on the maximum fitness value and the average fitness value so that the algorithm dynamically controls the global pollination and local pollination behaviors according to the evolutionary period; based on the Lamarckian superior individual crossover mechanism, the excellent genes in the pollen individuals are inherited to the next generation of individuals to seek the best.
3. The method for processing visual cognitive response data using the optimally selected flower algorithm as claimed in claim 1, characterized in that: The specific steps of Step 3 to select j individuals with good fitness from various populations to form a population good individual sequence are as follows: Dynamically select a certain number of excellent individuals j from the population composed of parameters to form an excellent individual sequence m = {m1,m2,...m j }, where j<N, the update rule is as follows: where γ is a constant.
4. The method for processing visual cognitive response data using the optimally selected flower algorithm according to claim 1, wherein: The step Step 4 randomly selects two excellent individuals from each excellent individual sequence for crossover to obtain three new excellent individuals, and compares the fitness with the global optimal individual of the current population. If it is less than, the excellent individuals after crossover enter their respective populations; otherwise, the global optimal individual enters various populations for learning by other individuals in the population. The specific steps are as follows: Step 4.
1. Randomly select two different excellent individuals m from the excellent individual sequence m up , m down ; Step 4.2, cross these two excellent individuals: c * =rand*m up +(1-rand)*m down ; Step 4.3, the new excellent individual c * Compare the calculated fitness with the global optimal fitness of the population. If it is better, then c * Enter the population for other individuals in the population to learn from.
5. The method for processing visual cognitive response data using the optimally selected flower algorithm as claimed in claim 1, characterized in that: The step Step5 generates a random number in the range of [0,1] and compares it with the conversion probability corresponding to the population N. If it is less than, a global search operation is performed; otherwise, a local search operation is performed. The specific steps are as follows: Step 5.
1. If the random number is less than the conversion probability corresponding to the population N, then perform a global search operation: where g * is the global optimal individual, and are the positions of the i-th pollen in the population that evolves to the t-th generation and the t+1-th generation respectively; Step 5.2: If the random number is greater than the conversion probability corresponding to the population N, then perform a local search operation: in and are the positions of the j-th and k-th pollens in the population that have evolved to the t-th generation.
6. A processing system for visual cognitive response data based on the flower algorithm of optimal selection, characterized in that: The processing system for visual cognitive response data based on the flower algorithm of the optimal selection includes: Parameter initialization module, used for parameter initialization. Algorithm parameters include the maximum number of iterations N_iter, Levy flight index L, and parameter [μ, σ, τ] population N; The individual fitness calculation module is used to calculate the fitness of each individual in the population according to the fitness function, obtain the global optimal individual of the current population, the maximum fitness value and the average fitness value of the population, and then calculate the conversion probability p; The individual sequence screening module is used to select j individuals with better fitness in the population to form an excellent individual sequence of the population; The excellent individual screening module is used to randomly select 2 excellent individuals from the excellent individual sequence for crossover to obtain new excellent individuals, and compare the fitness with the global optimal individual of the current population. If it is less than, the excellent individual after crossover enters the population; otherwise, the global optimal individual enters various populations for learning by other individuals in the population; The random number generation module is used to generate a random number in the range of [0,1] and compare it with the conversion probability corresponding to the population N. If it is less than, a global search operation is performed; otherwise, a local search operation is performed; Global optimal update module, used to update the global optimal of N; A termination condition determination module is used to determine whether the termination condition is met; Fitness output module, used to output the optimal pollen position and fitness; In the individual fitness calculation module, the maximum fitness value and the average fitness value of the population are calculated, and then the conversion probability p is calculated. The specific steps are as follows: (1) Calculate the fitness value of each individual in the population: in is the probability density that obeys the ex-Gaussian distribution, i represents the i-th reaction time data obtained from a cognitive experiment, t represents the probability density that obeys the ex-Gaussian distribution for the t-th generation, and the data dimension is N; The specific calculation method is as follows: Where pnf is the normalized cumulative probability of the ex-Gaussian distribution, and eps is the relative precision of the floating point; (2) The maximum fitness value and average fitness value of the population are calculated as follows: f max =max(y) f mean =mean(y) (3) The steps to calculate the transition probability p are as follows: where f mean and f max are the average fitness and the maximum fitness in the population respectively.
7. A computer device, characterized in that: The computer device includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the method for processing visual cognitive response data using the optimally selected flower algorithm as described in any one of claims 1 to 5.
8. A computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor executes the method for processing visual cognitive response data using the optimally selected flower algorithm according to any one of claims 1 to 5.
