CN115496353A - Intelligent risk assessment method for compressed natural gas filling station - Google Patents
Intelligent risk assessment method for compressed natural gas filling station Download PDFInfo
- Publication number
- CN115496353A CN115496353A CN202211133665.0A CN202211133665A CN115496353A CN 115496353 A CN115496353 A CN 115496353A CN 202211133665 A CN202211133665 A CN 202211133665A CN 115496353 A CN115496353 A CN 115496353A
- Authority
- CN
- China
- Prior art keywords
- natural gas
- gas filling
- compressed natural
- formula
- risk
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
- G06Q10/063—Operations research, analysis or management
- G06Q10/0635—Risk analysis of enterprise or organisation activities
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/004—Artificial life, i.e. computing arrangements simulating life
- G06N3/006—Artificial life, i.e. computing arrangements simulating life based on simulated virtual individual or collective life forms, e.g. social simulations or particle swarm optimisation [PSO]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
- G06Q10/063—Operations research, analysis or management
- G06Q10/0639—Performance analysis of employees; Performance analysis of enterprise or organisation operations
- G06Q10/06393—Score-carding, benchmarking or key performance indicator [KPI] analysis
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/06—Energy or water supply
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Human Resources & Organizations (AREA)
- Economics (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Strategic Management (AREA)
- Entrepreneurship & Innovation (AREA)
- General Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- Tourism & Hospitality (AREA)
- Marketing (AREA)
- Educational Administration (AREA)
- Development Economics (AREA)
- Health & Medical Sciences (AREA)
- Operations Research (AREA)
- Quality & Reliability (AREA)
- Game Theory and Decision Science (AREA)
- General Health & Medical Sciences (AREA)
- Water Supply & Treatment (AREA)
- Computational Linguistics (AREA)
- Primary Health Care (AREA)
- Life Sciences & Earth Sciences (AREA)
- Artificial Intelligence (AREA)
- Biomedical Technology (AREA)
- Biophysics (AREA)
- Public Health (AREA)
- Data Mining & Analysis (AREA)
- Evolutionary Computation (AREA)
- Molecular Biology (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Description
技术领域technical field
本发明涉及一种压缩天然气加气站智能风险评估方法,尤其涉及一种基于改进蝗虫算法优化的楔形波多核支持向量机的压缩天然气加气站智能风险评估方法。The invention relates to an intelligent risk assessment method for a compressed natural gas filling station, in particular to an intelligent risk assessment method for a compressed natural gas filling station based on a wedge-shaped multi-core support vector machine optimized by an improved locust algorithm.
背景技术Background technique
压缩天然气具有成本低、无污染、使用方便等特点,压缩天然气加气站往往通过储罐储存一定量的天然气。近年来,压缩天然气加气站的数量不断增加。压缩天然气行业的快速发展导致现场分散和监管困难。此外,许多地方管理工作相对薄弱,控制手段落后。因此,许多新的压缩天然气加气站在业务管理、设备监控、安全生产等方面存在许多漏洞和问题。由于腐蚀或材料缺陷,天然气储罐可能发生泄漏,导致火灾、爆炸等事故,安全生产事故时有发生,造成人员伤亡和财产损失。因此,压缩天然气加气站的安全问题日益引起公众的关注。鉴于压缩天然气加气站的高风险状态,有必要对压缩天然气加气站生产经营中可能存在的风险因素进行危害识别风险分析。结合事故统计分析结果,采用定性评价方法对压缩天然气加气站生产装置进行初步危险性分析,找出压缩天然气加气站常见事故的原因,提出压缩天然气加站安全生产运行的技术管理措施。压缩天然气加气站风险评估研究将确保压缩天然气加气站及其周边设施的安全。Compressed natural gas has the characteristics of low cost, no pollution, and convenient use. Compressed natural gas filling stations often store a certain amount of natural gas through storage tanks. In recent years, the number of compressed natural gas filling stations has been increasing. The rapid growth of the compressed natural gas industry has led to site fragmentation and regulatory difficulties. In addition, the management work in many places is relatively weak, and the control methods are backward. Therefore, many new compressed natural gas filling stations have many loopholes and problems in business management, equipment monitoring, safety production, etc. Due to corrosion or material defects, natural gas storage tanks may leak, resulting in fires, explosions and other accidents. Safety production accidents occur from time to time, causing casualties and property losses. Therefore, the safety issues of compressed natural gas filling stations are increasingly attracting public attention. In view of the high risk status of compressed natural gas filling stations, it is necessary to carry out hazard identification risk analysis on possible risk factors in the production and operation of compressed natural gas filling stations. Combined with the statistical analysis results of accidents, the qualitative evaluation method is used to conduct a preliminary risk analysis on the production equipment of compressed natural gas filling stations, find out the causes of common accidents in compressed natural gas filling stations, and propose technical management measures for the safe production and operation of compressed natural gas filling stations. The CNG filling station risk assessment study will ensure the safety of the CNG filling station and its surrounding facilities.
近年来,随着人工智能技术的蓬勃发展,基于人工智能的机器学习算法越来越成熟。基于人工智能的机器学习算法可以自动获取信息并实时发布,防止重大或严重损坏,此外,它具有成本低、功耗低、信息可靠等优点。由于压缩天然气加气站风险评估具有很强的复杂性、非线性、不确定性和实时性,采用传统的数学模型进行风险评估存在一定的局限性。传统的评价方法主观随机性和模糊性较大,操作相对复杂,缺乏自学习能力。支持向量机的非线性处理能力是通过“核映射”方法实现的。对于内核映射,内核函数必须满足Mercer条件。例如,高斯核函数是一种广泛使用的核函数,在分析非线性问题时表现出良好的映射性能。然而,对于现有的核函数,支持向量机无法在某个L2(R)子空间上逼近任何函数,因为现有的核功能无法通过平移在该子空间上生成一组完整的基。In recent years, with the vigorous development of artificial intelligence technology, machine learning algorithms based on artificial intelligence have become more and more mature. The machine learning algorithm based on artificial intelligence can automatically obtain information and release it in real time to prevent major or serious damage. In addition, it has the advantages of low cost, low power consumption, and reliable information. Due to the strong complexity, nonlinearity, uncertainty and real-time nature of the risk assessment of compressed natural gas filling stations, the use of traditional mathematical models for risk assessment has certain limitations. The traditional evaluation method is subject to randomness and ambiguity, the operation is relatively complicated, and it lacks self-learning ability. The non-linear processing ability of support vector machine is realized by "kernel mapping" method. For kernel mapping, the kernel function must satisfy the Mercer condition. For example, the Gaussian kernel function is a widely used kernel function that shows good mapping performance when analyzing nonlinear problems. However, for existing kernel functions, SVM cannot approximate any function on a certain L2 ( R) subspace, because existing kernel functions cannot generate a complete set of basis on this subspace by translation.
发明内容Contents of the invention
本发明针对上述现有技术中存在的问题,提供一种改进蝗虫算法优化的楔形波多核支持向量机的压缩天然气加气站智能风险评估方法。本发明能够提高压缩天然气加气站风险评估的精度和效率,进而可以提升压缩天然气加气站安全管理水平。The present invention aims at the problems existing in the above-mentioned prior art, and provides an intelligent risk assessment method for compressed natural gas refueling stations based on wedge-shaped multi-core support vector machines optimized by the locust algorithm. The invention can improve the precision and efficiency of the risk assessment of the compressed natural gas filling station, and further can improve the safety management level of the compressed natural gas filling station.
本发明的技术方案包括如下步骤:Technical scheme of the present invention comprises the steps:
步骤1:构建楔形波多核支持向量机Step 1: Build Wedgelet Multi-Core Support Vector Machine
将对不同尺度和方向的变化均具有良好鲁棒性的楔形波变换与支持向量机相结合,建立了楔形波支持向量机。针对单核函数支持向量机在处理多特征集合的机器学习任务时在评估中的盲目性问题,通过局部和全局核函数的加权线性相加生成多核支持向量机对数据进行分类,进一步提高分类精度,从而提高压缩天然气加气站的风险评估精度。Combining the Wedgelet transform which is robust to changes in different scales and directions and the Support Vector Machine, the Wedgelet SVM is established. Aiming at the blindness problem in the evaluation of single-kernel function support vector machine when processing machine learning tasks with multi-feature sets, the multi-core support vector machine is generated by the weighted linear addition of local and global kernel functions to classify the data, further improving the classification accuracy , so as to improve the risk assessment accuracy of compressed natural gas filling stations.
步骤1-1:构建组合核函数,相应的公式如下所示:Step 1-1: Construct the combined kernel function, the corresponding formula is as follows:
式中,λi表示权重系数,ki(x,y)表示单核函数,表达式如下所示:In the formula, λ i represents the weight coefficient, ki (x, y) represents the single kernel function, and the expression is as follows:
式中,c表示尺度因子,di和ei表示平移因子。In the formula, c represents the scale factor, d i and e i represent the translation factors.
步骤1-2:定义回归函数,如下所示:Step 1-2: Define the regression function as follows:
式中,ω表示权重变量,表示映射函数,B表示补偿因子。In the formula, ω represents the weight variable, Indicates the mapping function, and B indicates the compensation factor.
步骤1-3:定义目标函数和边界条件,如下所示:Steps 1-3: Define the objective function and boundary conditions as follows:
式中,L表示样本数,D表示惩罚因子。In the formula, L represents the number of samples, and D represents the penalty factor.
步骤1-4:利用拉格朗日对偶性构建拉格朗日目标函数和相应的边界条件,如下所示:Steps 1-4: Use the Lagrangian duality to construct the Lagrangian objective function and corresponding boundary conditions as follows:
式中,θi,χi表示拉格朗日算子。In the formula, θ i , χ i represents the Lagrangian operator.
根据式(5)可得:According to formula (5), we can get:
计算式(7)对w,B,εi的偏导,并且将结果回代至式(9)得到如下方程:Calculation formula (7) for w, B, The partial derivative of ε i , and substitute the result back into formula (9) to get the following equation:
通过优化可以推导出最小化方程,如下所示:The minimization equation can be derived through optimization as follows:
步骤1-5:通过引入多核函数得到多核支持向量机,如下所示Step 1-5: Get the multi-core support vector machine by introducing the multi-core function, as shown below
步骤1-6:确定楔形波多核支持向量机的决策函数,如下所示:Steps 1-6: Determine the decision function of the Wedgelet multi-core SVM as follows:
步骤2:确定改进蝗虫算法优化楔形波支持向量机Step 2: Determine the improved locust algorithm to optimize wedge wave support vector machine
为了提高楔形波多核支持向量机的风险评估效果,将具备较好全局优化性能以及较高收敛精度的改进蝗虫优化算法应用于楔形波多核支持向量机惩罚因子、核函数参数和权重的优化。In order to improve the risk assessment effect of Wedgelet multi-core support vector machine, the improved locust optimization algorithm with better global optimization performance and higher convergence accuracy is applied to the optimization of penalty factors, kernel function parameters and weights of Wedgelet multi-core support vector machine.
步骤2-1:初始化改进蝗虫优化算法的基本参数,包括种群大小、空间维度、最大迭代次数以及初始位置。Step 2-1: Initialize the basic parameters of the improved locust optimization algorithm, including population size, space dimension, maximum number of iterations and initial position.
步骤2-2:按下式更新蝗虫群体的位置:Step 2-2: Update the position of the locust group according to the formula:
式中,Td表示蝗虫群体的目标位置,η表示衰减系数,ωl表示权重系数,t表示当前迭代次数,ηmax和ηmin表示最大和最小衰减因子。s(·)表示蝗虫种群之间相互作用力函数,如下所示:In the formula, T d represents the target position of the locust swarm, η represents the attenuation coefficient, ω l represents the weight coefficient, t represents the current iteration number, η max and η min represent the maximum and minimum attenuation factors. s(·) represents the interaction force function between locust populations, as shown below:
式中,f表示吸引强度参数,r表示吸引力尺度参数。In the formula, f represents the attraction strength parameter, and r represents the attraction scale parameter.
步骤2-3:利用Levy飞行局部搜索策略调整单个蝗虫的位置,如下所示:Step 2-3: Adjust the position of a single locust using the Levy flight local search strategy as follows:
X=X+10×sts·L·X (19)X=X+10×s ts L X (19)
式中,L表示Levy飞行步长,sts表示阈值函数,可以用于控制蝗虫的飞行方法和变化概率。In the formula, L represents the Levy flight step length, and s ts represents the threshold function, which can be used to control the flight method and change probability of locusts.
L利用下式计算:L is calculated using the following formula:
L=μ/|v|1/β (20)L=μ/|v| 1/β (20)
式中,β表示0和2之间的常数,参数μ和v表示服从正态分布的参数。In the formula, β represents a constant between 0 and 2, and the parameters μ and v represent parameters that obey the normal distribution.
步骤2-4:当蝗虫个体搜索当前最优位置时,原位置被替换;如果未发现最优解,利用线性递减参数随机跳出策略,如下所示:Step 2-4: When individual locusts search for the current optimal position, the original position is replaced; if no optimal solution is found, use the linearly decreasing parameters to randomly jump out of the strategy, as shown below:
Pi=(2-2rand(0,1))·Pi (21)P i =(2-2rand(0,1))·P i (21)
式中,Pi表示第i个蝗虫。当发现一个新位置Pi,如果新位置优于当前位置,由新位置替换当前位置。In the formula, P i represents the i-th locust. When a new position P i is found, if the new position is better than the current position, the new position replaces the current position.
步骤2-5:为了使衰减系数在算法执行早期以更快的速度降低,确保种群中蝗虫个体能够快速接近最优目标,提高算法的收敛速度;在算法后期迭代过程中,衰减系数的降低速度减小,从而蝗虫个体能够仔细地搜索空间,避免算法陷入局部最优。利用递减系数更新策略调整衰减因子η,如下所示:Step 2-5: In order to make the attenuation coefficient decrease at a faster rate in the early stage of algorithm execution, ensure that the individual locusts in the population can quickly approach the optimal goal, and improve the convergence speed of the algorithm; is reduced, so that individual locusts can carefully search the space and avoid the algorithm from falling into local optimum. The attenuation factor η is adjusted using the decrement coefficient update strategy as follows:
式中,n表示当前迭代系数,N表示最大迭代次数。In the formula, n represents the current iteration coefficient, and N represents the maximum number of iterations.
步骤3:确定压缩天然气加气站风险评估指标体系Step 3: Determine the risk assessment index system for compressed natural gas filling stations
通过详细地收集和分析压缩天然气加气站设计、施工、运行、运行、泄漏、缺陷、人员、社会和经济方面的数据,系统、全面和定性地识别压缩天然气加气站的风险影响因素。根据风险形成机制,确定压缩天然气加气站风险指标体系。确定天然气加气站风险评估体系的一级指标和二级指标。Through the detailed collection and analysis of data on the design, construction, operation, operation, leakage, defect, personnel, social and economic aspects of compressed natural gas filling stations, the risk influencing factors of compressed natural gas filling stations are systematically, comprehensively and qualitatively identified. According to the risk formation mechanism, the risk index system of compressed natural gas filling stations is determined. Determine the first-level indicators and second-level indicators of the risk assessment system for natural gas filling stations.
步骤4:采集与压缩天然气加气站风险指标体系相关的数据,通过专家评价法和问卷法确定一级指标值,确定输入样本数据。Step 4: Collect data related to the risk index system of compressed natural gas filling stations, determine the first-level index value through expert evaluation method and questionnaire method, and determine the input sample data.
步骤5:将压缩天然气加气站的风险水平划分为五个等级,分别是I级(分数区间为[0.90,1.00])、II级(分数区间为[0.75,0.90))、III级(分数区间为[0.60,0.75))、IV级(分数区间为[0.45,0.60))和V级(分数区间为[0,0.45))。风险等级作为评估模型的输出样本数据。Step 5: Divide the risk level of compressed natural gas filling stations into five levels, namely level I (score range [0.90, 1.00]), level II (score range [0.75, 0.90]), level III (score range The interval is [0.60,0.75)), grade IV (score interval is [0.45,0.60)) and grade V (score interval is [0,0.45)). The risk level is used as the output sample data of the evaluation model.
步骤6:收集压缩天然气加气站风险评估相关数据,将数据划分为两个部分,分别为训练数据样本和测试数据样本。Step 6: Collect data related to the risk assessment of compressed natural gas filling stations, and divide the data into two parts, namely training data samples and test data samples.
步骤7:利用训练数据样本对评估模型进行训练,然后利用训练后的评估模型对待评估压缩天然气加气站风险水平进行评估,判定待评估压缩天然气加气站的安全状况。Step 7: Use the training data samples to train the evaluation model, and then use the trained evaluation model to evaluate the risk level of the compressed natural gas filling station to be evaluated, and determine the safety status of the compressed natural gas filling station to be evaluated.
本发明的优点效果如下:The advantages and effects of the present invention are as follows:
通过本发明构建的改进蝗虫算法优化的楔形波多核支持向量机对压缩天然气加气站风险进行评估,能够提有效地提升压缩天然气加气站风险评估的精度和效率,从而能够提高压缩天然气加气站风险评估的有效性,为压缩天然气加气站制定风险防控措施提供有力的理论依据,具有较为广阔的发展前景。The wedge-shaped multi-core support vector machine optimized by the improved locust algorithm constructed by the present invention can evaluate the risk of compressed natural gas filling stations, which can effectively improve the accuracy and efficiency of risk assessment of compressed natural gas filling stations, thereby improving the compression of natural gas filling stations. The effectiveness of the station risk assessment provides a strong theoretical basis for the development of risk prevention and control measures for compressed natural gas filling stations, and has a relatively broad development prospect.
附图说明Description of drawings
图1不同风险评估方法的训练时间Figure 1 Training time for different risk assessment methods
具体实施方式detailed description
实施例Example
本发明的技术方案包括如下的步骤:Technical scheme of the present invention comprises the steps:
步骤1:构建楔形波多核支持向量机Step 1: Build Wedgelet Multi-Core Support Vector Machine
将对不同尺度和方向的变化均具有良好鲁棒性的楔形波变换与支持向量机相结合,建立了楔形波支持向量机。针对单核函数支持向量机在处理多特征集合的机器学习任务时在评估中的盲目性问题,通过局部和全局核函数的加权线性相加生成多核支持向量机对数据进行分类,进一步提高分类精度,从而提高压缩天然气加气站的风险评估精度。Combining the Wedgelet transform which is robust to changes in different scales and directions and the Support Vector Machine, the Wedgelet SVM is established. Aiming at the blindness problem in the evaluation of single-kernel function support vector machine when processing machine learning tasks with multi-feature sets, the multi-core support vector machine is generated by the weighted linear addition of local and global kernel functions to classify the data, further improving the classification accuracy , so as to improve the risk assessment accuracy of compressed natural gas filling stations.
步骤1-1:构建组合核函数,相应的公式如下所示:Step 1-1: Construct the combined kernel function, the corresponding formula is as follows:
式中,λi表示权重系数,ki(x,y)表示单核函数,表达式如下所示:In the formula, λ i represents the weight coefficient, ki (x, y) represents the single kernel function, and the expression is as follows:
式中,c表示尺度因子,di和ei表示平移因子。In the formula, c represents the scale factor, d i and e i represent the translation factors.
步骤1-2:定义回归函数,如下所示:Step 1-2: Define the regression function as follows:
式中,ω表示权重变量,表示映射函数,B表示补偿因子。In the formula, ω represents the weight variable, Indicates the mapping function, and B indicates the compensation factor.
步骤1-3:定义目标函数和边界条件,如下所示:Steps 1-3: Define the objective function and boundary conditions as follows:
式中,L表示样本数,D表示惩罚因子。In the formula, L represents the number of samples, and D represents the penalty factor.
步骤1-4:利用拉格朗日对偶性构建拉格朗日目标函数和相应的边界条件,如下所示:Steps 1-4: Use the Lagrangian duality to construct the Lagrangian objective function and corresponding boundary conditions as follows:
式中,θi,χi表示拉格朗日算子。In the formula, θ i , χ i represents the Lagrangian operator.
根据式(5)可得:According to formula (5), we can get:
计算式(7)对w,B,εi的偏导,并且将结果回代至式(9)得到如下方程:Calculation formula (7) for w, B, The partial derivative of ε i , and substitute the result back into formula (9) to get the following equation:
通过优化可以推导出最小化方程,如下所示:The minimization equation can be derived through optimization as follows:
步骤1-5:通过引入多核函数得到多核支持向量机,如下所示Step 1-5: Get the multi-core support vector machine by introducing the multi-core function, as shown below
步骤1-6:确定楔形波多核支持向量机的决策函数,如下所示:Steps 1-6: Determine the decision function of the Wedgelet multi-core SVM as follows:
步骤2:确定改进蝗虫算法优化优化楔形波支持向量机Step 2: Determine the improved locust algorithm optimization optimization wedge wave support vector machine
为了提高楔形波多核支持向量机的风险评估效果,将具备较好全局优化性能以及较高收敛精度的改进蝗虫优化算法应用于楔形波多核支持向量机惩罚因子、核函数参数和权重的优化。In order to improve the risk assessment effect of Wedgelet multi-core support vector machine, the improved locust optimization algorithm with better global optimization performance and higher convergence accuracy is applied to the optimization of penalty factors, kernel function parameters and weights of Wedgelet multi-core support vector machine.
步骤2-1:初始化改进蝗虫优化算法的基本参数,包括种群大小、空间维度、最大迭代次数以及初始位置。Step 2-1: Initialize the basic parameters of the improved locust optimization algorithm, including population size, space dimension, maximum number of iterations and initial position.
步骤2-2:按下式更新蝗虫群体的位置:Step 2-2: Update the position of the locust group according to the formula:
式中,Td表示蝗虫群体的目标位置,η表示衰减系数,ωl表示权重系数,t表示当前迭代次数,ηmax和ηmin表示最大和最小衰减因子。s(·)表示蝗虫种群之间相互作用力函数,如下所示:In the formula, T d represents the target position of the locust swarm, η represents the attenuation coefficient, ω l represents the weight coefficient, t represents the current iteration number, η max and η min represent the maximum and minimum attenuation factors. s(·) represents the interaction force function between locust populations, as shown below:
式中,f表示吸引强度参数,r表示吸引力尺度参数。In the formula, f represents the attraction strength parameter, and r represents the attraction scale parameter.
步骤2-3:利用Levy飞行局部搜索策略调整单个蝗虫的位置,如下所示:Step 2-3: Adjust the position of a single locust using the Levy flight local search strategy as follows:
X=X+10×sts·L·X (19)X=X+10×s ts L X (19)
式中,L表示Levy飞行步长,sts表示阈值函数,可以用于控制蝗虫的飞行方法和变化概率。In the formula, L represents the Levy flight step length, and s ts represents the threshold function, which can be used to control the flight method and change probability of locusts.
L利用下式计算:L is calculated using the following formula:
L=μ/|v|1/β (20)L=μ/|v| 1/β (20)
式中,β表示0和2之间的常数,参数μ和v表示服从正态分布的参数。In the formula, β represents a constant between 0 and 2, and the parameters μ and v represent parameters that obey the normal distribution.
步骤2-4:当蝗虫个体搜索当前最优位置时,原位置被替换;如果未发现最优解,利用线性递减参数随机跳出策略,如下所示:Step 2-4: When individual locusts search for the current optimal position, the original position is replaced; if no optimal solution is found, use the linearly decreasing parameters to randomly jump out of the strategy, as shown below:
Pi=(2-2rand(0,1))·Pi (21)P i =(2-2rand(0,1))·P i (21)
式中,Pi表示第i个蝗虫。当发现一个新位置Pi,如果新位置优于当前位置,由新位置替换当前位置。In the formula, P i represents the i-th locust. When a new position P i is found, if the new position is better than the current position, the new position replaces the current position.
步骤2-5:为了使衰减系数在算法执行早期以更快的速度降低,确保种群中蝗虫个体能够快速接近最优目标,提高算法的收敛速度;在算法后期迭代过程中,衰减系数的降低速度减小,从而蝗虫个体能够仔细地搜索空间,避免算法陷入局部最优。利用递减系数更新策略调整衰减因子η,如下所示:Step 2-5: In order to make the attenuation coefficient decrease at a faster rate in the early stage of algorithm execution, ensure that the individual locusts in the population can quickly approach the optimal goal, and improve the convergence speed of the algorithm; is reduced, so that individual locusts can carefully search the space and avoid the algorithm from falling into local optimum. The attenuation factor η is adjusted using the decrement coefficient update strategy as follows:
式中,n表示当前迭代系数,N表示最大迭代次数。In the formula, n represents the current iteration coefficient, and N represents the maximum number of iterations.
步骤3:确定压缩天然气加气站风险评估指标体系Step 3: Determine the risk assessment index system for compressed natural gas filling stations
通过详细地收集和分析压缩天然气加气站设计、施工、运行、运行、泄漏、缺陷、人员、社会和经济方面的数据,系统、全面和定性地识别压缩天然气加气站的风险影响因素。根据风险形成机制,确定压缩天然气加气站风险指标体系。确定天然气加气站风险评估体系的一级指标和二级指标。Through the detailed collection and analysis of data on the design, construction, operation, operation, leakage, defect, personnel, social and economic aspects of compressed natural gas filling stations, the risk influencing factors of compressed natural gas filling stations are systematically, comprehensively and qualitatively identified. According to the risk formation mechanism, the risk index system of compressed natural gas filling stations is determined. Determine the first-level indicators and second-level indicators of the risk assessment system for natural gas filling stations.
步骤4:采集与压缩天然气加气站风险指标体系相关的数据,通过专家评价法和问卷法确定一级指标值,确定输入样本数据。Step 4: Collect data related to the risk index system of compressed natural gas filling stations, determine the first-level index value through expert evaluation method and questionnaire method, and determine the input sample data.
步骤5:将压缩天然气加气站的风险水平划分为五个等级,分别是I级(分数区间为[0.90,1.00])、II级(分数区间为[0.75,0.90))、III级(分数区间为[0.60,0.75))、IV级(分数区间为[0.45,0.60))和V级(分数区间为[0,0.45))。风险等级作为评估模型的输出样本数据。Step 5: Divide the risk level of compressed natural gas filling stations into five levels, namely level I (score range [0.90, 1.00]), level II (score range [0.75, 0.90]), level III (score range The interval is [0.60,0.75)), grade IV (score interval is [0.45,0.60)) and grade V (score interval is [0,0.45)). The risk level is used as the output sample data of the evaluation model.
步骤6:收集压缩天然气加气站风险评估相关数据,将数据划分为两个部分,分别为训练数据样本和测试数据样本。Step 6: Collect data related to the risk assessment of compressed natural gas filling stations, and divide the data into two parts, namely training data samples and test data samples.
步骤7:利用训练数据样本对评估模型进行训练,然后利用训练后的评估模型对待评估压缩天然气加气站风险水平进行评估,判定待评估压缩天然气加气站的安全状况。Step 7: Use the training data samples to train the evaluation model, and then use the trained evaluation model to evaluate the risk level of the compressed natural gas filling station to be evaluated, and determine the safety status of the compressed natural gas filling station to be evaluated.
具体的实施例如下所示:A specific example is as follows:
在实施例中,选择一个压缩天然气加气站进行风险评估,该压缩天然气加气站规模如下:加气能力为1000标准立方米/时,日加气能力10000标准立方米。该压缩天然气加气站主要为中小型车辆供气。In the embodiment, a compressed natural gas filling station is selected for risk assessment. The scale of the compressed natural gas filling station is as follows: the filling capacity is 1000 standard cubic meters per hour, and the daily filling capacity is 10000 standard cubic meters. The compressed natural gas refueling station mainly supplies gas for small and medium-sized vehicles.
改进蝗虫算法的参数设置如下:l=2.0,f=1.0,bmin=0.35,bmax=0.90,ηmin=0.40,ηmax=0.95,种群的规模为350,最大迭代次数为400。The parameters of the improved locust algorithm are set as follows: l=2.0, f=1.0, b min =0.35, b max =0.90, η min =0.40, η max =0.95, the population size is 350, and the maximum number of iterations is 400.
利用问卷法和专家调查法获取该压缩天然气加气站风险评估50组相关数据,前40组数据作为训练样本,后10组数据作为测试样本。Using questionnaire method and expert investigation method to obtain 50 sets of relevant data for the risk assessment of the compressed natural gas filling station, the first 40 sets of data are used as training samples, and the last 10 sets of data are used as test samples.
为了验证本发明所提出评估方法的有效性,还使用B样条小波支持向量机优化的蝗虫算法(BSWSVM-LA)和粒子群算法优化的支持向量机(SVM-PSA)来对训练样本进行风险评估。利用平均绝对误差(MAE)和平均绝对百分比误差(MAPE)评价不同评估模型的准确性。基于不同模型的压缩天然气加气站风险评估结果见表1。In order to verify the effectiveness of the evaluation method proposed by the present invention, the locust algorithm (BSWSVM-LA) optimized by B-spline wavelet support vector machine and the support vector machine (SVM-PSA) optimized by particle swarm algorithm are also used to carry out risk analysis on training samples. Evaluate. The accuracy of different evaluation models was evaluated using mean absolute error (MAE) and mean absolute percentage error (MAPE). The risk assessment results of compressed natural gas filling stations based on different models are shown in Table 1.
表1基于不同模型的压缩天然气风险评估结果Table 1 CNG risk assessment results based on different models
不同模型的训练时间如图1所示。从图1中可以看出,本发明提出评估方法的训练时间为6.7s,是三种方法是最小的,因此,本发明提出的风险评估方法能够提高压缩天然气加气站风险评估的效率。The training time of different models is shown in Fig. 1. It can be seen from Figure 1 that the training time of the evaluation method proposed by the present invention is 6.7s, which is the smallest among the three methods. Therefore, the risk evaluation method proposed by the present invention can improve the efficiency of risk evaluation of compressed natural gas filling stations.
利用经过训练样本训练的三种评估方法对测试样本进行风险评估,对比结果见表2。Three evaluation methods trained by the training samples are used to evaluate the risk of the test samples, and the comparison results are shown in Table 2.
表2基于三种方法的测试样本的风险评估结果Table 2 Risk assessment results of test samples based on three methods
根据表2的计算结果可知,本发明提出评估方法的MAE范围为0.82至0.92,BSWSVM-LA的MAE为3.27至3.68,SVM-PSA的MEA范围为4.17至4.57。此外,本发明提出评估方法评估结果均正确,BSWSVM-LA评估结果有4个错误,SVM-PSA评估结果有7个错误,因此,提出的WMKSVM-ILA在三个模型中具有最高的评估正确性。According to the calculation results in Table 2, it can be seen that the MAE range of the evaluation method proposed by the present invention is 0.82 to 0.92, the MAE of BSWSVM-LA is 3.27 to 3.68, and the MEA range of SVM-PSA is 4.17 to 4.57. In addition, the evaluation results of the evaluation methods proposed by the present invention are all correct, BSWSVM-LA evaluation results have 4 errors, and SVM-PSA evaluation results have 7 errors, therefore, the proposed WMKSVM-ILA has the highest evaluation correctness among the three models .
分析结果表明,提出的基于改进蝗虫算法优化楔形波多核支持向量机的压缩天然气加气站风险评估方法能够获得最佳的效果,是一种具有高实用价值的风险评估方法。The analysis results show that the proposed risk assessment method for compressed natural gas filling stations based on the improved locust algorithm to optimize the wedge wave multi-core support vector machine can obtain the best results, and it is a risk assessment method with high practical value.
Claims (3)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211133665.0A CN115496353A (en) | 2022-09-19 | 2022-09-19 | Intelligent risk assessment method for compressed natural gas filling station |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211133665.0A CN115496353A (en) | 2022-09-19 | 2022-09-19 | Intelligent risk assessment method for compressed natural gas filling station |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN115496353A true CN115496353A (en) | 2022-12-20 |
Family
ID=84470773
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211133665.0A Pending CN115496353A (en) | 2022-09-19 | 2022-09-19 | Intelligent risk assessment method for compressed natural gas filling station |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115496353A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116498908A (en) * | 2023-06-26 | 2023-07-28 | 成都秦川物联网科技股份有限公司 | Intelligent gas pipe network monitoring method based on ultrasonic flowmeter and Internet of things system |
| CN117952440A (en) * | 2024-03-26 | 2024-04-30 | 中用科技有限公司 | Chemical industry park production environment supervision method and system |
| CN118886809A (en) * | 2024-08-09 | 2024-11-01 | 天津合泰安全卫生评价监测有限公司 | Safety control method and system based on dynamic transportation of natural gas |
-
2022
- 2022-09-19 CN CN202211133665.0A patent/CN115496353A/en active Pending
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116498908A (en) * | 2023-06-26 | 2023-07-28 | 成都秦川物联网科技股份有限公司 | Intelligent gas pipe network monitoring method based on ultrasonic flowmeter and Internet of things system |
| CN116498908B (en) * | 2023-06-26 | 2023-08-25 | 成都秦川物联网科技股份有限公司 | Intelligent gas pipe network monitoring method based on ultrasonic flowmeter and Internet of things system |
| US11953356B2 (en) | 2023-06-26 | 2024-04-09 | Chengdu Qinchuan Iot Technology Co., Ltd. | Methods and internet of things (IoT) systems for monitoring smart gas pipeline networks based on ultrasonic flowmeters |
| CN117952440A (en) * | 2024-03-26 | 2024-04-30 | 中用科技有限公司 | Chemical industry park production environment supervision method and system |
| CN118886809A (en) * | 2024-08-09 | 2024-11-01 | 天津合泰安全卫生评价监测有限公司 | Safety control method and system based on dynamic transportation of natural gas |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| Qin et al. | Do the benefits outweigh the disadvantages? Exploring the role of artificial intelligence in renewable energy | |
| CN115496353A (en) | Intelligent risk assessment method for compressed natural gas filling station | |
| CN104700321B (en) | A kind of power transmission and transformation equipment state operation trend analysis method | |
| CN102496069B (en) | Cable multimode safe operation evaluation method based on fuzzy analytic hierarchy process (FAHP) | |
| CN110441500A (en) | A kind of predicting model for dissolved gas in transformer oil method based on shot and long term memory network | |
| CN116204794B (en) | Method and system for predicting dissolved gas in transformer oil by considering multidimensional data | |
| CN105117602A (en) | Metering apparatus operation state early warning method | |
| CN108549995A (en) | A method of distribution public affairs time variant voltage exception Analysis of Policy Making is realized by data mining | |
| CN112507290B (en) | Power distribution equipment fault probability pre-judging method, device and storage medium | |
| CN113782113B (en) | Method for identifying gas fault in transformer oil based on deep residual error network | |
| CN117522066A (en) | Combined optimization method and system based on peak shaving power supply equipment combination prediction | |
| CN109344990A (en) | A short-term load forecasting method and system based on DFS and SVM feature selection | |
| CN104218571B (en) | A kind of running status appraisal procedure of wind power plant | |
| CN119482932B (en) | Data-driven photovoltaic parallel network station area line loss real-time monitoring system | |
| CN118095834A (en) | A traffic accident risk assessment method based on interpretable random forest | |
| CN113689053A (en) | Strong convection weather overhead line power failure prediction method based on random forest | |
| CN109165770A (en) | Novel photovoltaic power forecasting method based on AFSA-Elman | |
| Joshuva et al. | Rough set theory based blade condition classification on wind turbine through statistical features | |
| CN118134238A (en) | An XGBoost transportation enterprise safety risk assessment method and system | |
| CN116821771A (en) | HVDC system fault diagnosis method and system based on ISTOA-CNN | |
| CN113743460B (en) | Method, device and computer equipment for determining fault cause of power transmission line | |
| CN103886512A (en) | Thermal power unit index evaluation unit based on gray level clustering | |
| CN114997319A (en) | Electricity stealing detection method based on electric energy parameter characteristics and improved Boruta-XGboost algorithm | |
| CN103279894A (en) | Method and system for evaluating power efficiency of enterprise user through Hopfield neural network | |
| CN113762591A (en) | Short-term electric quantity prediction method and system based on GRU and multi-core SVM counterstudy |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |