Management device
By recording and managing the range of changes in material transaction data on the blockchain, the existing technology solves the problem of difficulty in managing the increase or decrease in material volume during transactions, enabling tracking of reasonable changes and detection of illegal transactions, ensuring clear responsibilities .
Patent Information
- Application Number
- CN202410350041.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-03-30
- Filing Date
- 2024-03-26
- Publication Date
- 2024-10-01
AI Technical Summary
Existing database and blockchain traceability technologies are difficult to effectively manage the increase or decrease in material volume during transactions, especially when the decrease in material is misjudged as illegal reselling or increase.
A management device is designed that uses the blockchain to record the material transaction data of the product, and allows the data registration of the variation range of the material weight during the transaction through the variation range registration unit, including a transaction data registration unit for inputting and registering the material weight. The judgment part is used to compare the actual measured value with the variation range, and the output part issues a warning when it exceeds the range.
It has realized the tracking and management of material weight changes, ensuring that changes within a reasonable range are recorded, and issuing warnings when exceeding the range, avoiding misjudgment of illegal transactions, clarifying responsibilities, and updating the range of changes in detail to adapt to the actual situation.
Smart Images

Figure CN118733580A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a traceability technology using a blockchain. Background Art
[0002] Traceability technology using databases and blockchains is very convenient for accurately tracking material manufacturing, use, and recycling processes, and many technical proposals have been made (for example, Patent Document 1).
[0003] In particular, in the traceability technology using blockchain, since blockchain is a structure formed based on virtual currency, there will be no illegal increase or decrease of items in the middle. This is because if items are increased in the middle, the currency will increase in the middle of the transaction, and if items are decreased in the middle, the currency will disappear from the world, so such data exchange is particularly impossible.
[0004] If this basic concept is utilized to construct traceability technology, it will be easy to construct highly transparent traceability technology that does not contain illegal raw materials or illegal resale.
[0005] Patent Document 1: International Publication No. 2021 / 002226
[0006] On the other hand, even if there is no illegal intention, in reality, raw materials may be depleted in the middle of the process. For example, there may be cases where part of gasoline or the like evaporates, seasonings or the like spills in the middle of the process, or parts of materials adhere to containers and remain. Similarly, even if there is no illegal intention, in reality, raw materials may be increased in the middle of the process. For example, there may be cases where iron reacts with oxygen in the air to become iron oxide, or dehumidifiers or the like absorb moisture in the air.
[0007] Figure 1 (a) is a diagram showing the situation in which an aluminum ingot is melted in a melting furnace and liquid molten aluminum is taken out from the melting furnace. When the aluminum ingot is melted, part of it becomes aluminum chloride and vaporizes, and part of it reacts with impurities to become substances that cannot be used for production and are removed. These are important factors for reducing the output of molten aluminum. On the contrary, aluminum is oxidized to form aluminum oxide, which is an important factor for increasing output. Due to the above reasons, Figure 1 As shown in (b), the amount of molten aluminum outputted is reduced relative to the amount of aluminum ingots inputted, even if there is no illegality.
[0008] If such materials are managed using conventional traceability technologies such as databases and blockchains, there are problems such as treating them as illegal reselling when the materials decrease, and treating them as illegal increase when the materials increase. Summary of the invention
[0009] The present invention has been made in view of the above background, and an object of the present invention is to provide a traceability technology that can appropriately manage even when the quantity of an item increases or decreases during a transaction.
[0010] The management device of the present invention comprises: a blockchain that records transaction data of product materials; a variation range registration unit that registers data on the weight variation range of materials allowed during a transaction in the above-mentioned blockchain; and a transaction data registration unit that accepts input of transaction data including data on the weight of materials and registers the above-mentioned transaction data in the above-mentioned blockchain.
[0011] According to the present invention, it is possible to allow a weight variation of a material, and when there is a variation beyond a registered variation range, it is possible to track where the variation has occurred. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 (a) is a diagram showing a state in which an aluminum ingot is melted in a melting furnace and liquid molten aluminum is taken out from the melting furnace. Figure 1 (b) is a diagram showing a comparison between the amount of input aluminum ingots and the amount of output molten aluminum.
[0013] Figure 2 It is a diagram showing the structure of a management system according to an embodiment.
[0014] Figure 3 This is an example of data recorded in the blockchain by the management device of the implementation scheme.
[0015] Figure 4 This diagram shows the operation of registering transaction data in the blockchain when materials are purchased.
[0016] Figure 5 This diagram shows the operation of registering transaction data in the blockchain when materials are shipped / processed.
[0017] Figure 6 This is a diagram showing the update operation of the variable range.
[0018] Figure 7 This is a diagram showing an example of updating the variation range. DETAILED DESCRIPTION
[0019] Hereinafter, the management system and the management device of the present embodiment will be described with reference to the drawings. Note that the following description is merely an example of a preferred embodiment and does not limit the invention described in the claims.
[0020] Figure 21 is a diagram showing the structure of a management system 1 according to an embodiment. The management system 1 includes a management device 10 that manages a blockchain 11 of transaction data, and a user device 20 connected to the management device 10 via a network. The user device 20 is, for example, disposed at a location such as a factory of a trader, and has a function of receiving input of data related to materials purchased by the trader and data related to materials used. The transaction data input to the user device 20 is sent to the management device 10 and managed in the management device 10.
[0021] The management device 10 has a blockchain 11 for recording transaction data, a transaction data registration unit 12, a change range registration unit 13, a change range update unit 14, a determination unit 15, an output unit 16, and a communication unit 17. The management device 10 uses the communication unit 17 to send and receive data with the user device 20. The blockchain 11 is a type of database technology for recording information. It manages data in units called blocks and stores data by connecting blocks like a chain. The blockchain 11 can also manage transaction data in a distributed manner through multiple nodes.
[0022] Figure 3 This is an example of data recorded in the blockchain 11 by the management device 10 of this embodiment. A serial number is attached to each block. Figure 3 In the block 11, blocks with serial numbers n to n+5 are recorded. The blockchain 11 includes blocks recording transaction data and blocks recording change range data.
[0023] The transaction data block contains data such as "Company Name", "Staff", "Date", "Material Weight", "Ratio", and "Product Weight". The variable range data block contains data such as "Company Name", "Staff", "Date", and "Ratio". Figure 3 In addition to the data shown, the hash value of the previous block and the data of the random number (nonce) are also recorded. In addition, other general traceability data such as transaction data, supply chain data, manufacturing data, and manufacturing methods can also be recorded.
[0024] The transaction data registration unit 12 has a function of receiving transaction data sent from the user device 20 and registering it in the blockchain 11. The variation range registration unit 13 has a function of registering data on the variation range allowed for the weight of the material. The variation range update unit 14 has a function of calculating the allowable variation range based on the actual performance of the weight variation of the material and updating it.
[0025] The determination unit 15 has a function of comparing the actual measured value of the weight of the material with the variation range to determine whether the actual measured value of the weight of the material is within the variation range. The data of the actual measured value can be input from an input unit (not shown) or received from the user device 20. The output unit 16 has a function of outputting a warning to the effect that the actual measured value exceeds the allowable variation range when the actual measured value is not within the variation range.
[0026] Figure 4 This is a diagram showing the operation of registering transaction data in the blockchain 11 when the material is purchased. Figure 1 The example of the aluminum ingot shown is used for explanation. The management device 10 first receives the input of the initial material increase / decrease rate [β, α] (S10). The material increase / decrease rate is data indicating the allowable range of variation for the increase / decrease of the material when the molten aluminum is made into the melted aluminum ingot, α is the upper limit, and β is the lower limit. For example, if the output variation is allowed within the range of 98% to 103% relative to the input, α = 1.03, β = 0.98. The input here is the initial value of the material increase / decrease rate.
[0027] The transaction data registration unit 12 of the management device 10 obtains the current time Tc (S11) and registers the initial material inventory information W = [0, 0] (S12). Generally speaking, the inventory information of the material appears in a scalar form as W = 0, but it is displayed in a vector form in order to consider the upper and lower limits of the material. The registration of the initial material inventory information W refers to the initialization of the variable W by setting the upper and lower limits of the variable W to 0. The current time Tc is registered in the blockchain 11 as a timestamp.
[0028] When the material is purchased, the trader measures the weight Wi of the material (S14). Here, i is a superscript indicating input. The transaction data registration unit 12 obtains the current time Tc (S15). Next, the transaction data registration unit 12 calculates the fluctuation range [βWi, αWi] of the weight of the purchased material (aluminum) (S16). That is, the fluctuation range of the weight of aluminum when the aluminum ingot is melted is calculated.
[0029] The transaction data registration unit 12 adds the weight with the calculated fluctuation range to the weight of the material in stock, and updates the information of the material inventory (S17). Since the weight with the fluctuation range is added to the material inventory, the weight of the material inventory also has a fluctuation range. Specifically, the weight of the material inventory is a value with a fluctuation range of [ΣβWi, ΣαWi]. The transaction data registration unit 12 of the management device 10 registers the current time Tc, the weight Wi of the purchased material, and the updated material inventory information W in the blockchain 11 (S18). At this time, the transaction data registration unit 12 also registers the company name of the company that purchased the material and the name of the staff member who performed the operation.
[0030] Figure 5 It is a diagram showing the action of registering transaction data in the blockchain 11 when the material is shipped / processed. When the material is shipped / processed, the trader measures the weight Wo of the material used (molten aluminum in this case) (S20). Here, o is a superscript indicating output. The transaction data registration unit 12 of the management device 10 obtains the current time Tc (S21) and updates the material inventory information W (S22). Specifically, the weight Wo of the material used is subtracted from the weight W of the material inventory to obtain the new material inventory information W. The transaction data registration unit 12 registers the current time Tc, the weight Wo of the material used, and the updated material inventory information W in the blockchain 11 (S23). At this time, the transaction data registration unit 12 also registers the company name of the company that uses the material and the name of the staff member who performed the operation.
[0031] By registering the data of the permissible range of the weight of the material in the blockchain together with the transaction data including the data of the weight of the material, it is possible to allow the weight of the material within the range of variation to change, and detect the change beyond the range of variation. By observing the blocks registered in the blockchain 11, it is possible to track at which stage there is a large change, and to discover illegal situations such as the reselling and increase of materials. In addition, since the company name and staff are registered in each block, it is possible to clarify the responsibility and to hold a hearing with the staff.
[0032] Figure 6 1 is a diagram showing the updating operation of the variable range. The variable range updating unit 14 of the management device 10 receives the setting of the learning coefficient L (S30). When the update period P (for example, three months) has passed, the variable range updating unit 14 updates the variable range as described below (S31). Figure 6 In the example of updating the variation range according to the passage of the update period P, the timing of updating the variation range may be not only periodically but also manually started when the error with the actual measured value is large.
[0033] The change range updating unit 14 reads the current material increase / decrease rate [β, α] (S32). Next, the change range updating unit 14 reads the update time Ts of the material increase / decrease rate (S33) and obtains the current time Tc (S34). The update time Ts may be the time when the current material increase / decrease rate is updated. The change range updating unit obtains the purchase information Wi (Wi 1 , Wi 2 ,…,Wi N ), using information Wo (Wo 1 , I 2 ,…,Wo M)(S35), and obtain the actual measured value Wr,c of the current material inventory and the actual measured value Wr,b of the material inventory when the variation range was set last time (S36).
[0034] The variation range updating unit 14 calculates the variation ratio γ (S37) based on the theoretical value of the material inventory value obtained from the purchase information Wi and the utilization information Wo, the current measured value Wr,c, and the last measured value Wr,b. The relationship between the current measured value Wr,c and the last measured value Wr,b is expressed as follows using the variation ratio γ.
[0035] Wr,c=Wr,b+γ(Wi 1 +Wi 2 +…+Wi N )-(Wo 1 +Wo 2 +…+Wo M )
[0036] Therefore, the change ratio γ is:
[0037] γ=(Wr,c-Wr,b+Wo 1 +Wo 2 +…+Wo M ) / (Wi 1 +Wi 2 +…+Wi N )
[0038] The variation range updating unit 14 uses the value of the variation ratio γ to obtain new [β, α] using the following equation (S38).
[0039] [β,α]←(1-L)[β,α]+Lγ[1,1]
[0040] According to this formula, the larger the learning coefficient, the greater the influence of the change ratio γ from the last measured value to this time, and the smaller the learning coefficient, the greater the influence of the original change range [β, α]. For example, when L = 1, it means that the latest change ratio is always used, and when L = 0, it means that the change ratio set initially is continued to be used. Generally speaking, in order to avoid sudden changes, L uses a relatively small value between 0 and 1. In addition, L can also be dynamically changed between 0 and 1.
[0041] The range update unit 14 of the management device 10 registers the current time Tc, the measured value Wr of the material, and the new range [β, α] in the blockchain 11 (S39). At this time, the transaction data registration unit 12 also registers the company name of the company that used the material and the name of the staff member who performed the operation.
[0042] By updating the fluctuation range in this way, the fluctuation range can be refined based on actual data.
[0043] Figure 7 The following example shows an example where the learning coefficient L = 0.2 and the ratio of the fluctuation range is updated at a constant period (every five periods). At time T0, the measured value of the material inventory is 0, and the fluctuation range is [0.90, 1.10]. During the period from time T1 to T4, Figure 7 The input and output as shown are updated at time T5. The variation ratio γ is calculated as follows based on the input and output at time T1 to T4 and the measured values at time T0 and time T5.
[0044] γ=(150-0+650) / 800=1
[0045] Therefore, the new range of variation is as follows.
[0046] [β,α]=0.8×[0.90,1.10]+0.2×1×[1,1]=[0.92,1.08]
[0047] Regarding the updating of the variation range at time T10 , the variation range γ is obtained as follows based on the input and output at time T6 to T9 and the measured values at time T5 and time T10 .
[0048] γ=(100-150+2200) / 2100=1.02381
[0049] Therefore, the new change ratio is as follows.
[0050] [β,α]=0.8×[0.92,1.08]+0.2×1.02381×[1,1]=[0.940762,1.068762]
[0051] In this way, by periodically updating the variation range based on actual data, the variation range can be made a more appropriate value.
[0052] The configuration of the management device of the present embodiment has been described above, but an example of the hardware of the above-mentioned device is a computer having a CPU, RAM, ROM, hard disk, display, keyboard, mouse, communication interface, etc. The above-mentioned device is realized by pre-storing a program having modules for realizing the above-mentioned functions in RAM or ROM and executing the program by the CPU. Such a program is also included in the scope of the present invention.
Claims
1. A management device, wherein: have: Blockchain, which records the transaction data of the product’s materials; A variation range registration unit registers data of a variation range of the weight of the material permitted during the transaction in the blockchain; as well as The transaction data registration unit receives input of transaction data including data on the weight of a material and registers the transaction data in the blockchain.
2. The management device according to claim 1, wherein: A variation range updating unit is provided, and the variation range updating unit updates the data of the variation range based on the actual measured value of the weight of the material and the data of the weight of the material recorded in the blockchain.
3. The management device according to claim 1 or 2, wherein: have: a determination unit that determines whether the actual measured value of the weight of the material during the transaction is within the variation range registered in the blockchain; and The output unit outputs a warning when determining that the value does not fall within the variation range.
4. A management system, wherein: have: The management device according to claim 1 or 2; and The user device receives the input of transaction data and sends the received transaction data to the management device. The transaction data registration unit of the management device registers the transaction data received from the user device.
5. A management method is a management method for recording and managing the transaction data of product materials in a blockchain, wherein: have: The management device registers data of a weight variation range of the material allowed during the transaction in the blockchain; as well as The management device receives input of transaction data including data on the weight of a material, and registers the transaction data in the blockchain.
6. A recording medium recording a program, wherein: The above program is a program for recording and managing transaction data of product materials in a blockchain, and the above program causes a computer to execute: The step of registering data on a weight variation range of materials permitted during a transaction in the blockchain; as well as A step of accepting input of transaction data including data on the weight of a material, and registering the transaction data in the blockchain.
