CN117150877A - Method for predicting optimal pressing process of press-loading mixed explosive based on Bagging algorithm - Google Patents
Method for predicting optimal pressing process of press-loading mixed explosive based on Bagging algorithm Download PDFInfo
- Publication number
- CN117150877A CN117150877A CN202210562572.3A CN202210562572A CN117150877A CN 117150877 A CN117150877 A CN 117150877A CN 202210562572 A CN202210562572 A CN 202210562572A CN 117150877 A CN117150877 A CN 117150877A
- Authority
- CN
- China
- Prior art keywords
- samples
- optimal
- press
- bagging
- bagging algorithm
- 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
- 238000000034 method Methods 0.000 title claims abstract description 67
- 239000002360 explosive Substances 0.000 title claims abstract description 29
- 238000003825 pressing Methods 0.000 title abstract description 7
- 238000012549 training Methods 0.000 claims abstract description 20
- 238000005070 sampling Methods 0.000 claims abstract description 10
- 238000012935 Averaging Methods 0.000 claims description 2
- 238000010276 construction Methods 0.000 claims 1
- 238000013461 design Methods 0.000 abstract description 6
- 230000002776 aggregation Effects 0.000 abstract 1
- 238000004220 aggregation Methods 0.000 abstract 1
- 230000003247 decreasing effect Effects 0.000 abstract 1
- 238000012360 testing method Methods 0.000 description 10
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000010801 machine learning Methods 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 230000004931 aggregating effect Effects 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 238000003066 decision tree Methods 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 238000011156 evaluation Methods 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 238000012856 packing Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
- G06F30/27—Design optimisation, verification or simulation using machine learning, e.g. artificial intelligence, neural networks, support vector machines [SVM] or training a model
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F17/00—Digital computing or data processing equipment or methods, specially adapted for specific functions
- G06F17/10—Complex mathematical operations
- G06F17/18—Complex mathematical operations for evaluating statistical data, e.g. average values, frequency distributions, probability functions, regression analysis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N20/00—Machine learning
- G06N20/20—Ensemble learning
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Evolutionary Computation (AREA)
- Mathematical Physics (AREA)
- Pure & Applied Mathematics (AREA)
- Medical Informatics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Mathematical Optimization (AREA)
- Mathematical Analysis (AREA)
- Artificial Intelligence (AREA)
- Computational Mathematics (AREA)
- Bioinformatics & Computational Biology (AREA)
- Evolutionary Biology (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Operations Research (AREA)
- Probability & Statistics with Applications (AREA)
- Geometry (AREA)
- Algebra (AREA)
- Computer Hardware Design (AREA)
- Databases & Information Systems (AREA)
- Computing Systems (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Description
技术领域Technical field
本发明涉及一种基于Bagging算法的压装混合炸药最佳压药工艺预测方法,属于炸药压装领域。The invention relates to a method for predicting the optimal pressing process of mixed explosives based on bagging algorithm, and belongs to the field of explosive pressing.
背景技术Background technique
在压装混合炸药生产过程中,压药密度占理论密度的百分比越高,炸药的性能往往越好。炸药的密度与工艺条件密切相关,工艺条件改变,压药密度也会随之改变。如何确定最佳的工艺条件,从而使压药密度无限接近于理论密度,是压装混合炸药设计研究中的一大难题。In the production process of press-loaded mixed explosives, the higher the percentage of the press density to the theoretical density, the better the performance of the explosive. The density of explosives is closely related to process conditions. If the process conditions change, the density of the explosive will also change accordingly. How to determine the optimal process conditions so that the density of the pressed explosive is infinitely close to the theoretical density is a major problem in the design and research of press-loaded mixed explosives.
为了解决上面问题,提出了一种基于Bagging算法的压装混合炸药最佳压药工艺预测方法,这种方法具有高准确度、安全性高、经济性好的特点,并且已经在一种CL-20基压装混合炸药设计中的到得了应用。In order to solve the above problems, a method for predicting the optimal charging process of mixed explosives based on Bagging algorithm is proposed. This method has the characteristics of high accuracy, high safety and good economy, and has been used in a CL- 20 base pressure-packing mixed explosive design has been applied.
Bagging算法(Bootstrap aggregating,引导聚集算法)又称装袋算法,是机器学习领域的一种团体学习算法.Bagging算法可与其他分类,回归算法结合,提高其准确率,稳定性的同时,通过降低结果的方差,避免过拟合的发生。The Bagging algorithm (Bootstrap aggregating), also known as the bagging algorithm, is a group learning algorithm in the field of machine learning. The Bagging algorithm can be combined with other classification and regression algorithms to improve its accuracy and stability by reducing The variance of the results avoids the occurrence of overfitting.
本专利中将压药比压、压药温度和保压时间等工艺参数作为样本特征,将装药密度作为样本标签,通过Bagging算法进行有监督的回归学习训练,得到装药密度预测模型。利用训练好的模型,从理论密度出发,按照指定步长,逐步减小密度,获取最佳工艺条件。In this patent, process parameters such as charge specific pressure, charge temperature, and holding time are used as sample features, and charge density is used as sample label. Supervised regression learning training is performed through the bagging algorithm to obtain a charge density prediction model. Using the trained model, starting from the theoretical density, the density is gradually reduced according to the specified step size to obtain the best process conditions.
发明内容Contents of the invention
本发明的目的是为了解决压装混合炸药工艺参数难以确定的问题,提供基于Bagging 算法的压装混合炸药最佳压药工艺预测方法,该方法创造性的将机器学习算法引进混合炸药工艺-性能关系研究之中,提出了工艺参数和装药密度双向预测的思想和解决方法,为实现加速混合炸药配方设计提供了可能。The purpose of this invention is to solve the problem of difficulty in determining the process parameters of press-packed mixed explosives and provide a method for predicting the optimal press-packed mixed explosive process based on the Bagging algorithm. This method creatively introduces machine learning algorithms into the mixed explosive process-performance relationship. During the study, the idea and solution of bidirectional prediction of process parameters and charge density were proposed, which provided the possibility to accelerate the design of mixed explosive formulas.
本发明的目的是通过下述技术方案实现的。The object of the present invention is achieved through the following technical solutions.
一种基于Bagging算法的压装混合炸药最佳压药工艺预测方法,具体步骤如下:A method for predicting the optimal charging process of mixed explosives based on Bagging algorithm. The specific steps are as follows:
步骤一、整理和收集相关数据,将数据分为训练集x_train、y_train和测试集x_test、y_test。其中80%为训练集,20%为测试集。Step 1. Organize and collect relevant data, and divide the data into training sets x_train, y_train and test sets x_test, y_test. 80% of it is the training set and 20% is the test set.
步骤二、调用Python的sklearn库中的BaggingRegressor模块。设置参数:base_estimator=decision tree,n_estimators=1000。Bagging算法流程如下:Step 2: Call the BaggingRegressor module in Python's sklearn library. Set parameters: base_estimator=decision tree, n_estimators=1000. The Bagging algorithm process is as follows:
1)从步骤一的训练集中随机采集21个样本。作为采样集D,共采集1000个采样集。1) Randomly collect 21 samples from the training set in step 1. As sampling set D, a total of 1000 sampling sets are collected.
2)用采样集D训练1000个弱学习器。2) Use the sampling set D to train 1000 weak learners.
3)1000个弱学习器得到的回归结果进行算术平均得到的值为最终的模型输出。3) The arithmetic average of the regression results obtained by 1000 weak learners is the final model output.
步骤三、利用步骤一中的测试集对Bagging训练模型进行评估,通过比较真实值和预测值进行误差分析。进一步绘制学习曲线,评估模型拟合泛化效果。Step 3: Use the test set in Step 1 to evaluate the Bagging training model, and perform error analysis by comparing the true value and the predicted value. Further draw the learning curve to evaluate the generalization effect of model fitting.
步骤四、编写工艺-密度程序,分别设置压药比压x1范围为2000-3600kg/cm2,步长300,压药温度x2范围为20-90℃,步长5,保压时间x3范围为20-75min,步长5,输入最大装药密度值y和误差极限a=1.03*10-5,依次循环遍历x1,x2,x3,每次取一组作为输入,放进第三步训练好的预测模型中进行训练,将装药密度预测值与设定值进行比较,本方法采用均方误差,若误差大于设定的误差极限a,则不符合要求,反之,符合要求,进行输出。Step 4: Write the process-density program, and set the pressing pressure x1 range to 2000-3600kg/cm 2 and the step length 300, the pressing temperature x2 range to 20-90°C, the step length 5, and the holding time x3 range 20-75min, step size 5, input the maximum charge density value y and error limit a=1.03*10 -5 , loop through x1, x2, x3 in sequence, take one group as input each time, and put it into the third step of training Training is carried out in the prediction model, and the predicted value of charge density is compared with the set value. This method uses the mean square error. If the error is greater than the set error limit a, it does not meet the requirements. On the contrary, if it meets the requirements, it will be output.
步骤五、从输出的结果中挑选最佳的工艺条件,通过实验进行验证。Step 5: Select the best process conditions from the output results and verify them through experiments.
有益效果beneficial effects
1、本发明的一种基于Bagging算法的压装混合炸药最佳压药工艺预测方法,可以实现对最佳工艺条件的确定,且精度极高。1. The present invention’s method for predicting the optimal charging process of mixed explosives based on the bagging algorithm can determine the optimal process conditions with extremely high accuracy.
2、本发明的一种基于Bagging算法的压装混合炸药最佳压药工艺预测方法,Bagging算法一般会随机采集和训练集样本数m一样个数的样本。这样得到的采样集和训练集样本的个数相同,但是样本内容不同。如果我们对有m个样本训练集做T次的随机采样,则由于随机性,T个采样集各不相同。Bagging的集合策略也比较简单,对于回归问题,通常使用简单平均法,对T个弱学习器得到的回归结果进行算术平均得到最终的模型输出。这为装药密度的预测提供了一种新的思路,对压装混合炸药的生产和工艺设计具有指导意义。2. A method for predicting the optimal charging process of mixed explosives based on the bagging algorithm of the present invention. The bagging algorithm will generally randomly collect the same number of samples as the number m of samples in the training set. The number of samples in the sampling set and the training set obtained in this way is the same, but the content of the samples is different. If we perform T random sampling on a training set with m samples, then the T sampling sets will be different due to randomness. The set strategy of bagging is also relatively simple. For regression problems, the simple average method is usually used, and the regression results obtained by T weak learners are arithmetic averaged to obtain the final model output. This provides a new idea for predicting charge density and has guiding significance for the production and process design of pressure-packed mixed explosives.
3、本发明的一种基于Bagging算法的压装混合炸药最佳压药工艺预测方法,能够通过不断改变指定密度,预测相对应的工艺条件,从而达到预测最佳工艺的目的,解决了工艺条件难以确定的问题。3. The present invention's method for predicting the optimal charging process of mixed explosives based on the bagging algorithm can predict the corresponding process conditions by continuously changing the specified density, thereby achieving the purpose of predicting the optimal process and solving the problem of process conditions. Difficult to pin down issues.
附图说明Description of the drawings
图1是本发明中Bagging模型学习曲线图;Figure 1 is a learning curve diagram of the Bagging model in the present invention;
图2是本发明中Bagging里子训练器个数为10、100、500、1000、2000、5000时的评估得分图;Figure 2 is an evaluation score chart when the number of Bagging sub-trainers in the present invention is 10, 100, 500, 1000, 2000 and 5000;
图3是本发明中装药密度真实值和预测值对比图;Figure 3 is a comparison chart between the actual value and the predicted value of the charge density in the present invention;
图4是Bagging算法原理图;Figure 4 is the schematic diagram of Bagging algorithm;
具体实施方式Detailed ways
下面结合实施例与附图对本发明做进一步说明。The present invention will be further described below in conjunction with the embodiments and drawings.
实施例1、训练预测模型Example 1. Training prediction model
首先,将一种CL-20基压装混合炸药的工艺参数和装药密度数据集进行整理,该数据集包含压药比压、压药温度和保压时间等3个特征。标签是装药密度的数值大小。数据加载后,将数据集分成两组,其中80%为训练集,20%为测试集,启动Bagging回归器进行训练。接下来,绘制Bagging回归器的学习曲线,由Bagging回归学习曲线(图1)可知,随着样本数量的增加,测试曲线逐渐减小,训练曲线逐渐增大,二者逐渐接近,证明Bagging回归效果较好。First, the process parameters and charge density data set of a CL-20-based press-loaded mixed explosive were organized. The data set contains three characteristics: charge specific pressure, press temperature, and pressure holding time. The label is the numerical size of the charge density. After the data is loaded, the data set is divided into two groups, 80% of which is the training set and 20% of which is the test set, and the bagging regressor is started for training. Next, draw the learning curve of the Bagging regressor. From the Bagging regression learning curve (Figure 1), it can be seen that as the number of samples increases, the test curve gradually decreases, the training curve gradually increases, and the two gradually approach, proving the effect of Bagging regression. better.
将子训练器个数分别设置成10、100、500、1000、2000、5000对模型进行评估,得出不同子训练器个数下的模型得分(图2),其结果如下表所示。Set the number of sub-trainers to 10, 100, 500, 1000, 2000, and 5000 respectively to evaluate the model, and obtain the model scores under different numbers of sub-trainers (Figure 2). The results are shown in the table below.
表一:不同子训练器个数下的模型得分Table 1: Model scores under different numbers of sub-trainers
由表一的结果可知,对于本实例中的数据集,随着子训练器个数的增大,模型得分先增大后趋于平缓。当子训练器个数增加时,模型训练成本增大,所以本发明设置子训练器个数为1000,Bagging算法原理如图4所示。It can be seen from the results in Table 1 that for the data set in this example, as the number of sub-trainers increases, the model score first increases and then levels off. When the number of sub-trainers increases, the model training cost increases, so the present invention sets the number of sub-trainers to 1000. The principle of the Bagging algorithm is shown in Figure 4.
实施例2、使用训练好的模型进行预测Example 2: Use the trained model to make predictions
模型训练好后,使用测试集数据对模型进行预测(图3),其结果如表二所示。After the model is trained, use the test set data to predict the model (Figure 3). The results are shown in Table 2.
表二:测试集的真实值与预测值对比Table 2: Comparison of actual values and predicted values of the test set
由表二所示的结果可知,采用测试集数据对模型进行预测,本发明方法对装药密度预测值与实际测量值,基本相同,具有较小的误差范围。It can be seen from the results shown in Table 2 that the test set data is used to predict the model. The predicted value of the charge density of the method of the present invention is basically the same as the actual measured value, and has a smaller error range.
实施例3Example 3
为确定最佳工艺条件,取密度为2.05g·cm-3,采用本发明逆向预测方法对上述工艺参数进行预测,没有与之相对应的合适的工艺条件。以0.005为步长,逐步减小输入密度,取密度为2.04g·cm-3,得出表三所示结果。In order to determine the optimal process conditions, the density is taken to be 2.05g·cm -3 and the reverse prediction method of the present invention is used to predict the above process parameters. There are no corresponding suitable process conditions. Using 0.005 as the step size, gradually reduce the input density, take the density to be 2.04g·cm -3 , and obtain the results shown in Table 3.
表三:取密度为2.04g·cm-3,对工艺参数进行预测Table 3: Taking the density as 2.04g·cm -3 to predict the process parameters
由表三所示的结果可知,指定密度为2.04g·cm-3时,逆向预测的工艺条件参数有2种,取平均后,得出最佳温度85℃,最佳压药比压为3350kg/cm2,最佳保温时间62.5min,与真实实验值85℃、3300kg/cm2、60min及其相近,预测非常准确。From the results shown in Table 3, it can be seen that when the specified density is 2.04g·cm -3 , there are two kinds of process condition parameters for reverse prediction. After averaging, the optimal temperature is 85°C and the optimal pressure is 3350kg. /cm 2 , the optimal holding time is 62.5min, which is close to the real experimental values of 85℃, 3300kg/cm 2 and 60min. The prediction is very accurate.
本发明使用基于Bagging算法的压装混合炸药最佳压药工艺预测方法的有益效果是准确预测了最佳的工艺条件,解决了装药条件难以确定的难题。为选择合适的工艺条件提供参考,优化压装混合炸药工艺设计。The beneficial effect of using the optimal charging process prediction method for press-loading mixed explosives based on the Bagging algorithm is that the optimal process conditions are accurately predicted and the difficult problem of charging conditions being difficult to determine is solved. Provide a reference for selecting appropriate process conditions and optimizing the process design of press-loading mixed explosives.
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210562572.3A CN117150877A (en) | 2022-05-23 | 2022-05-23 | Method for predicting optimal pressing process of press-loading mixed explosive based on Bagging algorithm |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210562572.3A CN117150877A (en) | 2022-05-23 | 2022-05-23 | Method for predicting optimal pressing process of press-loading mixed explosive based on Bagging algorithm |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117150877A true CN117150877A (en) | 2023-12-01 |
Family
ID=88885396
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210562572.3A Pending CN117150877A (en) | 2022-05-23 | 2022-05-23 | Method for predicting optimal pressing process of press-loading mixed explosive based on Bagging algorithm |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117150877A (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105117525A (en) * | 2015-07-31 | 2015-12-02 | 天津工业大学 | Bagging extreme learning machine integrated modeling method |
CN113515891A (en) * | 2021-06-04 | 2021-10-19 | 浙江永联民爆器材有限公司 | Method for predicting and optimizing quality of emulsion explosive |
-
2022
- 2022-05-23 CN CN202210562572.3A patent/CN117150877A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105117525A (en) * | 2015-07-31 | 2015-12-02 | 天津工业大学 | Bagging extreme learning machine integrated modeling method |
CN113515891A (en) * | 2021-06-04 | 2021-10-19 | 浙江永联民爆器材有限公司 | Method for predicting and optimizing quality of emulsion explosive |
Non-Patent Citations (3)
Title |
---|
付忠良;: "关于AdaBoost有效性的分析", 计算机研究与发展, no. 10, 15 October 2008 (2008-10-15), pages 119 - 127 * |
唐子惠: "医学人工智能导论", vol. 1, 30 April 2020, 上海科学技术出版社, pages: 173 - 174 * |
曹兴: "粉体炸药压制成型工艺仿真与质量预测", 中国优秀硕士学位论文全文数据库 工程科技II辑, no. 9, 15 September 2021 (2021-09-15), pages 81 - 97 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20230368021A1 (en) | Multi-mode smelting method based on the classification system of molten iron | |
CN114280479B (en) | Retired battery rapid sorting method based on electrochemical impedance spectroscopy | |
CN116308935B (en) | Learning early warning method and device based on multi-feature modeling and multi-level evaluation | |
CN103106344B (en) | A kind of method setting up electric system cluster load model | |
CN104020401A (en) | Cloud-model-theory-based method for evaluating insulation thermal ageing states of transformer | |
CN103412264A (en) | Method for evaluating consistency of single cells in storage battery pack | |
CN115291131A (en) | Method and system for predicting cycle life and service temperature of lithium ion battery | |
CN112327194B (en) | A lithium battery capacity diving identification method and device | |
CN114186789A (en) | Comprehensive energy market maturity evaluation and development stage division method, system and storage medium | |
CN115121507B (en) | Retired power battery sorting method with low test cost | |
CN117150877A (en) | Method for predicting optimal pressing process of press-loading mixed explosive based on Bagging algorithm | |
CN118641967A (en) | Lithium-ion battery health status estimation method and system based on charging data fragments | |
CN112946507B (en) | Method, system, equipment and storage medium for on-line detection of energy storage battery health status | |
Yao et al. | State of health estimation approach for Li-ion batteries based on mechanism feature empowerment | |
CN118305097A (en) | Rapid retired power battery sorting method based on interval frequency electrochemical impedance spectrum | |
Gu et al. | Rapid and flexible lithium-ion battery performance evaluation using random charging curve based on deep learning | |
CN117214742A (en) | State analysis method and device for lithium battery and electronic equipment | |
CN116628270A (en) | A massive data management system and method | |
Jiao et al. | Capacity estimation for lithium-ion batteries with short-time working condition in specific voltage ranges | |
CN117150876A (en) | A charge density control method for press-fit mixed explosives based on ridge regression algorithm | |
CN113706516A (en) | Metallographic structure identification method, system, equipment and storage medium | |
CN115385763A (en) | A Quantitative Prediction Method of Compression Process and Density of Press-packed Mixed Explosives Based on AdaBoost Algorithm | |
CN117706377B (en) | Battery inconsistency identification method and device based on self-adaptive clustering | |
CN117172084A (en) | Random forest algorithm-based pressed mixed explosive pressing process and density bidirectional prediction method | |
CN118644142A (en) | Information equipment evaluation method, device, storage medium and electronic equipment |
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 |