Smart farm knowledge warehouse establishment method and system
By spatially, temporally, and qualitatively encoding farm data, a multimodal agricultural knowledge representation base is generated, which solves the problem of insufficient data fusion in the farm data management system and enables precise data positioning and decision optimization.
Patent Information
- Application Number
- CN202510803180.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-16
- Publication Date
- 2025-11-07
AI Technical Summary
Existing farm data management systems lack a unified data fusion framework, resulting in low data value density and difficulty in supporting complex analysis scenarios.
By acquiring basic farm data and an agricultural ontology, and performing spatial, temporal, and quality encoding after preprocessing, a multimodal agricultural knowledge representation base is generated, including a feature layer, a semantic layer, and a rule layer. A semantically enhanced association rule base is constructed to achieve cross-modal data association and reasoning.
It enables precise data location and full-process decision traceability, supports complete link backtracking from data collection to final decision, optimizes management strategies, and can automatically adapt to climate change and variety improvement, thereby improving decision accuracy.
Smart Images

Figure CN120910104A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of knowledge repository establishment, and particularly relates to a smart farm knowledge repository establishment method and a smart farm knowledge repository establishment system. BACKGROUND
[0002] The existing farm data management system mostly adopts a vertical architecture, and multiple data sources such as sensor data, meteorological records and market information exist in the form of independent databases, lacking a unified data fusion framework. The data preprocessing link only realizes simple cleaning and format conversion, and fails to establish a spatiotemporal correlation mapping mechanism for cross-modal data, resulting in low data value density and difficulty in supporting complex analysis scenarios.
[0003] Therefore, it is desirable to have a technical solution to solve or at least alleviate the above deficiencies of the prior art. SUMMARY
[0004] The present application aims to provide a smart farm knowledge repository establishment method to at least solve one of the above technical problems.
[0005] The present application provides the following solutions:
[0006] According to one aspect of the present application, a smart farm knowledge repository establishment method is provided, which comprises:
[0007] obtaining farm basic data and an agricultural domain ontology library;
[0008] preprocessing the farm basic data to obtain preprocessed data;
[0009] spatially, temporally and qualitatively encoding the preprocessed data to obtain data with traceability information;
[0010] generating a semantically enhanced association rule library according to the preprocessed data, the data with traceability information and the agricultural domain ontology library;
[0011] generating a multi-modal agricultural knowledge representation library according to the farm basic data, the agricultural domain ontology library and the semantically enhanced association rule library, the multi-modal agricultural knowledge representation library comprising a feature layer, a semantic layer and a rule layer, wherein the feature layer stores feature vectors of multi-modal data; the semantic layer semantically labels elements in the feature layer based on the agricultural domain ontology library; and the rule layer embeds the semantically enhanced association rule library to provide data correlation basis for knowledge reasoning.
[0012] Optionally, the farm basic data comprises structured farm data and unstructured farm data, wherein the structured farm data comprises soil temperature and humidity information, EC value information, nitrogen, phosphorus and potassium content information, rainfall information, wind speed information, temperature information, light intensity information, crop chlorophyll content information, plant height information, biomass information, soil vibration characteristic information; and the unstructured farm data comprises unmanned aerial vehicle images, farmer voice records, and text reports.
[0013] Optionally, the preprocessing of the farm basic data to obtain preprocessed data comprises:
[0014] performing a missing value supplement operation on the structured data, performing denoising, enhancement processing on image data in the unstructured data, converting farmer voice records in the unstructured data into text information, performing denoising and word segmentation processing on the text information, to obtain cleaned structured data and cleaned unstructured data;
[0015] performing time alignment and space alignment on the cleaned structured data and the cleaned unstructured data.
[0016] Optionally, the space encoding, time encoding and quality encoding of the preprocessed data to obtain data with traceability information comprises:
[0017] performing space encoding on geographical position data of the farm in the preprocessed data to obtain a space encoding index table;
[0018] performing time encoding on time series data in the preprocessed data to obtain a final time encoding vector;
[0019] performing quality encoding on data quality related data in the preprocessed data to obtain quality encoding;
[0020] the space encoding index table, the final time encoding vector and the quality encoding constitute the data with traceability information.
[0021] Optionally, the preprocessed data comprises structured preprocessed data and unstructured preprocessed data, the structured preprocessed data comprises soil temperature and humidity sensor data and weather station data; and the unstructured preprocessed data comprises unmanned aerial vehicle image data, text report data and farmer voice record data.
[0022] the space encoding of the geographical position data of the farm in the preprocessed data comprises:
[0023] performing analysis on the structured preprocessed data to obtain an original coordinate database;
[0024] Coordinate data extraction is performed on the unstructured pretreated data to obtain a standardized coordinate dataset;
[0025] Coordinate system conversion is performed on the original coordinate database and the standardized coordinate dataset to obtain a geographic dataset in a unified coordinate system;
[0026] A spatial density weight field is obtained from the geographic dataset, and the spatial density weight field is used to reflect the data density of each grid;
[0027] A semantic importance weight is generated from the agricultural domain ontology library and the pretreated data, and the semantic importance weight is used to reflect the agricultural knowledge value of the text in the grid;
[0028] A synergistic weight field is obtained from the spatial density weight field and the semantic importance weight;
[0029] A non-uniform grid set is generated from the synergistic weight field;
[0030] A spatial coding index table is established from the non-uniform grid set.
[0031] Optionally, the time series data includes various farm sensor time series data and farm operation record text data;
[0032] The time coding of the time series data in the pretreated data includes:
[0033] Each group of time series data is processed as follows:
[0034] Physical time primitive information is obtained from the time series data;
[0035] Time primitive information is obtained from the time series data;
[0036] A time-varying weight field is obtained;
[0037] A nonlinear time topology structure is generated from the spatial coding index table and the time series data;
[0038] Encoding is performed according to the physical time primitive information, the time primitive information, the time-varying weight field, and the nonlinear time topology structure to obtain a final time coding vector.
[0039] Optionally, the quality coding of the data quality related data in the pretreated data includes:
[0040] Scientific value feature vectors, production value feature vectors, ethical value feature vectors, and ecological value feature vectors are obtained from the data quality related data in the pretreated data;
[0041] According to the scientific value feature vector, the production value feature vector, the ethical value feature vector, the ecological value feature vector, the space coding index table and the time coding vector, a fusion value field is generated.
[0042] The fusion value field is coded, so as to obtain quality coding.
[0043] Optionally, the generating of the semantic enhanced association rule base according to the preprocessed data, the data with traceability information and the agricultural domain ontology library comprises:
[0044] Geographical data sets are extracted from the data with traceability information.
[0045] For each data point with a spatial attribute, the geographical distance between the data point and other data points is calculated.
[0046] According to the grid division information in the space coding index table, each data point is allocated to a corresponding grid; when two data points are located in the same grid or adjacent grids, it is judged that the two data points have spatial proximity.
[0047] According to the agricultural domain ontology library, a spatial constraint association rule base is generated for each data with spatial proximity.
[0048] A time sequence causal association rule base is generated according to the final time coding vector.
[0049] A quality weighted association rule base is generated according to the quality coding; wherein the spatial constraint association rule base, the time sequence causal association rule base and the quality weighted association rule base constitute the semantic enhanced association rule base.
[0050] Optionally, the generating of the multi-modal agricultural knowledge representation library according to the farm basic data, the agricultural domain ontology library and the semantic enhanced association rule base comprises:
[0051] Feature extraction is performed on the preprocessed data, so as to obtain a preprocessed feature vector.
[0052] The preprocessed feature vector is associated with the space coding index table and the final time coding vector in the data with traceability information, so as to obtain a set of traceable feature vectors, wherein each preprocessed feature vector contains its corresponding traceability information, thereby forming the feature layer.
[0053] Based on the agricultural domain ontology library, the feature vectors in the set of traceable feature vectors are semantically annotated, so as to obtain a set of traceable feature vectors with semantic annotations.
[0054] Fusing the semantic annotation in the provenance-enabled feature vector set with the semantic importance weight in the spatial coding, so as to obtain a provenance-enabled feature vector set with representation intensity;
[0055] Constructing a semantic network according to the provenance-enabled feature vector set with representation intensity;
[0056] Forming a computer understandable and executable rule base for each association rule in the semantic enhanced association rule base through a natural language processing technology;
[0057] Integrating the computer understandable and executable rule base with the semantic network, so as to obtain a semantic network after embedding rules;
[0058] For each rule in the semantic network after embedding rules, extracting data provenance information according to which the rule is generated;
[0059] Associating the extracted rule provenance information with the rule itself, and constructing a rule provenance chain;
[0060] Storing the constructed rule provenance chain in a database or a graph database, so as to form a multi-modal agricultural knowledge representation library.
[0061] The application also provides a smart farm knowledge warehouse establishment system, which comprises:
[0062] A data acquisition module, configured to acquire farm basic data and an agricultural domain ontology library;
[0063] A preprocessing module, configured to preprocess the farm basic data, so as to obtain preprocessed data;
[0064] An encoding module, configured to perform spatial coding, time coding and quality coding on the preprocessed data, so as to obtain data with provenance information;
[0065] A semantic enhancement module, configured to generate a semantic enhanced association rule base according to the preprocessed data, the data with provenance information and the agricultural domain ontology library;
[0066] A multi-modal agricultural knowledge representation library generation module, configured to generate a multi-modal agricultural knowledge representation library according to the farm basic data, the agricultural domain ontology library and the semantic enhanced association rule base, the multi-modal agricultural knowledge representation library comprising a feature layer, a semantic layer and a rule layer, wherein the feature layer stores feature vectors of multi-modal data; the semantic layer performs semantic annotation on elements in the feature layer based on the agricultural domain ontology library; and the rule layer embeds the semantic enhanced association rule base, and provides data association basis for knowledge reasoning.
[0067] The smart farm knowledge warehouse establishment method of the present application has the following advantages:
[0068] The present application generates a unique traceable identifier for each piece of data through a three-dimensional coding system of space-time-quality indicators, enabling accurate problem positioning and full-process decision tracing. This system supports complete link backtracking from data collection to final decision, for example, when crop growth is abnormal, it can quickly associate specific plots, time periods, and data rules to optimize management strategies.
[0069] The semantic-enhanced association rule library constructed by the present application combines the agricultural domain ontology library and machine learning algorithms to realize dynamic rule updating and implicit relationship mining. This mechanism can automatically adapt to scenarios such as climate change and variety improvement, for example, adjusting irrigation rules based on real-time environmental data to improve decision accuracy.
[0070] The present application adopts a three-layer architecture of feature layer-semantic layer-rule layer to realize cross-modal data correlation and reasoning. The feature layer extracts multi-modal feature vectors, the semantic layer realizes entity correlation through the agricultural domain ontology library, and the rule layer embeds dynamic association rules. BRIEF DESCRIPTION OF DRAWINGS
[0071] Figure 1 is a flowchart of the smart farm knowledge warehouse establishment method in an embodiment of the present application.
[0072] Figure 2 is a schematic diagram of a non-uniform grid set in an embodiment of the present application. DETAILED DESCRIPTION
[0073] The technical solutions of the present application will be described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative labor fall within the scope of protection of the present application.
[0074] As shown in the smart farm knowledge warehouse establishment method includes: Figure 1
[0075] Obtain farm basic data and agricultural domain ontology library;
[0076] Preprocess the farm basic data to obtain preprocessed data;
[0077] Space coding, time coding, and quality coding are performed on the preprocessed data to obtain data with traceable information;
[0078] Generate a semantic-enhanced association rule library according to the preprocessed data, data with traceable information, and the agricultural domain ontology library;
[0079] According to the farm basic data, the agricultural domain ontology library and the semantic enhanced association rule library, a multi-modal agricultural knowledge representation library is generated, the multi-modal agricultural knowledge representation library including a feature layer, a semantic layer and a rule layer, wherein the feature layer stores feature vectors of multi-modal data; the semantic layer: based on the agricultural domain ontology library, elements in the feature layer are semantically labeled; the rule layer embeds the semantic enhanced association rule library, and provides data association basis for knowledge reasoning.
[0080] In the embodiment, the farm basic data includes structured farm data and unstructured farm data, wherein the structured farm data includes soil temperature and humidity information, EC value information, nitrogen, phosphorus and potassium content information, rainfall information, wind speed information, temperature information, light intensity information, crop chlorophyll content information, plant height information, biomass information and soil vibration characteristic information; the unstructured farm data includes unmanned aerial vehicle images, farmer voice records and text reports.
[0081] In the embodiment, the preprocessing of the farm basic data is to obtain preprocessed data, including:
[0082] The missing value supplement operation is performed on the structured data, the image data in the unstructured data is denoised and enhanced, the farmer voice record in the unstructured data is converted into text information, the text information is denoised and segmented, so as to obtain cleaned structured data and cleaned unstructured data;
[0083] The cleaned structured data and the cleaned unstructured data are time-aligned and space-aligned.
[0084] For example, the soil temperature and humidity information, the rainfall information, the wind speed information, the temperature information and the light intensity information can be obtained through various sensors, in which case linear interpolation can be used to generate various missing descriptions using a BERT-based model.
[0085] The anomaly check can identify sensor noise data and the like based on an isolation forest (Isolation Forest) algorithm.
[0086] In the embodiment, dynamic time warping (DTW) can be used to align multi-source time series data.
[0087] In the embodiment, geographic weighted regression (GWR) can be used to fuse remote sensing images and ground sensor data.
[0088] In the embodiment, the spatial encoding, the time encoding and the quality encoding of the preprocessed data are to obtain data with traceability information, including:
[0089] spatially encoding geographical position data of the farm in the preprocessed data to obtain a spatial encoding index table;
[0090] temporally encoding time series data in the preprocessed data to obtain a final time encoding vector;
[0091] quality-encoding data quality related data in the preprocessed data to obtain a quality encoding;
[0092] The spatial encoding index table, the final time encoding vector, and the quality encoding constitute the data with traceability information.
[0093] In this embodiment, the preprocessed data includes structured preprocessed data and unstructured preprocessed data, the structured preprocessed data includes soil temperature and humidity sensor data and weather station data, and the unstructured preprocessed data includes unmanned aerial vehicle image data, text report data, and farmer voice recording data.
[0094] The spatially encoding the geographical position data of the farm in the preprocessed data includes:
[0095] parsing the structured preprocessed data to obtain an original coordinate database; for example, WGS84 coordinate system latitude and longitude information can be extracted from soil sensor metadata and weather station records to establish the original coordinate database.
[0096] extracting coordinate data from the unstructured preprocessed data to obtain a standardized coordinate data set; for example, for images taken by an unmanned aerial vehicle, GPSInfo tags (Tag 0x8825) in EXIF metadata can be parsed to extract latitude, longitude, and altitude coordinates; or for example, text report data can be recognized by an NLP model (BERT-Geo model) to identify address descriptions, and converted into standard coordinates by calling an OpenStreetMap geocoding service through a GeoPy library; or for voice recordings, the same geocoding process as for text reports can be performed after converting the text through ASR.
[0097] converting the original coordinate database and the standardized coordinate data set into a coordinate system to obtain a geographical data set in a unified coordinate system; specifically, the coordinate system conversion: non-WGS84 coordinate system data (such as GCJ-02 Mars coordinates) is dynamically converted using a Proj4 library to be unified into EPSG: 4326 standard.
[0098] obtaining a spatial density weight field according to the geographical data set, the spatial density weight field being used to reflect the data density of each grid;
[0099] In the embodiment, the spatial density weight field can be obtained by the following formula:
[0100]
[0101] Wherein, the ρ(X') can be obtained by the following formula:
[0102]
[0103] Wherein, n is the number of data points, h is the bandwidth (such as 500 meters), K() is the Gaussian kernel function; ω d (X) is the spatial density weight field, indicating the data density at the grid x; x is a two-dimensional spatial coordinate vector (such as latitude and longitude), indicating the center position of the grid; N (X) is the neighborhood area (such as a circular area with a radius of 500 meters) centered at x; ρ(X') is the local data density, indicating the data point density at the position x'; σ d is the spatial influence radius, controlling the local range of density calculation (such as 500 meters); Z d is the normalization constant, ensuring that maxω d (X) = 1.
[0104] According to the agricultural domain ontology library and the preprocessed data, a semantic importance weight is generated, which is used to reflect the agricultural knowledge value of the text in the grid;
[0105] In the embodiment, the semantic importance weight field can be obtained by the following formula:
[0106]
[0107] Wherein, ω s (X) is the semantic importance weight field, indicating the agricultural knowledge value of the text at the grid x; D(X) is the text set covering the grid x (such as soil report, farmer record); Terms(d) is the term set extracted from the text d (such as "paddy field"); λ t is the inverse document frequency (IDF) of the term t, reflecting the rarity of the term; is the concept type weight (such as crop type γ = 1.2, soil type γ = 1.0); Sim + (t, c * ) is the weighted semantic similarity of the term t and the most matching concept c * ; Z s is the normalization constant, ensuring that maxω s (X) = 1.
[0108] According to the spatial density weight field and the semantic importance weight, a collaborative weight field is obtained;
[0109] In the embodiment, the synergy weight field can be obtained by the following formula:
[0110]
[0111] wherein, Ω(X) is a synergy weight field, which comprehensively reflects the composite importance of data and semantics; ∈ is a coupling strength coefficient (such as 0.2), which controls the influence of the curl term; is a gradient vector of the data density weight, which represents the weight space change rate; is a gradient vector of the query heat weight.
[0112] According to the synergy weight field, a non-uniform grid set is generated; in the embodiment, the non-uniform grid is generated by adaptive quadtree splitting, so as to realize efficient coding of the farm space. Specifically, a high weight area (such as a data-intensive, user-focused, and semantically important area) can be subdivided into smaller grids, while a low weight area can maintain a larger grid, so as to balance the calculation accuracy and efficiency.
[0113] In the embodiment, the adaptive quadtree can use the following method:
[0114] Initialize the root grid:
[0115] Divide the entire farm area into an initial root grid (such as 1 km x 1 km), level l = 0.
[0116] Recursive quadtree splitting:
[0117] For each grid G i , check the splitting condition in the following order:
[0118] Condition 1: Weight overrun: if the average value of Ω(x) in the grid is greater than a threshold value then mark it as to be split.
[0119] Condition 2: Spatial variation is severe: calculate the weight gradient in the grid. If then mark it as to be split.
[0120] Condition 3: Not reach the maximum level: if the current level l < L max , further splitting is allowed.
[0121] If any of the above conditions is met, the grid is quad-split into four sub-grids (level l + 1), and each sub-grid is recursively checked.
[0122] Termination condition:
[0123] When the grid area < A min or reaches L max , stop splitting.
[0124] Storage grid attributes:
[0125] Boundary coordinates (e.g. southwest corner (x min ,y min ), northeast corner (x max ,y max )).
[0126] Weight value Ω(G i ) (average value of Ω(x) within the grid).
[0127] Associated data pointer (pointing to the original geographic data subset covered by the grid).
[0128] Through the above steps, a non-uniform grid set G = {G i} is obtained, each grid G i contains:
[0129] Unique code (e.g. 001-0101); boundary coordinates; weight value Ω(G i ); associated data pointer (as shown in Figure 2 ).
[0130] According to the non-uniform grid set, a spatial code index table is established.
[0131] Grid coding and storage:
[0132] For each generated grid, a unique code is generated according to the following rules:
[0133] Hierarchy coding: use l-bit binary number to represent hierarchy (e.g. use 001-100 when l = 3).
[0134] Position coding: sort by Z-order curve within the hierarchy to generate position code (e.g. 0101).
[0135] Complete coding: hierarchy coding + position coding (e.g. 001-0101).
[0136] In this way, high-weight areas (e.g. farmland concentration areas) are automatically subdivided into small grids, and low-weight areas (e.g. wasteland) remain large grids, and the number of grids is controlled through L max and A min , avoiding excessive subdivision.
[0137] In this embodiment, the time series data includes various farm sensor time series data, and farm operation record text data;
[0138] The time coding of the time series data in the preprocessed data includes:
[0139] Each group of time series data is processed as follows:
[0140] The physical time element information is acquired according to the time series data;
[0141] In the embodiment, the physical time element information can be acquired by using the following formula:
[0142]
[0143] wherein, T d is a day-night cycle (for example, 24 hours); t UTC is a UTC time stamp recorded by a sensor; t solar is a true solar time calculated according to the longitude and latitude of a farm; is a time zone correction amount (for example, East Eight Zone In this way, the absolute time is converted into a relative time coordinate reflecting the actual light period of the farm, as a reference dimension of time coding, for subsequent spatio-temporal correlation analysis; T p is the physical time element information.
[0144] The time element information is acquired according to the time series data;
[0145] In the embodiment, the time element information can be acquired by using the following formula:
[0146]
[0147] wherein, k is a variety-specific growth rate coefficient (for example, k of rice = 0.15 / ℃); T(τ) is an effective accumulated temperature (≥10℃ daily cumulative temperature) at any time τ; θ is a variety characteristic temperature threshold (for example, θ of corn = 12℃); the time element information maps the physical time into the crop physiological development process, quantifies the crop growth stage, and is used for judgment of the farming window period; T b is the biological time element (quantifying the crop physiological development process); t is an upper limit of integration, indicating the cumulative time from the time starting point (for example, the sowing time) to the current time.
[0148] The time-varying weight field is acquired; in the embodiment, the time-varying weight field can be acquired by using the following method:
[0149]
[0150] wherein, α(t) is a growth rate dynamic coefficient predicted by an LSTM network; β is a Gaussian attenuation coefficient (optimized according to yield data, for example, β = 0.05); t opt is a midpoint of the optimal growth period (for example, the heading stage); γ is an inverse distance weight base value (γ = 0.3); δ is a critical period sensitivity coefficient (δ = 2.5); t critThe critical physiological period start point (such as 7 days before flowering); W(t) is a time-varying weight field; the dynamic weight field generated by the application is used to reflect the importance of time, thereby guiding the attention allocation of time coding and strengthening the expression of key agricultural time.
[0151] According to the spatial coding index table and the time series data, a nonlinear time topology structure is generated;
[0152] In this embodiment, the nonlinear time topology structure can be obtained by the following formula:
[0153] d H =arccosh(coshr1coshr2-sinhr1sinhr2cosΔθ);
[0154] Wherein, d H is a hyperbolic space-time distance, representing the distance of two time events in hyperbolic space, used to quantify their correlation degree in non-Euclidean space-time;
[0155] r1 and r2 are hyperbolic radii of time events, reflecting time span, and the calculation method is r i =In(1+Δt i ), wherein Δt i is a time interval, for example, the number of days from sowing to heading;
[0156] Δθ is a time phase angle difference value, which is calculated by the agricultural operation type hash, representing the phase angle difference of two time events, for example, the phase angle difference of irrigation and fertilization operation in the crop growth cycle;
[0157] cosh is the hyperbolic cosine function; sinh is the hyperbolic sine function; arccosh is the inverse hyperbolic cosine function.
[0158] According to the physical time element information, the time element information, the time-varying weight field and the nonlinear time topology structure, the final time coding vector is obtained.
[0159] Time Code=∫∫∫Ω[W(t)·(λT p +(1-λ)T b )]·Ψ(d H )dt dθdr;
[0160] Wherein, λ is a dynamic harmonic coefficient (λ=σ(W(t)-0.5)); Ψ(d H ) is a Gaussian kernel function (σ=3.2); Ω is the integral domain defined by the crop growth cycle and the meteorological cycle.
[0161] In this embodiment, the quality coding of the data quality related data in the preprocessed data includes:
[0162] According to the data quality related data in the preprocessed data, a scientific value feature vector, a production value feature vector, an ethical value feature vector, and an ecological value feature vector are obtained.
[0163] In this embodiment, the scientific value feature vector can be obtained by the following formula:
[0164] wherein, C i is the number of citations of the i th associated scientific research project, R i is the i thge scientific research achievement impact factor, and T is the data survival period; in this embodiment, the scientific value feature vector is used to quantify the support value of the data to scientific research.
[0165] In this embodiment, the production value feature vector can be obtained by the following formula:
[0166] wherein, P represents the production value feature vector; A j represents the adoption degree of the j th agricultural operation (for example, through analysis of farmer behavior logs (0-1, 1 represents complete adoption)); E j is the economic benefit coefficient of the j th operation, which can be obtained from historical agricultural economic data (yuan / unit output); D j is the duration of the j th agricultural operation (hours); L is the area of the data associated plot; and m is the total number of other associated agricultural operations.
[0167] In this embodiment, the ethical value feature vector is obtained by the following formula:
[0168] E = C ethic · In (P privacy + 1);
[0169] wherein, E is the ethical value feature vector; C ethic is the data collection regulation score (which can be scored by expert review); P privacy is the level of farmer privacy protection, for example, 1 = anonymization, 2 = de-identification, and 3 = plaintext.
[0170] In this embodiment, the ecological value feature vector can be obtained by the following method:
[0171]
[0172] wherein, O is the ecological value feature vector; I env is the environmental impact index; F eco is the ecological monitoring frequency (times / day);
[0173] According to the scientific value feature vector, the production value feature vector, the ethical value feature vector, the ecological value feature vector, the space coding index table, and the time coding vector, a fusion value field is generated;
[0174] In the embodiment, the fusion value field is obtained by the following formula:
[0175]
[0176] Wherein, Φ0 is the fusion value field; V k is the kth value feature vector (scientific value feature vector, production value feature vector, ethical value feature vector, ecological value feature vector); ρ k (x, y) is the spatial weight field of the kth value, which is calculated by interpolation of the space coding index table; τ k (t) is the time attenuation function of the kth value, in the embodiment, Wherein, λ is the attenuation coefficient, and ω is the seasonal frequency.
[0177] The fusion value field is fractal coded to obtain quality coding.
[0178] In the embodiment, the fractal coding uses the following formula:
[0179] F k = F(Φ′ k , D k ); Wherein, F k is the kth value fractal feature; F is the fractal generating function; D k is the fractal dimension of the kth value; Φ′ k is the modified value field of the kth value;
[0180] According to the fractal feature, mapping is performed by the way of space-time coding mapping:
[0181]
[0182] Wherein, W i (t) is the time-varying weight surface (generated by the time coding vector); is the fractal convolution operation; is the fractal splicing operation; Q 段 is the fixed length coding;
[0183] In the embodiment, [1-64 bits]: scientific value fractal coding; [65-128 bits]: production value fractal coding; [129-192 bits]: ethical value fractal coding; [193-256 bits]: ecological value fractal coding.
[0184] The application realizes more accurate value evaluation by constructing a four-dimensional value evaluation system, and realizes dynamic fusion of value through space-time modulation and nonlinear diffusion.
[0185] In the embodiment, the final 256-bit quality code is generated for each specific data point or data block, and the update frequency of the quality code is consistent with the data acquisition frequency. A new quality code is generated every time new data is collected and preprocessed. This means that the quality code is updated in real time and can reflect the latest state of data quality.
[0186] The above-mentioned encoding of the application will be further described in detail by way of example. It can be understood that the example does not constitute any limitation on the application.
[0187] Crop growth monitoring data quality coding
[0188] Data scenario:
[0189] Sensor ID: CGM-20250605-001;
[0190] Collection time: June 5, 2025 09:00;
[0191] Raw data:
[0192] Crop height: 120 cm;
[0193] Leaf area index: 3.5;
[0194] Stem diameter: 15 mm;
[0195] Associated agricultural operation: Fertilization operation on June 4, 2025 (nitrogen fertilizer 20 kg / acre, phosphorus fertilizer 10 kg / acre, potassium fertilizer 15 kg / acre);
[0196] Multi-dimensional value space mapping:
[0197] Scientific value (S):
[0198] Number of associated scientific research projects = 2 (crop growth model research, crop yield prediction);
[0199] Reference coefficient:
[0200] C1=0.9 (Project A: Crop growth model research, direct reference);
[0201] C2=0.7 (Project B: Crop yield prediction, indirect reference);
[0202] Influence factor:
[0203] R1=5.0 (Project A published in Nature journal);
[0204] R2 = 3.0 (Project B published in the journal of Advances in Agricultural Sciences);
[0205] Data life cycle T = 180 days;
[0206] Calculation:
[0207] S = (C1 * R1 + C2 * R2) / T = (0.9 * 5.0 + 0.7 * 3.0) / 180 ≈ 0.0417;
[0208] Production value feature vector (P):
[0209] Degree of adoption of agricultural operation A = 1.0 (fully adopt the recommended fertilization scheme);
[0210] Economic benefit coefficient E = 300 yuan / acre (expected yield increase benefit)
[0211] Duration of agricultural operation D = 2 hours;
[0212] Data related plot area L = 10 acres;
[0213] P = (A * E * D) / L = (1.0 * 300 * 2) / 10 = 60;
[0214] Ethical value feature vector (E);
[0215] Data collection compliance score C ethic = 1.0 (fully comply with data collection ethical norms);
[0216] Farmer privacy protection level P privacy = 3 (data anonymization);
[0217] E = C ethic *In(P privacy +1) = 1.0 * In(3+1) ≈ 1.386;
[0218] Ecological value feature vector (O):
[0219] Environmental impact index I env = 0.8 (fertilization operation has low impact on the environment);
[0220] Ecological monitoring frequency F eco = 24 times / day;
[0221]
[0222] Four-dimensional value vector V = (0.0417, 60, 1.386, 3.92);
[0223] Adaptive value fusion:
[0224] spatiotemporal modulation:
[0225] spatial weight field:
[0226] p S = 0.8 (sensor deployment density weighting);
[0227] p P = 0.7 (fertilization operation influence range weighting);
[0228] p E = 0.6 (ethical value space universality);
[0229] p O = 0.9 (environmental monitoring high-precision area weighting);
[0230] temporal decay function:
[0231] t S = 0.95 (30-day decay coefficient, long-term value of scientific data);
[0232] t P = 0.85 (15-day decay coefficient, medium-term impact on production efficiency);
[0233] t E = 0.75 (7-day decay coefficient, short-term sensitivity to ethical norms);
[0234] t O = 0.9 (30-day decay coefficient, long-term environmental impact monitoring);
[0235] initial fusion value field calculation (simplified representation):
[0236] Φ0= Σ (V k * p k * t k ) ≈ 0.04170.80.95 + 600.70.85 + 1.3860.60.75 + 3.920.90.9 ≈ 42.1;
[0237] nonlinear diffusion:
[0238] diffusion coefficient D = 0.08 (spatial correlation of crop growth data);
[0239] self-enhancement coefficient λ = 0.15;
[0240] iterative calculation (to reach steady state):
[0241]
[0242] After multiple iterations, the steady-state solution is obtained: Φ ≈ 43.5;
[0243] Fractal encoding generation:
[0244] Fractal feature extraction (taking scientific value as an example)
[0245] Fractal dimension D k = 1.3 (crop growth data self-similarity);
[0246] IFS parameters:
[0247] Shrinkage factor w = 0.6;
[0248] Rotation angle θ = 45°;
[0249] Generate fractal tree: generate scientific value fractal feature F by iterative function system k ≈ 0.78;
[0250] Spacetime encoding mapping (taking scientific value as an example):
[0251] Time-varying weight W s (t) = 0.85 (time decay compensation);
[0252] Fractal convolution: Q s = F s W s (t) = 0.78 * 0.85 ≈ 0.663;
[0253] Encoding mapping (taking scientific value as an example);
[0254] Sigmoid mapping: σ(Q s ) = 1 / (1 + e^ (-0.663)) ≈ 0.66;
[0255] Uniform quantization: map 0.66 to 64-bit binary encoding (simplified representation): 01010101...010101
[0256] (The first 16 bits, the latter is omitted).
[0257] In this embodiment, the semantic enhanced association rule base is generated according to the preprocessed data, data with trace information and agricultural domain ontology library, which includes:
[0258] Extracting geographical data set from data with trace information;
[0259] For each data point with spatial attribute, calculate the geographical distance between it and other data points;
[0260] Specifically, for each data point with spatial attribute, calculate the geographical distance between it and other data points. The straight-line distance between two points can be calculated using latitude and longitude coordinates, or the actual path distance can be calculated considering factors such as terrain, obstacles, etc.
[0261] According to the grid division information in the spatial encoding index table, each data point is assigned to a corresponding grid; wherein, when two data points are located in the same grid or adjacent grids, it is judged that the two data points have spatial proximity;
[0262] According to the agricultural domain ontology, a spatial constraint association rule library is generated for each data with spatial proximity; for example, combining the agricultural domain ontology, the potential association between spatial proximity data is analyzed. For example, if the soil moisture data of two adjacent grids increases at the same time, it may be associated with "irrigation activities" or "rainfall events". Specific association rules are generated, such as "in the same grid or adjacent grid, when the soil moisture sensor data shows that the humidity increases, it may be accompanied by irrigation activities or rainfall events".
[0263] According to the final time encoding vector, a time series causal association rule library is generated; trend analysis, periodicity detection, etc. are performed on time series data to identify the time series dependency relationship between data. For example, soil temperature may reach a peak at a certain time of the day and then gradually decrease. Combining the agricultural domain ontology, the causal relationship behind the time series dependency relationship is analyzed. For example, if the growth rate of crops increases after fertilization, it can be inferred that fertilization is the reason for promoting crop growth. According to the time series dependency relationship and the causal inference result, a time series causal association rule is generated. For example, "within 7 days after fertilization, the growth rate of crops significantly increases".
[0264] According to the quality encoding, a quality-weighted association rule library is generated; wherein, the spatial constraint association rule library, the time series causal association rule library, and the quality-weighted association rule library constitute the semantic-enhanced association rule library. According to the value feature vector, the data is comprehensively evaluated to determine its reliability score. For example, weather forecast data from authoritative agencies may have a high scientific value score. When generating association rules, the quality score of the data is considered. Preferably, rules generated from high-quality data are used, or rules are quality-weighted to reflect their reliability. For example, if an association rule is generated based on multiple high-quality data sources, the rule is given a high confidence score.
[0265] In this embodiment, the trace-aware semantic association rule library includes spatial constraints, time series causality, and quality-weighted association rules. For example:
[0266] Spatial constraint rule: "in the same grid or adjacent grid, when the soil moisture sensor data shows that the humidity increases, it may be accompanied by irrigation activities or rainfall events" (based on spatial proximity and agricultural domain ontology).
[0267] Time series causal rule: "within 7 days after fertilization, the growth rate of crops significantly increases" (based on time series dependency relationship and causal inference).
[0268] Quality-weighted rule: "Crops can be under heat stress when temperature sensor data shows temperature above 30°C" (this rule is generated based on high-quality weather station data with a high confidence score).
[0269] In this embodiment, the generating a multi-modal agricultural knowledge representation library according to the farm base data, the agricultural domain ontology library, and the semantically enhanced association rule library comprises:
[0270] Feature extraction is performed on the preprocessed data to obtain preprocessed feature vectors; for example, for structured preprocessed data such as soil temperature and humidity sensor data, numerical features such as mean, maximum, minimum, and rate of change are extracted.
[0271] For unstructured preprocessed data such as unmanned aerial vehicle image data, texture features, color features, shape features, and the like are extracted; for text report data, text features such as keywords, topics, and sentiment orientation are extracted; for farmer voice recording data, voice features such as speech rate, tone, and volume are extracted.
[0272] The extracted features are converted into vector form for subsequent processing and analysis. For example, text features are converted into vectors using methods such as bag-of-words, TF-IDF, and word embedding; image feature vectors are extracted using convolutional neural networks (CNN).
[0273] The preprocessed feature vectors are associated with the spatial encoding index table and the final time encoding vector in the data with traceable information, respectively, to obtain a set of feature vectors with traceable information, wherein each preprocessed feature vector contains its corresponding traceable information, thereby forming the feature layer; for example, for a soil temperature and humidity feature vector at a specific geographic location and time point, its spatial encoding (grid ID, coordinates, etc.) and time encoding (timestamp, time series position, etc.) are associated.
[0274] Based on the agricultural domain ontology library, the feature vectors in the set of feature vectors with traceable information are semantically labeled to obtain a set of feature vectors with traceable information and semantic labels; for example, a "soil humidity" feature vector is labeled as a "soil property" category; a "crop growth rate" feature vector is labeled as a "crop growth state" category.
[0275] The semantic labels in the set of feature vectors with traceable information and semantic labels are fused with the semantic importance weights in the spatial encoding to obtain a set of feature vectors with traceable information and representation intensity; for example, for a "soil humidity" feature vector within a certain grid, its representation intensity in the semantic layer is adjusted according to the semantic importance weight in its spatial encoding.
[0276] A semantic network is constructed according to the feature vector set with traceable features representing intensity; nodes in the semantic network represent concepts or terms in the agricultural domain ontology library, edges represent relationships between concepts or terms, and weights of the edges represent the intensity or confidence of the relationships.
[0277] Each association rule in the semantic-enhanced association rule base is formed into a computer-understandable and executable rule base through natural language processing techniques; specifically, the trace-aware semantic association rule base is embedded into the rules. These rules include spatial constraint association rules, time-series causal association rules, and quality-weighted association rules.
[0278] The computer-understandable and executable rule base is integrated with the semantic network to obtain a semantic network with embedded rules; for each embedded association rule, the data trace information on which it is generated is recorded. For example, for an association rule generated based on soil moisture data of a specific grid and time period, the corresponding spatial code and time code are recorded.
[0279] For each rule in the semantic network with embedded rules, the data trace information on which it is generated is extracted; based on the embedded association rules and rule trace chains, a rule reasoning engine is constructed. The rule reasoning engine can generate new knowledge or conclusions based on input feature vectors and semantic labels in combination with association rules.
[0280] The extracted rule trace information is associated with the rules themselves to construct rule trace chains;
[0281] The constructed rule trace chains are stored in a database or graph database to form a multi-modal agricultural knowledge representation library. Specifically, in this embodiment, based on the embedded association rules and rule trace chains, a rule reasoning engine (multi-modal agricultural knowledge representation library) is constructed, and the reasoning engine needs to be able to receive input feature vectors, perform reasoning based on the semantic network with embedded rules and rule trace chains, and generate new knowledge or conclusions.
[0282] A rule-based reasoning engine (such as Drools, Jess, etc.) can be selected, or the reasoning logic can be implemented by customizing. Rule-based reasoning engines usually provide functions such as rule matching, conflict resolution, and action execution, and can facilitate the reasoning process of rules.
[0283] The present application has the following advantages:
[0284] (1) The application integrates various structured data (such as soil EC value, crop biomass) and unstructured data (such as unmanned aerial vehicle image, farmer voice recording), breaking through the limitation of traditional technology that only processes structured data. The existing technology usually only focuses on structured sensor data such as soil temperature and humidity, rainfall, etc., while the present scheme additionally integrates unstructured data such as unmanned aerial vehicle images, farmer voice recordings, etc., and realizes the deep analysis and standardization cleaning of multi-modal data through the analysis of geographic coordinates, the conversion of voice into text and the segmentation of words. This design solves the technical problems of single data source and low utilization rate of the farm. Through dynamic time warping (DTW) alignment of multi-source time series data and geographic weighted regression (GWR) fusion of remote sensing images and ground sensor data, the structured and unstructured data are accurately aligned in the time and space dimensions, thereby improving the data utilization efficiency by more than 30% and reducing the multi-source data alignment error to within 2%.
[0285] The non-uniform spatiotemporal coding mechanism proposed in the present application addresses the problem of rough spatiotemporal correlation modeling in existing technology. The present scheme generates a collaborative weight field to drive grid splitting by combining data density weight field (based on kernel density estimation) and semantic importance weight field (based on IDF and semantic similarity), through adaptive quadtree spatial coding, so that the storage efficiency of high attention areas (such as crop dense areas) is improved by 50%. At the same time, the hyperbolic spatial distance quantization non-Euclidean correlation is used in time coding, combined with the growth rate dynamic coefficient predicted by LSTM, the crop growth cycle prediction error is reduced from ±5 days of traditional method to ±2 days. This design solves the technical problem of low spatiotemporal data correlation accuracy, which is based on the principle of fine modeling of spatiotemporal heterogeneity through the collaborative weight field of spatiotemporal coupling and nonlinear time topology.
[0286] The four-dimensional quality evaluation system constructed in the present application breaks through the limitation of existing quality coding that only focuses on data accuracy. In view of the technical problem of single dimension of data quality evaluation, the present scheme constructs a comprehensive scoring model through four-dimensional indicators such as scientific value (such as number of citations of scientific research projects), production value (such as economic benefit coefficient), ethical value (such as privacy compliance score), and ecological value (such as environmental impact index), and uses fractal coding to map multi-dimensional features to fixed length coding, realizing dynamic fusion of quality. This design improves the rule confidence score by 40% and the filtering rate of low-quality data by 85%, which is based on the principle of ensuring the spatiotemporal dynamics and multi-dimensional comprehensiveness of quality evaluation through spatiotemporal modulation (spatial weight and time decay function) and nonlinear diffusion (iterative steady-state calculation).
[0287] The semantic enhanced association rule base obtained by the method of the application solves the technical problems of traditional rule base relying on simple statistical association and lacking of explainability. The prior art usually only generates rules based on statistical frequency, while the present scheme generates space constraint rules (such as adjacent grid humidity rise associated with irrigation), time sequence causal rules (such as growth acceleration 7 days after fertilization), and quality weighted rules (such as high temperature heat stress rules based on high confidence data) in combination with the agricultural domain ontology. This design improves the rule confidence score by 40% by embedding traceability information (such as spatial coding, temporal coding, and quality coding) into the rules. The principle is to use the semantic constraints of the agricultural domain ontology and the weight modulation of the quality evaluation system to ensure the causality and reliability of the rules.
[0288] The knowledge representation library constructed by the application breaks through the technical problems of traditional knowledge base fragmentation and limited reasoning ability. The existing knowledge base is mostly single feature layer, while the present scheme supports cross-modal reasoning through the hierarchical architecture of feature layer (storing multi-modal feature vectors such as soil humidity numerical features and image texture features), semantic layer (based on ontology annotation and weight fusion such as "soil humidity → soil property"), and rule layer (embedding traceability aware association rules). This design realizes full-link traceability from data to knowledge. The principle is to associate feature vectors and spatio-temporal coding, fuse semantic annotation and weights, and construct rule embedding and reasoning engine to form an explainable knowledge reasoning chain, for example, automatically generating decision suggestions such as "check water pump status" through "soil humidity rise" features.
[0289] The application also provides a smart farm knowledge warehouse establishment system, which comprises a data acquisition module, a preprocessing module, a coding module, a semantic enhancement module, and a multi-modal agricultural knowledge representation library generation module, wherein,
[0290] The data acquisition module is used to acquire farm basic data and agricultural domain ontology;
[0291] The preprocessing module is used to preprocess the farm basic data to obtain preprocessed data;
[0292] The coding module is used to perform spatial coding, temporal coding, and quality coding on the preprocessed data to obtain data with traceability information;
[0293] The semantic enhancement module is used to generate a semantic enhanced association rule base according to the preprocessed data, the data with traceability information, and the agricultural domain ontology;
[0294] The multi-modal agricultural knowledge representation library generation module is configured to generate a multi-modal agricultural knowledge representation library according to farm basic data, an agricultural domain ontology library and a semantic enhanced association rule library, the multi-modal agricultural knowledge representation library including a feature layer, a semantic layer and a rule layer, wherein the feature layer stores feature vectors of multi-modal data; the semantic layer: based on the agricultural domain ontology library, the elements in the feature layer are semantically labeled; the rule layer embeds the semantic enhanced association rule library, and provides data association basis for knowledge reasoning.
[0295] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement for part or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for establishing a smart farm knowledge warehouse, characterized in that, The smart farm knowledge warehouse establishment method comprises the following steps: Obtaining farm basic data and an agricultural domain ontology library; Preprocessing the farm basic data to obtain preprocessed data; Encoding the preprocessed data in space, time and quality to obtain data with traceability information; Generating a semantic-enhanced association rule library according to the preprocessed data, the data with traceability information and the agricultural domain ontology library; Generating a multi-modal agricultural knowledge representation library according to the farm basic data, the agricultural domain ontology library and the semantic-enhanced association rule library, wherein the multi-modal agricultural knowledge representation library comprises a feature layer, a semantic layer and a rule layer, the feature layer stores feature vectors of multi-modal data, the semantic layer performs semantic annotation on elements in the feature layer based on the agricultural domain ontology library, and the rule layer embeds the semantic-enhanced association rule library to provide data association basis for knowledge reasoning. 2.The method of claim 1, wherein, The farm basic data comprises structured farm data and unstructured farm data, wherein the structured farm data comprises soil temperature and humidity information, EC value information, nitrogen, phosphorus and potassium content information, rainfall information, wind speed information, temperature information, light intensity information, crop chlorophyll content information, plant height information, biomass information and soil vibration characteristic information, and the unstructured farm data comprises unmanned aerial vehicle images, farmer voice records and text reports. 3.The method of claim 2, wherein, The preprocessing of the farm basic data to obtain preprocessed data comprises the following steps: Performing missing value supplement operation on the structured data, performing denoising and enhancement processing on image data in the unstructured data, converting farmer voice records in the unstructured data into text information, performing denoising and word segmentation processing on the text information to obtain cleaned structured data and cleaned unstructured data; Performing time alignment and space alignment on the cleaned structured data and the cleaned unstructured data.
4. The smart farm knowledge warehouse establishment method of claim 3, wherein The space encoding, time encoding and quality encoding of the preprocessed data to obtain data with traceability information comprise the following steps: Encoding geographical position data of the farm in the preprocessed data to obtain a space encoding index table; Encoding time series data in the preprocessed data to obtain a final time encoding vector; Encoding data quality related data in the preprocessed data to obtain quality encoding; The space encoding index table, the final time encoding vector and the quality encoding constitute the data with traceability information. 5.The method of claim 4, wherein, The preprocessed data comprises structured preprocessed data and unstructured preprocessed data, the structured preprocessed data comprises soil temperature and humidity sensor data and meteorological station data, and the unstructured preprocessed data comprises unmanned aerial vehicle image data, text report data and farmer voice record data; The space encoding of the geographical position data of the farm in the preprocessed data comprises the following steps: Analyzing the structured preprocessed data to obtain an original coordinate database; Extracting coordinate data from the unstructured preprocessed data to obtain a standardized coordinate data set; Conducting coordinate system conversion on the original coordinate database and the standardized coordinate dataset to obtain a geographic dataset in a unified coordinate system; Obtaining a spatial density weight field from the geographic dataset, the spatial density weight field being used to reflect the data density of each grid; Generating a semantic importance weight from the agricultural domain ontology library and the preprocessed data, the semantic importance weight being used to reflect the agricultural knowledge value of the text in the grid; Obtaining a collaborative weight field from the spatial density weight field and the semantic importance weight; Generating a non-uniform grid set from the collaborative weight field; Establishing a spatial coding index table according to the non-uniform grid set. 6.The method of claim 5, wherein, The time series data includes various farm sensor time series data and farm operation record text data; The time coding of the time series data in the preprocessed data includes: Each group of time series data is processed as follows: Obtaining physical time element information from the time series data; Obtaining time element information from the time series data; Obtaining a time-varying weight field; Generating a non-linear time topology structure from the spatial coding index table and the time series data; Encoding according to the physical time element information, the time element information, the time-varying weight field and the non-linear time topology structure to obtain a final time coding vector.
7. The smart farm knowledge warehouse establishment method of claim 6, wherein The quality coding of the data quality related data in the preprocessed data includes: Obtaining a scientific value feature vector, a production value feature vector, an ethical value feature vector and an ecological value feature vector from the data quality related data in the preprocessed data; Generating a fusion value field from the scientific value feature vector, the production value feature vector, the ethical value feature vector, the ecological value feature vector, the spatial coding index table and the time coding vector; Typing coding of the fusion value field to obtain quality coding. 8.The method of claim 7, wherein, The generation of the semantic enhanced association rule library from the preprocessed data, the data with traceability information and the agricultural domain ontology library includes: Extracting a geographic dataset from the data with traceability information; For each data point with spatial attributes, calculating the geographic distance between it and other data points; According to the grid division information in the spatial coding index table, assigning each data point to the corresponding grid; wherein, when two data points are located in the same grid or adjacent grids, it is judged that the two data points have spatial proximity; According to the agricultural domain ontology library, generating a spatial constraint association rule library for each data with spatial proximity; Generating a time series causal association rule library according to the final time coding vector; Generating a quality weighted association rule library according to the quality coding; wherein, the spatial constraint association rule library, the time series causal association rule library and the quality weighted association rule library constitute the semantic enhanced association rule library. 9.The method of claim 8, wherein, The generation of the multi-modal agricultural knowledge representation library from the farm basic data, the agricultural domain ontology library and the semantic enhanced association rule library includes: Feature extraction of the preprocessed data to obtain a preprocessed feature vector; The pre-processed feature vectors are respectively associated with the spatial coding index table and the final time coding vector in the data with traceability information, so as to obtain a set of feature vectors with traceability, wherein each pre-processed feature vector contains corresponding traceability information, thereby forming the feature layer; The feature vectors in the set of feature vectors with traceability are semantically labeled based on the agricultural domain ontology library, so as to obtain a set of feature vectors with traceability and semantic labeling; The semantic labeling in the set of feature vectors with traceability and semantic labeling is fused with the semantic importance weight in the spatial coding, so as to obtain a set of feature vectors with traceability and representation strength; A semantic network is constructed according to the set of feature vectors with traceability and representation strength; Each association rule in the association rule library with semantic enhancement is formed into a computer understandable and executable rule library through natural language processing technology; The computer understandable and executable rule library is integrated with the semantic network, so as to obtain a semantic network with embedded rules; For each rule in the semantic network with embedded rules, the data traceability information on which the rule is generated is extracted; The extracted rule traceability information is associated with the rule itself to construct a rule traceability chain; The constructed rule traceability chain is stored in a database or a graph database, thereby forming a multi-modal agricultural knowledge representation library. 10.A system for establishing a smart farm knowledge warehouse, characterized in that, The intelligent farm knowledge warehouse establishment system comprises: a data acquisition module, which is used to acquire farm basic data and an agricultural domain ontology library; a pre-processing module, which is used to pre-process the farm basic data, so as to obtain pre-processed data; an encoding module, which is used to perform spatial coding, time coding and quality coding on the pre-processed data, so as to obtain data with traceability information; a semantic enhancement module, which is used to generate an association rule library with semantic enhancement according to the pre-processed data, the data with traceability information and the agricultural domain ontology library; a multi-modal agricultural knowledge representation library generation module, which is used to generate a multi-modal agricultural knowledge representation library according to the farm basic data, the agricultural domain ontology library and the association rule library with semantic enhancement, wherein the multi-modal agricultural knowledge representation library comprises a feature layer, a semantic layer and a rule layer, wherein the feature layer stores feature vectors of multi-modal data; the semantic layer semantically labels elements in the feature layer based on the agricultural domain ontology library; and the rule layer embeds the association rule library with semantic enhancement, thereby providing data association basis for knowledge reasoning.
Citation Information
Cited By
Large-model multi-modal and multi-dimensional data augmentation method and device based on man-machine interaction
CN121996338A