Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art. Therefore, the invention provides a method and a system for selecting a cargo fire extinguishing mode and a storage medium, which can improve the working efficiency and the working accuracy.
The first aspect of the embodiment of the invention provides a method for selecting a cargo fire extinguishing mode, which comprises the following steps:
acquiring first characteristic information of all goods in a preset area and second characteristic information of all fire extinguishing modes;
classifying the second characteristic information of all the fire extinguishing modes to obtain the sub-characteristics of various fire extinguishing modes;
establishing an association relation between the goods and the fire extinguishing modes according to the first characteristic information and the sub characteristics of various fire extinguishing modes;
generating a 01 rule table of the goods and the fire extinguishing modes according to the association relation;
acquiring third characteristic information of the target cargo;
analyzing whether the third characteristic information of the target cargo contains the sub-characteristics, if so, the analysis result is 1; otherwise, the analysis result is 0;
and determining the fire extinguishing mode of the target cargo according to the analysis result.
The selection method for the cargo fire extinguishing mode has the following beneficial effects:
according to the embodiment, the first characteristic information of all goods in a preset area and the second characteristic information of all fire extinguishing modes are obtained firstly, the second characteristic information of all fire extinguishing modes is classified to obtain the sub-characteristics of various fire extinguishing modes, then the incidence relation between the goods and the fire extinguishing modes is established according to the first characteristic information and the sub-characteristics of various fire extinguishing modes, a rule table of the goods and the fire extinguishing modes is generated, then the third characteristic information of the target goods is obtained, whether the third characteristic information of the target goods contains the sub-characteristics or not is analyzed, and if the third characteristic information contains the sub-characteristics, the analysis result is 1; otherwise, the analysis result is 0; and finally, determining the fire extinguishing mode of the target cargo according to the analysis result, so that the proper fire extinguishing mode corresponding to the cargo can be quickly determined without analyzing the differences of different cargos in the fire extinguishing mode in a manual mode, and the working efficiency and the working accuracy are improved.
Optionally, the first characteristic information includes composition information of the goods in the preset region; the second characteristic information comprises fire fighting medium information used by the fire extinguishing mode; the third characteristic information includes composition information of the target cargo.
Optionally, the first characteristic information and the third characteristic information further include a fire extinguishing medium, a use mode and a wearing mode of a usable fire extinguishing mode.
Optionally, before the step of establishing the association relationship between the cargo and the fire extinguishing mode according to the first characteristic information and the sub-characteristics of various fire extinguishing modes, the method further comprises the following steps:
standardizing the information of the fire-fighting media used by all the fire-fighting modes to obtain standardized data;
sorting the standardized data in a first preset table;
and performing transposition processing on the sorted standardized data in a second preset table.
Optionally, the establishing of the association relationship between the cargo and the fire extinguishing mode according to the first characteristic information and the sub-characteristics of various fire extinguishing modes includes:
extracting keywords of the first characteristic information;
judging whether the keywords of the first characteristic information belong to preset keywords corresponding to the second characteristic information, if so, marking the incidence relation between the first characteristic information and the second characteristic information as a first marking mode; otherwise, the association relationship between the first characteristic information and the second characteristic information is labeled as a second labeling mode.
Optionally, the determining the fire extinguishing mode of the target cargo according to the analysis result includes:
extracting keywords of the third feature information;
and determining that all the keywords of the third characteristic information are in a first marking mode in the rule table, and determining that the current fire extinguishing mode of the rule table is the fire extinguishing mode of the target cargo.
Optionally, the first marking manner and the second marking manner are both digital marking manners.
Optionally, the rule table is an Excel table.
A second aspect of an embodiment of the present invention provides a system for selecting a cargo fire extinguishing mode, including:
the first acquisition module is used for acquiring first characteristic information of all goods in a preset area and second characteristic information of all fire extinguishing modes;
the classification module is used for classifying the second characteristic information of all the fire extinguishing modes to obtain the sub-characteristics of various fire extinguishing modes;
the relation establishing module is used for establishing the incidence relation between the goods and the fire extinguishing modes according to the first characteristic information and the sub characteristics of various fire extinguishing modes;
the generating module is used for generating a 01 rule table of the goods and the fire extinguishing modes according to the association relation;
the second acquisition module is used for acquiring third characteristic information of the target cargo;
the analysis module is used for analyzing whether the third characteristic information of the target cargo contains the sub-characteristics, and if so, the analysis result is 1; otherwise, the analysis result is 0;
and the determining module is used for determining the fire extinguishing mode of the target cargo according to the analysis result.
A third aspect of an embodiment of the present invention provides a system for selecting a cargo fire extinguishing mode, including:
at least one memory for storing a program;
at least one processor, configured to load the program to perform the method for selecting a cargo fire extinguishing mode provided in the embodiment of the first aspect.
A fourth aspect of embodiments of the present invention provides a computer-readable storage medium, in which a processor-executable program is stored, which, when being executed by a processor, is configured to perform the method for selecting a cargo fire extinguishing mode provided by the embodiments of the first aspect.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
In the description of the present invention, the meaning of a plurality is one or more, the meaning of a plurality is two or more, and the above, below, exceeding, etc. are understood as excluding the present numbers, and the above, below, within, etc. are understood as including the present numbers. If the first and second are described for the purpose of distinguishing technical features, they are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of the technical features indicated.
In the description of the present invention, unless otherwise explicitly defined, terms such as set, etc. should be broadly construed, and those skilled in the art can reasonably determine the specific meanings of the above terms in the present invention in combination with the detailed contents of the technical solutions.
In the description of the present invention, reference to the description of the terms "one embodiment," "some embodiments," "an illustrative embodiment," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Referring to fig. 1, an embodiment of the present invention provides a method for selecting a cargo fire extinguishing mode, and the embodiment may be applied to a server, a background processor of an application platform, or a controller of a terminal device.
In the embodiment process, the embodiment includes the following steps:
and S11, acquiring first characteristic information of all goods in the preset area and second characteristic information of all fire extinguishing modes.
In the present embodiment, the preset area may be a preset port area, a preset warehouse, a preset cargo ship, or the like. The first characteristic information includes composition information of the cargo in the preset area, such as flammable gas, oil, flammable and explosive solid contained in the cargo. The second characteristic information comprises fire fighting medium information used by fire fighting modes, such as water, dry powder, foam and the like used for fire fighting. All the goods in this embodiment refer to all the goods in the current time in the preset area, or to a designated part of the goods in the preset area.
And S12, classifying the second characteristic information of all the fire extinguishing modes to obtain the sub characteristics of various fire extinguishing modes.
In the embodiment of the application, in order to facilitate the subsequent selection of a proper fire extinguishing mode for the goods, after the components of the fire extinguishing mode are obtained, classification processing, such as standardization, sorting and transposition, is performed on the fire extinguishing medium information in the fire extinguishing mode. For example, when a fire extinguishing mode is described in the document, the description of the fire extinguishing mode in the document adopts a stack of characters which are piled up and continuous periods, single periods, commas and the like appear in some places, and for the case of the single fire extinguishing mode, a user can better check the fire extinguishing medium used by the fire extinguishing mode. However, if a plurality of fire extinguishing means are included in one document, it is easy for the user to confuse the fire extinguishing medium used in the plurality of means, thereby not utilizing the user's selection of the plurality of fire extinguishing means. Based on the method, a plurality of fire extinguishing modes in one document are standardized, namely a pause sign, a comma and a period sign in the document are all replaced by line feed symbols, so that the function that different information is positioned in different lines is realized. And then classifying, summarizing and counting the standardized data, and removing the weight to obtain the frequency of occurrence of each information word in the fire extinguishing mode. And finally, sorting the data after the duplication removal according to a preset mode, such as horizontal sorting, vertical sorting and the like.
And S13, establishing the association relationship between the goods and the fire extinguishing modes according to the first characteristic information and the sub characteristics of various fire extinguishing modes.
In this embodiment, by extracting the keyword of the first feature information, it is then determined whether the keyword of the first feature information belongs to a preset keyword corresponding to the sub-features of various fire extinguishing manners, and if so, the association relationship between the first feature information and the sub-features corresponding to the fire extinguishing manners is labeled as a first labeling manner; otherwise, the incidence relation between the first characteristic information and the sub-characteristics corresponding to the fire extinguishing modes is marked as a second marking mode. The first marking mode and the second marking mode can adopt a digital marking mode. For example, the preset keyword in the fire extinguishing mode a is flammable liquid oil, which indicates that the flammable liquid oil can be effectively extinguished, and the keyword of the first characteristic information of the cargo B is petroleum. And judging that the keyword of the first characteristic information belongs to the preset keyword corresponding to the second characteristic information, and marking the association relationship between the fire extinguishing mode A and the goods B as a first marking mode, for example, as 1. For another example, the preset keyword in the fire extinguishing mode C is paper, which indicates that the paper can be effectively extinguished, for example, the paper on fire is extinguished by water, and the keyword of the first characteristic information of the goods D is oil. And judging that the keyword of the first characteristic information does not belong to the preset keyword corresponding to the second characteristic information, and marking the association relation between the fire extinguishing mode C and the goods D as a first marking mode, for example, marking the association relation as 0, namely, indicating that the fire extinguishing mode C is not suitable for carrying out fire extinguishing operation on the goods D.
In this embodiment, when one cargo includes a plurality of keywords and one fire extinguishing mode includes a plurality of fire extinguishing media, each keyword and each fire extinguishing medium correspond to the label information.
And S14, generating a 01 rule table of goods and fire extinguishing modes according to the association relation. The rule table may be an Excel table.
In this embodiment, after the labeling between the fire extinguishing modes and the goods is completed, the association relationship between all the goods and the fire extinguishing modes is generated in a specified rule table. All the labeling information between each cargo and each fire fighting mode may be included in the rule table, as shown in detail in fig. 2. As can be seen from fig. 2, each cargo has label information between each fire extinguishing mode, and when the rule table is displayed on the display device, the user can quickly select the appropriate fire extinguishing mode for the target cargo.
As shown in fig. 3, the process of labeling the fire extinguishing mode includes:
firstly, rule items are established for goods and fire extinguishing modes, namely, the relation between the fire fighting method and key words in a corresponding word bank of the goods is established, such as a 01 table. Judging whether the selected substance uses the fire-fighting medium, if not, indicating that the rule does not exist, and outputting the marking information of 0; if yes, the rule exists, and the result of the label is judged to be 1. When the fire fighting rules are under the same rule, if the judgment results of all the goods in the table 01 are 1, the fact that the fire fighting usage rules correspond to the goods is not dangerous is shown, otherwise, the fact that the fire fighting usage rules correspond to the goods is dangerous is shown.
And S15, acquiring third characteristic information of the target cargo. Wherein the target goods are goods which currently need fire extinguishing operation. The third characteristic information includes information on a composition of the target cargo, such as edible oil.
S16, analyzing whether the third characteristic information of the target cargo contains the sub-characteristics, and if so, determining that the analysis result is 1; otherwise, the analysis result is 0.
And S17, determining the fire extinguishing mode of the target cargo according to the analysis result.
In this embodiment, the keywords of the third feature information are extracted first, and when it is determined that all the keywords of the third feature information are the first mark manner in the rule table, it is determined that the current fire extinguishing manner of the rule table is the fire extinguishing manner of the target cargo. And if the rule table comprises a plurality of fire extinguishing modes, determining that the fire extinguishing modes corresponding to the first marking mode in the rule table are the fire extinguishing modes of the target goods.
In some embodiments, as shown in fig. 4, the fire-fighting medium, the contraindications and the control rule entries, i.e. the rule table, can be further divided into positive and negative rules, when a negative rule containing negative keywords such as forbidden, unable and contraindication exists in a certain fire-fighting medium site, other substances in the corresponding site cannot use the fire-fighting medium to extinguish a fire; when a certain fire-fighting medium site does not have negative rules containing negative keywords such as prohibition, incapability, contraindication and the like, other substances corresponding to the site can be used for extinguishing fire by using the fire-fighting medium. The fire extinguishing medium water relates to positive rules which are divided into: water, atomized water, direct water spraying and the like are adopted; the negative class rules are divided into: the water is used for fighting fire, so that explosion can be caused, boiling splashing can be caused by using water, water and foam are forbidden to extinguish fire, water is forbidden, direct injection of water columns is forbidden, water is prevented from entering a container, water is prevented from being directly injected to a melt, and objects are prevented from splashing when meeting water; neutral rule: water is ineffective in extinguishing fires. Avoiding the use of words having intersections with negative words, such as "water", "water use", leads to negative rule conflicts, for example, water use for fighting may cause explosions, water use may cause boiling, water and foam use is prohibited for fire fighting, water use is prohibited, direct water column firing is prohibited, leading to unclear fire rules computer identification. For substances with various properties, the substances are classified according to various categories, for example, media such as carbon dioxide, sand, foam and the like are classified into three rules, positive, negative and neutral rules, and risks when both the positive and negative rules appear are identified.
In some embodiments, the characteristic information of the cargo further includes a fire-fighting medium, a use mode and a wearing mode, i.e., the first characteristic information and the third characteristic information each include a fire-fighting medium, a use mode and a wearing mode. Substances such as carbon dioxide, water or sand are used as fire-fighting media; the water cooling and water dilution mode is used as a fire-fighting use method; the mode of wearing gloves and goggles is adopted as the mode of wearing the fire-fighting clothes. All the above modes can distinguish the differences by a 01 rule table. The characteristic information can be represented by specific identification to indicate the use characteristics of the fire fighting mode, for example, the use of the expressions of 'fire fighting mode XX can be used', 'fire fighting mode XX is forbidden' and 'the use of the mode XX is invalid but harmless' can be used to indicate the use characteristics of the goods for a certain fire fighting mode. Such as "use water", "no use water" and "no use water effect", however, these labels are not logically contradictory during use.
In some embodiments, the fire-fighting medium, manner of use, and wear are combined with positive, negative, and harmless adverbs to analyze whether the fire-fighting manners of each cargo intersect, or cannot be used simultaneously, can only be used individually, etc., to prevent a disaster from occurring. For example, there are fire extinguishments with dry powder and water; some dry powder is used but water is forbidden to extinguish fire, only the dry powder can be used, and water cannot be used; some extinguishers use dry powder, and if the water is not effective, the extinguishers can use the dry powder and the water to extinguish the fire.
Through the selection of the method for extinguishing the fire, the proper fire extinguishing mode corresponding to the goods can be quickly determined without analyzing the differences of different goods on the fire extinguishing mode in a manual mode, so that the working efficiency and the working accuracy are improved.
The embodiment of the invention provides a selection system of goods fire extinguishing modes, which comprises:
the first acquisition module is used for acquiring first characteristic information of all goods in a preset area and second characteristic information of all fire extinguishing modes;
the classification module is used for classifying the second characteristic information of all the fire extinguishing modes to obtain the sub-characteristics of various fire extinguishing modes;
the relation establishing module is used for establishing the incidence relation between the goods and the fire extinguishing modes according to the first characteristic information and the sub characteristics of various fire extinguishing modes;
the generating module is used for generating a 01 rule table of the goods and the fire extinguishing modes according to the association relation;
the second acquisition module is used for acquiring third characteristic information of the target cargo;
the analysis module is used for analyzing whether the third characteristic information of the target cargo contains the sub-characteristics, and if so, the analysis result is 1; otherwise, the analysis result is 0;
and the determining module is used for determining the fire extinguishing mode of the target cargo according to the analysis result.
The content of the embodiment of the method of the invention is all applicable to the embodiment of the system, the function of the embodiment of the system is the same as the embodiment of the method, and the beneficial effect achieved by the embodiment of the system is the same as the beneficial effect achieved by the method.
The embodiment of the invention provides a selection system of goods fire extinguishing modes, which comprises:
at least one memory for storing a program;
at least one processor for loading a program to perform the method for selecting a cargo fire suppression mode as shown in fig. 1.
The content of the embodiment of the method of the invention is all applicable to the embodiment of the system, the function of the embodiment of the system is the same as the embodiment of the method, and the beneficial effect achieved by the embodiment of the system is the same as the beneficial effect achieved by the method.
An embodiment of the present invention provides a computer-readable storage medium in which a processor-executable program is stored, which, when being executed by a processor, is for performing the method for selecting a cargo fire extinguishing mode shown in fig. 1.
The embodiment of the invention also discloses a computer program product or a computer program, which comprises computer instructions, and the computer instructions are stored in a computer readable storage medium. The computer instructions may be read by a processor of a computer device from a computer-readable storage medium, and executed by the processor to cause the computer device to perform the method illustrated in fig. 1.
The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge of those skilled in the art without departing from the gist of the present invention. Furthermore, the embodiments of the present invention and the features of the embodiments may be combined with each other without conflict.