A colored aluminum smelting and casting carbon emission accounting method and system based on a hierarchical memory network
The carbon emission accounting method optimized by hierarchical memory network and roaming algorithm solves the problem of accurate calculation of carbon emissions in the non-ferrous aluminum smelting and casting process, realizes accurate accounting of carbon emissions, and has good delayed memory and data processing capabilities.
Patent Information
- Application Number
- CN202411271784.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-11
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2044-09-11
AI Technical Summary
Existing technologies make it difficult to accurately calculate the time range and boundaries for carbon emissions during the non-ferrous aluminum smelting and casting process, resulting in large errors in carbon emission calculation.
A hierarchical memory network-based approach is adopted. By training and fitting carbon emission time series data, the network parameters are optimized using the roaming algorithm to predict the carbon emission factor, and finally the direct and indirect carbon emissions are calculated.
It enables accurate calculation of carbon emissions during the non-ferrous aluminum smelting and casting process, making up for the calculation errors in existing technologies, and has good delay memory function and data processing capabilities.
Smart Images

Figure CN119229991B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of carbon emission accounting for non-ferrous aluminum smelting and casting, and more specifically, relates to a method and system for carbon emission accounting for non-ferrous aluminum smelting and casting based on a hierarchical memory network. Background Technology
[0002] With the rapid development of China's aluminum alloy casting industry, carbon emission accounting methods and strategy analysis are particularly important for the aluminum smelting and casting sector. To achieve transparency in carbon emissions for aluminum production enterprises, it is necessary to standardize the accounting timeframe and boundaries for aluminum smelting and casting. Simultaneously, it is crucial to accurately calculate the carbon emissions generated during the non-ferrous aluminum smelting and casting process within these timeframes and boundaries, thereby supporting subsequent production strategy adjustments and industrial upgrading. Therefore, to address these issues, providing a carbon emission accounting method and system for non-ferrous aluminum smelting and casting based on a hierarchical memory network is of significant importance. Summary of the Invention
[0003] To address the aforementioned deficiencies or improvement needs of existing technologies, this invention discloses a method and system for calculating carbon emissions from non-ferrous aluminum casting based on a hierarchical memory network, thereby solving the problem of accurately calculating the amount of carbon emissions generated during the non-ferrous aluminum casting process within the calculation time range and boundaries.
[0004] To achieve the above objectives, according to one aspect of the present invention, a method for calculating carbon emissions from non-ferrous aluminum smelting and casting based on a hierarchical memory network is provided, the specific method of which is as follows:
[0005] A1. Determine the accounting time range and boundaries for carbon emissions from non-ferrous aluminum smelting and casting based on the non-ferrous aluminum smelting and casting process;
[0006] A2. Carbon emission time series data for various materials are obtained by processing historical data of different materials under different production conditions within the accounting boundary;
[0007] A3. Use a hierarchical memory network to train and fit the carbon emission time series data of various materials within the accounting boundary;
[0008] A4. Optimize the parameters of the hierarchical memory network using the roaming algorithm;
[0009] A5. Based on the trained hierarchical memory network, predict the carbon emission factors of different materials under actual production conditions within the calculation time range and boundary.
[0010] A6. Calculate the direct and indirect carbon emissions in the non-ferrous aluminum smelting and casting process based on the predicted carbon emission factors, and finally obtain the total carbon emissions.
[0011] Preferably, the accounting time range and boundary for carbon emissions from non-ferrous aluminum smelting and casting are determined based on the non-ferrous aluminum smelting and casting process, and historical data of different materials under different production conditions within the accounting boundary are processed to obtain carbon emission time series data for various materials. The specific process is as follows:
[0012] Step 1: Determine the smelting and casting process of non-ferrous aluminum, including the process from aluminum concentrate to refined aluminum products and the process from scrap aluminum to refined aluminum products. Identify the carbon emission categories in the aluminum smelting and casting process. Carbon emission categories include direct carbon emissions and indirect carbon emissions. Direct carbon emissions include: fuel combustion, energy as a raw material, and industrial processes. Indirect carbon emissions include: net purchased electricity, heat, and production emissions.
[0013] Step 2: Based on the two aluminum smelting and casting processes and carbon emission categories, identify the emission sources that may generate carbon emissions during the actual smelting and casting process, and determine the carbon emission accounting boundary. At the same time, collect historical data of different materials under different production conditions, including: time, material name, carbon emission category, temperature, oxygen concentration, material input, carbon production, etc.
[0014] Step 3: Filter the acquired information, retaining only the necessary data, such as time, material input, actual carbon production, temperature, and oxygen concentration, to construct a time series dataset of carbon emissions for different materials. Then, perform max-min normalization on the obtained data, scaling it to [0,1]. Max-min normalization is performed on the data using the following formula:
[0015]
[0016] Where x is the actual value of the data to be normalized, and x' is the normalized value. max x min These are the maximum and minimum values of the data.
[0017] Preferably, a hierarchical memory network is used to train and fit the carbon emission time series data of various materials within the accounting boundary. The specific process is as follows:
[0018] Step 1: Calculate the number of hidden layers m and the delay memory coefficient δ for each hidden layer. i Number of neurons in each hidden layer Sparsity ξ of the internal connectivity matrix of each hidden layer i Spectral radius ρ of the internal connectivity matrix of each hidden layer i The Euclidean norm regularization constraint coefficient ε is initialized. The number of hidden layers should not be too large, otherwise it will greatly increase the computational complexity. The delayed memory coefficient should be selected with an appropriate value according to the actual time span of the long-term memory information required.
[0019] Step 2: Initialize the input weight matrix and internal connection matrix of each hidden layer. Simultaneously, update the internal connection matrix based on its sparsity, maximum eigenvalue, and spectral radius. The specific steps are as follows:
[0020] Step 2-1: Input weight matrix for each hidden layer Random values are assigned, where i = 1, 2, 3, ..., m. When i = 1, the input weight matrix is... Each weight value is within the range [-0.5, 0.5]. When i ≠ 1, the input weight matrix... Each weight value is within the range of [-0.5, 0.5], where, Let be the number of neurons in hidden layer i, and D be the dimension of the input layer parameters;
[0021] Step 2-2: Analyze the internal connectivity matrix of each hidden layer. Random values are assigned, where i = 1, 2, 3, ..., m, and the internal connection matrix is... Each weight value is within the range of [-0.5, 0.5], where, Let be the number of neurons in hidden layer i. The number of non-zero elements in the internal connection matrix of each hidden layer is calculated based on the sparsity of the internal connection matrix. The formula for calculating the number of non-zero elements in the internal connection matrix of each hidden layer is as follows:
[0022]
[0023] Where, n i Let ξ be the number of non-zero elements in the internal connectivity matrix of hidden layer i. i Let be the sparsity of the internal connectivity matrix of hidden layer i. The number of neurons in hidden layer i;
[0024] Steps 2-3: Calculate the maximum eigenvalue and spectral radius of the internal connectivity matrix of each hidden layer, and update the internal connectivity matrix of each hidden layer based on the maximum eigenvalue and spectral radius. The formula for updating the internal connectivity matrix of each hidden layer is as follows:
[0025]
[0026] in, Let ρ be the internal connectivity matrix of hidden layer i. i Let W be the spectral radius of the internal connectivity matrix of hidden layer i, and let W be the spectral radius of the internal connectivity matrix of hidden layer i. Given a random matrix of the same dimension, where each element's value is in the range [-0.5, 0.5], λ max (W) is the largest eigenvalue of the internal connectivity matrix of the hidden layer;
[0027] Step 3: Establish the collection matrix. Add the normalized carbon emission time series data to the collection matrix, calculate the time series data of each hidden layer neuron and add it to the collection matrix, and then obtain the final collection matrix. The specific process is as follows:
[0028] Step 3-1: Create an empty collection matrix The normalized carbon emission time series data u∈R D×T Add this to the collection matrix, where D is the input layer parameter dimension and L is the output layer parameter dimension. denoted as the number of neurons in hidden layer i, and T as the length of the time series;
[0029] Step 3-2: Calculate the time-series data of the neurons in the first layer of the hidden layer. The formula for calculating the time-series data of the neurons in the first layer of the hidden layer is as follows:
[0030]
[0031] in, This represents the time-series data of neurons in the first layer of the hidden layer, and f(·) is a nonlinear activation function. The internal connection matrix of the first layer in the hidden layer. This is the data of the first layer of neurons in the hidden layer at time t-1. Let u(t) be the input weight matrix of the first hidden layer, and u(t) be the input carbon emission time series data.
[0032] Step 3-3: Calculate the time-series data of neurons in the i-th (i = 2, 3, 4, ..., m) layer of the hidden layer. The formula for calculating the time-series data of neurons in the i-th layer of the hidden layer is as follows:
[0033]
[0034] Where, δ j Let θ be the delayed memory coefficient of hidden layer j. i The total delayed memory time of hidden layer i. Let be the input of hidden layer i at time t. For t-θ i The values of each neuron in hidden layer i-1 at time step [i-1] Let be the time-series data of neurons in the i-th layer of the hidden layer, and f(·) is a nonlinear activation function. Let be the internal connection matrix of the i-th layer in the hidden layer. Let be the values of each neuron in hidden layer i at time ti. Let be the input weight matrix of hidden layer i;
[0035] Step 4: Using the collection matrix, the actual output, and the Euclidean norm regularization constraint coefficients, calculate the output weight matrix. The formula for calculating the output weight matrix is as follows:
[0036]
[0037] in, Y is the output weight matrix, X is the actual output value, ε is the collection matrix, and ε is the Euclidean norm regularization constraint coefficient, which is usually a very small positive number.
[0038] Preferably, the parameters of the hierarchical memory network are optimized using a roaming algorithm, and the optimized neural network is used to predict the carbon emission factors of different materials under actual production conditions within the calculation time range and boundary. The specific process is as follows:
[0039] Step 1: Initialize the position and fitness of the fish swarm. Initialize the initial values of parameters such as M, N, EN, PN, SN, and DN. M is the maximum number of iterations, N is the size of the fish swarm, EN is the number of fish exploring and foraging in the swarm, PN is the number of fish sensing danger, SN is the safe value, and DN is the warning value (generated by random numbers). Use the output weight matrix in the hierarchical memory network as a variable in the search space, then perform iterative iterations and sort the fish swarm to obtain the individual position of the fish currently in the optimal position and the best fitness value.
[0040] Step 2: Update the location of the foraging fish based on their behavior characteristics. The location of the foraging fish is updated using the following formula:
[0041]
[0042] Where t represents the current iteration number, L i,j Let represent the position information of the i-th fish in the j-th dimension, arctan be the arctangent function, c be a random number between [0,1], M be the maximum number of iterations, Q be a random number following a Gaussian distribution, R be a unit row vector, DN be the warning value, and SN be the safety value.
[0043] Step 3: Update the position of the following foraging fish based on the location of the explored foraging fish. Update the position of the following foraging fish using the following formula:
[0044]
[0045] Where t represents the current iteration number, L i,j This represents the position information of the i-th fish in the j-th dimension, where arctan is the arctangent function, and L... p Let L be a random position of the fish near its current optimal position. worstLet N be the worst-case position occupied by the fish, Q be a random number following a Gaussian distribution, R be a unit row vector, and A be the worst-case position occupied by the fish. + It is a row vector that randomly contains only 1 and -1;
[0046] Step 4: Based on the fish's response patterns to predators, update the fish's position using the following formula:
[0047]
[0048] Where t represents the current iteration number, L i,j This represents the position information of the i-th fish in the j-th dimension, α is the step size control parameter, K is a random parameter in the range [-1, 1], and L... best L worst f represents the best and worst positions for the fish. i f represents the fitness value of the current individual. g f represents the current maximum fitness value. w This represents the current minimum fitness value, where γ is a minimum constant to avoid a denominator of 0.
[0049] Step 5: Update the historical best fitness. When the maximum number of iterations is reached, output the best individual position and fitness value. Use the global best solution as the output weight matrix of the hierarchical memory network to obtain the optimized hierarchical memory network. Input the carbon emission time series data of different materials within the accounting boundary into the optimized network to obtain the carbon emission factors of different materials under actual production conditions within the accounting time range and boundary.
[0050] Preferably, the direct and indirect carbon emissions during the non-ferrous aluminum smelting and casting process are calculated based on the predicted carbon emission factors to ultimately obtain the total carbon emissions. The specific process is as follows:
[0051] Step 1: Calculate the carbon emissions generated by fuel combustion during the aluminum smelting and casting process based on the predicted carbon emission factor. The carbon emissions generated by fuel combustion are calculated using the following formula:
[0052]
[0053] Among them, C 燃烧 To consume the carbon emissions generated from burning fossil fuels, For the activity level of the i-th fossil fuel, Let be the carbon emission factor of the i-th fossil fuel; where is the activity level of the i-th fossil fuel. It is obtained by calculation using the following formula, i.e.
[0054]
[0055] Among them, NCV iFC is the average lower heating value of the i-th fossil fuel. i This represents the net consumption of the i-th type of fossil fuel;
[0056] Step 2: Calculate the carbon emissions generated by using energy as a raw material during the aluminum smelting and casting process based on the predicted carbon emission factor. The carbon emissions generated by using energy as a raw material are calculated using the following formula:
[0057]
[0058] Among them, C 原材料 Carbon emissions from the use of energy as a raw material. The activity level refers to the amount of energy consumed as a reducing agent. is the carbon emission factor when the j-th energy source is used as a raw material;
[0059] Step 3: Calculate the carbon emissions generated during the aluminum smelting and casting process based on the predicted carbon emission factors. The carbon emissions generated during the industrial production process are calculated using the following formula:
[0060] C 过程 =C 熔剂 +C 原料
[0061] The carbon emissions generated by flux consumption are calculated using the following formula:
[0062]
[0063] In the formula, C 熔剂 P represents the carbon emissions generated from flux consumption. k This represents the net consumption of the k-th flux during the accounting period. The carbon emission factor of the k-th flux;
[0064] Carbon emissions from the consumption of carbon-containing raw materials are calculated using the following formula:
[0065]
[0066] In the formula, C 原料 M represents the carbon emissions generated from the consumption of carbon-containing raw materials. l To calculate the purchase volume of the l-th type of carbon-containing raw material within the time frame and boundaries, Let l be the carbon emission factor of the l-th purchased raw material, where l is the type of carbon-containing raw material;
[0067] Step 4: Calculate the carbon emissions generated by the net purchased electricity and heat used in the aluminum smelting process based on the predicted carbon emission factors. The carbon emissions generated by the net purchased electricity and heat are calculated using the following formula:
[0068] C电力、热力 =AD 电力 ×EF 电力 +AD 热力 ×EF 热力
[0069] Among them, C 电力、热力 For the carbon emissions generated from net purchases of electricity and heat, AD 电力 To calculate net electricity purchases within the specified time frame and boundaries, AD 热力 To account for net heat purchases within the time frame and boundaries, EF 电力 As the carbon emission factor for electricity, EF 热力 Carbon emission factor for heat;
[0070] Step 5: Sum the carbon emissions from fuel combustion, the carbon emissions from the use of energy as raw materials, the carbon emissions from industrial production processes, and the carbon emissions from net purchased electricity and heat within the accounting time period to obtain the sum of direct and indirect carbon emissions, i.e., the total carbon emissions.
[0071] According to another aspect of the present invention, a carbon emission accounting system for non-ferrous aluminum smelting and casting based on a hierarchical memory network is provided, comprising:
[0072] The device for determining the time range and boundary of the accounting process and for data processing is used to determine the time range and boundary of carbon emissions from non-ferrous aluminum casting based on the process of non-ferrous aluminum casting, and to obtain carbon emission time series data of various materials by processing historical data of different materials under different production conditions within the accounting boundary.
[0073] The data training and fitting device is used to train and fit the time series data of carbon emissions of various materials within the accounting boundary using a hierarchical memory network;
[0074] The hierarchical memory network optimization and carbon emission factor prediction device is used to optimize the parameters of the hierarchical memory network using the roaming algorithm, and to predict the carbon emission factors of different materials under actual production conditions within the calculation time range and boundary based on the trained network.
[0075] The carbon emission calculation device is used to calculate the direct and indirect carbon emissions in the non-ferrous aluminum smelting and casting process based on the predicted carbon emission factors, and finally obtain the total carbon emissions.
[0076] Preferably, the accounting time range and boundary for carbon emissions from non-ferrous aluminum smelting and casting are determined based on the non-ferrous aluminum smelting and casting process, and historical data of different materials under different production conditions within the accounting boundary are processed to obtain carbon emission time series data for various materials. The specific process is as follows:
[0077] Step 1: Determine the smelting and casting process of non-ferrous aluminum, including the process from aluminum concentrate to refined aluminum products and the process from scrap aluminum to refined aluminum products. Identify the carbon emission categories in the aluminum smelting and casting process. Carbon emission categories include direct carbon emissions and indirect carbon emissions. Direct carbon emissions include: fuel combustion, energy as a raw material, and industrial processes. Indirect carbon emissions include: net purchased electricity, heat, and production emissions.
[0078] Step 2: Based on the two aluminum smelting and casting processes and carbon emission categories, identify the emission sources that may generate carbon emissions during the actual smelting and casting process, and determine the carbon emission accounting boundary. At the same time, collect historical data of different materials under different production conditions, including: time, material name, carbon emission category, temperature, oxygen concentration, material input, carbon production, etc.
[0079] Step 3: Filter the acquired information, retaining only the necessary data, such as time, material input, actual carbon production, temperature, and oxygen concentration, to construct a time series dataset of carbon emissions for different materials. Then, perform max-min normalization on the obtained data, scaling it to [0,1]. Max-min normalization is performed on the data using the following formula:
[0080]
[0081] Where x is the actual value of the data to be normalized, and x' is the normalized value. max x min These are the maximum and minimum values of the data.
[0082] Preferably, a hierarchical memory network is used to train and fit the carbon emission time series data of various materials within the accounting boundary. The specific process is as follows:
[0083] Step 1: Calculate the number of hidden layers m and the delay memory coefficient δ for each hidden layer. i Number of neurons in each hidden layer Sparsity ξ of the internal connectivity matrix of each hidden layer i Spectral radius ρ of the internal connectivity matrix of each hidden layer i The Euclidean norm regularization constraint coefficient ε is initialized. The number of hidden layers should not be too large, otherwise it will greatly increase the computational complexity. The delayed memory coefficient should be selected with an appropriate value according to the actual time span of the long-term memory information required.
[0084] Step 2: Initialize the input weight matrix and internal connection matrix of each hidden layer. Simultaneously, update the internal connection matrix based on its sparsity, maximum eigenvalue, and spectral radius. The specific steps are as follows:
[0085] Step 2-1: Input weight matrix for each hidden layer Random values are assigned, where i = 1, 2, 3, ..., m. When i = 1, the input weight matrix is... Each weight value is within the range [-0.5, 0.5]. When i ≠ 1, the input weight matrix... Each weight value is within the range of [-0.5, 0.5], where, Let be the number of neurons in hidden layer i, and D be the dimension of the input layer parameters;
[0086] Step 2-2: Analyze the internal connectivity matrix of each hidden layer. Random values are assigned, where i = 1, 2, 3, ..., m, and the internal connection matrix is... Each weight value is within the range of [-0.5, 0.5], where, Let be the number of neurons in hidden layer i. The number of non-zero elements in the internal connection matrix of each hidden layer is calculated based on the sparsity of the internal connection matrix. The formula for calculating the number of non-zero elements in the internal connection matrix of each hidden layer is as follows:
[0087]
[0088] Where, n i Let ξ be the number of non-zero elements in the internal connectivity matrix of hidden layer i. i Let be the sparsity of the internal connectivity matrix of hidden layer i. The number of neurons in hidden layer i;
[0089] Steps 2-3: Calculate the maximum eigenvalue and spectral radius of the internal connectivity matrix of each hidden layer, and update the internal connectivity matrix of each hidden layer based on the maximum eigenvalue and spectral radius. The formula for updating the internal connectivity matrix of each hidden layer is as follows:
[0090]
[0091] in, Let ρ be the internal connectivity matrix of hidden layer i. i Let W be the spectral radius of the internal connectivity matrix of hidden layer i, and let W be the spectral radius of the internal connectivity matrix of hidden layer i. Given a random matrix of the same dimension, where each element's value is in the range [-0.5, 0.5], λ max (W) is the largest eigenvalue of the internal connectivity matrix of the hidden layer;
[0092] Step 3: Establish the collection matrix. Add the normalized carbon emission time series data to the collection matrix, calculate the time series data of each hidden layer neuron and add it to the collection matrix, and then obtain the final collection matrix. The specific process is as follows:
[0093] Step 3-1: Create an empty collection matrix The normalized carbon emission time series data u∈R D×T Add this to the collection matrix, where D is the input layer parameter dimension and L is the output layer parameter dimension. denoted as the number of neurons in hidden layer i, and T as the length of the time series;
[0094] Step 3-2: Calculate the time-series data of the neurons in the first layer of the hidden layer. The formula for calculating the time-series data of the neurons in the first layer of the hidden layer is as follows:
[0095]
[0096] in, This represents the time-series data of neurons in the first layer of the hidden layer, and f(·) is a nonlinear activation function. The internal connection matrix of the first layer in the hidden layer. This is the data of the first layer of neurons in the hidden layer at time t-1. Let u(t) be the input weight matrix of the first hidden layer, and u(t) be the input carbon emission time series data.
[0097] Step 3-3: Calculate the time-series data of neurons in the i-th (i = 2, 3, 4, ..., m) layer of the hidden layer. The formula for calculating the time-series data of neurons in the i-th layer of the hidden layer is as follows:
[0098]
[0099] Where, δ j Let θ be the delayed memory coefficient of hidden layer j. i The total delayed memory time of hidden layer i. Let be the input of hidden layer i at time t. For t-θ i The values of each neuron in hidden layer i-1 at time step [i-1] Let be the time-series data of neurons in the i-th layer of the hidden layer, and f(·) is a nonlinear activation function. Let be the internal connection matrix of the i-th layer in the hidden layer. Let be the values of each neuron in hidden layer i at time ti. Let be the input weight matrix of hidden layer i;
[0100] Step 4: Using the collection matrix, the actual output, and the Euclidean norm regularization constraint coefficients, calculate the output weight matrix. The formula for calculating the output weight matrix is as follows:
[0101]
[0102] in, Y is the output weight matrix, X is the actual output value, ε is the collection matrix, and ε is the Euclidean norm regularization constraint coefficient, which is usually a very small positive number.
[0103] Preferably, the parameters of the hierarchical memory network are optimized using a roaming algorithm, and the optimized neural network is used to predict the carbon emission factors of different materials under actual production conditions within the calculation time range and boundary. The specific process is as follows:
[0104] Step 1: Initialize the position and fitness of the fish swarm. Initialize the initial values of parameters such as M, N, EN, PN, SN, and DN. M is the maximum number of iterations, N is the size of the fish swarm, EN is the number of fish exploring and foraging in the swarm, PN is the number of fish sensing danger, SN is the safe value, and DN is the warning value (generated by random numbers). Use the output weight matrix in the hierarchical memory network as a variable in the search space, then perform iterative iterations and sort the fish swarm to obtain the individual position of the fish currently in the optimal position and the best fitness value.
[0105] Step 2: Update the location of the foraging fish based on their behavior characteristics. The location of the foraging fish is updated using the following formula:
[0106]
[0107] Where t represents the current iteration number, L i,j Let represent the position information of the i-th fish in the j-th dimension, arctan be the arctangent function, c be a random number between [0,1], M be the maximum number of iterations, Q be a random number following a Gaussian distribution, R be a unit row vector, DN be the warning value, and SN be the safety value.
[0108] Step 3: Update the position of the following foraging fish based on the location of the explored foraging fish. Update the position of the following foraging fish using the following formula:
[0109]
[0110] Where t represents the current iteration number, L i,j This represents the position information of the i-th fish in the j-th dimension, where arctan is the arctangent function, and L... p Let L be a random position of the fish near its current optimal position. worst Let N be the worst-case position occupied by the fish, Q be a random number following a Gaussian distribution, R be a unit row vector, and A be the worst-case position occupied by the fish. + It is a row vector that randomly contains only 1 and -1;
[0111] Step 4: Based on the fish's response patterns to predators, update the fish's position using the following formula:
[0112]
[0113] Where t represents the current iteration number, L i,j This represents the position information of the i-th fish in the j-th dimension, α is the step size control parameter, K is a random parameter in the range [-1, 1], and L... best L worst f represents the best and worst positions for the fish. i f represents the fitness value of the current individual. g f represents the current maximum fitness value. w This represents the current minimum fitness value, where γ is a minimum constant to avoid a denominator of 0.
[0114] Step 5: Update the historical best fitness. When the maximum number of iterations is reached, output the best individual position and fitness value. Use the global best solution as the output weight matrix of the hierarchical memory network to obtain the optimized hierarchical memory network. Input the carbon emission time series data of different materials within the accounting boundary into the optimized network to obtain the carbon emission factors of different materials under actual production conditions within the accounting time range and boundary.
[0115] Preferably, the direct and indirect carbon emissions during the non-ferrous aluminum smelting and casting process are calculated based on the predicted carbon emission factors to ultimately obtain the total carbon emissions. The specific process is as follows:
[0116] Step 1: Calculate the carbon emissions generated by fuel combustion during the aluminum smelting and casting process based on the predicted carbon emission factor. The carbon emissions generated by fuel combustion are calculated using the following formula:
[0117]
[0118] Among them, C 燃烧 To consume the carbon emissions generated from burning fossil fuels, For the activity level of the i-th fossil fuel, Let be the carbon emission factor of the i-th fossil fuel; where is the activity level of the i-th fossil fuel. It is obtained by calculation using the following formula, i.e.
[0119]
[0120] Among them, NCV i FC is the average lower heating value of the i-th fossil fuel. i This represents the net consumption of the i-th type of fossil fuel;
[0121] Step 2: Calculate the carbon emissions generated by using energy as a raw material during the aluminum smelting and casting process based on the predicted carbon emission factor. The carbon emissions generated by using energy as a raw material are calculated using the following formula:
[0122]
[0123] Among them, C 原材料 Carbon emissions from the use of energy as a raw material. The activity level refers to the amount of energy consumed as a reducing agent. is the carbon emission factor when the j-th energy source is used as a raw material;
[0124] Step 3: Calculate the carbon emissions generated during the aluminum smelting and casting process based on the predicted carbon emission factors. The carbon emissions generated during the industrial production process are calculated using the following formula:
[0125] C 过程 =C 熔剂 +C 原料
[0126] The carbon emissions generated by flux consumption are calculated using the following formula:
[0127]
[0128] In the formula, C 熔剂 P represents the carbon emissions generated from flux consumption. k This represents the net consumption of the k-th flux during the accounting period. The carbon emission factor of the k-th flux;
[0129] Carbon emissions from the consumption of carbon-containing raw materials are calculated using the following formula:
[0130]
[0131] In the formula, C 原料 M represents the carbon emissions generated from the consumption of carbon-containing raw materials. l To calculate the purchase volume of the l-th type of carbon-containing raw material within the time frame and boundaries, Let l be the carbon emission factor of the l-th purchased raw material, where l is the type of carbon-containing raw material;
[0132] Step 4: Calculate the carbon emissions generated by the net purchased electricity and heat used in the aluminum smelting and casting process based on the predicted carbon emission factors. The carbon emissions generated by the net purchased electricity and heat are calculated using the following formula:
[0133] C 电力、热力 =AD 电力 ×EF 电力 +AD 热力 ×EF 热力
[0134] Among them, C 电力、热力 For the carbon emissions generated from net purchases of electricity and heat, AD电力 To calculate net electricity purchases within the specified time frame and boundaries, AD 热力 To account for net heat purchases within the time frame and boundaries, EF 电力 As the carbon emission factor for electricity, EF 热力 Carbon emission factor for heat;
[0135] Step 5: Sum the carbon emissions from fuel combustion, the carbon emissions from the use of energy as raw materials, the carbon emissions from industrial production processes, and the carbon emissions from net purchased electricity and heat within the accounting time period to obtain the sum of direct and indirect carbon emissions, i.e., the total carbon emissions.
[0136] According to another aspect of the present invention, a computer-readable storage medium is provided having program instructions stored thereon, which, when executed by a processor, implement the carbon emission accounting method for non-ferrous aluminum casting based on a hierarchical memory network as described above.
[0137] In summary, compared with the prior art, the above-described technical solutions conceived by this invention can achieve the following beneficial effects:
[0138] This invention discloses a method and system for calculating carbon emissions from non-ferrous aluminum casting based on a hierarchical memory network. This method utilizes a hierarchical memory network optimized by a wandering algorithm to predict the carbon emission factors of different materials under actual production conditions within a calculated timeframe and boundary. Based on the predicted carbon emission factors, direct and indirect carbon emissions are calculated to obtain the total carbon emissions. This results in a more accurate calculation of carbon emissions during the aluminum casting process, overcoming the significant calculation errors of existing carbon emission calculation methods. The hierarchical memory network used in this method and system can handle input data of varying lengths and remember previous inputs, exhibiting good delayed memory capabilities. Furthermore, the multiple hidden layers facilitate better handling of complex relationships between data, making it easier to uncover hidden relationships. This invention can accurately calculate carbon emissions during the aluminum casting process and is of great significance for the future popularization and widespread application of carbon emission calculation methods for non-ferrous aluminum casting based on hierarchical memory networks. Attached Figure Description
[0139] Figure 1 This is a device connection diagram provided in an embodiment of the present invention;
[0140] Figure 2 This is a schematic flowchart of a carbon emission accounting method for non-ferrous aluminum melting and casting based on a hierarchical memory network provided in an embodiment of the present invention.
[0141] Figure 3This is a diagram of the hierarchical memory network architecture of a method for calculating carbon emissions from non-ferrous aluminum casting based on a hierarchical memory network, provided in an embodiment of the present invention.
[0142] Figure 4 This invention provides a carbon emission accounting time range and calculation diagram for a non-ferrous aluminum casting carbon emission accounting method based on a hierarchical memory network, as provided in this embodiment. Detailed Implementation
[0143] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention. Furthermore, the technical features involved in the various embodiments of this invention described below can be combined with each other as long as they do not conflict with each other.
[0144] Example 1: As Figure 1 As shown in the figure, an embodiment of the present invention provides a carbon emission accounting system for non-ferrous aluminum smelting and casting based on a hierarchical memory network. The system includes:
[0145] The device for determining the time range and boundary of the accounting process and for data processing is used to determine the time range and boundary of carbon emissions from non-ferrous aluminum casting based on the process of non-ferrous aluminum casting, and to obtain carbon emission time series data of various materials by processing historical data of different materials under different production conditions within the accounting boundary.
[0146] The data training and fitting device is used to train and fit the time series data of carbon emissions of various materials within the accounting boundary using a hierarchical memory network;
[0147] The hierarchical memory network optimization and carbon emission factor prediction device is used to optimize the parameters of the hierarchical memory network using the roaming algorithm, and to predict the carbon emission factors of different materials under actual production conditions within the calculation time range and boundary based on the trained network.
[0148] The carbon emission calculation device is used to calculate the direct and indirect carbon emissions in the non-ferrous aluminum smelting and casting process based on the predicted carbon emission factors, and finally obtain the total carbon emissions.
[0149] Example 2: As Figure 2 As shown, this embodiment of the invention provides a flowchart of a method for calculating carbon emissions from non-ferrous aluminum casting based on a hierarchical memory network. The flowchart includes the following steps:
[0150] Step A1: Determine the accounting time range and boundaries for carbon emissions from non-ferrous aluminum smelting and casting based on the non-ferrous aluminum smelting and casting process;
[0151] Step A2: Obtain carbon emission time series data for various materials by processing historical data of different materials under different production conditions within the accounting boundary;
[0152] Step A3: Use a hierarchical memory network to train and fit the carbon emission time series data of various materials within the accounting boundary;
[0153] Step A4: Optimize the parameters of the hierarchical memory network using the roaming algorithm;
[0154] Step A5: Based on the trained hierarchical memory network, predict the carbon emission factors of different materials under actual production conditions within the calculation time range and boundary;
[0155] Step A6: Calculate the direct and indirect carbon emissions in the non-ferrous aluminum smelting and casting process based on the predicted carbon emission factors, and finally obtain the total carbon emissions.
[0156] Example 3: As Figure 3 As shown in the figure, this invention provides a hierarchical memory network architecture diagram for a method of calculating carbon emissions from non-ferrous aluminum casting based on a hierarchical memory network. The method utilizes the hierarchical memory network to train and fit the carbon emission time series data of various materials within the calculation boundary. The specific process is as follows:
[0157] Step 1: Calculate the number of hidden layers m and the delay memory coefficient δ for each hidden layer. i The number of neurons in each hidden layer, Q r i es Sparsity ξ of the internal connectivity matrix of each hidden layer i Spectral radius ρ of the internal connectivity matrix of each hidden layer i The Euclidean norm regularization constraint coefficient ε is initialized. The number of hidden layers should not be too large, otherwise it will greatly increase the computational complexity. The delayed memory coefficient should be selected with an appropriate value according to the actual time span of the long-term memory information required.
[0158] Step 2: Initialize the input weight matrix and internal connection matrix of each hidden layer. Simultaneously, update the internal connection matrix based on its sparsity, maximum eigenvalue, and spectral radius. The specific steps are as follows:
[0159] Step 2-1: Input weight matrix for each hidden layer Random values are assigned, where i = 1, 2, 3, ..., m. When i = 1, the input weight matrix is... Each weight value is within the range [-0.5, 0.5]. When i ≠ 1, the input weight matrix... Each weight value is within the range of [-0.5, 0.5], where, Let be the number of neurons in hidden layer i, and D be the dimension of the input layer parameters;
[0160] Step 2-2: Analyze the internal connectivity matrix of each hidden layer. Random values are assigned, where i = 1, 2, 3, ..., m, and the internal connection matrix is... Each weight value is within the range of [-0.5, 0.5], where, Let be the number of neurons in hidden layer i. The number of non-zero elements in the internal connection matrix of each hidden layer is calculated based on the sparsity of the internal connection matrix. The formula for calculating the number of non-zero elements in the internal connection matrix of each hidden layer is as follows:
[0161]
[0162] Where, n i Let ξ be the number of non-zero elements in the internal connectivity matrix of hidden layer i. i Let be the sparsity of the internal connectivity matrix of hidden layer i. The number of neurons in hidden layer i;
[0163] Steps 2-3: Calculate the maximum eigenvalue and spectral radius of the internal connectivity matrix of each hidden layer, and update the internal connectivity matrix of each hidden layer based on the maximum eigenvalue and spectral radius. The formula for updating the internal connectivity matrix of each hidden layer is as follows:
[0164]
[0165] in, Let ρ be the internal connectivity matrix of hidden layer i. i Let W be the spectral radius of the internal connectivity matrix of hidden layer i, and let W be the spectral radius of the internal connectivity matrix of hidden layer i. Given a random matrix of the same dimension, where each element's value is in the range [-0.5, 0.5], λ max (W) is the largest eigenvalue of the internal connectivity matrix of the hidden layer;
[0166] Step 3: Establish the collection matrix. Add the normalized carbon emission time series data to the collection matrix, calculate the time series data of each hidden layer neuron and add it to the collection matrix, and then obtain the final collection matrix. The specific process is as follows:
[0167] Step 3-1: Create an empty collection matrix The normalized carbon emission time series data u∈R D×T Add this to the collection matrix, where D is the input layer parameter dimension and L is the output layer parameter dimension. denoted as the number of neurons in hidden layer i, and T as the length of the time series;
[0168] Step 3-2: Calculate the time-series data of the neurons in the first layer of the hidden layer. The formula for calculating the time-series data of the neurons in the first layer of the hidden layer is as follows:
[0169]
[0170] in, This represents the time-series data of neurons in the first layer of the hidden layer, and f(·) is a nonlinear activation function. The internal connection matrix of the first layer in the hidden layer. This is the data of the first layer of neurons in the hidden layer at time t-1. Let u(t) be the input weight matrix of the first hidden layer, and u(t) be the input carbon emission time series data.
[0171] Step 3-3: Calculate the time-series data of neurons in the i-th (i = 2, 3, 4, ..., m) layer of the hidden layer. The formula for calculating the time-series data of neurons in the i-th layer of the hidden layer is as follows:
[0172]
[0173] Where, δ j Let θ be the delayed memory coefficient of hidden layer j. i The total delayed memory time of hidden layer i. Let be the input of hidden layer i at time t. For t-θ i The values of each neuron in hidden layer i-1 at time step [i-1] Let be the time-series data of neurons in the i-th layer of the hidden layer, and f(·) is a nonlinear activation function. Let be the internal connection matrix of the i-th hidden layer. Let be the values of each neuron in hidden layer i at time ti. Let be the input weight matrix of hidden layer i;
[0174] Step 4: Using the collection matrix, the actual output, and the Euclidean norm regularization constraint coefficients, calculate the output weight matrix. The formula for calculating the output weight matrix is as follows:
[0175]
[0176] in, Y is the output weight matrix, X is the actual output value, ε is the collection matrix, and ε is the Euclidean norm regularization constraint coefficient, which is usually a very small positive number.
[0177] Example 4: Figure 4As shown in the figure, the carbon emission accounting time range and calculation diagram of the carbon emission accounting method based on hierarchical memory network provided by the embodiment of the present invention are as follows: The calculation process of carbon emissions within the accounting time range and boundary is as follows:
[0178] Step 1: Calculate the carbon emissions generated by fuel combustion during the aluminum smelting and casting process based on the predicted carbon emission factor. The carbon emissions generated by fuel combustion are calculated using the following formula:
[0179]
[0180] Among them, C 燃烧 To consume the carbon emissions generated from burning fossil fuels, For the activity level of the i-th fossil fuel, Let be the carbon emission factor of the i-th fossil fuel; where is the activity level of the i-th fossil fuel. It is obtained by calculation using the following formula, i.e.
[0181]
[0182] Among them, NCV i FC is the average lower heating value of the i-th fossil fuel. i This represents the net consumption of the i-th type of fossil fuel;
[0183] Step 2: Calculate the carbon emissions generated by using energy as a raw material during the aluminum smelting and casting process based on the predicted carbon emission factor. The carbon emissions generated by using energy as a raw material are calculated using the following formula:
[0184]
[0185] Among them, C 原材料 Carbon emissions from the use of energy as a raw material. The activity level refers to the amount of energy consumed as a reducing agent. is the carbon emission factor when the j-th energy source is used as a raw material;
[0186] Step 3: Calculate the carbon emissions generated during the aluminum smelting and casting process based on the predicted carbon emission factors. The carbon emissions generated during the industrial production process are calculated using the following formula:
[0187] C 过程 =C 熔剂 +C 原料
[0188] The carbon emissions generated by flux consumption are calculated using the following formula:
[0189]
[0190] In the formula, C 熔剂 P represents the carbon emissions generated from flux consumption. k This represents the net consumption of the k-th flux during the accounting period. The carbon emission factor of the k-th flux;
[0191] Carbon emissions from the consumption of carbon-containing raw materials are calculated using the following formula:
[0192]
[0193] In the formula, C 原料 M represents the carbon emissions generated from the consumption of carbon-containing raw materials. l To calculate the purchase volume of the l-th type of carbon-containing raw material within the time frame and boundaries, Let l be the carbon emission factor of the l-th purchased raw material, where l is the type of carbon-containing raw material;
[0194] Step 4: Calculate the carbon emissions generated by the net purchased electricity and heat used in the aluminum smelting process based on the predicted carbon emission factors. The carbon emissions generated by the net purchased electricity and heat are calculated using the following formula:
[0195] C 电力、热力 =AD 电力 ×EF 电力 +AD 热力 ×EF 热力
[0196] Among them, C 电力、热力 For the carbon emissions generated from net purchases of electricity and heat, AD 电力 To calculate net electricity purchases within the specified time frame and boundaries, AD 热力 To account for net heat purchases within the time frame and boundaries, EF 电力 For the carbon emission factor of electricity, EF 热力 Carbon emission factor for heat;
[0197] Step 5: Sum the carbon emissions from fuel combustion, the carbon emissions from the use of energy as raw materials, the carbon emissions from industrial production processes, and the carbon emissions from net purchased electricity and heat within the accounting time period to obtain the sum of direct and indirect carbon emissions, i.e., the total carbon emissions.
[0198] In another embodiment of the present invention, a computer-readable storage medium is also provided, on which program instructions are stored, which, when executed by a processor, implement the above-described method and system for calculating carbon emissions from non-ferrous aluminum casting based on a hierarchical memory network.
[0199] It should be noted that, depending on the implementation needs, the various steps / components described in this application can be broken down into more steps / components, or two or more steps / components or parts of the operation of steps / components can be combined into new steps / components to achieve the purpose of this invention.
[0200] The methods described above according to the invention can be implemented in hardware, firmware, or as software or computer code that can be stored in a recording medium (such as a CD-ROM, RAM, floppy disk, hard disk, or magneto-optical disk), or as computer code originally stored on a remote recording medium or a non-transitory machine-readable medium and subsequently stored on a local recording medium, downloaded via a network. Thus, the methods described herein can be stored as software processing on a recording medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware (such as an ASIC or FPGA). It is understood that the computer, processor, microprocessor controller, or programmable hardware includes storage components (e.g., RAM, ROM, flash memory, etc.) capable of storing or receiving software or computer code, which, when accessed and executed by the computer, processor, or hardware, implements the processing methods described herein. Furthermore, when a general-purpose computer accesses the code used to implement the processing shown herein, the execution of the code transforms the general-purpose computer into a dedicated computer for performing the processing shown herein.
[0201] Those skilled in the art will readily understand that the above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for calculating carbon emissions from non-ferrous aluminum smelting and casting based on a hierarchical memory network, characterized in that, include: The method includes the following steps: A1. Determine the accounting time range and boundaries for carbon emissions from non-ferrous aluminum smelting and casting based on the non-ferrous aluminum smelting and casting process; A2. Carbon emission time series data for various materials are obtained by processing historical data of different materials under different production conditions within the accounting boundary; A3. Use a hierarchical memory network to train and fit the carbon emission time series data of various materials within the accounting boundary; A4. Optimize the parameters of the hierarchical memory network using the roaming algorithm; A5. Based on the trained hierarchical memory network, predict the carbon emission factors of different materials under actual production conditions within the calculation time range and boundary. A6. Calculate the direct and indirect carbon emissions in the non-ferrous aluminum smelting and casting process based on the predicted carbon emission factors, and finally obtain the total carbon emissions. In steps A1 and A2, the accounting time range and boundaries for carbon emissions from non-ferrous aluminum smelting and casting are determined based on the process. Historical data of different materials under different production conditions within the accounting boundaries are then processed to obtain carbon emission time series data for various materials. The process is as follows: Step 1: Determine the smelting and casting process of non-ferrous aluminum, including the process from aluminum concentrate to refined aluminum products and the process from scrap aluminum to refined aluminum products. Identify the carbon emission categories in the aluminum smelting and casting process. Carbon emission categories include direct carbon emissions and indirect carbon emissions. Direct carbon emissions include: fuel combustion, energy as a raw material, and industrial processes. Indirect carbon emissions include: net purchased electricity, heat, and production emissions. Step 2: Based on the two aluminum smelting and casting processes and carbon emission categories, identify the emission sources that may generate carbon emissions during the actual smelting and casting process, and determine the carbon emission accounting boundary. At the same time, collect historical data of different materials under different production conditions, including: time, material name, carbon emission category, temperature, oxygen concentration, material input, and carbon production information. Step 3: Filter the acquired information, retaining only the necessary data, including time, material input, actual carbon production, temperature, and oxygen concentration, to construct a time series dataset of carbon emissions for different materials. Then, perform max-min normalization on the obtained data, scaling it to [0,1]. Max-min normalization is performed on the data using the following formula: in, For the actual values of the data that need to be normalized, The normalized value. , These are the maximum and minimum values of the data; In step A3, a hierarchical memory network is used to train and fit the carbon emission time series data of various materials within the accounting boundary. The process is as follows: Step 1: Count the number of hidden layers Delayed memory coefficients of each hidden layer Number of neurons in each hidden layer Sparsity of the internal connectivity matrix of each hidden layer Spectral radius of the internal connectivity matrix of each hidden layer Euclidean norm regularization constraint coefficient Perform initialization; Step 2: Initialize the input weight matrix and internal connection matrix of each hidden layer. Simultaneously, update the internal connection matrix based on its sparsity, maximum eigenvalue, and spectral radius. The specific steps are as follows: Step 2-1: Input weight matrix for each hidden layer Perform random assignment, where, ,when When inputting the weight matrix Each weight value is within the range of [-0.5, 0.5]. When inputting the weight matrix Each weight value is within the range of [-0.5, 0.5], where, For hidden layer The number of neurons in the middle neurite, Input layer parameter dimensions; Step 2-2: Analyze the internal connectivity matrix of each hidden layer. Perform random assignment, where, The weights in the internal connectivity matrix are all within the range [-0.5, 0.5]. For hidden layer The number of neurons in the hidden layer is calculated based on the sparsity of the internal connection matrix of each hidden layer, using the number of non-zero elements in the internal connection matrix. The formula for calculating the number of non-zero elements in the internal connection matrix of each hidden layer is as follows: in, For hidden layer The number of non-zero elements in the internal connectivity matrix. For hidden layer sparsity of the internal connection matrix, For hidden layer The number of neurons in the middle neurite; Steps 2-3: Calculate the maximum eigenvalue and spectral radius of the internal connectivity matrix of each hidden layer, and update the internal connectivity matrix of each hidden layer based on the maximum eigenvalue and spectral radius. The formula for updating the internal connectivity matrix of each hidden layer is as follows: in, For hidden layer The internal connection matrix, For hidden layer The spectral radius of the internal connectivity matrix. To and A random matrix of the same dimension, where each element has a value in the range [-0.5, 0.5]. The largest eigenvalue of the internal connectivity matrix of the hidden layer; Step 3: Establish the collection matrix. Add the normalized carbon emission time series data to the collection matrix, calculate the time series data of each hidden layer neuron and add it to the collection matrix, and then obtain the final collection matrix. The specific process is as follows: Step 3-1: Create an empty collection matrix Normalized carbon emission time series data Added to the collection matrix, where, Input layer parameter dimensions For the output layer parameter dimensions, For hidden layer The number of neurons in the middle neurite, The length of the time series; Step 3-2: Calculate the time-series data of the neurons in the first layer of the hidden layer. The formula for calculating the time-series data of the neurons in the first layer of the hidden layer is as follows: in, This represents the time-series data of neurons in the first layer of the hidden layer, and , It is a non-linear activation function. The internal connection matrix of the first layer in the hidden layer. For the first layer of neurons in the hidden layer Data at any given time This is the input weight matrix of the first hidden layer. The input is time series data of carbon emissions; Step 3-3: Calculate the number of hidden layers in the hidden layer. , Time-series data of neurons in the hidden layer, the first layer of neurons in the hidden layer. The formula for calculating the time series data of layer neurons is as follows: in, For hidden layer The delayed memory coefficient, For hidden layer Total delayed memory time, for Hidden Layers at Moments Input, for Hidden Layers at Moments The values of each neuron, For the hidden layer Time-series data of layer neurons, and , It is a non-linear activation function. For the hidden layer The internal connection matrix of the layer, for Hidden Layers at Moments The values of each neuron, For hidden layer The input weight matrix; Step 4: Using the collection matrix, the actual output, and the Euclidean norm regularization constraint coefficients, calculate the output weight matrix. The formula for calculating the output weight matrix is as follows: in, To output the weight matrix, This is the actual output value. To collect the matrix, The Euclidean norm regularization constraint coefficient; In steps A4 and A5, the parameters of the hierarchical memory network are optimized using the roaming algorithm, and the optimized neural network is used to predict the carbon emission factors of different materials under actual production conditions within the calculation time range and boundary. The process is as follows: Step 1: Initialize the location and fitness of the fish population. , , , , , The parameters are initialized, where, The maximum number of iterations, For the size of the school of fish The number of fish exploring and foraging within the school. To sense the number of dangerous fish, For safety values, The warning value is generated by random numbers. The output weight matrix in the hierarchical memory network is used as a variable in the search space. Then, the loop is iterated and the fish are sorted to obtain the individual position of the fish that is currently in the best position and the best fitness value. Step 2: Update the location of the foraging fish based on their behavior characteristics. The location of the foraging fish is updated using the following formula: in, Indicates the current iteration number. Indicates the first The fish in the first Location information in the dimension It is the arctangent function. A random number between [0, 1] The maximum number of iterations, For random numbers that follow a Gaussian distribution, For unit row vectors, This is a warning value. This is a safe value; Step 3: Update the position of the following foraging fish based on the location of the explored foraging fish. Update the position of the following foraging fish using the following formula: in, Indicates the current iteration number. Indicates the first The fish in the first Location information in the dimension It is the arctangent function. Let this be a random position of the fish near its current optimal position. The worst position for the fish. For the size of the school of fish For random numbers that follow a Gaussian distribution, For unit row vectors, It is a row vector that randomly contains only 1 and -1; Step 4: Based on the fish's response patterns to predators, update the fish's position using the following formula: in, Indicates the current iteration number. Indicates the first The fish in the first Location information in the dimension These are step size control parameters. The parameters are random values in the range [-1, 1]. , The best and worst positions for fish, This represents the fitness value of the current individual. This represents the current maximum fitness value. This represents the current minimum fitness value. To be the smallest constant, avoid having a denominator of 0; Step 5: Update the historical best fitness. When the maximum number of iterations is reached, output the best individual position and fitness value. Use the global best solution as the output weight matrix of the hierarchical memory network to obtain the optimized hierarchical memory network. Input the carbon emission time series data of different materials within the accounting boundary into the optimized network to obtain the carbon emission factors of different materials under actual production conditions within the accounting time range and boundary.
2. The method for calculating carbon emissions from non-ferrous aluminum smelting and casting based on a hierarchical memory network according to claim 1, characterized in that, In step A6, the direct and indirect carbon emissions during the non-ferrous aluminum smelting and casting process are calculated based on the predicted carbon emission factors, and the total carbon emissions are finally obtained. The process is as follows: Step 1: Calculate the carbon emissions generated by fuel combustion during the aluminum smelting and casting process based on the predicted carbon emission factor. The carbon emissions generated by fuel combustion are calculated using the following formula: in, To consume the carbon emissions generated from burning fossil fuels, For the first Activity levels of fossil fuels, For the first Carbon emission factors of fossil fuels; among them, the first Activity levels of fossil fuels It is obtained by calculation using the following formula, i.e. in, For the first The average lower heating value of fossil fuels For the first Net consumption of fossil fuels; Step 2: Calculate the carbon emissions generated by using energy as a raw material during the aluminum smelting and casting process based on the predicted carbon emission factor. The carbon emissions generated by using energy as a raw material are calculated using the following formula: in, Carbon emissions from the use of energy as a raw material. The activity level refers to the amount of energy consumed as a reducing agent. For the first Carbon emission factors when energy is used as a raw material; Step 3: Calculate the carbon emissions generated during the aluminum smelting and casting process based on the predicted carbon emission factors. The carbon emissions generated during the industrial production process are calculated using the following formula: The carbon emissions generated by flux consumption are calculated using the following formula: In the formula, Carbon emissions from flux consumption. For the accounting period The net consumption of this type of flux. No. Carbon emission factors of various fluxes; Carbon emissions from the consumption of carbon-containing raw materials are calculated using the following formula: In the formula, Carbon emissions generated from the consumption of carbon-containing raw materials. For the calculation of the time range and boundaries of the first The amount of carbon-containing raw materials purchased. For the first Carbon emission factors of purchased raw materials The types of carbon-containing raw materials; Step 4: Calculate the carbon emissions generated by the net purchased electricity and heat used in the aluminum smelting process based on the predicted carbon emission factors. The carbon emissions generated by the net purchased electricity and heat are calculated using the following formula: in, For carbon emissions generated from net purchases of electricity and heat, To calculate net electricity purchases within the specified time frame and boundaries, To calculate the net heat purchased within the time frame and boundaries, As a carbon emission factor for electricity, Carbon emission factor for heat; Step 5: Sum the carbon emissions from fuel combustion, the carbon emissions from the use of energy as raw materials, the carbon emissions from industrial production processes, and the carbon emissions from net purchased electricity and heat within the accounting time period to obtain the sum of direct and indirect carbon emissions, i.e., the total carbon emissions.
3. A carbon emission accounting system for non-ferrous aluminum smelting and casting based on a hierarchical memory network, characterized in that, include: The device for determining the time range and boundary of the accounting process and for data processing is used to determine the time range and boundary of carbon emissions from non-ferrous aluminum casting based on the process of non-ferrous aluminum casting, and to obtain carbon emission time series data of various materials by processing historical data of different materials under different production conditions within the accounting boundary. The data training and fitting device is used to learn and train the carbon emission time series data of various materials within the accounting boundary using a hierarchical memory network; The hierarchical memory network optimization and carbon emission factor prediction device is used to optimize the parameters of the hierarchical memory network using the roaming algorithm, and to predict the carbon emission factors of different materials under actual production conditions within the calculation time range and boundary based on the trained network. The carbon emission calculation device is used to calculate the direct and indirect carbon emissions in the non-ferrous aluminum smelting and casting process based on the predicted carbon emission factors, and finally obtain the total carbon emissions. The accounting time range and boundaries for carbon emissions from non-ferrous aluminum smelting and casting are determined based on the process. Historical data of different materials under different production conditions within the accounting boundaries are then processed to obtain time series data for carbon emissions of various materials. The process is as follows: Step 1: Determine the smelting and casting process of non-ferrous aluminum, including the process from aluminum concentrate to refined aluminum products and the process from scrap aluminum to refined aluminum products. Identify the carbon emission categories in the aluminum smelting and casting process. Carbon emission categories include direct carbon emissions and indirect carbon emissions. Direct carbon emissions include: fuel combustion, energy as a raw material, and industrial processes. Indirect carbon emissions include: net purchased electricity, heat, and production emissions. Step 2: Based on the two aluminum smelting and casting processes and carbon emission categories, identify the emission sources that may generate carbon emissions during the actual smelting and casting process, and determine the carbon emission accounting boundary. At the same time, collect historical data of different materials under different production conditions, including: time, material name, carbon emission category, temperature, oxygen concentration, material input, and carbon production information. Step 3: Filter the acquired information, retaining only the necessary data, including time, material input, actual carbon production, temperature, and oxygen concentration, to construct a time series dataset of carbon emissions for different materials. Then, perform max-min normalization on the obtained data, scaling it to [0,1]. Max-min normalization is performed on the data using the following formula: in, For the actual values of the data that need to be normalized, The normalized value. , These are the maximum and minimum values of the data; The process of training and fitting the carbon emission time series data of various materials within the accounting boundary using a hierarchical memory network is as follows: Step 1: Count the number of hidden layers Delayed memory coefficients of each hidden layer Number of neurons in each hidden layer Sparsity of the internal connectivity matrix of each hidden layer Spectral radius of the internal connectivity matrix of each hidden layer Euclidean norm regularization constraint coefficient During initialization, the delayed memory coefficient should be selected with an appropriate value based on the actual time span of the long-term memory information required. Step 2: Initialize the input weight matrix and internal connection matrix of each hidden layer. Simultaneously, update the internal connection matrix based on its sparsity, maximum eigenvalue, and spectral radius. The specific steps are as follows: Step 2-1: Input weight matrix for each hidden layer Perform random assignment, where, ,when When inputting the weight matrix Each weight value is within the range of [-0.5, 0.5]. When inputting the weight matrix Each weight value is within the range of [-0.5, 0.5], where, For hidden layer The number of neurons in the middle neurite, Input layer parameter dimensions; Step 2-2: Analyze the internal connectivity matrix of each hidden layer. Perform random assignment, where, internal connection matrix Each weight value is within the range of [-0.5, 0.5], where, For hidden layer The number of neurons in the hidden layer is calculated based on the sparsity of the internal connection matrix of each hidden layer, using the number of non-zero elements in the internal connection matrix. The formula for calculating the number of non-zero elements in the internal connection matrix of each hidden layer is as follows: in, For hidden layer The number of non-zero elements in the internal connectivity matrix. For hidden layer sparsity of the internal connection matrix, For hidden layer The number of neurons in the middle neurite; Steps 2-3: Calculate the maximum eigenvalue and spectral radius of the internal connectivity matrix of each hidden layer, and update the internal connectivity matrix of each hidden layer based on the maximum eigenvalue and spectral radius. The formula for updating the internal connectivity matrix of each hidden layer is as follows: in, For hidden layer The internal connection matrix, For hidden layer The spectral radius of the internal connectivity matrix. To and A random matrix of the same dimension, where each element has a value in the range [-0.5, 0.5]. The largest eigenvalue of the internal connectivity matrix of the hidden layer; Step 3: Establish the collection matrix. Add the normalized carbon emission time series data to the collection matrix, calculate the time series data of each hidden layer neuron and add it to the collection matrix, and then obtain the final collection matrix. The specific process is as follows: Step 3-1: Create an empty collection matrix Normalized carbon emission time series data Added to the collection matrix, where, Input layer parameter dimensions For the output layer parameter dimensions, For hidden layer The number of neurons in the middle neurite, The length of the time series; Step 3-2: Calculate the time-series data of the neurons in the first layer of the hidden layer. The formula for calculating the time-series data of the neurons in the first layer of the hidden layer is as follows: in, This represents the time-series data of neurons in the first layer of the hidden layer, and , It is a non-linear activation function. The internal connection matrix of the first layer in the hidden layer. For the first layer of neurons in the hidden layer Data at any given time This is the input weight matrix of the first hidden layer. The input is time series data of carbon emissions; Step 3-3: Calculate the number of hidden layers in the hidden layer. , Time-series data of neurons in the hidden layer, the first layer of neurons in the hidden layer. The formula for calculating the time series data of layer neurons is as follows: in, For hidden layer The delayed memory coefficient, For hidden layer Total delayed memory time, for Hidden Layers at Moments Input, for Hidden Layers at Moments The values of each neuron, For the hidden layer Time-series data of layer neurons, and , It is a non-linear activation function. For the hidden layer The internal connection matrix of the layer, for Hidden Layers at Moments The values of each neuron, For hidden layer The input weight matrix; Step 4: Using the collection matrix, the actual output, and the Euclidean norm regularization constraint coefficients, calculate the output weight matrix. The formula for calculating the output weight matrix is as follows: in, To output the weight matrix, This is the actual output value. To collect the matrix, The Euclidean norm regularization constraint coefficient; The process involves optimizing the parameters of the hierarchical memory network using a roaming algorithm, and then using the optimized neural network to predict the carbon emission factors of different materials under actual production conditions within the calculation time range and boundary. The process is as follows: Step 1: Initialize the location and fitness of the fish population. , , , , , The parameters are initialized with initial values, where, The maximum number of iterations, For the size of the school of fish The number of fish exploring and foraging within the school. To sense the number of dangerous fish, For safety values, The warning value is generated by random numbers. The output weight matrix in the hierarchical memory network is used as a variable in the search space. Then, the loop is iterated and the fish are sorted to obtain the individual position of the fish that is currently in the best position and the best fitness value. Step 2: Update the location of the foraging fish based on their behavior characteristics. The location of the foraging fish is updated using the following formula: in, Indicates the current iteration number. Indicates the first The fish in the first Location information in the dimension It is the arctangent function. A random number between [0, 1] The maximum number of iterations, For random numbers that follow a Gaussian distribution, For unit row vectors, This is a warning value. This is a safe value; Step 3: Update the position of the following foraging fish based on the location of the explored foraging fish. Update the position of the following foraging fish using the following formula: in, Indicates the current iteration number. Indicates the first The fish in the first Location information in the dimension It is the arctangent function. Let this be a random position of the fish near its current optimal position. The worst position for the fish. For the size of the school of fish For random numbers that follow a Gaussian distribution, For unit row vectors, It is a row vector that randomly contains only 1 and -1; Step 4: Based on the fish's response patterns to predators, update the fish's position using the following formula: in, Indicates the current iteration number. Indicates the first The fish in the first Location information in the dimension These are step size control parameters. The parameters are random values in the range [-1, 1]. , The best and worst positions for fish, This represents the fitness value of the current individual. This represents the current maximum fitness value. This represents the current minimum fitness value. To be the smallest constant, avoid having a denominator of 0; Step 5: Update the historical best fitness. When the maximum number of iterations is reached, output the best individual position and fitness value. Use the global best solution as the output weight matrix of the hierarchical memory network to obtain the optimized hierarchical memory network. Input the carbon emission time series data of different materials within the accounting boundary into the optimized network to obtain the carbon emission factors of different materials under actual production conditions within the accounting time range and boundary.
4. The carbon emission accounting system for non-ferrous aluminum smelting and casting based on a hierarchical memory network according to claim 3, characterized in that, The direct and indirect carbon emissions during the non-ferrous aluminum smelting and casting process are calculated based on the predicted carbon emission factors, and the total carbon emissions are finally obtained. The process is as follows: Step 1: Calculate the carbon emissions generated by fuel combustion during the aluminum smelting and casting process based on the predicted carbon emission factor. The carbon emissions generated by fuel combustion are calculated using the following formula: in, To consume the carbon emissions generated from burning fossil fuels, For the first Activity levels of fossil fuels, For the first Carbon emission factors of fossil fuels; among them, the first Activity levels of fossil fuels It is obtained by calculation using the following formula, i.e. in, For the first The average lower heating value of fossil fuels For the first Net consumption of fossil fuels; Step 2: Calculate the carbon emissions generated by using energy as a raw material during the aluminum smelting and casting process based on the predicted carbon emission factor. The carbon emissions generated by using energy as a raw material are calculated using the following formula: in, Carbon emissions from the use of energy as a raw material. The activity level refers to the amount of energy consumed as a reducing agent. For the first Carbon emission factors when energy is used as a raw material; Step 3: Calculate the carbon emissions generated during the aluminum smelting and casting process based on the predicted carbon emission factors. The carbon emissions generated during the industrial production process are calculated using the following formula: The carbon emissions generated by flux consumption are calculated using the following formula: In the formula, Carbon emissions from flux consumption. For the accounting period The net consumption of this type of flux. No. Carbon emission factors of various fluxes; Carbon emissions from the consumption of carbon-containing raw materials are calculated using the following formula: In the formula, Carbon emissions generated from the consumption of carbon-containing raw materials. For the calculation of the time range and boundaries of the first The amount of carbon-containing raw materials purchased. For the first Carbon emission factors of purchased raw materials The types of carbon-containing raw materials; Step 4: Calculate the carbon emissions generated by the net purchased electricity and heat used in the aluminum smelting process based on the predicted carbon emission factors. The carbon emissions generated by the net purchased electricity and heat are calculated using the following formula: in, For carbon emissions generated from net purchases of electricity and heat, To calculate net electricity purchases within the specified time frame and boundaries, To calculate the net heat purchased within the time frame and boundaries, As a carbon emission factor for electricity, Carbon emission factor for heat; Step 5: Sum the carbon emissions from fuel combustion, the carbon emissions from the use of energy as raw materials, the carbon emissions from industrial production processes, and the carbon emissions from net purchased electricity and heat within the accounting time period to obtain the sum of direct and indirect carbon emissions, i.e., the total carbon emissions.
